feat(uikit): Move `@rocket.chat/ui-kit` package to the main monorepo (#31138)
parent
88a871f64f
commit
b223cbde14
@ -0,0 +1,56 @@ |
||||
--- |
||||
'@rocket.chat/ui-kit': minor |
||||
'@rocket.chat/server-cloud-communication': patch |
||||
'@rocket.chat/omnichannel-services': patch |
||||
'rocketchat-services': patch |
||||
'@rocket.chat/omnichannel-transcript': patch |
||||
'@rocket.chat/authorization-service': patch |
||||
'@rocket.chat/web-ui-registration': patch |
||||
'@rocket.chat/stream-hub-service': patch |
||||
'@rocket.chat/password-policies': patch |
||||
'@rocket.chat/uikit-playground': patch |
||||
'@rocket.chat/presence-service': patch |
||||
'@rocket.chat/fuselage-ui-kit': patch |
||||
'@rocket.chat/instance-status': patch |
||||
'@rocket.chat/account-service': patch |
||||
'@rocket.chat/mock-providers': patch |
||||
'@rocket.chat/release-action': patch |
||||
'@rocket.chat/api-client': patch |
||||
'@rocket.chat/ddp-client': patch |
||||
'@rocket.chat/pdf-worker': patch |
||||
'@rocket.chat/ui-theming': patch |
||||
'@rocket.chat/account-utils': patch |
||||
'@rocket.chat/core-services': patch |
||||
'@rocket.chat/eslint-config': patch |
||||
'@rocket.chat/model-typings': patch |
||||
'@rocket.chat/ui-video-conf': patch |
||||
'@rocket.chat/cas-validate': patch |
||||
'@rocket.chat/core-typings': patch |
||||
'@rocket.chat/rest-typings': patch |
||||
'@rocket.chat/server-fetch': patch |
||||
'@rocket.chat/ddp-streamer': patch |
||||
'@rocket.chat/queue-worker': patch |
||||
'@rocket.chat/presence': patch |
||||
'@rocket.chat/poplib': patch |
||||
'@rocket.chat/ui-composer': patch |
||||
'@rocket.chat/ui-contexts': patch |
||||
'@rocket.chat/license': patch |
||||
'@rocket.chat/log-format': patch |
||||
'@rocket.chat/gazzodown': patch |
||||
'@rocket.chat/ui-client': patch |
||||
'@rocket.chat/livechat': patch |
||||
'@rocket.chat/favicon': patch |
||||
'@rocket.chat/agenda': patch |
||||
'@rocket.chat/base64': patch |
||||
'@rocket.chat/logger': patch |
||||
'@rocket.chat/models': patch |
||||
'@rocket.chat/random': patch |
||||
'@rocket.chat/sha256': patch |
||||
'@rocket.chat/tools': patch |
||||
'@rocket.chat/cron': patch |
||||
'@rocket.chat/i18n': patch |
||||
'@rocket.chat/jwt': patch |
||||
'@rocket.chat/meteor': patch |
||||
--- |
||||
|
||||
feat(uikit): Move `@rocket.chat/ui-kit` package to the main monorepo |
||||
@ -0,0 +1,320 @@ |
||||
diff --git a/lib/factories/internal/metadata/iterate_metadata_intersection.js b/lib/factories/internal/metadata/iterate_metadata_intersection.js
|
||||
index 260670b8ea37b63dcacadeffa26450f81087c90e..f07b44b16099d896ab40c46f03df86ee2f2c1a90 100644
|
||||
--- a/lib/factories/internal/metadata/iterate_metadata_intersection.js
|
||||
+++ b/lib/factories/internal/metadata/iterate_metadata_intersection.js
|
||||
@@ -247,7 +247,7 @@ var iterate_metadata_intersection = function (checker) {
|
||||
var tags = MetadataTypeTagFactory_1.MetadataTypeTagFactory.analyze(errors)(target)(objects.map(function (om) { return om.objects; }).flat(), explore);
|
||||
if (tags.length)
|
||||
if (target === "array")
|
||||
- meta.arrays.at(-1).tags.push(tags);
|
||||
+ meta.arrays.slice(-1)[0].tags.push(tags);
|
||||
else if (booleanLiteral === null)
|
||||
meta.atomics.find(function (a) { return a.type === target; }).tags.push(tags);
|
||||
else {
|
||||
diff --git a/lib/programmers/CheckerProgrammer.js b/lib/programmers/CheckerProgrammer.js
|
||||
index bbec09f22798d144b96f59bb946e7e32e3438c05..dc13cb47b72358b8e6165b768cff2360db2bd617 100644
|
||||
--- a/lib/programmers/CheckerProgrammer.js
|
||||
+++ b/lib/programmers/CheckerProgrammer.js
|
||||
@@ -458,8 +458,8 @@ var CheckerProgrammer;
|
||||
? "".concat(explore.postfix.slice(0, -1), "[").concat(index, "]\"")
|
||||
: "\"[".concat(index, "]\"") }));
|
||||
});
|
||||
- var rest = tuple.elements.length && tuple.elements.at(-1).rest !== null
|
||||
- ? CheckerProgrammer.decode(project)(config)(importer)(typescript_1.default.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(input)("slice"), undefined, [ExpressionFactory_1.ExpressionFactory.number(tuple.elements.length - 1)]), (0, wrap_metadata_rest_tuple_1.wrap_metadata_rest_tuple)(tuple.elements.at(-1).rest), __assign(__assign({}, explore), { start: tuple.elements.length - 1 }))
|
||||
+ var rest = tuple.elements.length && tuple.elements.slice(-1)[0].rest !== null
|
||||
+ ? CheckerProgrammer.decode(project)(config)(importer)(typescript_1.default.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(input)("slice"), undefined, [ExpressionFactory_1.ExpressionFactory.number(tuple.elements.length - 1)]), (0, wrap_metadata_rest_tuple_1.wrap_metadata_rest_tuple)(tuple.elements.slice(-1)[0].rest), __assign(__assign({}, explore), { start: tuple.elements.length - 1 }))
|
||||
: null;
|
||||
var arrayLength = typescript_1.default.factory.createPropertyAccessExpression(input, "length");
|
||||
return config.combiner(explore)("and")(input, __spreadArray(__spreadArray(__spreadArray([], __read((rest === null
|
||||
diff --git a/lib/programmers/TypiaProgrammer.js b/lib/programmers/TypiaProgrammer.js
|
||||
index c75ab1bc077b788e36c32834ea4916c22df34500..99452220e2dd090d4d562296e26fb266faa617f9 100644
|
||||
--- a/lib/programmers/TypiaProgrammer.js
|
||||
+++ b/lib/programmers/TypiaProgrammer.js
|
||||
@@ -165,7 +165,7 @@ var TypiaProgrammer;
|
||||
.split("\n");
|
||||
if (lines.length === 0)
|
||||
return [0, 0];
|
||||
- return [lines.length, lines.at(-1).length + 1];
|
||||
+ return [lines.length, lines.slice(-1)[0].length + 1];
|
||||
})()
|
||||
: [0, 0], 2), line = _k[0], pos = _k[1];
|
||||
console.error("".concat(file, ":").concat(line, ":").concat(pos, " - ").concat(category, " TS").concat(diag.code, ": ").concat(diag.messageText));
|
||||
diff --git a/lib/programmers/internal/application_tuple.js b/lib/programmers/internal/application_tuple.js
|
||||
index 5c1853a3a1692f95fe702bdae9813e958f54ac4c..04ca996c2ffe72d1cd5969e45a38e91937b975b1 100644
|
||||
--- a/lib/programmers/internal/application_tuple.js
|
||||
+++ b/lib/programmers/internal/application_tuple.js
|
||||
@@ -22,15 +22,15 @@ var application_tuple = function (options) {
|
||||
var schema = __assign(__assign({ type: "array", items: tuple.type.elements.map(function (meta, i) {
|
||||
var _a;
|
||||
return (0, application_schema_1.application_schema)(options)(false)(components)((_a = meta.rest) !== null && _a !== void 0 ? _a : meta)(__assign(__assign({}, attribute), { "x-typia-rest": i === tuple.type.elements.length - 1 && meta.rest !== null, "x-typia-required": meta.required, "x-typia-optional": meta.optional }));
|
||||
- }) }, attribute), { minItems: !!((_a = tuple.type.elements.at(-1)) === null || _a === void 0 ? void 0 : _a.rest)
|
||||
+ }) }, attribute), { minItems: !!((_a = tuple.type.elements.slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.rest)
|
||||
? tuple.type.elements.length - 1
|
||||
- : tuple.type.elements.filter(function (x) { return !x.optional; }).length, maxItems: !!((_b = tuple.type.elements.at(-1)) === null || _b === void 0 ? void 0 : _b.rest)
|
||||
+ : tuple.type.elements.filter(function (x) { return !x.optional; }).length, maxItems: !!((_b = tuple.type.elements.slice(-1)[0]) === null || _b === void 0 ? void 0 : _b.rest)
|
||||
? undefined
|
||||
: tuple.type.elements.length });
|
||||
if (options.purpose === "ajv")
|
||||
if (tuple.type.elements.length === 0)
|
||||
return schema;
|
||||
- else if (!((_c = tuple.type.elements.at(-1)) === null || _c === void 0 ? void 0 : _c.rest))
|
||||
+ else if (!((_c = tuple.type.elements.slice(-1)[0]) === null || _c === void 0 ? void 0 : _c.rest))
|
||||
return schema;
|
||||
var wrapper = __assign(__assign({}, schema), { items: (0, application_schema_1.application_schema)(options)(false)(components)(tuple.type.elements.reduce(function (x, y) { var _a, _b; return Metadata_1.Metadata.merge((_a = x.rest) !== null && _a !== void 0 ? _a : x, (_b = y.rest) !== null && _b !== void 0 ? _b : y); }, Metadata_1.Metadata.initialize()))(tuple.type.recursive ? {} : attribute), "x-typia-tuple": schema, minItems: schema.minItems, maxItems: schema.maxItems });
|
||||
return wrapper;
|
||||
diff --git a/lib/programmers/json/JsonStringifyProgrammer.js b/lib/programmers/json/JsonStringifyProgrammer.js
|
||||
index ce0ae787164f7eba68ef35b05232b4b94ad8e7d7..8f70cfc8c8e9d82cd1ec5004ca5637487f57b3bc 100644
|
||||
--- a/lib/programmers/json/JsonStringifyProgrammer.js
|
||||
+++ b/lib/programmers/json/JsonStringifyProgrammer.js
|
||||
@@ -424,10 +424,10 @@ var JsonStringifyProgrammer;
|
||||
var rest = (function () {
|
||||
if (tuple.elements.length === 0)
|
||||
return null;
|
||||
- var last = tuple.elements.at(-1);
|
||||
+ var last = tuple.elements.slice(-1)[0];
|
||||
if (last.rest === null)
|
||||
return null;
|
||||
- var code = decode(project)(config)(importer)(typescript_1.default.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(input)("slice"), undefined, [ExpressionFactory_1.ExpressionFactory.number(tuple.elements.length - 1)]), (0, wrap_metadata_rest_tuple_1.wrap_metadata_rest_tuple)(tuple.elements.at(-1).rest), __assign(__assign({}, explore), { start: tuple.elements.length - 1 }));
|
||||
+ var code = decode(project)(config)(importer)(typescript_1.default.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(input)("slice"), undefined, [ExpressionFactory_1.ExpressionFactory.number(tuple.elements.length - 1)]), (0, wrap_metadata_rest_tuple_1.wrap_metadata_rest_tuple)(tuple.elements.slice(-1)[0].rest), __assign(__assign({}, explore), { start: tuple.elements.length - 1 }));
|
||||
return typescript_1.default.factory.createCallExpression(importer.use("rest"), undefined, [code]);
|
||||
})();
|
||||
return StringifyJoinder_1.StringifyJoiner.tuple(children, rest);
|
||||
diff --git a/lib/programmers/misc/MiscCloneProgrammer.js b/lib/programmers/misc/MiscCloneProgrammer.js
|
||||
index 3db6bc92637284468c5fe47ef59f51a9b41d06eb..0b3fa9deaaadf28d4f348225c0d44f49700c1bca 100644
|
||||
--- a/lib/programmers/misc/MiscCloneProgrammer.js
|
||||
+++ b/lib/programmers/misc/MiscCloneProgrammer.js
|
||||
@@ -291,11 +291,11 @@ var MiscCloneProgrammer;
|
||||
var rest = (function () {
|
||||
if (tuple.elements.length === 0)
|
||||
return null;
|
||||
- var last = tuple.elements.at(-1);
|
||||
+ var last = tuple.elements.slice(-1)[0];
|
||||
var rest = last.rest;
|
||||
if (rest === null)
|
||||
return null;
|
||||
- return decode(project)(config)(importer)(typescript_1.default.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(input)("slice"), undefined, [ExpressionFactory_1.ExpressionFactory.number(tuple.elements.length - 1)]), (0, wrap_metadata_rest_tuple_1.wrap_metadata_rest_tuple)(tuple.elements.at(-1).rest), __assign(__assign({}, explore), { start: tuple.elements.length - 1 }));
|
||||
+ return decode(project)(config)(importer)(typescript_1.default.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(input)("slice"), undefined, [ExpressionFactory_1.ExpressionFactory.number(tuple.elements.length - 1)]), (0, wrap_metadata_rest_tuple_1.wrap_metadata_rest_tuple)(tuple.elements.slice(-1)[0].rest), __assign(__assign({}, explore), { start: tuple.elements.length - 1 }));
|
||||
})();
|
||||
return CloneJoiner_1.CloneJoiner.tuple(children, rest);
|
||||
};
|
||||
diff --git a/lib/programmers/misc/MiscPruneProgrammer.js b/lib/programmers/misc/MiscPruneProgrammer.js
|
||||
index 8440aaba9e449dae2468e96dfd7035ac7e170cfc..e97ceec78427b7eed08db23cc4775fdb10c6b2ff 100644
|
||||
--- a/lib/programmers/misc/MiscPruneProgrammer.js
|
||||
+++ b/lib/programmers/misc/MiscPruneProgrammer.js
|
||||
@@ -272,11 +272,11 @@ var MiscPruneProgrammer;
|
||||
var rest = (function () {
|
||||
if (tuple.elements.length === 0)
|
||||
return null;
|
||||
- var last = tuple.elements.at(-1);
|
||||
+ var last = tuple.elements.slice(-1)[0];
|
||||
var rest = last.rest;
|
||||
if (rest === null || filter(rest) === false)
|
||||
return null;
|
||||
- return decode(project)(config)(importer)(typescript_1.default.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(input)("slice"), undefined, [ExpressionFactory_1.ExpressionFactory.number(tuple.elements.length - 1)]), (0, wrap_metadata_rest_tuple_1.wrap_metadata_rest_tuple)(tuple.elements.at(-1).rest), __assign(__assign({}, explore), { start: tuple.elements.length - 1 }));
|
||||
+ return decode(project)(config)(importer)(typescript_1.default.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(input)("slice"), undefined, [ExpressionFactory_1.ExpressionFactory.number(tuple.elements.length - 1)]), (0, wrap_metadata_rest_tuple_1.wrap_metadata_rest_tuple)(tuple.elements.slice(-1)[0].rest), __assign(__assign({}, explore), { start: tuple.elements.length - 1 }));
|
||||
})();
|
||||
return PruneJoiner_1.PruneJoiner.tuple(children, rest);
|
||||
};
|
||||
diff --git a/lib/programmers/notations/NotationGeneralProgrammer.js b/lib/programmers/notations/NotationGeneralProgrammer.js
|
||||
index 6e0b582a802180d7671c00b999469e7e59193b30..f11cc1d523875a040d3e27ce9a850b083c5d0275 100644
|
||||
--- a/lib/programmers/notations/NotationGeneralProgrammer.js
|
||||
+++ b/lib/programmers/notations/NotationGeneralProgrammer.js
|
||||
@@ -301,11 +301,11 @@ var NotationGeneralProgrammer;
|
||||
var rest = (function () {
|
||||
if (tuple.elements.length === 0)
|
||||
return null;
|
||||
- var last = tuple.elements.at(-1);
|
||||
+ var last = tuple.elements.slice(-1)[0];
|
||||
var rest = last.rest;
|
||||
if (rest === null)
|
||||
return null;
|
||||
- return decode(project)(config)(importer)(typescript_1.default.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(input)("slice"), undefined, [ExpressionFactory_1.ExpressionFactory.number(tuple.elements.length - 1)]), (0, wrap_metadata_rest_tuple_1.wrap_metadata_rest_tuple)(tuple.elements.at(-1).rest), __assign(__assign({}, explore), { start: tuple.elements.length - 1 }));
|
||||
+ return decode(project)(config)(importer)(typescript_1.default.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(input)("slice"), undefined, [ExpressionFactory_1.ExpressionFactory.number(tuple.elements.length - 1)]), (0, wrap_metadata_rest_tuple_1.wrap_metadata_rest_tuple)(tuple.elements.slice(-1)[0].rest), __assign(__assign({}, explore), { start: tuple.elements.length - 1 }));
|
||||
})();
|
||||
return NotationJoiner_1.NotationJoiner.tuple(children, rest);
|
||||
};
|
||||
diff --git a/lib/transformers/CallExpressionTransformer.js b/lib/transformers/CallExpressionTransformer.js
|
||||
index 2c5a23879d171ee271ebf6857dc9c65ec29c0ea7..96a40845614f6c54fe8e4ebc48a7d8efeba52a41 100644
|
||||
--- a/lib/transformers/CallExpressionTransformer.js
|
||||
+++ b/lib/transformers/CallExpressionTransformer.js
|
||||
@@ -101,7 +101,7 @@ var CallExpressionTransformer;
|
||||
var location = path_1.default.resolve(declaration.getSourceFile().fileName);
|
||||
if (isTarget(location) === false)
|
||||
return expression;
|
||||
- var module = location.split(path_1.default.sep).at(-1).split(".")[0];
|
||||
+ var module = location.split(path_1.default.sep).slice(-1)[0].split(".")[0];
|
||||
var name = project.checker.getTypeAtLocation(declaration).symbol.name;
|
||||
var functor = (_b = FUNCTORS[module]) === null || _b === void 0 ? void 0 : _b[name];
|
||||
if (functor === undefined)
|
||||
diff --git a/src/factories/internal/metadata/iterate_metadata_intersection.ts b/src/factories/internal/metadata/iterate_metadata_intersection.ts
|
||||
index f46caa25c987092597073e046ae3b9e8130bd994..1eedd727c74f173a5b98a9572b865e058885811d 100644
|
||||
--- a/src/factories/internal/metadata/iterate_metadata_intersection.ts
|
||||
+++ b/src/factories/internal/metadata/iterate_metadata_intersection.ts
|
||||
@@ -214,7 +214,7 @@ export const iterate_metadata_intersection =
|
||||
target,
|
||||
)(objects.map((om) => om.objects).flat(), explore);
|
||||
if (tags.length)
|
||||
- if (target === "array") meta.arrays.at(-1)!.tags.push(tags);
|
||||
+ if (target === "array") meta.arrays.slice(-1)[0]!.tags.push(tags);
|
||||
else if (booleanLiteral === null)
|
||||
meta.atomics.find((a) => a.type === target)!.tags.push(tags);
|
||||
else {
|
||||
diff --git a/src/programmers/CheckerProgrammer.ts b/src/programmers/CheckerProgrammer.ts
|
||||
index 892748b80755b89d1449f4d515aa3166534c6b19..8cb5ce35fe6f918545c82066f0583dead2661c89 100644
|
||||
--- a/src/programmers/CheckerProgrammer.ts
|
||||
+++ b/src/programmers/CheckerProgrammer.ts
|
||||
@@ -702,14 +702,14 @@ export namespace CheckerProgrammer {
|
||||
),
|
||||
);
|
||||
const rest: ts.Expression | null =
|
||||
- tuple.elements.length && tuple.elements.at(-1)!.rest !== null
|
||||
+ tuple.elements.length && tuple.elements.slice(-1)[0]!.rest !== null
|
||||
? decode(project)(config)(importer)(
|
||||
ts.factory.createCallExpression(
|
||||
IdentifierFactory.access(input)("slice"),
|
||||
undefined,
|
||||
[ExpressionFactory.number(tuple.elements.length - 1)],
|
||||
),
|
||||
- wrap_metadata_rest_tuple(tuple.elements.at(-1)!.rest!),
|
||||
+ wrap_metadata_rest_tuple(tuple.elements.slice(-1)[0]!.rest!),
|
||||
{
|
||||
...explore,
|
||||
start: tuple.elements.length - 1,
|
||||
diff --git a/src/programmers/TypiaProgrammer.ts b/src/programmers/TypiaProgrammer.ts
|
||||
index e01eccf62eccd73e1f0720db897f539256a6bbc1..cae5eb6fc702d359d4886acefdb68d42691edf97 100644
|
||||
--- a/src/programmers/TypiaProgrammer.ts
|
||||
+++ b/src/programmers/TypiaProgrammer.ts
|
||||
@@ -101,7 +101,7 @@ export namespace TypiaProgrammer {
|
||||
.file!.text.substring(0, diag.start)
|
||||
.split("\n");
|
||||
if (lines.length === 0) return [0, 0];
|
||||
- return [lines.length, lines.at(-1)!.length + 1];
|
||||
+ return [lines.length, lines.slice(-1)[0]!.length + 1];
|
||||
})()
|
||||
: [0, 0];
|
||||
console.error(
|
||||
diff --git a/src/programmers/internal/application_tuple.ts b/src/programmers/internal/application_tuple.ts
|
||||
index 5e10b9051e4a846f298aa8f086109e8d6bb38bf9..a8e24d5c2a2a4a4d5d1dc49eb45b4784654a4b66 100644
|
||||
--- a/src/programmers/internal/application_tuple.ts
|
||||
+++ b/src/programmers/internal/application_tuple.ts
|
||||
@@ -28,16 +28,16 @@ export const application_tuple =
|
||||
}),
|
||||
),
|
||||
...attribute,
|
||||
- minItems: !!tuple.type.elements.at(-1)?.rest
|
||||
+ minItems: !!tuple.type.elements.slice(-1)[0]?.rest
|
||||
? tuple.type.elements.length - 1
|
||||
: tuple.type.elements.filter((x) => !x.optional).length,
|
||||
- maxItems: !!tuple.type.elements.at(-1)?.rest
|
||||
+ maxItems: !!tuple.type.elements.slice(-1)[0]?.rest
|
||||
? undefined
|
||||
: tuple.type.elements.length,
|
||||
};
|
||||
if (options.purpose === "ajv")
|
||||
if (tuple.type.elements.length === 0) return schema;
|
||||
- else if (!tuple.type.elements.at(-1)?.rest) return schema;
|
||||
+ else if (!tuple.type.elements.slice(-1)[0]?.rest) return schema;
|
||||
|
||||
const wrapper: IJsonSchema.IArray = {
|
||||
...schema,
|
||||
diff --git a/src/programmers/json/JsonStringifyProgrammer.ts b/src/programmers/json/JsonStringifyProgrammer.ts
|
||||
index c317cec2c78e984a6e64c7bf287d0c67e530e309..5974830c62dbd2b865aa2e64e2e757283258d872 100644
|
||||
--- a/src/programmers/json/JsonStringifyProgrammer.ts
|
||||
+++ b/src/programmers/json/JsonStringifyProgrammer.ts
|
||||
@@ -543,7 +543,7 @@ export namespace JsonStringifyProgrammer {
|
||||
);
|
||||
const rest = (() => {
|
||||
if (tuple.elements.length === 0) return null;
|
||||
- const last = tuple.elements.at(-1)!;
|
||||
+ const last = tuple.elements.slice(-1)[0]!;
|
||||
if (last.rest === null) return null;
|
||||
|
||||
const code = decode(project)(config)(importer)(
|
||||
@@ -552,7 +552,7 @@ export namespace JsonStringifyProgrammer {
|
||||
undefined,
|
||||
[ExpressionFactory.number(tuple.elements.length - 1)],
|
||||
),
|
||||
- wrap_metadata_rest_tuple(tuple.elements.at(-1)!.rest!),
|
||||
+ wrap_metadata_rest_tuple(tuple.elements.slice(-1)[0]!.rest!),
|
||||
{
|
||||
...explore,
|
||||
start: tuple.elements.length - 1,
|
||||
diff --git a/src/programmers/misc/MiscCloneProgrammer.ts b/src/programmers/misc/MiscCloneProgrammer.ts
|
||||
index 94d768b0a0738c0caccd711671351d1f22fa3848..739fd5f2baf4d2eb8e9dd65d73179242a0244707 100644
|
||||
--- a/src/programmers/misc/MiscCloneProgrammer.ts
|
||||
+++ b/src/programmers/misc/MiscCloneProgrammer.ts
|
||||
@@ -343,7 +343,7 @@ export namespace MiscCloneProgrammer {
|
||||
const rest = (() => {
|
||||
if (tuple.elements.length === 0) return null;
|
||||
|
||||
- const last: Metadata = tuple.elements.at(-1)!;
|
||||
+ const last: Metadata = tuple.elements.slice(-1)[0]!;
|
||||
const rest: Metadata | null = last.rest;
|
||||
if (rest === null) return null;
|
||||
|
||||
@@ -353,7 +353,7 @@ export namespace MiscCloneProgrammer {
|
||||
undefined,
|
||||
[ExpressionFactory.number(tuple.elements.length - 1)],
|
||||
),
|
||||
- wrap_metadata_rest_tuple(tuple.elements.at(-1)!.rest!),
|
||||
+ wrap_metadata_rest_tuple(tuple.elements.slice(-1)[0]!.rest!),
|
||||
{
|
||||
...explore,
|
||||
start: tuple.elements.length - 1,
|
||||
diff --git a/src/programmers/misc/MiscPruneProgrammer.ts b/src/programmers/misc/MiscPruneProgrammer.ts
|
||||
index ed1465267066e382ae6696a25a806c2489597593..661f3cd93ae66070c978bd3e8d2b8db07189fe47 100644
|
||||
--- a/src/programmers/misc/MiscPruneProgrammer.ts
|
||||
+++ b/src/programmers/misc/MiscPruneProgrammer.ts
|
||||
@@ -310,7 +310,7 @@ export namespace MiscPruneProgrammer {
|
||||
const rest = (() => {
|
||||
if (tuple.elements.length === 0) return null;
|
||||
|
||||
- const last: Metadata = tuple.elements.at(-1)!;
|
||||
+ const last: Metadata = tuple.elements.slice(-1)[0]!;
|
||||
const rest: Metadata | null = last.rest;
|
||||
if (rest === null || filter(rest) === false) return null;
|
||||
|
||||
@@ -320,7 +320,7 @@ export namespace MiscPruneProgrammer {
|
||||
undefined,
|
||||
[ExpressionFactory.number(tuple.elements.length - 1)],
|
||||
),
|
||||
- wrap_metadata_rest_tuple(tuple.elements.at(-1)!.rest!),
|
||||
+ wrap_metadata_rest_tuple(tuple.elements.slice(-1)[0]!.rest!),
|
||||
{
|
||||
...explore,
|
||||
start: tuple.elements.length - 1,
|
||||
diff --git a/src/programmers/notations/NotationGeneralProgrammer.ts b/src/programmers/notations/NotationGeneralProgrammer.ts
|
||||
index bd49b1e34002b1a1ec4f5444a8f91fa0ab794360..71d676de290986045910602ab10c6ef09a19c07d 100644
|
||||
--- a/src/programmers/notations/NotationGeneralProgrammer.ts
|
||||
+++ b/src/programmers/notations/NotationGeneralProgrammer.ts
|
||||
@@ -353,7 +353,7 @@ export namespace NotationGeneralProgrammer {
|
||||
const rest = (() => {
|
||||
if (tuple.elements.length === 0) return null;
|
||||
|
||||
- const last: Metadata = tuple.elements.at(-1)!;
|
||||
+ const last: Metadata = tuple.elements.slice(-1)[0]!;
|
||||
const rest: Metadata | null = last.rest;
|
||||
if (rest === null) return null;
|
||||
|
||||
@@ -363,7 +363,7 @@ export namespace NotationGeneralProgrammer {
|
||||
undefined,
|
||||
[ExpressionFactory.number(tuple.elements.length - 1)],
|
||||
),
|
||||
- wrap_metadata_rest_tuple(tuple.elements.at(-1)!.rest!),
|
||||
+ wrap_metadata_rest_tuple(tuple.elements.slice(-1)[0]!.rest!),
|
||||
{
|
||||
...explore,
|
||||
start: tuple.elements.length - 1,
|
||||
diff --git a/src/transformers/CallExpressionTransformer.ts b/src/transformers/CallExpressionTransformer.ts
|
||||
index c58a1b143ce4f204bb249a4858c9d16a26f97408..9e9ffcf73e4c01aa6ac8c213669fdcd50e0181b9 100644
|
||||
--- a/src/transformers/CallExpressionTransformer.ts
|
||||
+++ b/src/transformers/CallExpressionTransformer.ts
|
||||
@@ -111,7 +111,7 @@ export namespace CallExpressionTransformer {
|
||||
// TRANSFORMATION
|
||||
//----
|
||||
// FUNCTION NAME
|
||||
- const module: string = location.split(path.sep).at(-1)!.split(".")[0]!;
|
||||
+ const module: string = location.split(path.sep).slice(-1)[0]!.split(".")[0]!;
|
||||
const { name } = project.checker.getTypeAtLocation(declaration).symbol;
|
||||
|
||||
// FIND TRANSFORMER
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,14 +0,0 @@ |
||||
import type { ButtonElement, ContextualBarSurfaceLayout, TextObject } from '@rocket.chat/ui-kit'; |
||||
|
||||
import type { View } from './View'; |
||||
|
||||
/** |
||||
* A view that is displayed as a contextual bar. |
||||
*/ |
||||
export type ContextualBarView = View & { |
||||
id: string; |
||||
title: TextObject; |
||||
close?: ButtonElement; |
||||
submit?: ButtonElement; |
||||
blocks: ContextualBarSurfaceLayout; |
||||
}; |
||||
@ -1,15 +0,0 @@ |
||||
import type { ButtonElement, ModalSurfaceLayout, TextObject } from '@rocket.chat/ui-kit'; |
||||
|
||||
import type { View } from './View'; |
||||
|
||||
/** |
||||
* A view that is displayed as a modal dialog. |
||||
*/ |
||||
export type ModalView = View & { |
||||
id: string; |
||||
showIcon?: boolean; |
||||
title: TextObject; |
||||
close?: ButtonElement; |
||||
submit?: ButtonElement; |
||||
blocks: ModalSurfaceLayout; |
||||
}; |
||||
@ -1,9 +0,0 @@ |
||||
import type { LayoutBlock } from '@rocket.chat/ui-kit'; |
||||
|
||||
/** |
||||
* An instance of a UiKit surface and its metadata. |
||||
*/ |
||||
export type View = { |
||||
appId: string; |
||||
blocks: LayoutBlock[]; |
||||
}; |
||||
@ -1,17 +0,0 @@ |
||||
export * from '@rocket.chat/ui-kit'; |
||||
export type { |
||||
UserInteraction, |
||||
MessageBlockActionUserInteraction, |
||||
ViewBlockActionUserInteraction, |
||||
ViewClosedUserInteraction, |
||||
ViewSubmitUserInteraction, |
||||
MessageBoxActionButtonUserInteraction, |
||||
UserDropdownActionButtonUserInteraction, |
||||
MesssageActionButtonUserInteraction, |
||||
RoomActionButtonUserInteraction, |
||||
} from './UserInteraction'; |
||||
export type { View } from './View'; |
||||
export type { BannerView } from './BannerView'; |
||||
export type { ContextualBarView } from './ContextualBarView'; |
||||
export type { ModalView } from './ModalView'; |
||||
export type { ServerInteraction } from './ServerInteraction'; |
||||
@ -0,0 +1,2 @@ |
||||
/node_modules |
||||
/dist |
||||
@ -0,0 +1,6 @@ |
||||
{ |
||||
"extends": "@rocket.chat/eslint-config", |
||||
"env": { |
||||
"jest": true |
||||
} |
||||
} |
||||
@ -0,0 +1 @@ |
||||
/dist/* |
||||
@ -0,0 +1,2 @@ |
||||
/node_modules |
||||
/dist |
||||
@ -0,0 +1,276 @@ |
||||
# Change Log |
||||
|
||||
## 0.32.1 |
||||
|
||||
### Patch Changes |
||||
|
||||
- [`a97c7f086`](https://github.com/RocketChat/fuselage/commit/a97c7f08633e6e36a39c8933b530f9acacb83af0) Thanks [@dougfabris](https://github.com/dougfabris)! - chore: resolve-workspace-deps to publish pkg versions |
||||
|
||||
## 0.32.0 |
||||
|
||||
### Minor Changes |
||||
|
||||
- [`a04f9089d`](https://github.com/RocketChat/fuselage/commit/a04f9089d19ba32d2b2e80738d2d5f4dac0d3e0c) Thanks [@dougfabris](https://github.com/dougfabris)! - fix(ui-kit): Remove icons package dependency in ui-kit package |
||||
|
||||
- [`a04f9089d`](https://github.com/RocketChat/fuselage/commit/a04f9089d19ba32d2b2e80738d2d5f4dac0d3e0c) Thanks [@dougfabris](https://github.com/dougfabris)! - refactor(ui-kit): Review some types |
||||
|
||||
All notable changes to this project will be documented in this file. |
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. |
||||
|
||||
# [0.31.0](https://github.com/RocketChat/fuselage/compare/v0.30.1...v0.31.0) (2021-12-28) |
||||
|
||||
### Bug Fixes |
||||
|
||||
- **ui-kit:** Fix `SurfaceRendererPayload` ([#556](https://github.com/RocketChat/fuselage/issues/556)) ([8d76a0d](https://github.com/RocketChat/fuselage/commit/8d76a0dadab5798afba1d6ce3911aa974d33c103)) |
||||
|
||||
### Features |
||||
|
||||
- Message Preview ([#587](https://github.com/RocketChat/fuselage/issues/587)) ([e69dad3](https://github.com/RocketChat/fuselage/commit/e69dad3a6619e98ff70bcd1cb68567a159187336)) |
||||
- New hooks for element size tracking ([#413](https://github.com/RocketChat/fuselage/issues/413)) ([8ca682c](https://github.com/RocketChat/fuselage/commit/8ca682c636d2e4813f7d346cb881513382be63cf)) |
||||
|
||||
## [0.30.1](https://github.com/RocketChat/fuselage/compare/v0.30.0...v0.30.1) (2021-10-20) |
||||
|
||||
### Bug Fixes |
||||
|
||||
- **ui-kit:** Fix `SurfaceRendererPayload` ([#556](https://github.com/RocketChat/fuselage/issues/556)) ([0508689](https://github.com/RocketChat/fuselage/commit/05086895e0f2ea26c7a00856a5e0c6fcffbc4615)) |
||||
|
||||
# [0.30.0](https://github.com/RocketChat/fuselage/compare/v0.29.0...v0.30.0) (2021-10-06) |
||||
|
||||
### Bug Fixes |
||||
|
||||
- **jest:** Adjust jest and ts-jest dependencies ([#547](https://github.com/RocketChat/fuselage/issues/547)) ([91a4fa1](https://github.com/RocketChat/fuselage/commit/91a4fa1365394001afe1bd46480bda3bafed5505)) |
||||
|
||||
# [0.29.0](https://github.com/RocketChat/fuselage/compare/v0.28.0...v0.29.0) (2021-08-31) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.28.0](https://github.com/RocketChat/fuselage/compare/v0.27.0...v0.28.0) (2021-07-30) |
||||
|
||||
### Bug Fixes |
||||
|
||||
- **fuselage-ui-kit:** Implements missing url prop for buttons ([#488](https://github.com/RocketChat/fuselage/issues/488)) ([bb19344](https://github.com/RocketChat/fuselage/commit/bb193441804c9b20174e2586d22c4b2845a486c3)) |
||||
|
||||
### Features |
||||
|
||||
- **onboarding-ui:** Administrator information form and Organization information form ([#489](https://github.com/RocketChat/fuselage/issues/489)) ([b289f68](https://github.com/RocketChat/fuselage/commit/b289f68676954b91c792d8d97680314178bf2c60)) |
||||
- styled API; monorepo grooming ([#482](https://github.com/RocketChat/fuselage/issues/482)) ([1b6b70c](https://github.com/RocketChat/fuselage/commit/1b6b70cf67ec16927b1566adc2350295a8927223)) |
||||
|
||||
# [0.27.0](https://github.com/RocketChat/fuselage/compare/v0.26.0...v0.27.0) (2021-06-28) |
||||
|
||||
### Features |
||||
|
||||
- **ui-kit:** Attachment Surface ([#474](https://github.com/RocketChat/fuselage/issues/474)) ([63bb5ea](https://github.com/RocketChat/fuselage/commit/63bb5ea044afc768295a50e0155406df6091b840)) |
||||
- ui-kit-unified ([#392](https://github.com/RocketChat/fuselage/issues/392)) ([ce48ca9](https://github.com/RocketChat/fuselage/commit/ce48ca9d9806283bba8be5df7c29c7aa8c1e716f)) |
||||
|
||||
# [0.26.0](https://github.com/RocketChat/fuselage/compare/v0.25.0...v0.26.0) (2021-05-28) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.25.0](https://github.com/RocketChat/fuselage/compare/v0.24.0...v0.25.0) (2021-05-19) |
||||
|
||||
### Features |
||||
|
||||
- [@rocket](https://github.com/rocket).chat/message-parser ([#443](https://github.com/RocketChat/fuselage/issues/443)) ([4722cdf](https://github.com/RocketChat/fuselage/commit/4722cdff46f5987f335d989be59649c7652bb12a)) |
||||
|
||||
# [0.24.0](https://github.com/RocketChat/fuselage/compare/v0.23.0...v0.24.0) (2021-04-28) |
||||
|
||||
### Features |
||||
|
||||
- [@rocket](https://github.com/rocket).chat/string-helpers ([#431](https://github.com/RocketChat/fuselage/issues/431)) ([2509d6a](https://github.com/RocketChat/fuselage/commit/2509d6acdbe5ec8b216e8d4430373797c5f5dfe2)) |
||||
|
||||
# [0.23.0](https://github.com/RocketChat/fuselage/compare/v0.22.0...v0.23.0) (2021-04-01) |
||||
|
||||
### Bug Fixes |
||||
|
||||
- **npm:** Wrong paths in "files" field of package.json ([6d3c811](https://github.com/RocketChat/fuselage/commit/6d3c811f6fd747de7f47aff145902d88476272ee)) |
||||
|
||||
# [0.22.0](https://github.com/RocketChat/fuselage/compare/v0.21.0...v0.22.0) (2021-02-26) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.21.0](https://github.com/RocketChat/fuselage/compare/v0.20.3...v0.21.0) (2021-01-31) |
||||
|
||||
### Features |
||||
|
||||
- Built modules for design tokens ([#356](https://github.com/RocketChat/fuselage/issues/356)) ([f9c3449](https://github.com/RocketChat/fuselage/commit/f9c344953b8161a4385cab3a3dcc8b6a7210446f)) |
||||
- linear_scale element ([#365](https://github.com/RocketChat/fuselage/issues/365)) ([43a4c54](https://github.com/RocketChat/fuselage/commit/43a4c54ed10d096ef2259ddcd30c3bbd97ae866a)) |
||||
|
||||
## [0.20.1](https://github.com/RocketChat/fuselage/compare/v0.20.0...v0.20.1) (2020-12-22) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.20.0](https://github.com/RocketChat/fuselage/compare/v0.19.0...v0.20.0) (2020-12-21) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.19.0](https://github.com/RocketChat/fuselage/compare/v0.18.0...v0.19.0) (2020-11-28) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.18.0](https://github.com/RocketChat/fuselage/compare/v0.17.3...v0.18.0) (2020-11-16) |
||||
|
||||
### Bug Fixes |
||||
|
||||
- Set a conservative output.environment on Webpack bundles ([#330](https://github.com/RocketChat/fuselage/issues/330)) ([62bf728](https://github.com/RocketChat/fuselage/commit/62bf728d3541d8d7ee72420347f2351359fb5df7)) |
||||
|
||||
## [0.17.3](https://github.com/RocketChat/fuselage/compare/v0.17.2...v0.17.3) (2020-11-16) |
||||
|
||||
### Bug Fixes |
||||
|
||||
- Set a conservative output.environment on Webpack bundles ([#330](https://github.com/RocketChat/fuselage/issues/330)) ([85d4a3a](https://github.com/RocketChat/fuselage/commit/85d4a3a5fd6881b07e97fb690d31baef405cfa69)) |
||||
|
||||
## [0.17.2](https://github.com/RocketChat/fuselage/compare/v0.17.1...v0.17.2) (2020-10-28) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
## [0.17.1](https://github.com/RocketChat/fuselage/compare/v0.17.0...v0.17.1) (2020-10-26) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.17.0](https://github.com/RocketChat/fuselage/compare/v0.16.0...v0.17.0) (2020-10-25) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.16.0](https://github.com/RocketChat/fuselage/compare/v0.15.1...v0.16.0) (2020-09-30) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
## [0.15.1](https://github.com/RocketChat/fuselage/compare/v0.15.0...v0.15.1) (2020-09-22) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.15.0](https://github.com/RocketChat/fuselage/compare/v0.14.1...v0.15.0) (2020-09-17) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
## [0.14.1](https://github.com/RocketChat/fuselage/compare/v0.14.0...v0.14.1) (2020-08-22) |
||||
|
||||
### Bug Fixes |
||||
|
||||
- UiKit - conditional block ([38d57ea](https://github.com/RocketChat/fuselage/commit/38d57ea9005aafc3820316beacfda43f620fa93f)) |
||||
|
||||
# [0.14.0](https://github.com/RocketChat/fuselage/compare/v0.13.2...v0.14.0) (2020-08-18) |
||||
|
||||
### Features |
||||
|
||||
- UiKit types ([#274](https://github.com/RocketChat/fuselage/issues/274)) ([e2ea79b](https://github.com/RocketChat/fuselage/commit/e2ea79b02a0fd6492c3fad06ba57cbb88d89da2b)) |
||||
|
||||
## [0.13.1](https://github.com/RocketChat/fuselage/compare/v0.13.0...v0.13.1) (2020-07-17) |
||||
|
||||
### Bug Fixes |
||||
|
||||
- Select mutations and ui-kit alerts ([#263](https://github.com/RocketChat/fuselage/issues/263)) ([661398d](https://github.com/RocketChat/fuselage/commit/661398dfdeaf827dadc46d24a7382d69f43f9742)) |
||||
|
||||
# [0.13.0](https://github.com/RocketChat/fuselage/compare/v0.12.0...v0.13.0) (2020-07-14) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.12.0](https://github.com/RocketChat/fuselage/compare/v0.11.0...v0.12.0) (2020-07-14) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.11.0](https://github.com/RocketChat/fuselage/compare/v0.10.0...v0.11.0) (2020-07-11) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.10.0](https://github.com/RocketChat/fuselage/compare/v0.9.0...v0.10.0) (2020-06-20) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.9.0](https://github.com/RocketChat/fuselage/compare/v0.8.0...v0.9.0) (2020-05-21) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.8.0](https://github.com/RocketChat/fuselage/compare/v0.7.1...v0.8.0) (2020-04-22) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
## [0.7.1](https://github.com/RocketChat/fuselage/compare/v0.7.0...v0.7.1) (2020-04-01) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.7.0](https://github.com/RocketChat/fuselage/compare/v0.6.2...v0.7.0) (2020-04-01) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
## [0.6.2](https://github.com/RocketChat/fuselage/compare/v0.6.1...v0.6.2) (2020-03-31) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
## [0.6.1](https://github.com/RocketChat/fuselage/compare/v0.6.0...v0.6.1) (2020-03-24) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.6.0](https://github.com/RocketChat/fuselage/compare/v0.5.0...v0.6.0) (2020-03-20) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.5.0](https://github.com/RocketChat/fuselage/compare/v0.4.1...v0.5.0) (2020-03-20) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
## [0.4.1](https://github.com/RocketChat/fuselage/compare/v0.4.0...v0.4.1) (2020-03-16) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.4.0](https://github.com/RocketChat/fuselage/compare/v0.3.0...v0.4.0) (2020-03-10) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.3.0](https://github.com/RocketChat/fuselage/compare/v0.2.0...v0.3.0) (2020-02-17) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.2.0](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.30...v0.2.0) (2020-02-13) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.2.0-alpha.29](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.28...v0.2.0-alpha.29) (2020-02-10) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.2.0-alpha.28](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.27...v0.2.0-alpha.28) (2020-02-10) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.2.0-alpha.26](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.25...v0.2.0-alpha.26) (2020-02-10) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.2.0-alpha.25](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.24...v0.2.0-alpha.25) (2020-02-10) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.2.0-alpha.24](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.23...v0.2.0-alpha.24) (2020-02-09) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.2.0-alpha.23](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.22...v0.2.0-alpha.23) (2020-02-07) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.2.0-alpha.22](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.21...v0.2.0-alpha.22) (2020-02-07) |
||||
|
||||
### Bug Fixes |
||||
|
||||
- uikit using react components ([#135](https://github.com/RocketChat/fuselage/issues/135)) ([52fcedb](https://github.com/RocketChat/fuselage/commit/52fcedb0efbc33ad4240c83fd92a325fcc9f0f4c)) |
||||
|
||||
# [0.2.0-alpha.21](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.20...v0.2.0-alpha.21) (2020-02-05) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.2.0-alpha.20](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.19...v0.2.0-alpha.20) (2020-02-01) |
||||
|
||||
**Note:** Version bump only for package @rocket.chat/ui-kit |
||||
|
||||
# [0.2.0-alpha.19](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.18...v0.2.0-alpha.19) (2020-01-13) |
||||
|
||||
### Features |
||||
|
||||
- Position, Modal, Options components ([#116](https://github.com/RocketChat/fuselage/issues/116)) ([af1916a](https://github.com/RocketChat/fuselage/commit/af1916a22c677939adda04fe417dafe406292762)), closes [#117](https://github.com/RocketChat/fuselage/issues/117) |
||||
|
||||
# [0.2.0-alpha.18](https://github.com/RocketChat/fuselage/compare/v0.2.0-alpha.17...v0.2.0-alpha.18) (2019-12-31) |
||||
|
||||
### Features |
||||
|
||||
- UI Kit ([#95](https://github.com/RocketChat/fuselage/issues/95)) ([6d4162b](https://github.com/RocketChat/fuselage/commit/6d4162bb8c121b1e89f8c818e7106bce49f09c27)), closes [#94](https://github.com/RocketChat/fuselage/issues/94) [#109](https://github.com/RocketChat/fuselage/issues/109) [#108](https://github.com/RocketChat/fuselage/issues/108) [#111](https://github.com/RocketChat/fuselage/issues/111) |
||||
@ -0,0 +1,91 @@ |
||||
<!--header--> |
||||
|
||||
<p align="center"> |
||||
<a href="https://rocket.chat" title="Rocket.Chat"> |
||||
<img src="https://github.com/RocketChat/Rocket.Chat.Artwork/raw/master/Logos/2020/png/logo-horizontal-red.png" alt="Rocket.Chat" /> |
||||
</a> |
||||
</p> |
||||
|
||||
# `@rocket.chat/ui-kit` |
||||
|
||||
> Interactive UI elements for Rocket.Chat Apps |
||||
|
||||
--- |
||||
|
||||
[](https://www.npmjs.com/package/@rocket.chat/ui-kit/v/latest) [](https://www.npmjs.com/package/@rocket.chat/ui-kit/v/next)   |
||||
|
||||
  |
||||
|
||||
<!--/header--> |
||||
|
||||
## Install |
||||
|
||||
<!--install--> |
||||
|
||||
Add `@rocket.chat/ui-kit` as a dependency: |
||||
|
||||
```sh |
||||
npm i @rocket.chat/ui-kit |
||||
|
||||
# or, if you are using yarn: |
||||
|
||||
yarn add @rocket.chat/ui-kit |
||||
``` |
||||
|
||||
<!--/install--> |
||||
|
||||
## Contributing |
||||
|
||||
<!--contributing(msg)--> |
||||
|
||||
Contributions, issues, and feature requests are welcome!<br /> |
||||
Feel free to check the [issues](https://github.com/RocketChat/Rocket.Chat/issues). |
||||
|
||||
<!--/contributing(msg)--> |
||||
|
||||
### Building |
||||
|
||||
As this package dependends on others in this monorepo, before anything run the following at the root directory: |
||||
|
||||
<!--yarn(build)--> |
||||
|
||||
```sh |
||||
yarn build |
||||
``` |
||||
|
||||
<!--/yarn(build)--> |
||||
|
||||
### Linting |
||||
|
||||
To ensure the source is matching our coding style, we perform [linting](<https://en.wikipedia.org/wiki/Lint_(software)>). |
||||
Before commiting, check if your code fits our style by running: |
||||
|
||||
<!--yarn(lint)--> |
||||
|
||||
```sh |
||||
yarn lint |
||||
``` |
||||
|
||||
<!--/yarn(lint)--> |
||||
|
||||
Some linter warnings and errors can be automatically fixed: |
||||
|
||||
<!--yarn(lint-and-fix)--> |
||||
|
||||
```sh |
||||
yarn lint-and-fix |
||||
``` |
||||
|
||||
<!--/yarn(lint-and-fix)--> |
||||
|
||||
### Running tests |
||||
|
||||
Whenever possible, add tests to describe exactly what your code do. You can run them by yourself: |
||||
|
||||
<!--yarn(test)--> |
||||
|
||||
```sh |
||||
yarn test |
||||
``` |
||||
|
||||
<!--/yarn(test)--> |
||||
@ -0,0 +1,6 @@ |
||||
module.exports = { |
||||
preset: 'ts-jest', |
||||
testEnvironment: 'node', |
||||
errorOnDeprecated: true, |
||||
testMatch: ['<rootDir>/src/**/*.spec.[jt]s?(x)'], |
||||
}; |
||||
@ -0,0 +1,61 @@ |
||||
{ |
||||
"name": "@rocket.chat/ui-kit", |
||||
"version": "0.32.1", |
||||
"description": "Interactive UI elements for Rocket.Chat Apps", |
||||
"homepage": "https://rocket.chat", |
||||
"author": { |
||||
"name": "Rocket.Chat", |
||||
"url": "https://rocket.chat/" |
||||
}, |
||||
"license": "MIT", |
||||
"repository": { |
||||
"type": "git", |
||||
"url": "git+https://github.com/RocketChat/Rocket.Chat.git" |
||||
}, |
||||
"bugs": { |
||||
"url": "https://github.com/RocketChat/Rocket.Chat/issues" |
||||
}, |
||||
"main": "dist/cjs/index.js", |
||||
"module": "dist/esm/index.js", |
||||
"types": "dist/esm/index.d.ts", |
||||
"files": [ |
||||
"/dist" |
||||
], |
||||
"publishConfig": { |
||||
"access": "public" |
||||
}, |
||||
"scripts": { |
||||
"build": "run-s prepare .:build:clean .:build:esm .:build:cjs", |
||||
".:build:clean": "rimraf dist", |
||||
".:build:esm": "tsc -p tsconfig.json", |
||||
".:build:cjs": "tsc -p tsconfig-cjs.json", |
||||
"lint": "eslint . --ext .ts,.tsx", |
||||
"test": "jest", |
||||
"prepare": "ts-patch install && typia patch" |
||||
}, |
||||
"devDependencies": { |
||||
"@babel/core": "~7.21.4", |
||||
"@babel/eslint-parser": "~7.23.3", |
||||
"@babel/plugin-transform-runtime": "~7.21.4", |
||||
"@babel/preset-env": "~7.21.4", |
||||
"@rocket.chat/eslint-config": "workspace:~", |
||||
"@types/jest": "~29.5.0", |
||||
"babel-loader": "~9.1.2", |
||||
"eslint": "~8.45.0", |
||||
"jest": "~29.5.0", |
||||
"npm-run-all": "~4.1.5", |
||||
"prettier": "~2.8.8", |
||||
"rimraf": "~3.0.2", |
||||
"ts-jest": "~29.1.1", |
||||
"ts-loader": "~9.4.2", |
||||
"ts-node": "~10.9.1", |
||||
"ts-patch": "~3.0.2", |
||||
"typescript": "~5.3.2" |
||||
}, |
||||
"dependencies": { |
||||
"typia": "~5.3.3" |
||||
}, |
||||
"volta": { |
||||
"extends": "../../package.json" |
||||
} |
||||
} |
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue