@superblocksteam/library 2.0.9-next.19 → 2.0.9-next.3
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-CW3F1I_u.js → allPaths-DVQ_5nnE.js} +2 -2
- package/dist/{allPaths-CW3F1I_u.js.map → allPaths-DVQ_5nnE.js.map} +1 -1
- package/dist/{allPaths-P4XCJuqq.js → allPaths-DgbOR4LI.js} +2 -2
- package/dist/{allPaths-P4XCJuqq.js.map → allPaths-DgbOR4LI.js.map} +1 -1
- package/dist/{allPathsLoader-KAe-oTuv.js → allPathsLoader-S_l8yQbg.js} +3 -3
- package/dist/{allPathsLoader-Cz5VsVki.js.map → allPathsLoader-S_l8yQbg.js.map} +1 -1
- package/dist/{allPathsLoader-Cz5VsVki.js → allPathsLoader-rgoJpLB7.js} +3 -3
- package/dist/{allPathsLoader-KAe-oTuv.js.map → allPathsLoader-rgoJpLB7.js.map} +1 -1
- package/dist/{devtools-consolidated-CllMcdxZ.js → devtools-consolidated-CCq3BVCW.js} +2 -2
- package/dist/{devtools-consolidated-CllMcdxZ.js.map → devtools-consolidated-CCq3BVCW.js.map} +1 -1
- package/dist/{index-CMtDuuoU.js → index-Ctg-O1r-.js} +56 -99
- package/dist/{index-CMtDuuoU.js.map → index-Ctg-O1r-.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-B19wHjBp.js → splitPathsBySizeLoader-CxVQbYg6.js} +2 -2
- package/dist/{splitPathsBySizeLoader-B19wHjBp.js.map → splitPathsBySizeLoader-CxVQbYg6.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-hfvmlX0_.js → splitPathsBySizeLoader-DQ76-x5s.js} +2 -2
- package/dist/{splitPathsBySizeLoader-hfvmlX0_.js.map → splitPathsBySizeLoader-DQ76-x5s.js.map} +1 -1
- package/dist-types/lib/triggers/implementations/set-profile.d.ts +2 -1
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +2 -11
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +4 -6
- package/dist-types/lib/user-facing/components/table/props.d.ts +4 -6
- package/dist-types/lib/user-facing/event-flow.d.ts +2 -2
- package/dist-types/lib/user-facing/properties-panel/properties-panel-definition.d.ts +1 -1
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +0 -15
- package/package.json +2 -2
- package/dist-types/docs-utils/generate-docs-utils.d.ts +0 -27
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a0 as clientExports } from "./index-
|
|
2
|
-
import { a1, a2, B, h, C, c, g, i, Y, D, O, Q, E, a3, L, a4, a5, a6, a7, l, n, d, a8, a9, v, aa, ab, M, ac, ad, ae, $, P, af, W, ag, ah, ai, aj, Z, u, R, v as v2, ak, al, S, am, e, q, A, an, ao, k, f, T, N, s, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, X, w, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, K, aZ, a_, a$, b0, b1, b2, z, b3, b4, b5, b6, b7, G, b8, b9, x, ba, bb, bc, r, J, H, bd, be, bf, y, F, 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, bH, bI, bJ, bK, bL, bM, V, U, bN } from "./index-
|
|
1
|
+
import { a0 as clientExports } from "./index-Ctg-O1r-.js";
|
|
2
|
+
import { a1, a2, B, h, C, c, g, i, Y, D, O, Q, E, a3, L, a4, a5, a6, a7, l, n, d, a8, a9, v, aa, ab, M, ac, ad, ae, $, P, af, W, ag, ah, ai, aj, Z, u, R, v as v2, ak, al, S, am, e, q, A, an, ao, k, f, T, N, s, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, X, w, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, K, aZ, a_, a$, b0, b1, b2, z, b3, b4, b5, b6, b7, G, b8, b9, x, ba, bb, bc, r, J, H, bd, be, bf, y, F, 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, bH, bI, bJ, bK, bL, bM, V, U, bN } from "./index-Ctg-O1r-.js";
|
|
3
3
|
const createRoot = clientExports.createRoot;
|
|
4
4
|
export {
|
|
5
5
|
a1 as Await,
|
|
@@ -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-Ctg-O1r-.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-CxVQbYg6.js.map
|
package/dist/{splitPathsBySizeLoader-B19wHjBp.js.map → splitPathsBySizeLoader-CxVQbYg6.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-CxVQbYg6.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-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-Ctg-O1r-.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-DQ76-x5s.js.map
|
package/dist/{splitPathsBySizeLoader-hfvmlX0_.js.map → splitPathsBySizeLoader-DQ76-x5s.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-DQ76-x5s.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]}
|
|
@@ -3,9 +3,10 @@ import type { SetProfileStep } from "@superblocksteam/library-shared/types";
|
|
|
3
3
|
export declare const SetProfileTrigger: {
|
|
4
4
|
type: "setProfile";
|
|
5
5
|
execute(_context: ExecutionContext, step: SetProfileStep): Promise<void>;
|
|
6
|
-
create(profileId: string,
|
|
6
|
+
create(profileId: string, profileAction: "set" | "unset"): {
|
|
7
7
|
type: "setProfile";
|
|
8
8
|
profileId: string;
|
|
9
|
+
profileAction: "unset" | "set";
|
|
9
10
|
action: "unset" | "set";
|
|
10
11
|
};
|
|
11
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Section } from "../../properties-panel/props-builder.js";
|
|
2
2
|
import type { EventFlow } from "../../event-flow.js";
|
|
3
|
-
import type { Prop, InternalProps
|
|
3
|
+
import type { Prop, InternalProps } from "../../properties-panel/props-builder.js";
|
|
4
4
|
import type { ReactNode } from "react";
|
|
5
5
|
declare const defaultSections: {
|
|
6
6
|
appearance: Section<Record<string, Prop<any, any, undefined>> & {
|
|
@@ -24,20 +24,11 @@ declare const defaultSections: {
|
|
|
24
24
|
isVisible: Prop<boolean, true, undefined>;
|
|
25
25
|
}>;
|
|
26
26
|
};
|
|
27
|
-
type RemoveIndexSignature<T> = {
|
|
28
|
-
[K in keyof T as K extends `${infer _}` ? K : never]: T[K];
|
|
29
|
-
};
|
|
30
|
-
type DisallowedKeys = keyof RemoveIndexSignature<ExtractProps<typeof defaultSections, "AlwaysOptional", false>>;
|
|
31
|
-
type CustomComponentPropertiesDefinition = {
|
|
32
|
-
[K in DisallowedKeys]?: never;
|
|
33
|
-
} & {
|
|
34
|
-
[key: string]: Prop<any>;
|
|
35
|
-
};
|
|
36
27
|
type WrappedEventProps<IP extends InternalProps<any>> = {
|
|
37
28
|
[K in keyof IP]: IP[K] extends EventFlow | undefined ? () => Promise<void> : IP[K];
|
|
38
29
|
};
|
|
39
30
|
type SectionProps<PD extends Record<string, Prop<any>>> = Record<string, Section<PD>> & typeof defaultSections;
|
|
40
31
|
export type CustomComponentProps<PD extends Record<string, Prop<any>>, SP extends SectionProps<PD> = SectionProps<PD>, IP extends InternalProps<SP> = InternalProps<SP>> = WrappedEventProps<IP>;
|
|
41
|
-
export declare function registerComponent<PD extends
|
|
32
|
+
export declare function registerComponent<PD extends Record<string, Prop<any>>>(name: string, propertiesDefinition: PD, component: React.FC<CustomComponentProps<PD>>): import("react").FC<any>;
|
|
42
33
|
export declare function isCustomComponent(child: ReactNode): boolean;
|
|
43
34
|
export {};
|
|
@@ -4,7 +4,7 @@ export declare const Dropdown: React.FC<import("../../properties-panel/props-bui
|
|
|
4
4
|
general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
5
5
|
label: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
6
6
|
options: import("../../properties-panel/props-builder.js").Prop<import("./types.js").UnknownOption[], false, undefined>;
|
|
7
|
-
|
|
7
|
+
defaultOptionValue: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
|
|
8
8
|
transformation: import("../../properties-panel/props-builder.js").Prop<{
|
|
9
9
|
value: string;
|
|
10
10
|
label: string;
|
|
@@ -5,7 +5,7 @@ export declare const propertiesDefinition: {
|
|
|
5
5
|
general: Section<Record<string, Prop<any, any, undefined>> & {
|
|
6
6
|
label: Prop<string, true, undefined>;
|
|
7
7
|
options: Prop<UnknownOption[], false, undefined>;
|
|
8
|
-
|
|
8
|
+
defaultOptionValue: Prop<string, false, undefined>;
|
|
9
9
|
transformation: Prop<{
|
|
10
10
|
value: string;
|
|
11
11
|
label: string;
|
|
@@ -55,7 +55,7 @@ export interface DropdownComponentState {
|
|
|
55
55
|
selectedIndexArr?: number[];
|
|
56
56
|
}
|
|
57
57
|
export interface BaseProps {
|
|
58
|
-
|
|
58
|
+
defaultOptionValue?: string | string[];
|
|
59
59
|
multiselect?: boolean;
|
|
60
60
|
required?: boolean;
|
|
61
61
|
clientSideFiltering?: boolean;
|
|
@@ -324,12 +324,10 @@ export declare const Table: import("react").FC<import("../../properties-panel/pr
|
|
|
324
324
|
maxLinesPerRow: import("../../properties-panel/props-builder.js").Prop<number, true, undefined>;
|
|
325
325
|
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
326
326
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
|
|
327
|
-
searchProps: import("../../properties-panel/props-builder.js").
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, undefined>;
|
|
332
|
-
}>;
|
|
327
|
+
"searchProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
328
|
+
"searchProps.backgroundColor": import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
329
|
+
"searchProps.border": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false, undefined>;
|
|
330
|
+
"searchProps.borderRadius": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, undefined>;
|
|
333
331
|
}>;
|
|
334
332
|
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
335
333
|
onRowClick: import("../../properties-panel/props-builder.js").Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
@@ -327,12 +327,10 @@ export declare const propertiesDefinition: {
|
|
|
327
327
|
maxLinesPerRow: Prop<number, true, undefined>;
|
|
328
328
|
loading: Prop<boolean, true, undefined>;
|
|
329
329
|
isVisible: Prop<boolean, false, undefined>;
|
|
330
|
-
searchProps: import("
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, undefined>;
|
|
335
|
-
}>;
|
|
330
|
+
"searchProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
331
|
+
"searchProps.backgroundColor": Prop<string, true, undefined>;
|
|
332
|
+
"searchProps.border": Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false, undefined>;
|
|
333
|
+
"searchProps.borderRadius": Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, undefined>;
|
|
336
334
|
}>;
|
|
337
335
|
events: Section<Record<string, Prop<any, any, undefined>> & {
|
|
338
336
|
onRowClick: Prop<import("../../event-flow.js").EventFlow, false, undefined>;
|
|
@@ -50,8 +50,8 @@ declare class EventFlow implements IEventFlow<StepDef, ScopedState, ValueInputPr
|
|
|
50
50
|
}): this;
|
|
51
51
|
static showAlert(message: ValueInputProp<string>, alertType: NotificationType, alertDuration?: number, alertPosition?: NotificationPosition): EventFlow;
|
|
52
52
|
showAlert(message: ValueInputProp<string>, alertType: NotificationType, alertDuration?: number, alertPosition?: NotificationPosition): this;
|
|
53
|
-
static setProfile(profileId: string,
|
|
54
|
-
setProfile(profileId: string,
|
|
53
|
+
static setProfile(profileId: string, profileAction: "set" | "unset"): EventFlow;
|
|
54
|
+
setProfile(profileId: string, profileAction: "set" | "unset"): this;
|
|
55
55
|
static triggerEvent(eventName: string, eventData: Record<string, string>): EventFlow;
|
|
56
56
|
triggerEvent(eventName: string, eventData: Record<string, string>): this;
|
|
57
57
|
static sequence(eventFlows: EventFlow[]): EventFlow;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Section } from "./props-builder.js";
|
|
2
2
|
import type { PropertiesPanelDefinition } from "@superblocksteam/library-shared/props";
|
|
3
3
|
import type { ScopedState, Entity } from "@superblocksteam/library-shared/types";
|
|
4
4
|
declare function createPropertiesPanelDefinition(sections: Record<string, Section>, entity?: Entity, scopedState?: ScopedState): PropertiesPanelDefinition;
|
|
@@ -247,21 +247,6 @@ declare class CompositeProp<T extends CompositeInputs> extends Prop<unknown, boo
|
|
|
247
247
|
constructor(props: T);
|
|
248
248
|
getProps(): T;
|
|
249
249
|
toDefinition(entity: Entity, scopedState: ScopedState): WidgetPropertyDefinition<DataType> | undefined;
|
|
250
|
-
propertiesPanelChildrenDisplayMode(): ({
|
|
251
|
-
type: "inline";
|
|
252
|
-
} | {
|
|
253
|
-
type: "popover";
|
|
254
|
-
title?: string;
|
|
255
|
-
panelIdPropertyName?: string;
|
|
256
|
-
titlePropertyName?: string;
|
|
257
|
-
}) | ((this: any, state: any, path: string) => ({
|
|
258
|
-
type: "inline";
|
|
259
|
-
} | {
|
|
260
|
-
type: "popover";
|
|
261
|
-
title?: string;
|
|
262
|
-
panelIdPropertyName?: string;
|
|
263
|
-
titlePropertyName?: string;
|
|
264
|
-
}) | undefined) | undefined;
|
|
265
250
|
}
|
|
266
251
|
/**
|
|
267
252
|
* See {@link Prop.record}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.9-next.
|
|
3
|
+
"version": "2.0.9-next.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -33,7 +33,7 @@
|
|
|
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.9-next.
|
|
36
|
+
"@superblocksteam/library-shared": "2.0.9-next.3",
|
|
37
37
|
"@superblocksteam/shared": "0.9160.0",
|
|
38
38
|
"antd": "4.24.15",
|
|
39
39
|
"apca-w3": "^0.1.9",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Section } from "../lib/user-facing/properties-panel/props-builder.js";
|
|
2
|
-
/**
|
|
3
|
-
* Check if a property should be excluded from documentation generation
|
|
4
|
-
*/
|
|
5
|
-
export declare function isPropertyExcluded(componentName: string, propertyName: string): boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Get custom type definition for a property, if one exists
|
|
8
|
-
*/
|
|
9
|
-
export declare function getCustomPropertyType(componentName: string, propertyName: string): string | undefined;
|
|
10
|
-
export declare function formatDefaultValue(value: any): string | undefined;
|
|
11
|
-
export declare function getDefaultValue(prop: any, propName: string): any;
|
|
12
|
-
export declare function guessTypeString(prop: any, key: string, componentName?: string): string;
|
|
13
|
-
export declare function generateInterfaceFromNestedProps(nestedProps: any, interfaceName: string, componentName?: string): string;
|
|
14
|
-
export declare function getRecordValueType(prop: any, key: string, componentName?: string): string;
|
|
15
|
-
export type PropContainer = {
|
|
16
|
-
name: string;
|
|
17
|
-
type: string;
|
|
18
|
-
defaultValue: any;
|
|
19
|
-
};
|
|
20
|
-
export declare function generateComponentDocs(component: {
|
|
21
|
-
name: string;
|
|
22
|
-
props: Record<string, Section<any>>;
|
|
23
|
-
}): {
|
|
24
|
-
lines: string[];
|
|
25
|
-
derivedProps: PropContainer[];
|
|
26
|
-
metaProps: PropContainer[];
|
|
27
|
-
};
|