@superblocksteam/library 2.0.22-next.8 → 2.0.22
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-DKEHs9YJ.js → allPaths-B9OWg2Ag.js} +2 -2
- package/dist/{allPaths-DKEHs9YJ.js.map → allPaths-B9OWg2Ag.js.map} +1 -1
- package/dist/{allPaths-DsrJj8BL.js → allPaths-BdyHhiSP.js} +2 -2
- package/dist/{allPaths-DsrJj8BL.js.map → allPaths-BdyHhiSP.js.map} +1 -1
- package/dist/{allPathsLoader-DMBt-Tc-.js → allPathsLoader-BtgjFyVa.js} +3 -3
- package/dist/{allPathsLoader-DMBt-Tc-.js.map → allPathsLoader-BtgjFyVa.js.map} +1 -1
- package/dist/{allPathsLoader-DRstWNEh.js → allPathsLoader-DJlT8mrP.js} +3 -3
- package/dist/{allPathsLoader-DRstWNEh.js.map → allPathsLoader-DJlT8mrP.js.map} +1 -1
- package/dist/{devtools-consolidated-BJvJoJfp.js → devtools-consolidated-BjYg1oqR.js} +2 -2
- package/dist/{devtools-consolidated-BJvJoJfp.js.map → devtools-consolidated-BjYg1oqR.js.map} +1 -1
- package/dist/{index-JY3etSiF.js → index-DHQr-mBR.js} +8005 -8632
- package/dist/{index-JY3etSiF.js.map → index-DHQr-mBR.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-DTryuHmr.js → splitPathsBySizeLoader-B-gyQgh7.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DTryuHmr.js.map → splitPathsBySizeLoader-B-gyQgh7.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-DWrPoEUW.js → splitPathsBySizeLoader-B5pSpcx1.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DWrPoEUW.js.map → splitPathsBySizeLoader-B5pSpcx1.js.map} +1 -1
- package/dist-types/edit-mode/edit-store.d.ts +0 -6
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/root-store.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/types.d.ts +0 -4
- package/dist-types/lib/tracing/context-utils.d.ts +4 -0
- package/dist-types/lib/triggers/implementations/call-function.d.ts +15 -0
- package/dist-types/lib/user-facing/entities/api/props.d.ts +2 -2
- package/dist-types/lib/user-facing/entities/api/suspensible-api.d.ts +3 -2
- package/dist-types/lib/user-facing/entities/timer/props.d.ts +3 -3
- package/dist-types/lib/user-facing/entities/variable/props.d.ts +2 -2
- package/dist-types/lib/user-facing/event-flow.d.ts +2 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +16 -2
- package/dist-types/lib/user-facing/types.d.ts +1 -0
- package/dist-types/lib/utils.d.ts +4 -0
- package/package.json +8 -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-DHQr-mBR.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-DHQr-mBR.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-DHQr-mBR.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-B-gyQgh7.js.map
|
package/dist/{splitPathsBySizeLoader-DTryuHmr.js.map → splitPathsBySizeLoader-B-gyQgh7.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-B-gyQgh7.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-DHQr-mBR.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-B5pSpcx1.js.map
|
package/dist/{splitPathsBySizeLoader-DWrPoEUW.js.map → splitPathsBySizeLoader-B5pSpcx1.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-B5pSpcx1.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]}
|
|
@@ -17,7 +17,6 @@ export declare class EditStore {
|
|
|
17
17
|
connectionManager: ConnectionManager;
|
|
18
18
|
ai: AiManager;
|
|
19
19
|
isInitialized: boolean;
|
|
20
|
-
recordingInitialized: boolean;
|
|
21
20
|
currentImportError: {
|
|
22
21
|
importPath: string;
|
|
23
22
|
error: string;
|
|
@@ -33,11 +32,6 @@ export declare class EditStore {
|
|
|
33
32
|
triggerViteMessage<T extends ViteMessageKind, Message extends Extract<ViteMessage, {
|
|
34
33
|
kind: T;
|
|
35
34
|
}>>(kind: T, message: Message): void;
|
|
36
|
-
startRecording(recording: {
|
|
37
|
-
userId: string;
|
|
38
|
-
appId: string;
|
|
39
|
-
sessionRecordingKey: string;
|
|
40
|
-
}): void;
|
|
41
35
|
}
|
|
42
36
|
/**
|
|
43
37
|
* Get the global EditStore instance
|
|
@@ -30,7 +30,7 @@ declare class ApiManager {
|
|
|
30
30
|
oldName: string;
|
|
31
31
|
scopeId: string;
|
|
32
32
|
}): void;
|
|
33
|
-
runApi(apiName: string, scopeId: string): Promise<ApiResult>;
|
|
33
|
+
runApi(apiName: string, scopeId: string, traceHeaders?: Record<string, string>): Promise<ApiResult>;
|
|
34
34
|
private findError;
|
|
35
35
|
cancelApi(apiName: string, _scopeId: string): Promise<void>;
|
|
36
36
|
}
|
|
@@ -19,6 +19,7 @@ export type ExecuteV2ApiParams = {
|
|
|
19
19
|
viewMode: ViewMode;
|
|
20
20
|
accessToken: string;
|
|
21
21
|
token: string;
|
|
22
|
+
traceHeaders?: Record<string, string>;
|
|
22
23
|
};
|
|
23
24
|
export declare function executeV2Api(params: ExecuteV2ApiParams): Promise<ExecutionResponse | undefined | void>;
|
|
24
25
|
export declare const HttpMethod: {
|
|
@@ -2,7 +2,7 @@ import type { ManagedPropsList, PropertiesDefinition } from "../../../user-facin
|
|
|
2
2
|
import type { EditorTemplate } from "../../sb-wrapper.jsx";
|
|
3
3
|
import type { RootStore } from "../root-store.js";
|
|
4
4
|
import type { EntityDefinition } from "@superblocksteam/library-shared/props";
|
|
5
|
-
import type { Catalog, ComponentRegistryShareState, CatalogWithInternalDetails, EditorConfig } from "@superblocksteam/library-shared/types";
|
|
5
|
+
import type { Catalog, ComponentRegistryShareState, CatalogWithInternalDetails, EditorConfig, EntityCallableFunction } from "@superblocksteam/library-shared/types";
|
|
6
6
|
import type * as React from "react";
|
|
7
7
|
export type Type = {
|
|
8
8
|
isSb: symbol;
|
|
@@ -58,4 +58,5 @@ export declare class ComponentRegistry implements ComponentRegistryShareState {
|
|
|
58
58
|
* `columns.columnName.label` becomes `columns.*.label`, for record properties.
|
|
59
59
|
*/
|
|
60
60
|
getPropertyWithRecordIdentifier(type: string, path: string): string;
|
|
61
|
+
get componentsWithCallFunctions(): Record<string, EntityCallableFunction[]>;
|
|
61
62
|
}
|
|
@@ -12,7 +12,7 @@ declare class RootStore {
|
|
|
12
12
|
editStore?: EditStore;
|
|
13
13
|
locationStore: LocationStore;
|
|
14
14
|
applicationId: string | undefined;
|
|
15
|
-
|
|
15
|
+
windowOriginUrl: string | undefined;
|
|
16
16
|
private editorRegisteredCallbacks;
|
|
17
17
|
private apisLoaded;
|
|
18
18
|
private pageScopeLoaded;
|
|
@@ -128,11 +128,8 @@ export type FromParentToChildMessageTypesMap = {
|
|
|
128
128
|
"sb-init": {
|
|
129
129
|
peerId: string;
|
|
130
130
|
userId?: string;
|
|
131
|
-
appId: string;
|
|
132
|
-
sessionRecordingKey?: string;
|
|
133
131
|
};
|
|
134
132
|
"sb-bootstrap-response": {
|
|
135
|
-
userId?: string;
|
|
136
133
|
appId: string;
|
|
137
134
|
token: string;
|
|
138
135
|
accessToken: string;
|
|
@@ -140,7 +137,6 @@ export type FromParentToChildMessageTypesMap = {
|
|
|
140
137
|
agentUrl?: string;
|
|
141
138
|
agentUrls: string[];
|
|
142
139
|
logContext: Record<string, unknown>;
|
|
143
|
-
sessionRecordingKey?: string;
|
|
144
140
|
};
|
|
145
141
|
"sb-editor-request-bootstrap": void;
|
|
146
142
|
"sb-update-active-agents": {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Context, Span } from "@opentelemetry/api";
|
|
2
|
+
export declare function getContextFromTraceHeaders(traceHeaders: Record<string, string>): Context;
|
|
3
|
+
export declare function createIframeSpan(name: string, attributes: Record<string, any>, parentContext?: Context): Span;
|
|
4
|
+
export declare function getTraceContextHeadersFromSpan(span: Span): Record<string, string>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { BaseStepDef } from "@superblocksteam/library-shared/types";
|
|
3
|
+
interface InternalCallFunctionStep extends BaseStepDef {
|
|
4
|
+
type: typeof TriggerStepType.CALL_FUNCTION;
|
|
5
|
+
exec: () => unknown;
|
|
6
|
+
}
|
|
7
|
+
export declare const CallFunctionTrigger: {
|
|
8
|
+
type: "callFunction";
|
|
9
|
+
create(fn: () => unknown): {
|
|
10
|
+
type: "callFunction";
|
|
11
|
+
exec: () => unknown;
|
|
12
|
+
};
|
|
13
|
+
execute(_ctx: import("../base.js").ExecutionContext, step: InternalCallFunctionStep): Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -16,8 +16,8 @@ export declare const propertiesDefinition: {
|
|
|
16
16
|
isLoading: Prop<boolean, true, undefined>;
|
|
17
17
|
}>;
|
|
18
18
|
functions: Section<Record<string, Prop<any, any, undefined>> & {
|
|
19
|
-
run:
|
|
20
|
-
cancel:
|
|
19
|
+
run: import("../../properties-panel/props-builder.js").FunctionProp<[traceHeaders?: Record<string, string> | undefined], Promise<any>>;
|
|
20
|
+
cancel: import("../../properties-panel/props-builder.js").FunctionProp<[], Promise<void>>;
|
|
21
21
|
}>;
|
|
22
22
|
internal: Section<Record<string, Prop<any, any, undefined>> & {
|
|
23
23
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SbApiRunOptions } from "@superblocksteam/library-shared/types";
|
|
1
2
|
export declare class SuspensibleAPI<TData = any, TArgs extends any[] = any[]> {
|
|
2
3
|
private _response;
|
|
3
4
|
private _error;
|
|
@@ -6,7 +7,7 @@ export declare class SuspensibleAPI<TData = any, TArgs extends any[] = any[]> {
|
|
|
6
7
|
private _runFn;
|
|
7
8
|
private _cancelFn;
|
|
8
9
|
constructor({ runFn, cancelFn, }: {
|
|
9
|
-
runFn: (...args: TArgs) => Promise<TData>;
|
|
10
|
+
runFn: (options?: SbApiRunOptions, ...args: TArgs) => Promise<TData>;
|
|
10
11
|
cancelFn: (...args: TArgs) => Promise<void>;
|
|
11
12
|
});
|
|
12
13
|
/**
|
|
@@ -15,6 +16,6 @@ export declare class SuspensibleAPI<TData = any, TArgs extends any[] = any[]> {
|
|
|
15
16
|
get response(): TData | undefined;
|
|
16
17
|
get isLoading(): boolean;
|
|
17
18
|
get error(): Error | undefined;
|
|
18
|
-
run(...args: TArgs): Promise<TData>;
|
|
19
|
+
run(options?: SbApiRunOptions, ...args: TArgs): Promise<TData>;
|
|
19
20
|
cancel(...args: TArgs): Promise<void>;
|
|
20
21
|
}
|
|
@@ -12,8 +12,8 @@ export declare const propertiesDefinition: {
|
|
|
12
12
|
isRunning: Prop<boolean, true, undefined>;
|
|
13
13
|
}>;
|
|
14
14
|
functions: Section<Record<string, Prop<any, any, undefined>> & {
|
|
15
|
-
start:
|
|
16
|
-
stop:
|
|
17
|
-
toggle:
|
|
15
|
+
start: import("../../properties-panel/props-builder.js").FunctionProp<[], void>;
|
|
16
|
+
stop: import("../../properties-panel/props-builder.js").FunctionProp<[], void>;
|
|
17
|
+
toggle: import("../../properties-panel/props-builder.js").FunctionProp<[], void>;
|
|
18
18
|
}>;
|
|
19
19
|
};
|
|
@@ -7,7 +7,7 @@ export declare const propertiesDefinition: {
|
|
|
7
7
|
persistence: Prop<StateVarPersistence, true, undefined>;
|
|
8
8
|
}>;
|
|
9
9
|
functions: Section<Record<string, Prop<any, any, undefined>> & {
|
|
10
|
-
set:
|
|
11
|
-
reset:
|
|
10
|
+
set: import("../../properties-panel/props-builder.js").FunctionProp<[value: any], void>;
|
|
11
|
+
reset: import("../../properties-panel/props-builder.js").FunctionProp<[], void>;
|
|
12
12
|
}>;
|
|
13
13
|
};
|
|
@@ -68,6 +68,8 @@ declare class EventFlow implements IEventFlow<StepDef, ScopedState, ValueInputPr
|
|
|
68
68
|
setStateVar(stateVar: WithBindingIdentifier, opts: {
|
|
69
69
|
value: ValueInputProp;
|
|
70
70
|
}): this;
|
|
71
|
+
callFunction(component: () => unknown): this;
|
|
72
|
+
static callFunction(component: () => unknown): EventFlow;
|
|
71
73
|
static setComponentProperty(component: WithBindingIdentifier, opts: {
|
|
72
74
|
property: string;
|
|
73
75
|
value: ValueInputProp;
|
|
@@ -37,6 +37,9 @@ type ManagedProp<T extends DataType = DataType> = PropertyForData<T> & {
|
|
|
37
37
|
*/
|
|
38
38
|
contextual?: boolean;
|
|
39
39
|
computedArgs?: EvaluateOrValueComputedArgs;
|
|
40
|
+
isMetaProp?: boolean;
|
|
41
|
+
isFunctionProp?: boolean;
|
|
42
|
+
hasActionPanel?: boolean;
|
|
40
43
|
};
|
|
41
44
|
type ManagedPropsList = Array<ManagedProp & {
|
|
42
45
|
propertiesPanelDisplay?: PropertiesPanelDisplay<any>;
|
|
@@ -162,7 +165,7 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false, _
|
|
|
162
165
|
static literal<T extends Readonly<string | number | boolean>>(value: T): Prop<T, true>;
|
|
163
166
|
static event(): Prop<EventFlow>;
|
|
164
167
|
static children(): Prop<any>;
|
|
165
|
-
static function<ARGS extends any[] = any[], RETURN = any>(implementation: EntityFunction<ARGS, RETURN>):
|
|
168
|
+
static function<ARGS extends any[] = any[], RETURN = any>(implementation: EntityFunction<ARGS, RETURN>): FunctionProp<ARGS, RETURN>;
|
|
166
169
|
/**
|
|
167
170
|
* Creates an internal property that is not exposed in the entity's public interface,
|
|
168
171
|
* not tracked for reactivity/syncing, and not serialized. This is useful for
|
|
@@ -278,6 +281,17 @@ declare class ChildrenProp extends Prop<unknown, boolean> {
|
|
|
278
281
|
typeString: "children";
|
|
279
282
|
constructor();
|
|
280
283
|
}
|
|
284
|
+
export interface ActionPanel {
|
|
285
|
+
arguments?: Record<string, Prop<any>>;
|
|
286
|
+
}
|
|
287
|
+
declare class FunctionProp<ARGS extends any[] = any[], RETURN = any> extends Prop<EntityFunction<ARGS, RETURN>, true> {
|
|
288
|
+
typeString: "function";
|
|
289
|
+
private _actionPanel;
|
|
290
|
+
constructor(implementation: EntityFunction<ARGS, RETURN>);
|
|
291
|
+
actionPanel(panel?: ActionPanel): this;
|
|
292
|
+
getActionPanel(): ActionPanel | undefined;
|
|
293
|
+
hasActionPanel(): boolean;
|
|
294
|
+
}
|
|
281
295
|
export type UnionVariant<SHARED extends Record<string, Prop<any>>> = {
|
|
282
296
|
[K in keyof SHARED]: Prop<any>;
|
|
283
297
|
};
|
|
@@ -291,4 +305,4 @@ declare class UnionProp<SHARED extends Record<string, Prop<unknown, boolean>>, V
|
|
|
291
305
|
getProps(): SHARED & Record<string, Prop<any, false, undefined>>;
|
|
292
306
|
}
|
|
293
307
|
export type { Relation, ManagedProp, ManagedPropsList, InternalProps, InternalPropsWithOptional, ExternalProps, EntityProps, MergeSections, ExtractProps, ExtractPropType, PropertiesDefinition, };
|
|
294
|
-
export { Prop, CompositeProp, RecordProp, UnionProp, ChildrenProp, Section, PropsPanelCategory, createManagedPropsList, };
|
|
308
|
+
export { Prop, CompositeProp, RecordProp, UnionProp, ChildrenProp, FunctionProp, Section, PropsPanelCategory, createManagedPropsList, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { WebTracerProvider } from "@opentelemetry/sdk-trace-web";
|
|
2
|
+
export declare function initTracerProviderWithOrigin(windowOriginUrl: string): WebTracerProvider;
|
|
3
|
+
export declare function getTracer(name?: string): import("@opentelemetry/api").Tracer;
|
|
4
|
+
export declare const tracer: import("@opentelemetry/api").Tracer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.22
|
|
3
|
+
"version": "2.0.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
27
27
|
"@oddbird/css-anchor-positioning": "^0.4.0",
|
|
28
28
|
"@opentelemetry/api": "^1.9.0",
|
|
29
|
+
"@opentelemetry/core": "1.27.0",
|
|
30
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.55.0",
|
|
31
|
+
"@opentelemetry/resources": "1.27.0",
|
|
32
|
+
"@opentelemetry/sdk-trace-base": "1.27.0",
|
|
33
|
+
"@opentelemetry/sdk-trace-web": "1.27.0",
|
|
34
|
+
"@opentelemetry/semantic-conventions": "1.27.0",
|
|
29
35
|
"@popperjs/core": "^2.11.7",
|
|
30
36
|
"@radix-ui/colors": "^3.0.0",
|
|
31
37
|
"@radix-ui/react-context-menu": "^2.2.2",
|
|
@@ -33,7 +39,7 @@
|
|
|
33
39
|
"@react-hook/resize-observer": "1.2.6",
|
|
34
40
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
35
41
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
36
|
-
"@superblocksteam/library-shared": "2.0.22
|
|
42
|
+
"@superblocksteam/library-shared": "2.0.22",
|
|
37
43
|
"@superblocksteam/shared": "0.9160.0",
|
|
38
44
|
"antd": "4.24.15",
|
|
39
45
|
"apca-w3": "^0.1.9",
|
|
@@ -57,7 +63,6 @@
|
|
|
57
63
|
"moment": "2.29.4",
|
|
58
64
|
"moment-timezone": "0.5.46",
|
|
59
65
|
"normalize.css": "8.0.1",
|
|
60
|
-
"posthog-js": "^1.258.3",
|
|
61
66
|
"react-dnd": "^16.0.1",
|
|
62
67
|
"react-hotkeys-hook": "3.3.1",
|
|
63
68
|
"react-json-view-lite": "^2.4.1",
|