feat(uikit): Move `@rocket.chat/ui-kit` package to the main monorepo (#31138)

pull/30868/head^2
Tasso Evangelista 2 years ago committed by GitHub
parent 88a871f64f
commit b223cbde14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 56
      .changeset/beige-coats-wait.md
  2. 320
      .yarn/patches/typia-npm-5.3.3-21d3e18463.patch
  3. 783
      .yarn/releases/yarn-3.2.2.cjs
  4. 873
      .yarn/releases/yarn-3.5.0.cjs
  5. 2
      .yarnrc.yml
  6. 2
      apps/meteor/app/apps/server/bridges/uiInteraction.ts
  7. 3
      apps/meteor/app/ui-message/client/ActionManager.ts
  8. 3
      apps/meteor/client/hooks/useAppUiKitInteraction.ts
  9. 2
      apps/meteor/client/lib/banners.ts
  10. 2
      apps/meteor/client/uikit/hooks/useBannerContextValue.ts
  11. 2
      apps/meteor/client/uikit/hooks/useContextualBarContextValue.ts
  12. 2
      apps/meteor/client/uikit/hooks/useModalContextValue.ts
  13. 2
      apps/meteor/client/uikit/hooks/useUiKitView.ts
  14. 2
      apps/meteor/client/views/banners/UiKitBanner.tsx
  15. 3
      apps/meteor/client/views/cloud/CloudAnnouncementHandler.tsx
  16. 12
      apps/meteor/client/views/modal/uikit/ModalBlock.tsx
  17. 2
      apps/meteor/client/views/modal/uikit/UiKitModal.tsx
  18. 2
      apps/meteor/client/views/room/contextualBar/uikit/UiKitContextualBar.tsx
  19. 3
      apps/meteor/ee/server/services/Dockerfile
  20. 4
      apps/meteor/ee/server/services/package.json
  21. 7
      apps/meteor/package.json
  22. 2
      apps/meteor/server/modules/core-apps/banner.module.ts
  23. 3
      apps/meteor/server/modules/core-apps/cloudAnnouncements.module.ts
  24. 3
      apps/meteor/server/services/nps/getAndCreateNpsSurvey.ts
  25. 7
      apps/meteor/server/services/video-conference/service.ts
  26. 3
      ee/apps/account-service/Dockerfile
  27. 2
      ee/apps/account-service/package.json
  28. 3
      ee/apps/authorization-service/Dockerfile
  29. 2
      ee/apps/authorization-service/package.json
  30. 3
      ee/apps/ddp-streamer/Dockerfile
  31. 2
      ee/apps/ddp-streamer/package.json
  32. 3
      ee/apps/omnichannel-transcript/Dockerfile
  33. 2
      ee/apps/omnichannel-transcript/package.json
  34. 3
      ee/apps/presence-service/Dockerfile
  35. 2
      ee/apps/presence-service/package.json
  36. 3
      ee/apps/queue-worker/Dockerfile
  37. 2
      ee/apps/queue-worker/package.json
  38. 3
      ee/apps/stream-hub-service/Dockerfile
  39. 2
      ee/apps/stream-hub-service/package.json
  40. 4
      ee/packages/api-client/package.json
  41. 2
      ee/packages/ddp-client/package.json
  42. 2
      ee/packages/ddp-client/src/types/streams.ts
  43. 4
      ee/packages/license/package.json
  44. 4
      ee/packages/omnichannel-services/package.json
  45. 4
      ee/packages/pdf-worker/package.json
  46. 2
      ee/packages/presence/package.json
  47. 4
      ee/packages/ui-theming/package.json
  48. 8
      package.json
  49. 4
      packages/account-utils/package.json
  50. 4
      packages/agenda/package.json
  51. 4
      packages/base64/package.json
  52. 4
      packages/cas-validate/package.json
  53. 4
      packages/core-services/package.json
  54. 2
      packages/core-services/src/events/Events.ts
  55. 2
      packages/core-services/src/types/IVideoConfService.ts
  56. 4
      packages/core-typings/package.json
  57. 3
      packages/core-typings/src/IBanner.ts
  58. 3
      packages/core-typings/src/cloud/WorkspaceSyncPayload.ts
  59. 2
      packages/core-typings/src/index.ts
  60. 14
      packages/core-typings/src/uikit/ContextualBarView.ts
  61. 15
      packages/core-typings/src/uikit/ModalView.ts
  62. 9
      packages/core-typings/src/uikit/View.ts
  63. 17
      packages/core-typings/src/uikit/index.ts
  64. 4
      packages/cron/package.json
  65. 2
      packages/eslint-config/package.json
  66. 2
      packages/favicon/package.json
  67. 6
      packages/fuselage-ui-kit/package.json
  68. 4
      packages/gazzodown/package.json
  69. 4
      packages/i18n/package.json
  70. 2
      packages/instance-status/package.json
  71. 2
      packages/jwt/package.json
  72. 6
      packages/livechat/package.json
  73. 4
      packages/log-format/package.json
  74. 4
      packages/logger/package.json
  75. 4
      packages/mock-providers/package.json
  76. 4
      packages/model-typings/package.json
  77. 4
      packages/models/package.json
  78. 4
      packages/node-poplib/package.json
  79. 4
      packages/password-policies/package.json
  80. 4
      packages/random/package.json
  81. 2
      packages/release-action/package.json
  82. 12
      packages/release-action/src/fixWorkspaceVersionsBeforePublish.ts
  83. 6
      packages/rest-typings/package.json
  84. 2
      packages/rest-typings/src/apps/index.ts
  85. 4
      packages/server-cloud-communication/package.json
  86. 4
      packages/server-fetch/package.json
  87. 4
      packages/sha256/package.json
  88. 4
      packages/tools/package.json
  89. 4
      packages/ui-client/package.json
  90. 4
      packages/ui-composer/package.json
  91. 4
      packages/ui-contexts/package.json
  92. 3
      packages/ui-contexts/src/ActionManagerContext.ts
  93. 2
      packages/ui-kit/.eslintignore
  94. 6
      packages/ui-kit/.eslintrc.json
  95. 1
      packages/ui-kit/.gitignore
  96. 2
      packages/ui-kit/.prettierignore
  97. 276
      packages/ui-kit/CHANGELOG.md
  98. 91
      packages/ui-kit/README.md
  99. 6
      packages/ui-kit/jest.config.js
  100. 61
      packages/ui-kit/package.json
  101. Some files were not shown because too many files have changed in this diff Show More

@ -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

@ -14,4 +14,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
yarnPath: .yarn/releases/yarn-3.2.2.cjs
yarnPath: .yarn/releases/yarn-3.5.0.cjs

@ -2,7 +2,7 @@ import type { IUIKitInteraction } from '@rocket.chat/apps-engine/definition/uiki
import type { IUser } from '@rocket.chat/apps-engine/definition/users';
import { UiInteractionBridge as AppsEngineUiInteractionBridge } from '@rocket.chat/apps-engine/server/bridges/UiInteractionBridge';
import { api } from '@rocket.chat/core-services';
import type { UiKit } from '@rocket.chat/core-typings';
import type * as UiKit from '@rocket.chat/ui-kit';
import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

@ -1,7 +1,8 @@
import type { DistributiveOmit, UiKit } from '@rocket.chat/core-typings';
import type { DistributiveOmit } from '@rocket.chat/core-typings';
import { Emitter } from '@rocket.chat/emitter';
import { Random } from '@rocket.chat/random';
import type { RouterContext, IActionManager } from '@rocket.chat/ui-contexts';
import type * as UiKit from '@rocket.chat/ui-kit';
import type { ContextType } from 'react';
import { lazy } from 'react';

@ -1,5 +1,5 @@
import type { UiKit } from '@rocket.chat/core-typings';
import { useStream, useUserId } from '@rocket.chat/ui-contexts';
import type * as UiKit from '@rocket.chat/ui-kit';
import { useEffect } from 'react';
export const useAppUiKitInteraction = (handleServerInteraction: (interaction: UiKit.ServerInteraction) => void) => {
@ -12,7 +12,6 @@ export const useAppUiKitInteraction = (handleServerInteraction: (interaction: Ui
}
return notifyUser(`${uid}/uiInteraction`, (interaction) => {
// @ts-ignore
handleServerInteraction(interaction);
});
}, [notifyUser, uid, handleServerInteraction]);

@ -1,6 +1,6 @@
import type { UiKit } from '@rocket.chat/core-typings';
import { Emitter } from '@rocket.chat/emitter';
import type { Keys as IconName } from '@rocket.chat/icons';
import type * as UiKit from '@rocket.chat/ui-kit';
export type LegacyBannerPayload = {
id: string;

@ -1,5 +1,5 @@
import type { UiKit } from '@rocket.chat/core-typings';
import type { UiKitContext } from '@rocket.chat/fuselage-ui-kit';
import type * as UiKit from '@rocket.chat/ui-kit';
import { type ContextType } from 'react';
import { useUiKitActionManager } from './useUiKitActionManager';

@ -1,6 +1,6 @@
import type { UiKit } from '@rocket.chat/core-typings';
import { useDebouncedCallback } from '@rocket.chat/fuselage-hooks';
import type { UiKitContext } from '@rocket.chat/fuselage-ui-kit';
import type * as UiKit from '@rocket.chat/ui-kit';
import type { Dispatch } from 'react';
import { useMemo, type ContextType } from 'react';

@ -1,6 +1,6 @@
import type { UiKit } from '@rocket.chat/core-typings';
import { useDebouncedCallback } from '@rocket.chat/fuselage-hooks';
import type { UiKitContext } from '@rocket.chat/fuselage-ui-kit';
import type * as UiKit from '@rocket.chat/ui-kit';
import type { Dispatch } from 'react';
import { useMemo, type ContextType } from 'react';

@ -1,6 +1,6 @@
import type { UiKit } from '@rocket.chat/core-typings';
import { useSafely } from '@rocket.chat/fuselage-hooks';
import { extractInitialStateFromLayout } from '@rocket.chat/fuselage-ui-kit';
import type * as UiKit from '@rocket.chat/ui-kit';
import type { Dispatch } from 'react';
import { useEffect, useMemo, useReducer, useState } from 'react';

@ -1,8 +1,8 @@
import type { UiKit } from '@rocket.chat/core-typings';
import { Banner, Icon } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import { UiKitContext, bannerParser, UiKitBanner as UiKitBannerSurfaceRender, UiKitComponent } from '@rocket.chat/fuselage-ui-kit';
import { useToastMessageDispatch } from '@rocket.chat/ui-contexts';
import type * as UiKit from '@rocket.chat/ui-kit';
import type { ReactElement } from 'react';
import React, { useMemo } from 'react';

@ -1,4 +1,5 @@
import type { IBanner, UiKit } from '@rocket.chat/core-typings';
import type { IBanner } from '@rocket.chat/core-typings';
import type * as UiKit from '@rocket.chat/ui-kit';
import { useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';

@ -1,9 +1,7 @@
import type { UiKit } from '@rocket.chat/core-typings';
import { Modal, AnimatedVisibility, Button, Box } from '@rocket.chat/fuselage';
import { useUniqueId } from '@rocket.chat/fuselage-hooks';
import { UiKitComponent, UiKitModal, modalParser } from '@rocket.chat/fuselage-ui-kit';
import type { LayoutBlock } from '@rocket.chat/ui-kit';
import { BlockContext } from '@rocket.chat/ui-kit';
import * as UiKit from '@rocket.chat/ui-kit';
import type { FormEventHandler, ReactElement } from 'react';
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
import { FocusScope } from 'react-aria';
@ -166,24 +164,24 @@ const ModalBlock = ({ view, errors, onSubmit, onClose, onCancel }: ModalBlockPar
<Modal open id={id} ref={ref}>
<Modal.Header>
{view.showIcon ? <Modal.Thumb url={getURL(`/api/apps/${view.appId}/icon`)} /> : null}
<Modal.Title>{modalParser.text(view.title, BlockContext.NONE, 0)}</Modal.Title>
<Modal.Title>{modalParser.text(view.title, UiKit.BlockContext.NONE, 0)}</Modal.Title>
<Modal.Close tabIndex={-1} onClick={onClose} />
</Modal.Header>
<Modal.Content>
<Box is='form' method='post' action='#' onSubmit={onSubmit}>
<UiKitComponent render={UiKitModal} blocks={view.blocks as LayoutBlock[]} />
<UiKitComponent render={UiKitModal} blocks={view.blocks} />
</Box>
</Modal.Content>
<Modal.Footer>
<Modal.FooterControllers>
{view.close && (
<Button danger={view.close.style === 'danger'} onClick={onCancel}>
{modalParser.text(view.close.text, BlockContext.NONE, 0)}
{modalParser.text(view.close.text, UiKit.BlockContext.NONE, 0)}
</Button>
)}
{view.submit && (
<Button {...getButtonStyle(view.submit)} onClick={onSubmit}>
{modalParser.text(view.submit.text, BlockContext.NONE, 1)}
{modalParser.text(view.submit.text, UiKit.BlockContext.NONE, 1)}
</Button>
)}
</Modal.FooterControllers>

@ -1,7 +1,7 @@
import type { UiKit } from '@rocket.chat/core-typings';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import { UiKitContext } from '@rocket.chat/fuselage-ui-kit';
import { MarkupInteractionContext } from '@rocket.chat/gazzodown';
import type * as UiKit from '@rocket.chat/ui-kit';
import React from 'react';
import type { FormEvent } from 'react';

@ -1,4 +1,3 @@
import type { UiKit } from '@rocket.chat/core-typings';
import { Avatar, Box, Button, ButtonGroup, ContextualbarFooter, ContextualbarHeader, ContextualbarTitle } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import {
@ -7,6 +6,7 @@ import {
contextualBarParser,
UiKitContext,
} from '@rocket.chat/fuselage-ui-kit';
import type * as UiKit from '@rocket.chat/ui-kit';
import { BlockContext } from '@rocket.chat/ui-kit';
import type { FormEvent, UIEvent } from 'react';
import React, { memo } from 'react';

@ -49,6 +49,9 @@ COPY --from=build /app/packages/model-typings/dist /app/packages/model-typings/d
COPY --from=build /app/packages/models/package.json /app/packages/models/package.json
COPY --from=build /app/packages/models/dist /app/packages/models/dist
COPY --from=build /app/packages/ui-kit/package.json /app/packages/ui-kit/package.json
COPY --from=build /app/packages/ui-kit/dist /app/packages/ui-kit/dist
# add dist/ folder from tsc so we don't need to add all rocket.chat repo
COPY ./apps/meteor/ee/server/services/dist ./apps/meteor/

@ -27,7 +27,7 @@
"@rocket.chat/models": "workspace:^",
"@rocket.chat/rest-typings": "workspace:^",
"@rocket.chat/string-helpers": "~0.31.25",
"@rocket.chat/ui-kit": "~0.32.1",
"@rocket.chat/ui-kit": "workspace:~",
"ajv": "^8.11.0",
"bcrypt": "^5.0.1",
"body-parser": "^1.20.2",
@ -62,7 +62,7 @@
"pino-pretty": "^7.6.1",
"pm2": "^5.2.0",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"volta": {
"extends": "../../../package.json"

@ -66,7 +66,7 @@
"devDependencies": {
"@axe-core/playwright": "^4.7.3",
"@babel/core": "~7.22.20",
"@babel/eslint-parser": "~7.22.15",
"@babel/eslint-parser": "~7.23.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "~7.18.6",
"@babel/plugin-proposal-optional-chaining": "~7.21.0",
"@babel/preset-env": "~7.22.20",
@ -206,7 +206,7 @@
"supertest": "^6.2.3",
"template-file": "^6.0.1",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"dependencies": {
"@babel/runtime": "~7.22.15",
@ -272,7 +272,7 @@
"@rocket.chat/ui-client": "workspace:^",
"@rocket.chat/ui-composer": "workspace:^",
"@rocket.chat/ui-contexts": "workspace:^",
"@rocket.chat/ui-kit": "~0.32.1",
"@rocket.chat/ui-kit": "workspace:~",
"@rocket.chat/ui-theming": "workspace:^",
"@rocket.chat/ui-video-conf": "workspace:^",
"@rocket.chat/web-ui-registration": "workspace:^",
@ -422,6 +422,7 @@
"turndown": "^7.1.2",
"twilio": "^3.76.1",
"twit": "^2.2.11",
"typia": "^5.3.3",
"ua-parser-js": "^1.0.37",
"underscore": "^1.13.6",
"universal-perf-hooks": "^1.0.1",

@ -1,6 +1,6 @@
import { Banner } from '@rocket.chat/core-services';
import type { IUiKitCoreApp, UiKitCoreAppPayload } from '@rocket.chat/core-services';
import type { UiKit } from '@rocket.chat/core-typings';
import type * as UiKit from '@rocket.chat/ui-kit';
export class BannerModule implements IUiKitCoreApp {
appId = 'banner-core';

@ -1,8 +1,9 @@
import { Banner } from '@rocket.chat/core-services';
import type { IUiKitCoreApp, UiKitCoreAppPayload } from '@rocket.chat/core-services';
import type { Cloud, IBanner, IUser, UiKit } from '@rocket.chat/core-typings';
import type { Cloud, IBanner, IUser } from '@rocket.chat/core-typings';
import { Banners } from '@rocket.chat/models';
import { serverFetch as fetch } from '@rocket.chat/server-fetch';
import type * as UiKit from '@rocket.chat/ui-kit';
import { getWorkspaceAccessToken } from '../../../app/cloud/server';
import { syncWorkspace } from '../../../app/cloud/server/functions/syncWorkspace';

@ -1,6 +1,7 @@
import { Banner } from '@rocket.chat/core-services';
import type { UiKit, IBanner, BannerPlatform } from '@rocket.chat/core-typings';
import type { IBanner, BannerPlatform } from '@rocket.chat/core-typings';
import { serverFetch as fetch } from '@rocket.chat/server-fetch';
import type * as UiKit from '@rocket.chat/ui-kit';
import { getWorkspaceAccessToken } from '../../../app/cloud/server';
import { settings } from '../../../app/settings/server';

@ -19,7 +19,6 @@ import type {
VideoConferenceCapabilities,
VideoConferenceCreateData,
Optional,
UiKit,
} from '@rocket.chat/core-typings';
import {
VideoConferenceStatus,
@ -29,7 +28,7 @@ import {
} from '@rocket.chat/core-typings';
import { Users, VideoConference as VideoConferenceModel, Rooms, Messages, Subscriptions } from '@rocket.chat/models';
import type { PaginatedResult } from '@rocket.chat/rest-typings';
import type { MessageSurfaceLayout } from '@rocket.chat/ui-kit';
import type * as UiKit from '@rocket.chat/ui-kit';
import { MongoInternals } from 'meteor/mongo';
import { RocketChatAssets } from '../../../app/assets/server';
@ -571,7 +570,7 @@ export class VideoConfService extends ServiceClassInternal implements IVideoConf
]);
}
private buildVideoConfBlock(callId: string): MessageSurfaceLayout[number] {
private buildVideoConfBlock(callId: string): UiKit.MessageSurfaceLayout[number] {
return {
type: 'video_conf',
blockId: callId,
@ -580,7 +579,7 @@ export class VideoConfService extends ServiceClassInternal implements IVideoConf
};
}
private buildMessageBlock(text: string): MessageSurfaceLayout[number] {
private buildMessageBlock(text: string): UiKit.MessageSurfaceLayout[number] {
return {
type: 'section',
appId: 'videoconf-core',

@ -33,6 +33,9 @@ COPY ./packages/server-cloud-communication/ packages/server-cloud-communication/
COPY ./ee/packages/license/package.json packages/license/package.json
COPY ./ee/packages/license/dist packages/license/dist
COPY ./packages/ui-kit/package.json packages/ui-kit/package.json
COPY ./packages/ui-kit/dist packages/ui-kit/dist
COPY ./ee/apps/${SERVICE}/dist .
COPY ./package.json .

@ -44,7 +44,7 @@
"@types/polka": "^0.5.6",
"eslint": "~8.45.0",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"main": "./dist/ee/apps/account-service/src/service.js",
"files": [

@ -33,6 +33,9 @@ COPY ./packages/server-cloud-communication/ packages/server-cloud-communication/
COPY ./ee/packages/license/package.json packages/license/package.json
COPY ./ee/packages/license/dist packages/license/dist
COPY ./packages/ui-kit/package.json packages/ui-kit/package.json
COPY ./packages/ui-kit/dist packages/ui-kit/dist
COPY ./ee/apps/${SERVICE}/dist .
COPY ./package.json .

@ -41,7 +41,7 @@
"@types/polka": "^0.5.6",
"eslint": "~8.45.0",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"main": "./dist/ee/apps/authorization-service/src/service.js",
"files": [

@ -42,6 +42,9 @@ COPY ./ee/packages/license/dist packages/license/dist
COPY ./packages/instance-status/package.json packages/instance-status/package.json
COPY ./packages/instance-status/dist packages/instance-status/dist
COPY ./packages/ui-kit/package.json packages/ui-kit/package.json
COPY ./packages/ui-kit/dist packages/ui-kit/dist
COPY ./ee/apps/${SERVICE}/dist .
COPY ./package.json .

@ -57,7 +57,7 @@
"eslint": "~8.45.0",
"pino-pretty": "^7.6.1",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"main": "./dist/service.js",
"files": [

@ -42,6 +42,9 @@ COPY ./ee/packages/pdf-worker/dist ee/packages/pdf-worker/dist
COPY ./packages/tools/package.json packages/tools/package.json
COPY ./packages/tools/dist packages/tools/dist
COPY ./packages/ui-kit/package.json packages/ui-kit/package.json
COPY ./packages/ui-kit/dist packages/ui-kit/dist
COPY ./ee/apps/${SERVICE}/dist .
COPY ./package.json .

@ -48,7 +48,7 @@
"@types/polka": "^0.5.6",
"eslint": "~8.45.0",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"main": "./dist/ee/apps/omnichannel-transcript/src/service.js",
"files": [

@ -39,6 +39,9 @@ COPY ./ee/packages/license/dist packages/license/dist
COPY ./packages/ui-contexts/package.json packages/ui-contexts/package.json
COPY ./packages/ui-contexts/dist packages/ui-contexts/dist
COPY ./packages/ui-kit/package.json packages/ui-kit/package.json
COPY ./packages/ui-kit/dist packages/ui-kit/dist
COPY ./ee/apps/${SERVICE}/dist .
COPY ./package.json .

@ -41,7 +41,7 @@
"@types/polka": "^0.5.6",
"eslint": "~8.45.0",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"main": "./dist/ee/apps/presence-service/src/service.js",
"files": [

@ -42,6 +42,9 @@ COPY ./ee/packages/pdf-worker/dist ee/packages/pdf-worker/dist
COPY ./packages/tools/package.json packages/tools/package.json
COPY ./packages/tools/dist packages/tools/dist
COPY ./packages/ui-kit/package.json packages/ui-kit/package.json
COPY ./packages/ui-kit/dist packages/ui-kit/dist
COPY ./ee/apps/${SERVICE}/dist .
COPY ./package.json .

@ -45,7 +45,7 @@
"@types/polka": "^0.5.6",
"eslint": "~8.45.0",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"main": "./dist/ee/apps/queue-worker/src/service.js",
"files": [

@ -33,6 +33,9 @@ COPY ./packages/server-cloud-communication/ packages/server-cloud-communication/
COPY ./ee/packages/license/package.json packages/license/package.json
COPY ./ee/packages/license/dist packages/license/dist
COPY ./packages/ui-kit/package.json packages/ui-kit/package.json
COPY ./packages/ui-kit/dist packages/ui-kit/dist
COPY ./ee/apps/${SERVICE}/dist .
COPY ./package.json .

@ -43,7 +43,7 @@
"@types/polka": "^0.5.6",
"eslint": "~8.45.0",
"ts-node": "^10.9.1",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"main": "./dist/ee/apps/stream-hub-service/src/service.js",
"files": [

@ -9,8 +9,8 @@
"eslint": "~8.45.0",
"jest": "~29.6.4",
"jest-fetch-mock": "^3.0.3",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -10,7 +10,7 @@
"jest": "~29.6.4",
"jest-environment-jsdom": "~29.6.4",
"jest-websocket-mock": "^2.4.0",
"typescript": "~5.2.2",
"typescript": "~5.3.2",
"ws": "^8.13.0"
},
"peerDependencies": {

@ -23,9 +23,9 @@ import type {
ILivechatAgent,
IImportProgress,
IBanner,
UiKit,
} from '@rocket.chat/core-typings';
import type { LicenseLimitKind } from '@rocket.chat/license';
import type * as UiKit from '@rocket.chat/ui-kit';
type ClientAction = 'inserted' | 'updated' | 'removed' | 'changed';

@ -12,8 +12,8 @@
"jest": "~29.6.4",
"jest-environment-jsdom": "~29.6.4",
"jest-websocket-mock": "^2.4.0",
"ts-jest": "~29.0.5",
"typescript": "^5.2.2"
"ts-jest": "~29.1.1",
"typescript": "^5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -7,8 +7,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"dependencies": {
"@rocket.chat/core-services": "workspace:^",

@ -15,8 +15,8 @@
"jest": "~29.6.4",
"jest-environment-jsdom": "~29.6.4",
"react-dom": "^18.2.0",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -13,7 +13,7 @@
"babel-jest": "^29.0.3",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint src",

@ -28,8 +28,8 @@
"jest": "~29.6.4",
"react": "~17.0.2",
"react-docgen-typescript-plugin": "~1.0.5",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -39,11 +39,11 @@
},
"homepage": "https://github.com/RocketChat/Rocket.Chat#readme",
"engines": {
"yarn": "3.2.2",
"yarn": "3.5.0",
"node": "14.21.3",
"npm": "Use yarn instead"
},
"packageManager": "yarn@3.2.2",
"packageManager": "yarn@3.5.0",
"houston": {
"minTag": "0.55.0-rc.0",
"updateFiles": [
@ -63,7 +63,9 @@
"preact@10.15.1": "patch:preact@npm:10.15.1#.yarn/patches/preact-npm-10.15.1-bd458de913.patch",
"@storybook/react-docgen-typescript-plugin@1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0": "patch:@storybook/react-docgen-typescript-plugin@npm%3A1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0#./.yarn/patches/@storybook-react-docgen-typescript-plugin-npm-1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0-b31cc57c40.patch",
"mongodb@^4.17.1": "patch:mongodb@npm:4.17.1#.yarn/patches/mongodb-npm-4.17.1-a2fe811ff1.patch",
"@rocket.chat/forked-matrix-sdk-crypto-nodejs": "0.1.0-beta.13"
"@rocket.chat/forked-matrix-sdk-crypto-nodejs": "0.1.0-beta.13",
"typia@5.3.3": "patch:typia@npm:5.3.3#.yarn/patches/typia-npm-5.3.3-21d3e18463.patch",
"typia@~5.3.3": "patch:typia@npm%3A5.3.3#./.yarn/patches/typia-npm-5.3.3-21d3e18463.patch"
},
"dependencies": {
"node-gyp": "^9.4.1"

@ -6,8 +6,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -16,8 +16,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -20,8 +20,8 @@
"@typescript-eslint/parser": "~5.60.1",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"volta": {
"extends": "../../package.json"

@ -7,8 +7,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -15,7 +15,7 @@
"jest": "~29.6.4",
"mongodb": "^4.17.1",
"prettier": "~2.8.8",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
@ -40,7 +40,7 @@
"@rocket.chat/message-parser": "~0.31.27",
"@rocket.chat/models": "workspace:^",
"@rocket.chat/rest-typings": "workspace:^",
"@rocket.chat/ui-kit": "~0.32.1",
"@rocket.chat/ui-kit": "workspace:~",
"@types/fibers": "^3.1.3",
"fibers": "^5.0.3"
}

@ -32,9 +32,9 @@ import type {
ILivechatAgent,
IBanner,
ILivechatVisitor,
UiKit,
} from '@rocket.chat/core-typings';
import type { LicenseLimitKind } from '@rocket.chat/license';
import type * as UiKit from '@rocket.chat/ui-kit';
import type { AutoUpdateRecord } from '../types/IMeteor';

@ -2,13 +2,13 @@ import type {
IRoom,
IStats,
IUser,
UiKit,
VideoConference,
VideoConferenceCapabilities,
VideoConferenceCreateData,
VideoConferenceInstructions,
} from '@rocket.chat/core-typings';
import type { PaginatedResult } from '@rocket.chat/rest-typings';
import type * as UiKit from '@rocket.chat/ui-kit';
export type VideoConferenceJoinOptions = {
mic?: boolean;

@ -7,7 +7,7 @@
"eslint": "~8.45.0",
"mongodb": "^4.17.1",
"prettier": "~2.8.8",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
@ -25,7 +25,7 @@
"@rocket.chat/apps-engine": "1.41.0",
"@rocket.chat/icons": "~0.32.0",
"@rocket.chat/message-parser": "~0.31.27",
"@rocket.chat/ui-kit": "~0.32.1"
"@rocket.chat/ui-kit": "workspace:~"
},
"volta": {
"extends": "../../package.json"

@ -1,6 +1,7 @@
import type * as UiKit from '@rocket.chat/ui-kit';
import type { IRocketChatRecord } from './IRocketChatRecord';
import type { IUser } from './IUser';
import type * as UiKit from './uikit';
export enum BannerPlatform {
Web = 'web',

@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { UiKit } from '..';
import type * as UiKit from '@rocket.chat/ui-kit';
import type { IBanner } from '../IBanner';
import type { Announcement } from './Announcement';
import type { NpsSurveyAnnouncement } from './NpsSurveyAnnouncement';

@ -136,5 +136,3 @@ export * from './IModerationReport';
export * from './CustomFieldMetadata';
export * as Cloud from './cloud';
export * as UiKit from './uikit';

@ -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';

@ -6,8 +6,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -4,7 +4,7 @@
"description": "Rocket.Chat's JS/TS ESLint config",
"dependencies": {
"@babel/core": "^7.20.7",
"@babel/eslint-parser": "~7.22.15",
"@babel/eslint-parser": "~7.23.3",
"@types/eslint": "~8.44.6",
"@types/prettier": "^2.6.3",
"@typescript-eslint/eslint-plugin": "~5.60.1",

@ -4,7 +4,7 @@
"private": true,
"devDependencies": {
"eslint": "~8.45.0",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -69,7 +69,7 @@
"@rocket.chat/prettier-config": "~0.31.25",
"@rocket.chat/styled": "~0.31.25",
"@rocket.chat/ui-contexts": "workspace:^",
"@rocket.chat/ui-kit": "~0.32.1",
"@rocket.chat/ui-kit": "workspace:~",
"@rocket.chat/ui-video-conf": "workspace:^",
"@storybook/addon-essentials": "~6.5.16",
"@storybook/addons": "~6.5.16",
@ -95,11 +95,11 @@
"rimraf": "^3.0.2",
"storybook-dark-mode": "~3.0.1",
"tslib": "^2.5.3",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"dependencies": {
"@rocket.chat/gazzodown": "workspace:^",
"@rocket.chat/ui-kit": "~0.32.1",
"@rocket.chat/ui-kit": "workspace:~",
"tslib": "^2.5.3"
},
"volta": {

@ -45,8 +45,8 @@
"outdent": "^0.8.0",
"react-docgen-typescript-plugin": "~1.0.5",
"react-dom": "~17.0.2",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -8,9 +8,9 @@
"babel-jest": "^29.5.0",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"ts-jest": "~29.1.1",
"tsup": "^6.7.0",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"scripts": {
"build": "node ./src/index.mjs",

@ -7,7 +7,7 @@
"eslint": "~8.45.0",
"mongodb": "^4.17.1",
"prettier": "~2.8.8",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -7,7 +7,7 @@
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "^29.1.1",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -24,7 +24,7 @@
"typecheck": "tsc -p tsconfig.typecheck.json"
},
"devDependencies": {
"@babel/eslint-parser": "~7.22.15",
"@babel/eslint-parser": "~7.23.3",
"@babel/preset-env": "~7.22.20",
"@babel/preset-typescript": "~7.22.15",
"@rocket.chat/core-typings": "workspace:^",
@ -81,7 +81,7 @@
"stylelint-order": "^5.0.0",
"svg-loader": "^0.0.2",
"terser-webpack-plugin": "~4.2.3",
"typescript": "~5.2.2",
"typescript": "~5.3.2",
"url-loader": "^4.1.1",
"webpack": "^5.89.0",
"webpack-bundle-analyzer": "^4.9.1",
@ -97,7 +97,7 @@
"@rocket.chat/message-parser": "~0.31.27",
"@rocket.chat/random": "workspace:~",
"@rocket.chat/sdk": "^1.0.0-alpha.42",
"@rocket.chat/ui-kit": "~0.32.1",
"@rocket.chat/ui-kit": "workspace:~",
"css-vars-ponyfill": "^2.4.8",
"date-fns": "^2.15.0",
"emoji-mart": "^3.0.1",

@ -8,8 +8,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -6,8 +6,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -15,8 +15,8 @@
"eslint": "~8.45.0",
"jest": "~29.6.4",
"react": "~17.0.2",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"peerDependencies": {
"@tanstack/react-query": "*",

@ -8,8 +8,8 @@
"eslint": "~8.45.0",
"jest": "~29.6.4",
"mongodb": "^4.17.1",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -6,8 +6,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"dependencies": {
"@rocket.chat/model-typings": "workspace:^"

@ -6,8 +6,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"test": "jest"

@ -8,8 +8,8 @@
"chai": "^4.3.10",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -22,8 +22,8 @@
"eslint": "~8.45.0",
"jest": "~29.6.4",
"jest-environment-jsdom": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"volta": {
"extends": "../../package.json"

@ -11,7 +11,7 @@
"packageManager": "yarn@3.5.1",
"devDependencies": {
"@types/node": "^16.18.60",
"typescript": "~5.2.2"
"typescript": "~5.3.2"
},
"dependencies": {
"@actions/core": "^1.10.1",

@ -46,7 +46,17 @@ export async function fixWorkspaceVersionsBeforePublish() {
throw new Error(`Could not find version for workspace ${dependency}`);
}
packageJson[dependencyType][dependency] = `^${realVersion}`;
const semver = dependencyVersion.slice('workspace:'.length);
if (semver === '*') {
packageJson[dependencyType][dependency] = `=${realVersion}`;
} else if (semver === '^') {
packageJson[dependencyType][dependency] = `^${realVersion}`;
} else if (semver === '~') {
packageJson[dependencyType][dependency] = `~${realVersion}`;
} else {
packageJson[dependencyType][dependency] = semver;
}
}
}
}

@ -8,8 +8,8 @@
"jest": "~29.6.4",
"jest-environment-jsdom": "~29.6.4",
"mongodb": "^4.17.1",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
@ -28,7 +28,7 @@
"@rocket.chat/core-typings": "workspace:^",
"@rocket.chat/license": "workspace:^",
"@rocket.chat/message-parser": "~0.31.27",
"@rocket.chat/ui-kit": "~0.32.1",
"@rocket.chat/ui-kit": "workspace:~",
"ajv": "^8.11.0",
"ajv-formats": "^2.1.1"
},

@ -12,8 +12,8 @@ import type {
AppRequestFilter,
AppRequestsStats,
PaginatedAppRequests,
UiKit,
} from '@rocket.chat/core-typings';
import type * as UiKit from '@rocket.chat/ui-kit';
export type AppsEndpoints = {
'/apps/count': {

@ -7,8 +7,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.1.6"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"volta": {
"extends": "../../package.json"

@ -6,8 +6,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -20,8 +20,8 @@
"@typescript-eslint/parser": "~5.60.1",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"volta": {
"extends": "../../package.json"

@ -6,8 +6,8 @@
"@types/jest": "~29.5.7",
"eslint": "~8.45.0",
"jest": "~29.6.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -38,8 +38,8 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-hook-form": "~7.45.4",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",

@ -22,8 +22,8 @@
"eslint-plugin-storybook": "~0.6.15",
"jest": "~29.6.4",
"react-docgen-typescript-plugin": "~1.0.5",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2"
"ts-jest": "~29.1.1",
"typescript": "~5.3.2"
},
"peerDependencies": {
"@rocket.chat/fuselage": "*",

@ -16,8 +16,8 @@
"jest": "~29.6.4",
"mongodb": "^4.17.1",
"react": "~17.0.2",
"ts-jest": "~29.0.5",
"typescript": "~5.2.2",
"ts-jest": "~29.1.1",
"typescript": "~5.3.2",
"use-sync-external-store": "^1.2.0"
},
"peerDependencies": {

@ -1,4 +1,5 @@
import type { DistributiveOmit, UiKit } from '@rocket.chat/core-typings';
import type { DistributiveOmit } from '@rocket.chat/core-typings';
import type * as UiKit from '@rocket.chat/ui-kit';
import { createContext } from 'react';
/**

@ -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
---
[![npm@latest](https://img.shields.io/npm/v/@rocket.chat/ui-kit/latest?style=flat-square)](https://www.npmjs.com/package/@rocket.chat/ui-kit/v/latest) [![npm@next](https://img.shields.io/npm/v/@rocket.chat/ui-kit/next?style=flat-square)](https://www.npmjs.com/package/@rocket.chat/ui-kit/v/next) ![npm downloads](https://img.shields.io/npm/dw/@rocket.chat/ui-kit?style=flat-square) ![License: MIT](https://img.shields.io/npm/l/@rocket.chat/ui-kit?style=flat-square)
![deps](https://img.shields.io/librariesio/release/npm/@rocket.chat/ui-kit?style=flat-square) ![npm bundle size](https://img.shields.io/bundlephobia/min/@rocket.chat/ui-kit?style=flat-square)
<!--/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…
Cancel
Save