@superblocksteam/library 2.0.24 → 2.0.25-next.0
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.
- package/dist/{allPaths-BbpEpqLh.js → allPaths-BKoDjJN8.js} +2 -2
- package/dist/{allPaths-BbpEpqLh.js.map → allPaths-BKoDjJN8.js.map} +1 -1
- package/dist/{allPaths-B0uFz4eu.js → allPaths-DX8fJSkw.js} +2 -2
- package/dist/{allPaths-B0uFz4eu.js.map → allPaths-DX8fJSkw.js.map} +1 -1
- package/dist/{allPathsLoader-B3Kn8dJB.js → allPathsLoader-BPfeMm2w.js} +3 -3
- package/dist/{allPathsLoader-DFD8_wiC.js.map → allPathsLoader-BPfeMm2w.js.map} +1 -1
- package/dist/{allPathsLoader-DFD8_wiC.js → allPathsLoader-CpCchgXK.js} +3 -3
- package/dist/{allPathsLoader-B3Kn8dJB.js.map → allPathsLoader-CpCchgXK.js.map} +1 -1
- package/dist/{devtools-consolidated-C5N6KpcA.js → devtools-consolidated-CgUPIyN-.js} +2 -2
- package/dist/{devtools-consolidated-C5N6KpcA.js.map → devtools-consolidated-CgUPIyN-.js.map} +1 -1
- package/dist/{index-Gwi_Jzpw.js → index-CD8xUmJO.js} +444 -111
- package/dist/{index-Gwi_Jzpw.js.map → index-CD8xUmJO.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-DRwZ0uGM.js → splitPathsBySizeLoader-36NaANOW.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DRwZ0uGM.js.map → splitPathsBySizeLoader-36NaANOW.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-BjP-gwgM.js → splitPathsBySizeLoader-CYIXYT0K.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BjP-gwgM.js.map → splitPathsBySizeLoader-CYIXYT0K.js.map} +1 -1
- package/dist-types/edit-mode/base-editor-bridge.d.ts +3 -3
- package/dist-types/edit-mode/features/ai-store.d.ts +5 -3
- package/dist-types/edit-mode/interaction-rect-actions.d.ts +1 -1
- package/dist-types/edit-mode/interaction-rect.d.ts +2 -2
- package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +2 -2
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +14 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +16 -9
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a4 as clientExports } from "./index-
|
|
2
|
-
import { a6, a7, B, h, C, c, g, i, $, D, O, Q, E, a8, L, a9, aa, ab, ac, l, n, d, ad, ae, v, af, ag, M, ah, ai, aj, a2, P, a5, ak, W, a1, X, Y, al, a3, am, an, ao, a0, u, R, v as v2, ap, aq, S, ar, e, q, A, as, at, k, f, T, N, s, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, Z, w, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, K, bb, bc, bd, be, bf, bg, z, bh, bi, bj, bk, bl, G, bm, bn, x, bo, bp, bq, r, J, H, br, bs, bt, y, F, bu, bv, bw, bx, by, bz, 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, b_, b$, c0, c1, c2, c3, V, U, c4 } from "./index-
|
|
1
|
+
import { a4 as clientExports } from "./index-CD8xUmJO.js";
|
|
2
|
+
import { a6, a7, B, h, C, c, g, i, $, D, O, Q, E, a8, L, a9, aa, ab, ac, l, n, d, ad, ae, v, af, ag, M, ah, ai, aj, a2, P, a5, ak, W, a1, X, Y, al, a3, am, an, ao, a0, u, R, v as v2, ap, aq, S, ar, e, q, A, as, at, k, f, T, N, s, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, Z, w, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, K, bb, bc, bd, be, bf, bg, z, bh, bi, bj, bk, bl, G, bm, bn, x, bo, bp, bq, r, J, H, br, bs, bt, y, F, bu, bv, bw, bx, by, bz, 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, b_, b$, c0, c1, c2, c3, V, U, c4 } from "./index-CD8xUmJO.js";
|
|
3
3
|
const createRoot = clientExports.createRoot;
|
|
4
4
|
export {
|
|
5
5
|
a6 as Await,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-CD8xUmJO.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-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-36NaANOW.js.map
|
package/dist/{splitPathsBySizeLoader-DRwZ0uGM.js.map → splitPathsBySizeLoader-36NaANOW.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-36NaANOW.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,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-CD8xUmJO.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-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-CYIXYT0K.js.map
|
package/dist/{splitPathsBySizeLoader-BjP-gwgM.js.map → splitPathsBySizeLoader-CYIXYT0K.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-CYIXYT0K.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,7 +1,7 @@
|
|
|
1
1
|
import type { FromChildToParentMessageTypesMap } from "../lib/index.js";
|
|
2
2
|
import type { StreamEvent, RouteInfo } from "../lib/internal-details/lib/types.js";
|
|
3
3
|
import type { PropertiesPanelDefinition } from "@superblocksteam/library-shared/props";
|
|
4
|
-
import type { EditOperationPayload, EditOperationType, GeneratedTheme, SbElement, Theme } from "@superblocksteam/library-shared/types";
|
|
4
|
+
import type { AiContextMode, EditOperationPayload, EditOperationType, GeneratedTheme, SbElement, Theme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
export interface SuperblocksParentBridgeInterface {
|
|
6
6
|
connected(): void;
|
|
7
7
|
sendReady(): void;
|
|
@@ -28,7 +28,7 @@ export interface SuperblocksParentBridgeInterface {
|
|
|
28
28
|
socketError(message: string): void;
|
|
29
29
|
addComponentToAiContext(sourceId: SbElement): void;
|
|
30
30
|
toggleComponentInAiContext(sourceId: SbElement): void;
|
|
31
|
-
|
|
31
|
+
setAiContextMode(mode: AiContextMode): void;
|
|
32
32
|
}
|
|
33
33
|
export declare class DeployedParentBridge implements SuperblocksParentBridgeInterface {
|
|
34
34
|
navigateTo(url: string, newWindow?: boolean): void;
|
|
@@ -56,5 +56,5 @@ export declare class DeployedParentBridge implements SuperblocksParentBridgeInte
|
|
|
56
56
|
socketError(_message: string): void;
|
|
57
57
|
addComponentToAiContext(_sourceId: SbElement): void;
|
|
58
58
|
toggleComponentInAiContext(_sourceId: SbElement): void;
|
|
59
|
-
|
|
59
|
+
setAiContextMode(_mode: AiContextMode): void;
|
|
60
60
|
}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
import { AiContextMode } from "@superblocksteam/library-shared/types";
|
|
1
2
|
import type { SbElement } from "@superblocksteam/library-shared/types";
|
|
2
3
|
export declare class AiManager {
|
|
3
4
|
private _isTaggingEnabled;
|
|
4
5
|
private _isEditing;
|
|
5
6
|
private _editingComponents;
|
|
6
|
-
private
|
|
7
|
+
private _contextMode;
|
|
7
8
|
private _targetedComponents;
|
|
8
9
|
constructor();
|
|
9
10
|
getIsTaggingEnabled(): boolean;
|
|
10
11
|
setIsTaggingEnabled(isTaggingEnabled: boolean): void;
|
|
11
|
-
|
|
12
|
+
getAiContextMode(): AiContextMode;
|
|
13
|
+
shouldToggleComponentInAiContext(): boolean;
|
|
12
14
|
getTargetedComponents(): `SB-${string}`[];
|
|
13
15
|
isEditingComponent(id: SbElement): boolean;
|
|
14
16
|
startEditing(): void;
|
|
15
17
|
setEditingComponents(components: SbElement[]): void;
|
|
16
18
|
finishEditing(): void;
|
|
17
|
-
|
|
19
|
+
setAiContextMode(mode: AiContextMode, components?: SbElement[]): void;
|
|
18
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AiContextMode, type SbElement, type SbInstance } from "@superblocksteam/library-shared/types";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import type { RootType } from "./interaction-layer.jsx";
|
|
3
4
|
import type { IdentifierInfo } from "../lib/internal-details/lib/features/name-manager.js";
|
|
4
|
-
import type { SbElement, SbInstance } from "@superblocksteam/library-shared/types";
|
|
5
5
|
type SelectionInfo = {
|
|
6
6
|
sourceId: SbElement;
|
|
7
7
|
instanceId: SbInstance;
|
|
@@ -32,7 +32,7 @@ export declare const useSelectionElements: (params: {
|
|
|
32
32
|
targetedSourceIds: SbElement[];
|
|
33
33
|
rootType: RootType;
|
|
34
34
|
rootId: SbInstance;
|
|
35
|
-
|
|
35
|
+
aiContextMode: AiContextMode;
|
|
36
36
|
}) => SelectionInfo[];
|
|
37
37
|
export declare const InteractionRectTargetBorder: ({ instanceId, }: {
|
|
38
38
|
instanceId: SbInstance;
|
|
@@ -2,7 +2,7 @@ import { type SuperblocksParentBridgeInterface } from "./base-editor-bridge.js";
|
|
|
2
2
|
import type { FromChildToParentMessageTypesMap } from "../lib/index.js";
|
|
3
3
|
import type { StreamEvent, RouteInfo } from "../lib/internal-details/lib/types.js";
|
|
4
4
|
import type { PropertiesPanelDefinition } from "@superblocksteam/library-shared/props";
|
|
5
|
-
import type { EditOperationPayload, EditOperationType, GeneratedTheme, SbElement, Theme } from "@superblocksteam/library-shared/types";
|
|
5
|
+
import type { AiContextMode, EditOperationPayload, EditOperationType, GeneratedTheme, SbElement, Theme } from "@superblocksteam/library-shared/types";
|
|
6
6
|
export declare class SuperblocksEditorBridge implements SuperblocksParentBridgeInterface {
|
|
7
7
|
private static instance;
|
|
8
8
|
private messagesToSend;
|
|
@@ -32,7 +32,7 @@ export declare class SuperblocksEditorBridge implements SuperblocksParentBridgeI
|
|
|
32
32
|
updateRoute(routeInfo: RouteInfo): void;
|
|
33
33
|
addComponentToAiContext(sourceId: SbElement): void;
|
|
34
34
|
toggleComponentInAiContext(sourceId: SbElement): void;
|
|
35
|
-
|
|
35
|
+
setAiContextMode(mode: AiContextMode): void;
|
|
36
36
|
socketError(message: string): void;
|
|
37
37
|
private queueMessage;
|
|
38
38
|
private sendImmediate;
|
|
@@ -4,6 +4,11 @@ export type ApiResult<T = any> = {
|
|
|
4
4
|
data?: T;
|
|
5
5
|
error?: string;
|
|
6
6
|
};
|
|
7
|
+
type ApiDependency = {
|
|
8
|
+
apiName: string;
|
|
9
|
+
params: string[];
|
|
10
|
+
dependencies: string[];
|
|
11
|
+
};
|
|
7
12
|
declare class ApiManager {
|
|
8
13
|
readonly rootStore: RootStore;
|
|
9
14
|
agentUrls: string[];
|
|
@@ -13,9 +18,18 @@ declare class ApiManager {
|
|
|
13
18
|
private apiNameToDepCandidates;
|
|
14
19
|
private apiNameToApiReferences;
|
|
15
20
|
private runningApiControllers;
|
|
21
|
+
private waitForInitApiPromise;
|
|
16
22
|
constructor(rootStore: RootStore);
|
|
17
23
|
setTokens(token: string, accessToken: string): void;
|
|
18
24
|
isInitialized(): boolean;
|
|
25
|
+
private awaitInitApiIfNeeded;
|
|
26
|
+
loadApiManifest({ apis, apiDependencies, }: {
|
|
27
|
+
apis?: Record<string, {
|
|
28
|
+
api: DeleteMeLibraryApi;
|
|
29
|
+
scopeId: string;
|
|
30
|
+
}>;
|
|
31
|
+
apiDependencies?: ApiDependency[];
|
|
32
|
+
}): void;
|
|
19
33
|
setAllApis(apis: Record<string, {
|
|
20
34
|
api: DeleteMeLibraryApi;
|
|
21
35
|
scopeId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropertiesPanelDefinition } from "@superblocksteam/library-shared/props";
|
|
2
|
-
import type { UrlState, AppToEditorMessage, DeleteMeLibraryApi, EditOperationPayload, EditOperationType, PayloadAction, PropertyInfo, SbElement, SourceLocation, TransactionInfo } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { UrlState, AppToEditorMessage, DeleteMeLibraryApi, EditOperationPayload, EditOperationType, PayloadAction, PropertyInfo, SbElement, SourceLocation, TransactionInfo, AiContextMode } from "@superblocksteam/library-shared/types";
|
|
3
3
|
import type { OrchestratorViewMode, PlaceholderInfo } from "@superblocksteam/shared";
|
|
4
4
|
import type { XYCoord } from "react-dnd";
|
|
5
5
|
export type ExecutionError = {
|
|
@@ -103,12 +103,9 @@ export type AiUpdatesPayload = {
|
|
|
103
103
|
type: "update-editing-entities";
|
|
104
104
|
components: SbElement[];
|
|
105
105
|
} | {
|
|
106
|
-
type: "set-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
type: "set-target-mode";
|
|
110
|
-
isTargetMode: true;
|
|
111
|
-
components: SbElement[];
|
|
106
|
+
type: "set-ai-context-mode";
|
|
107
|
+
mode: AiContextMode;
|
|
108
|
+
components?: SbElement[];
|
|
112
109
|
} | {
|
|
113
110
|
type: "set-tagging-enabled";
|
|
114
111
|
isTaggingEnabled: boolean;
|
|
@@ -120,8 +117,8 @@ export type AiUpdatesPayload = {
|
|
|
120
117
|
type: "toggle-component-in-context";
|
|
121
118
|
component: SbElement;
|
|
122
119
|
} | {
|
|
123
|
-
type: "set-
|
|
124
|
-
|
|
120
|
+
type: "set-ai-context-mode";
|
|
121
|
+
mode: AiContextMode;
|
|
125
122
|
};
|
|
126
123
|
};
|
|
127
124
|
export type FromParentToChildMessageTypesMap = {
|
|
@@ -269,6 +266,16 @@ export type FromChildToParentMessageTypesMap = {
|
|
|
269
266
|
message: any;
|
|
270
267
|
apiName: string;
|
|
271
268
|
};
|
|
269
|
+
"authenticate-api-request": {
|
|
270
|
+
apiId: string;
|
|
271
|
+
callbackId: string;
|
|
272
|
+
};
|
|
273
|
+
"set-apis-deployed-mode": {
|
|
274
|
+
apis: Array<DeleteMeLibraryApi & {
|
|
275
|
+
scopeId: string;
|
|
276
|
+
}>;
|
|
277
|
+
callbackId: string;
|
|
278
|
+
};
|
|
272
279
|
/**
|
|
273
280
|
* Notify the parent of a route change
|
|
274
281
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.25-next.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@react-hook/resize-observer": "1.2.6",
|
|
40
40
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
41
41
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
42
|
-
"@superblocksteam/library-shared": "2.0.
|
|
43
|
-
"@superblocksteam/shared": "0.
|
|
42
|
+
"@superblocksteam/library-shared": "2.0.25-next.0",
|
|
43
|
+
"@superblocksteam/shared": "0.9362.0",
|
|
44
44
|
"antd": "4.24.15",
|
|
45
45
|
"apca-w3": "^0.1.9",
|
|
46
46
|
"clsx": "^2.1.1",
|