@superblocksteam/library 2.0.6-next.76 → 2.0.6-next.78
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-DpSNY-0N.js → allPaths-B_vs0o-m.js} +2 -2
- package/dist/{allPaths-DpSNY-0N.js.map → allPaths-B_vs0o-m.js.map} +1 -1
- package/dist/{allPaths-CWcHm67Z.js → allPaths-BfJ-bKGt.js} +2 -2
- package/dist/{allPaths-CWcHm67Z.js.map → allPaths-BfJ-bKGt.js.map} +1 -1
- package/dist/{allPathsLoader-JnfELLa1.js → allPathsLoader-DX9JilCw.js} +3 -3
- package/dist/{allPathsLoader-Wyunhtdo.js.map → allPathsLoader-DX9JilCw.js.map} +1 -1
- package/dist/{allPathsLoader-Wyunhtdo.js → allPathsLoader-DmTEeMSZ.js} +3 -3
- package/dist/{allPathsLoader-JnfELLa1.js.map → allPathsLoader-DmTEeMSZ.js.map} +1 -1
- package/dist/{devtools-consolidated-DLUPZPVk.js → devtools-consolidated-CWXIC81a.js} +2 -2
- package/dist/{devtools-consolidated-DLUPZPVk.js.map → devtools-consolidated-CWXIC81a.js.map} +1 -1
- package/dist/{index-COENR0Wl.js → index-CFUi7uyC.js} +95 -53
- package/dist/{index-COENR0Wl.js.map → index-CFUi7uyC.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-PMGtD99k.js → splitPathsBySizeLoader-Bu33O-BR.js} +2 -2
- package/dist/{splitPathsBySizeLoader-PMGtD99k.js.map → splitPathsBySizeLoader-Bu33O-BR.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-GKgHRKX5.js → splitPathsBySizeLoader-DYETI6Yi.js} +2 -2
- package/dist/{splitPathsBySizeLoader-GKgHRKX5.js.map → splitPathsBySizeLoader-DYETI6Yi.js.map} +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +2 -1
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +1 -1
- package/dist-types/lib/triggers/registry.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/props.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +0 -3
- package/dist-types/lib/user-facing/components/table/types.d.ts +2 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a0 as clientExports } from "./index-
|
|
2
|
-
import { a1, a2, Y, P, Q, a3, O, a4, a5, a6, a7, a8, a9, C, aa, ab, ac, ad, ae, $, af, W, ag, ah, ai, aj, Z, B, S, s, d, e, q, u, n, R, D, w, x, f, i, g, C as C2, c, k, v, l, h, z, y, A, ak, al, am, an, ao, T, 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, E, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, N, aZ, a_, a$, b0, b1, b2, H, b3, b4, b5, b6, b7, K, b8, b9, F, ba, bb, bc, r, M, L, bd, be, bf, X, G, J, 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-CFUi7uyC.js";
|
|
2
|
+
import { a1, a2, Y, P, Q, a3, O, a4, a5, a6, a7, a8, a9, C, aa, ab, ac, ad, ae, $, af, W, ag, ah, ai, aj, Z, B, S, s, d, e, q, u, n, R, D, w, x, f, i, g, C as C2, c, k, v, l, h, z, y, A, ak, al, am, an, ao, T, 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, E, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, N, aZ, a_, a$, b0, b1, b2, H, b3, b4, b5, b6, b7, K, b8, b9, F, ba, bb, bc, r, M, L, bd, be, bf, X, G, J, 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-CFUi7uyC.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, I as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-CFUi7uyC.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-Bu33O-BR.js.map
|
package/dist/{splitPathsBySizeLoader-PMGtD99k.js.map → splitPathsBySizeLoader-Bu33O-BR.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-Bu33O-BR.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-CFUi7uyC.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-DYETI6Yi.js.map
|
package/dist/{splitPathsBySizeLoader-GKgHRKX5.js.map → splitPathsBySizeLoader-DYETI6Yi.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-DYETI6Yi.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]}
|
|
@@ -92,10 +92,11 @@ export interface IEntityManager {
|
|
|
92
92
|
args?: ARGS;
|
|
93
93
|
excludeState?: boolean;
|
|
94
94
|
}): void;
|
|
95
|
-
computeValue<T>(params: {
|
|
95
|
+
computeValue<T, ARGS extends any[] = any[]>(params: {
|
|
96
96
|
scopeId: ScopeId;
|
|
97
97
|
name: Name;
|
|
98
98
|
value: SingleInputProp<T>;
|
|
99
99
|
validator?: ValidateFn<T>;
|
|
100
|
+
args?: ARGS;
|
|
100
101
|
}): T;
|
|
101
102
|
}
|
|
@@ -83,11 +83,12 @@ export declare class EntityManager implements IEntityManager {
|
|
|
83
83
|
excludeState?: boolean;
|
|
84
84
|
args?: ARGS;
|
|
85
85
|
}): void;
|
|
86
|
-
computeValue<T>(params: {
|
|
86
|
+
computeValue<T, ARGS extends any[] = any[]>(params: {
|
|
87
87
|
scopeId: ScopeId;
|
|
88
88
|
name: Name;
|
|
89
89
|
value: SingleInputProp<T>;
|
|
90
90
|
validator?: ValidateFn<T>;
|
|
91
|
+
args?: ARGS;
|
|
91
92
|
}): T;
|
|
92
93
|
private getOrCreateAtom;
|
|
93
94
|
}
|
|
@@ -12,7 +12,7 @@ export interface ShowAlertStep extends BaseStepDef {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const ShowAlertTrigger: {
|
|
14
14
|
type: "showAlert";
|
|
15
|
-
execute(
|
|
15
|
+
execute(context: ExecutionContext, step: ShowAlertStep): Promise<void>;
|
|
16
16
|
create(message: ValueInputProp<string>, alertType: NotificationType, alertDuration?: number, alertPosition?: NotificationPosition): {
|
|
17
17
|
type: "showAlert";
|
|
18
18
|
message: ValueInputProp<string>;
|
|
@@ -151,7 +151,7 @@ declare const EventRegistry: {
|
|
|
151
151
|
};
|
|
152
152
|
readonly showAlert: {
|
|
153
153
|
type: "showAlert";
|
|
154
|
-
execute(
|
|
154
|
+
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/show-alert.js").ShowAlertStep): Promise<void>;
|
|
155
155
|
create(message: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>, alertType: import("../user-facing/utils/notification.jsx").NotificationType, alertDuration?: number, alertPosition?: import("../user-facing/utils/notification.jsx").NotificationPosition): {
|
|
156
156
|
type: "showAlert";
|
|
157
157
|
message: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>;
|
|
@@ -331,10 +331,10 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
331
331
|
}>;
|
|
332
332
|
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
333
333
|
onRowClick: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
334
|
-
|
|
334
|
+
onRowSelect: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
335
335
|
onPageChange: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
onFiltersChange: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
337
|
+
onSearchTextChange: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
338
338
|
}>;
|
|
339
339
|
derived: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
340
340
|
tableDataWithInserts: import("../../properties-panel/props-builder.js").Prop<any[], true, undefined>;
|
|
@@ -334,10 +334,10 @@ export declare const propertiesDefinition: {
|
|
|
334
334
|
}>;
|
|
335
335
|
events: Section<Record<string, Prop<any, any, undefined>> & {
|
|
336
336
|
onRowClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
337
|
-
|
|
337
|
+
onRowSelect: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
338
338
|
onPageChange: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
onFiltersChange: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
340
|
+
onSearchTextChange: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
341
341
|
}>;
|
|
342
342
|
derived: Section<Record<string, Prop<any, any, undefined>> & {
|
|
343
343
|
tableDataWithInserts: Prop<any[], true, undefined>;
|
|
@@ -80,9 +80,6 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
80
80
|
[key: string]: any;
|
|
81
81
|
};
|
|
82
82
|
rowIndex: number | undefined;
|
|
83
|
-
currentRow: {
|
|
84
|
-
[key: string]: any;
|
|
85
|
-
};
|
|
86
83
|
};
|
|
87
84
|
handleRowClick: (_rowData: Record<string, unknown>, index: number) => void;
|
|
88
85
|
updatePageNumber: (pageNo: number) => void;
|
|
@@ -107,7 +107,6 @@ export type TableInserts = {
|
|
|
107
107
|
export type RowContext = {
|
|
108
108
|
row: undefined | Record<string, unknown>;
|
|
109
109
|
rowIndex: undefined | number;
|
|
110
|
-
currentRow: undefined | Record<string, unknown>;
|
|
111
110
|
};
|
|
112
111
|
export type ColumnContext = {
|
|
113
112
|
value: any;
|
|
@@ -121,14 +120,14 @@ interface TableFunctions {
|
|
|
121
120
|
selectedRowIndices?: number[];
|
|
122
121
|
selectedRows?: Array<Record<string, unknown>>;
|
|
123
122
|
}, rowContext: RowContext, triggerEventHandlers: boolean) => void;
|
|
124
|
-
setPageNo: (value: number,
|
|
123
|
+
setPageNo: (value: number, triggerEventHandlers?: boolean) => void;
|
|
125
124
|
setTableFilters: (columnId: string, filter: ColumnFilter, rowContext: RowContext) => void;
|
|
126
125
|
setColumnOrder: (value: string[]) => void;
|
|
127
126
|
setSortedColumn: (value: undefined | TableSortColumn) => void;
|
|
128
127
|
setColumnSizeMap: (value: {
|
|
129
128
|
[key: string]: number;
|
|
130
129
|
}) => void;
|
|
131
|
-
setSearchText: (value: string
|
|
130
|
+
setSearchText: (value: string) => void;
|
|
132
131
|
onRowClicked: (context: RowContext, onComplete?: () => void) => void;
|
|
133
132
|
selectAllRows: (rowIndices: number[], rows: Array<Record<string, unknown>>, rowContext: RowContext) => void;
|
|
134
133
|
deselectAllRows: (rowContext: RowContext) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.6-next.
|
|
3
|
+
"version": "2.0.6-next.78",
|
|
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.6-next.
|
|
36
|
+
"@superblocksteam/library-shared": "2.0.6-next.78",
|
|
37
37
|
"@superblocksteam/shared": "0.9160.0",
|
|
38
38
|
"antd": "4.24.15",
|
|
39
39
|
"apca-w3": "^0.1.9",
|