@superblocksteam/library 2.0.0-next.83 → 2.0.0-next.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/dist/{allPaths-B5wfHhgn.js → allPaths-D-Ojg0WC.js} +2 -2
  2. package/dist/{allPaths-B5wfHhgn.js.map → allPaths-D-Ojg0WC.js.map} +1 -1
  3. package/dist/{allPaths-U6g9lWOX.js → allPaths-D6w1KOhK.js} +2 -2
  4. package/dist/{allPaths-U6g9lWOX.js.map → allPaths-D6w1KOhK.js.map} +1 -1
  5. package/dist/{allPathsLoader-DiEGmK_4.js → allPathsLoader-CwmAO7vH.js} +3 -3
  6. package/dist/{allPathsLoader-DiEGmK_4.js.map → allPathsLoader-CwmAO7vH.js.map} +1 -1
  7. package/dist/{allPathsLoader-TOKPYUgj.js → allPathsLoader-DCdJ8f7M.js} +3 -3
  8. package/dist/{allPathsLoader-TOKPYUgj.js.map → allPathsLoader-DCdJ8f7M.js.map} +1 -1
  9. package/dist/{index-b-4mZYkh.js → index-Bl_0WPlq.js} +214 -320
  10. package/dist/{index-b-4mZYkh.js.map → index-Bl_0WPlq.js.map} +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/{splitPathsBySizeLoader-DQcJgU2J.js → splitPathsBySizeLoader-DJhelNAf.js} +2 -2
  13. package/dist/{splitPathsBySizeLoader-DQcJgU2J.js.map → splitPathsBySizeLoader-DJhelNAf.js.map} +1 -1
  14. package/dist/{splitPathsBySizeLoader-uT6kxtxf.js → splitPathsBySizeLoader-usZfSm2b.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-uT6kxtxf.js.map → splitPathsBySizeLoader-usZfSm2b.js.map} +1 -1
  16. package/dist-types/edit-mode/features/connection-manager.d.ts +1 -2
  17. package/dist-types/edit-mode/source-update-api.d.ts +3 -20
  18. package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +0 -1
  19. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +16 -7
  20. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +1 -1
  21. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { V as clientExports } from "./index-b-4mZYkh.js";
2
- import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, N, bH } from "./index-b-4mZYkh.js";
1
+ import { V as clientExports } from "./index-Bl_0WPlq.js";
2
+ import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, N, bH } from "./index-Bl_0WPlq.js";
3
3
  const createRoot = clientExports.createRoot;
4
4
  export {
5
5
  W as Await,
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-b-4mZYkh.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-Bl_0WPlq.js";
2
2
  var splitPathsBySizeLoader = function(name, size) {
3
3
  return __awaiter(void 0, void 0, void 0, function() {
4
4
  var key, pathsRecord;
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
31
31
  export {
32
32
  splitPathsBySizeLoader
33
33
  };
34
- //# sourceMappingURL=splitPathsBySizeLoader-DQcJgU2J.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-DJhelNAf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-DQcJgU2J.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"splitPathsBySizeLoader-DJhelNAf.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-b-4mZYkh.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-Bl_0WPlq.js";
2
2
  var splitPathsBySizeLoader = function(name, size) {
3
3
  return __awaiter(void 0, void 0, void 0, function() {
4
4
  var key, pathsRecord;
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
31
31
  export {
32
32
  splitPathsBySizeLoader
33
33
  };
34
- //# sourceMappingURL=splitPathsBySizeLoader-uT6kxtxf.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-usZfSm2b.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-uT6kxtxf.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"splitPathsBySizeLoader-usZfSm2b.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
@@ -1,6 +1,5 @@
1
- export type ConnectionStatus = "disconnected" | "connecting" | "connected";
1
+ export type ConnectionStatus = "pre-init" | "disconnected" | "connecting" | "connected";
2
2
  declare class ConnectionManager {
3
- socketInitialized: boolean;
4
3
  connectionStatus: ConnectionStatus;
5
4
  constructor();
6
5
  initializeSocket(): void;
@@ -1,27 +1,10 @@
1
- import type { EditOperationType, EditOperations, ReparentRequest, CreateRequest, SetPropertyRequest, SetPropertiesRequest, BatchUpdateRequest, ApiUpdateRequest, AddEntityRequest, UpdateEntityRequest, UpdateThemeRequest, DeleteEntityRequest, DeleteRequest, DeletePropertiesRequest, RenameElementRequest } from "@superblocksteam/library-shared/types";
2
- type CamelCase<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${Capitalize<CamelCase<Tail>>}` : S extends `${infer Head}:${infer Tail}` ? `${Head}${Capitalize<CamelCase<Tail>>}` : S;
3
- type IOperationAPI = {
4
- [K in EditOperationType as CamelCase<K>]: (payload: Parameters<EditOperations[K]>[0]) => Promise<ReturnType<EditOperations[K]> | undefined>;
5
- };
6
- declare class OperationAPI implements IOperationAPI {
1
+ declare class OperationAPI {
7
2
  private readonly serverUrl;
8
3
  private socket;
4
+ private retryAttempts;
9
5
  constructor(serverUrl: string);
10
6
  connect(peerId: string, userId?: string): Promise<void>;
11
- editorMoveComponent: (payload: ReparentRequest) => Promise<void | undefined>;
12
- editorCreateComponent: (payload: CreateRequest) => Promise<`SB-${string}` | undefined>;
13
- editorDeleteComponents: (payload: DeleteRequest) => Promise<void | undefined>;
14
- editorSetProperty: (payload: SetPropertyRequest) => Promise<void | undefined>;
15
- editorSetProperties: (payload: SetPropertiesRequest) => Promise<any>;
16
- editorDeleteProperties: (payload: DeletePropertiesRequest) => Promise<void | undefined>;
17
- editorBatchUpdate: (payload: BatchUpdateRequest) => Promise<unknown[] | undefined>;
18
- apiUpdate: (payload: ApiUpdateRequest) => Promise<import("@superblocksteam/library-shared/types").ApiUpdateResponse | undefined>;
19
- editorAddEntity: (payload: AddEntityRequest) => Promise<void | undefined>;
20
- editorUpdateEntity: (payload: UpdateEntityRequest) => Promise<void | undefined>;
21
- editorDeleteEntity: (payload: DeleteEntityRequest) => Promise<void | undefined>;
22
- editorRenameElement: (payload: RenameElementRequest) => Promise<void | undefined>;
23
- editorUpdateTheme: (payload: UpdateThemeRequest) => Promise<void | undefined>;
24
- ensureFilesSynced: () => Promise<string | undefined>;
7
+ ensureFilesSynced: () => Promise<void>;
25
8
  }
26
9
  declare const _default: OperationAPI;
27
10
  export default _default;
@@ -2,7 +2,6 @@ import { ViewMode } from "@superblocksteam/shared";
2
2
  import type { ApiV2ExecutionRequest, ApiV2ExecutionResponse, ExecutionResponse, StreamEvent } from "../types.js";
3
3
  import type { DeleteMeLibraryApi } from "@superblocksteam/library-shared/types";
4
4
  import type { Agent, ApiResponseType } from "@superblocksteam/shared";
5
- export declare function runApi(api: DeleteMeLibraryApi, inputs: Record<string, unknown>, orchestratorUrl: string, token: string, accessToken: string): Promise<unknown>;
6
5
  export type ExecuteV2ApiParams = {
7
6
  body: ApiV2ExecutionRequest;
8
7
  api: DeleteMeLibraryApi;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
- import type { CompactMode, BooleanStyleFalse } from "./types.js";
3
- import type { ColumnProperties, TableWidgetProps, EditProps, SingleCellProperties, TableStyles, TagDisplayConfig, TagsColorAssignment } from "./types.js";
2
+ import { CellAlignmentTypes, TextSizes, VerticalAlignmentTypes } from "./types.js";
3
+ import type { CompactMode, BooleanStyleFalse, UnknownRows } from "./types.js";
4
+ import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig, TagsColorAssignment } from "./types.js";
4
5
  import type { IconPosition } from "../../icons/constants.js";
5
6
  import type { ButtonVariant } from "../button/props.js";
6
7
  import type { Dim } from "@superblocksteam/library-shared";
@@ -83,7 +84,7 @@ export declare const renderCell: ({ value, columnType, editInputType, cellProps,
83
84
  typographies?: UserAccessibleTheme["typographies"];
84
85
  theme: UserAccessibleTheme;
85
86
  }) => React.JSX.Element;
86
- interface RenderActionProps {
87
+ interface TableButtonProps {
87
88
  rowIndex: number;
88
89
  isSelected: boolean;
89
90
  isDisabled?: boolean;
@@ -94,11 +95,13 @@ interface RenderActionProps {
94
95
  buttonLabelColor: string | undefined;
95
96
  cellIcon?: string;
96
97
  cellIconPosition: IconPosition;
97
- onCommandClick: (onComplete: () => void) => void;
98
98
  handleRowSelect: (rowIndex: number) => void;
99
99
  compactMode: CompactMode;
100
+ theme: UserAccessibleTheme;
101
+ buttonLabel: string;
102
+ onClick: (onComplete: () => void) => void;
100
103
  }
101
- export declare const renderActions: (props: RenderActionProps, isHidden: boolean, cellProperties: SingleCellProperties, compactMode: CompactMode, theme: UserAccessibleTheme) => React.JSX.Element;
104
+ export declare const TableButton: (props: TableButtonProps) => React.JSX.Element;
102
105
  export declare const renderLink: (props: {
103
106
  isHidden: boolean;
104
107
  cellProperties: SingleCellProperties;
@@ -117,7 +120,6 @@ export declare const getVisibleOrderedColumnIds: (columns: Record<string, Column
117
120
  export declare const reorderColumns: (columns: Record<string, ColumnProperties>, columnOrder: string[], columnFreezes?: Record<string, boolean>) => Record<string, ColumnProperties>;
118
121
  export declare function getDefaultColumnProperties(accessor: string, index: number, widgetName: string, isDerived?: boolean): ColumnProperties;
119
122
  export declare function getDefaultComputedValue(accessor: string, widgetName: string, isDerived: boolean): string;
120
- export declare function getTableStyles(props: any): TableStyles;
121
123
  export declare const getColumnWidthStyle: ({ column, columnSizeMap, resizingColumnIdRef, canvasScaleFactor, }: {
122
124
  column: any;
123
125
  columnSizeMap: {
@@ -142,5 +144,12 @@ export declare const getColumnWidth: (colId: string, columnSizeMap: {
142
144
  actualFlexWidth: number;
143
145
  };
144
146
  export declare function collapseTableData(data: unknown[][], largestRow?: number): unknown[][];
145
- export declare function createTableColumns(props: TableWidgetProps): Record<string, ColumnProperties> | undefined;
147
+ export declare function createTableColumns(columns: Record<string, any> | undefined, tableData: UnknownRows | undefined, tableStyles: {
148
+ textColor?: string;
149
+ textSize?: TextSizes;
150
+ fontStyle?: string;
151
+ cellBackground?: string;
152
+ verticalAlign?: VerticalAlignmentTypes;
153
+ horizontalAlign?: CellAlignmentTypes;
154
+ }, widgetName: string): Record<string, ColumnProperties> | undefined;
146
155
  export {};
@@ -25,7 +25,6 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
25
25
  }[];
26
26
  eventListenerController: AbortController | undefined;
27
27
  componentDidMount(): void;
28
- componentDidUpdate(): void;
29
28
  addEventListeners(): void;
30
29
  componentWillUnmount(): void;
31
30
  getDisplayedValueForEditCell: ({ columnId, rawValue, displayedValue, useLabelAsDisplayValue, }: {
@@ -36,6 +35,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
36
35
  }) => string | undefined;
37
36
  previousColumnsString: string;
38
37
  previousColumns: ReactTableColumnProps[];
38
+ handleTableButtonClick: (columnId: string, onComplete: () => void) => void;
39
39
  getReactTableColumns(): ReactTableColumnProps[];
40
40
  static transformData: (tableData: Array<Record<string, unknown>>, filteredOrderMap: Array<number>, columns: ReactTableColumnProps[], editOverrides: Record<number, Record<string, {
41
41
  value: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.0-next.83",
3
+ "version": "2.0.0-next.84",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -33,8 +33,8 @@
33
33
  "@react-hook/resize-observer": "1.2.6",
34
34
  "@superblocksteam/fast-deep-equal": "3.1.4",
35
35
  "@superblocksteam/iso-currency": "2.0.0",
36
- "@superblocksteam/library-shared": "2.0.0-next.83",
37
- "@superblocksteam/shared": "0.9146.0",
36
+ "@superblocksteam/library-shared": "2.0.0-next.84",
37
+ "@superblocksteam/shared": "0.9149.0",
38
38
  "antd": "4.24.15",
39
39
  "apca-w3": "^0.1.9",
40
40
  "clsx": "^2.1.1",