@superblocksteam/library 2.0.8-next.8 → 2.0.8

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 (42) hide show
  1. package/dist/{allPaths-BlqXGY7i.js → allPaths-Cei4E473.js} +2 -2
  2. package/dist/{allPaths-BlqXGY7i.js.map → allPaths-Cei4E473.js.map} +1 -1
  3. package/dist/{allPaths-CntrivuU.js → allPaths-IKDt3cd_.js} +2 -2
  4. package/dist/{allPaths-CntrivuU.js.map → allPaths-IKDt3cd_.js.map} +1 -1
  5. package/dist/{allPathsLoader-5qc08otC.js → allPathsLoader-D_cBFX7b.js} +3 -3
  6. package/dist/{allPathsLoader-5qc08otC.js.map → allPathsLoader-D_cBFX7b.js.map} +1 -1
  7. package/dist/{allPathsLoader-DSvDWPTu.js → allPathsLoader-mTE2bVLJ.js} +3 -3
  8. package/dist/{allPathsLoader-DSvDWPTu.js.map → allPathsLoader-mTE2bVLJ.js.map} +1 -1
  9. package/dist/{devtools-consolidated-F9ZtVbBI.js → devtools-consolidated-BZt1bNF_.js} +2 -2
  10. package/dist/{devtools-consolidated-F9ZtVbBI.js.map → devtools-consolidated-BZt1bNF_.js.map} +1 -1
  11. package/dist/{index-CQyG8q_M.js → index-C7Zt4bkH.js} +57 -62
  12. package/dist/{index-CQyG8q_M.js.map → index-C7Zt4bkH.js.map} +1 -1
  13. package/dist/index.js +5 -5
  14. package/dist/{splitPathsBySizeLoader-BrjoROLc.js → splitPathsBySizeLoader-BNHfwA8Q.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-BrjoROLc.js.map → splitPathsBySizeLoader-BNHfwA8Q.js.map} +1 -1
  16. package/dist/{splitPathsBySizeLoader-BxSGidzh.js → splitPathsBySizeLoader-D7Yo0qy6.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-BxSGidzh.js.map → splitPathsBySizeLoader-D7Yo0qy6.js.map} +1 -1
  18. package/dist-types/lib/index.d.ts +2 -2
  19. package/dist-types/lib/internal-details/scope/scope.d.ts +3 -3
  20. package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +1 -1
  21. package/dist-types/lib/user-facing/components/checkbox/index.d.ts +1 -1
  22. package/dist-types/lib/user-facing/components/checkbox/props.d.ts +1 -1
  23. package/dist-types/lib/user-facing/components/checkbox/types.d.ts +1 -1
  24. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +1 -1
  25. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -1
  26. package/dist-types/lib/user-facing/components/date-picker/types.d.ts +1 -1
  27. package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +1 -1
  28. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +1 -1
  29. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +1 -1
  30. package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
  31. package/dist-types/lib/user-facing/components/input/index.d.ts +1 -1
  32. package/dist-types/lib/user-facing/components/input/props.d.ts +1 -1
  33. package/dist-types/lib/user-facing/components/input/types.d.ts +1 -1
  34. package/dist-types/lib/user-facing/components/switch/index.d.ts +1 -1
  35. package/dist-types/lib/user-facing/components/switch/props.d.ts +1 -1
  36. package/dist-types/lib/user-facing/components/switch/switch-component.d.ts +1 -1
  37. package/dist-types/lib/user-facing/components/switch/types.d.ts +1 -1
  38. package/dist-types/lib/user-facing/components/table/types.d.ts +1 -1
  39. package/dist-types/lib/user-facing/entities/timer/index.d.ts +2 -2
  40. package/dist-types/lib/user-facing/entities/variable/index.d.ts +6 -6
  41. package/dist-types/lib/user-facing/entities/variable/props.d.ts +2 -2
  42. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a0 as clientExports } from "./index-CQyG8q_M.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, s, q, A, ak, al, S, am, e, an, ao, k, f, T, N, 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-CQyG8q_M.js";
1
+ import { a0 as clientExports } from "./index-C7Zt4bkH.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-C7Zt4bkH.js";
3
3
  const createRoot = clientExports.createRoot;
4
4
  export {
5
5
  a1 as Await,
@@ -45,20 +45,20 @@ export {
45
45
  u as SbApi,
46
46
  R as SbEvent,
47
47
  v2 as SbProvider,
48
- s as SbTimer,
49
- q as SbVariable,
50
- A as SbVariablePersistence,
51
48
  ak as Scripts,
52
49
  al as ScrollRestoration,
53
50
  S as Section,
54
51
  am as ServerRouter,
55
52
  e as Slideout,
53
+ q as StateVar,
54
+ A as StateVarPersistence,
56
55
  an as StaticRouter,
57
56
  ao as StaticRouterProvider,
58
57
  k as Switch,
59
58
  f as Table,
60
59
  T as Text,
61
60
  N as Theme,
61
+ s as Timer,
62
62
  ap as UNSAFE_DataRouterContext,
63
63
  aq as UNSAFE_DataRouterStateContext,
64
64
  ar as UNSAFE_ErrorResponseImpl,
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-CQyG8q_M.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-C7Zt4bkH.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-BrjoROLc.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-BNHfwA8Q.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-BrjoROLc.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-BNHfwA8Q.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-CQyG8q_M.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-C7Zt4bkH.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-BxSGidzh.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-D7Yo0qy6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-BxSGidzh.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-D7Yo0qy6.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]}
@@ -19,8 +19,8 @@ export { DatePicker } from "./user-facing/components/date-picker/index.jsx";
19
19
  export { Switch } from "./user-facing/components/switch/index.jsx";
20
20
  export { Icon } from "./user-facing/components/icon/index.jsx";
21
21
  export { Image } from "./user-facing/components/image/index.jsx";
22
- export { SbVariable, SbVariablePersistence, } from "./user-facing/entities/variable/index.js";
23
- export { SbTimer } from "./user-facing/entities/timer/index.js";
22
+ export { StateVar, StateVarPersistence, } from "./user-facing/entities/variable/index.js";
23
+ export { Timer } from "./user-facing/entities/timer/index.js";
24
24
  export { SbApi } from "./user-facing/entities/api/index.js";
25
25
  export { default as MakeEditableWithSuperblocks } from "./user-facing/sb-provider.jsx";
26
26
  export { default as SbProvider } from "./user-facing/sb-provider.jsx";
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  import type { SbApi } from "../../user-facing/entities/api/index.js";
3
- import type { SbTimer } from "../../user-facing/entities/timer/index.js";
4
- import type { SbVariable } from "../../user-facing/entities/variable/index.js";
3
+ import type { Timer } from "../../user-facing/entities/timer/index.js";
4
+ import type { StateVar } from "../../user-facing/entities/variable/index.js";
5
5
  import type { ScopeInstance } from "../../user-facing/state/types.js";
6
6
  import type { SbEvent } from "../entities.js";
7
7
  import type { ScopeOptions } from "@superblocksteam/library-shared/types";
8
- export type ScopedEntity = ReturnType<typeof SbTimer> | ReturnType<typeof SbVariable> | ReturnType<typeof SbEvent> | ReturnType<typeof SbApi>;
8
+ export type ScopedEntity = ReturnType<typeof Timer> | ReturnType<typeof StateVar> | ReturnType<typeof SbEvent> | ReturnType<typeof SbApi>;
9
9
  export type Scope = {
10
10
  [key: string]: ScopedEntity;
11
11
  };
@@ -9,7 +9,7 @@ export type ValidationErrors = {
9
9
  export declare const getInputValidationErrors: (props: {
10
10
  text?: string;
11
11
  inputType?: string;
12
- isRequired?: boolean;
12
+ required?: boolean;
13
13
  customValidationRule?: string;
14
14
  customErrorMessage?: string;
15
15
  maxLength?: number;
@@ -27,7 +27,7 @@ export declare const Checkbox: import("react").FC<import("../../properties-panel
27
27
  interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
28
28
  customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
29
29
  customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
30
- isRequired: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
30
+ required: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
31
31
  isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
32
32
  errorMessagePlacement: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true, undefined>;
33
33
  }>;
@@ -28,7 +28,7 @@ export declare const propertiesDefinition: {
28
28
  interaction: Section<Record<string, Prop<any, any, undefined>> & {
29
29
  customValidationRule: Prop<string, true, undefined>;
30
30
  customErrorMessage: Prop<string, true, undefined>;
31
- isRequired: Prop<boolean, false, undefined>;
31
+ required: Prop<boolean, false, undefined>;
32
32
  isDisabled: Prop<boolean, true, undefined>;
33
33
  errorMessagePlacement: Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true, undefined>;
34
34
  }>;
@@ -8,7 +8,7 @@ export interface CheckboxComponentProps {
8
8
  isLoading: boolean;
9
9
  isDisabled?: boolean;
10
10
  isValid?: boolean;
11
- isRequired?: boolean;
11
+ required?: boolean;
12
12
  labelProps?: TypographyProps;
13
13
  minHeight?: number;
14
14
  errorMessages?: string[];
@@ -48,7 +48,7 @@ export declare const DatePicker: React.FC<import("../../properties-panel/props-b
48
48
  interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
49
49
  customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
50
50
  customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
51
- isRequired: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
51
+ required: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
52
52
  minDate: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
53
53
  maxDate: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
54
54
  isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
@@ -50,7 +50,7 @@ export declare const propertiesDefinition: {
50
50
  interaction: Section<Record<string, Prop<any, any, undefined>> & {
51
51
  customValidationRule: Prop<string, true, undefined>;
52
52
  customErrorMessage: Prop<string, true, undefined>;
53
- isRequired: Prop<boolean, true, undefined>;
53
+ required: Prop<boolean, true, undefined>;
54
54
  minDate: Prop<string, false, undefined>;
55
55
  maxDate: Prop<string, false, undefined>;
56
56
  isDisabled: Prop<boolean, true, undefined>;
@@ -18,7 +18,7 @@ export interface DatePickerComponentProps {
18
18
  displayDateFormat?: string;
19
19
  displayTimezone?: string;
20
20
  timezone?: string;
21
- isRequired?: boolean;
21
+ required?: boolean;
22
22
  showTimezone?: boolean;
23
23
  forceOpen?: boolean;
24
24
  icon?: string;
@@ -66,7 +66,7 @@ export interface BaseDropDownComponentProps extends ComponentBaseProps {
66
66
  parentId?: string;
67
67
  options: DropdownOption[];
68
68
  isLoading: boolean;
69
- isRequired?: boolean;
69
+ required?: boolean;
70
70
  isInvalid?: boolean;
71
71
  validationError?: string;
72
72
  width?: number;
@@ -45,7 +45,7 @@ export declare const Dropdown: React.FC<import("../../properties-panel/props-bui
45
45
  allowSelectAll: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
46
46
  allowClearing: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
47
47
  clientSideFiltering: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
48
- isRequired: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
48
+ required: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
49
49
  isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
50
50
  errorMessagePlacement: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true, undefined>;
51
51
  }>;
@@ -46,7 +46,7 @@ export declare const propertiesDefinition: {
46
46
  allowSelectAll: Prop<boolean, true, undefined>;
47
47
  allowClearing: Prop<boolean, true, undefined>;
48
48
  clientSideFiltering: Prop<boolean, true, undefined>;
49
- isRequired: Prop<boolean, true, undefined>;
49
+ required: Prop<boolean, true, undefined>;
50
50
  isDisabled: Prop<boolean, true, undefined>;
51
51
  errorMessagePlacement: Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true, undefined>;
52
52
  }>;
@@ -57,7 +57,7 @@ export interface DropdownComponentState {
57
57
  export interface BaseProps {
58
58
  defaultOptionValue?: string | string[];
59
59
  multiselect?: boolean;
60
- isRequired?: boolean;
60
+ required?: boolean;
61
61
  clientSideFiltering?: boolean;
62
62
  isVertical?: boolean;
63
63
  label?: string;
@@ -73,7 +73,7 @@ export declare const Input: import("react").FC<import("../../properties-panel/pr
73
73
  customValidationRule: import("../../properties-panel/props-builder.js").Prop<any, false, undefined>;
74
74
  customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
75
75
  isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
76
- isRequired: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
76
+ required: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
77
77
  }>;
78
78
  events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
79
79
  onTextChanged: import("../../properties-panel/props-builder.js").Prop<import("../../event-flow.js").EventFlow, false, undefined>;
@@ -77,7 +77,7 @@ export declare const propertiesDefinition: {
77
77
  customValidationRule: Prop<any, false, undefined>;
78
78
  customErrorMessage: Prop<string, true, undefined>;
79
79
  isDisabled: Prop<boolean, true, undefined>;
80
- isRequired: Prop<boolean, true, undefined>;
80
+ required: Prop<boolean, true, undefined>;
81
81
  }>;
82
82
  events: Section<Record<string, Prop<any, any, undefined>> & {
83
83
  onTextChanged: Prop<import("../../event-flow.js").EventFlow, false, undefined>;
@@ -14,7 +14,7 @@ export interface InputGroupStylingProps {
14
14
  defaultBorderWidth: Dim<"px">;
15
15
  padding?: Padding;
16
16
  }
17
- export type InputComponentProps = Pick<InputWidgetProps, "inputType" | "numberFormatting" | "isDisabled" | "backgroundColor" | "border" | "labelWidth" | "label" | "stepper" | "stepSize" | "onSubmit" | "isTouched" | "onFocusOut" | "onFocus" | "isValid" | "minimumFractionDigits" | "maximumFractionDigits" | "preventFormattingWhileTyping" | "defaultValue" | "isInvalid" | "isLoading" | "icon" | "iconPosition" | "currency" | "currencyCodeDisplay" | "minLength" | "maxLength" | "errorMessagePlacement" | "showError" | "isFocused" | "isRequired"> & {
17
+ export type InputComponentProps = Pick<InputWidgetProps, "inputType" | "numberFormatting" | "isDisabled" | "backgroundColor" | "border" | "labelWidth" | "label" | "stepper" | "stepSize" | "onSubmit" | "isTouched" | "onFocusOut" | "onFocus" | "isValid" | "minimumFractionDigits" | "maximumFractionDigits" | "preventFormattingWhileTyping" | "defaultValue" | "isInvalid" | "isLoading" | "icon" | "iconPosition" | "currency" | "currencyCodeDisplay" | "minLength" | "maxLength" | "errorMessagePlacement" | "showError" | "isFocused" | "required"> & {
18
18
  placeholder: string;
19
19
  value: string;
20
20
  inputGroupStylingProps: InputGroupStylingProps;
@@ -28,7 +28,7 @@ export declare const Switch: import("react").FC<import("../../properties-panel/p
28
28
  interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
29
29
  customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
30
30
  customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
31
- isRequired: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
31
+ required: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
32
32
  isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
33
33
  errorMessagePlacement: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true, undefined>;
34
34
  }>;
@@ -29,7 +29,7 @@ export declare const propertiesDefinition: {
29
29
  interaction: Section<Record<string, Prop<any, any, undefined>> & {
30
30
  customValidationRule: Prop<string, true, undefined>;
31
31
  customErrorMessage: Prop<string, true, undefined>;
32
- isRequired: Prop<boolean, false, undefined>;
32
+ required: Prop<boolean, false, undefined>;
33
33
  isDisabled: Prop<boolean, true, undefined>;
34
34
  errorMessagePlacement: Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true, undefined>;
35
35
  }>;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  import type { SwitchComponentProps } from "./types.js";
3
3
  export declare const SWITCH_LABEL_GAP = 8;
4
- declare const SwitchComponent: React.MemoExoticComponent<({ label, labelPosition, isChecked, isDisabled, isRequired, onSwitchChange, isLoading, labelProps, errorMessagePlacement, errorMessages, labelWidth, showError, isFitContentHeight, }: SwitchComponentProps) => React.JSX.Element>;
4
+ declare const SwitchComponent: React.MemoExoticComponent<({ label, labelPosition, isChecked, isDisabled, required, onSwitchChange, isLoading, labelProps, errorMessagePlacement, errorMessages, labelWidth, showError, isFitContentHeight, }: SwitchComponentProps) => React.JSX.Element>;
5
5
  export default SwitchComponent;
@@ -7,7 +7,7 @@ export interface SwitchComponentProps {
7
7
  labelWidth?: Dim<"fit" | "fill">;
8
8
  isChecked: boolean;
9
9
  isDisabled: boolean;
10
- isRequired: boolean;
10
+ required: boolean;
11
11
  onSwitchChange: (isChecked: boolean) => void;
12
12
  isLoading: boolean;
13
13
  labelProps: TypographyProps;
@@ -337,7 +337,7 @@ type ColumnEditConfigs = {
337
337
  editTwentyFourHourTime?: boolean;
338
338
  defaultValue?: any;
339
339
  isEditableOnInsertion?: boolean;
340
- isRequiredOnInsertion?: boolean;
340
+ requiredOnInsertion?: boolean;
341
341
  };
342
342
  export type UnknownRow = Record<string, unknown>;
343
343
  export type UnknownRows = Array<UnknownRow>;
@@ -6,9 +6,9 @@ type Props = {
6
6
  startOnPageLoad?: boolean;
7
7
  onFire?: EventFlow;
8
8
  };
9
- export declare const SbTimer: (args: RawPropsToExternal<Props>) => {
9
+ export declare const Timer: (args: RawPropsToExternal<Props>) => {
10
10
  [sbEntitySymbol]: true;
11
- type: "SbTimer";
11
+ type: "Timer";
12
12
  intervalMs: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<number> | undefined;
13
13
  startOnPageLoad: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<boolean> | undefined;
14
14
  onFire: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<EventFlow> | undefined;
@@ -1,14 +1,14 @@
1
- import { sbEntitySymbol, SbVariablePersistence } from "@superblocksteam/library-shared/types";
1
+ import { sbEntitySymbol, StateVarPersistence } from "@superblocksteam/library-shared/types";
2
2
  import type { RawPropsToExternal } from "../../properties-panel/props-builder.js";
3
- export { SbVariablePersistence };
3
+ export { StateVarPersistence };
4
4
  type Props<T = any> = {
5
5
  defaultValue: T;
6
- persistence?: SbVariablePersistence;
6
+ persistence?: StateVarPersistence;
7
7
  };
8
- export declare const SbVariable: (args: RawPropsToExternal<Props<any>>) => {
8
+ export declare const StateVar: (args: RawPropsToExternal<Props<any>>) => {
9
9
  [sbEntitySymbol]: true;
10
- type: "SbVariable";
10
+ type: "StateVar";
11
11
  defaultValue: any;
12
12
  value: any;
13
- persistence: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<SbVariablePersistence> | undefined;
13
+ persistence: import("../../../internal-details/lib/evaluator/base-entity-manager.js").SingleInputProp<StateVarPersistence> | undefined;
14
14
  } & import("@superblocksteam/library-shared/types").AnonymousSbEntity;
@@ -1,10 +1,10 @@
1
- import { SbVariablePersistence } from "@superblocksteam/library-shared/types";
1
+ import { StateVarPersistence } from "@superblocksteam/library-shared/types";
2
2
  import { Section, Prop } from "../../properties-panel/props-builder.js";
3
3
  export declare const propertiesDefinition: {
4
4
  general: Section<Record<string, Prop<any, any, undefined>> & {
5
5
  defaultValue: Prop<any, false, undefined>;
6
6
  value: Prop<any, false, undefined>;
7
- persistence: Prop<SbVariablePersistence, true, undefined>;
7
+ persistence: Prop<StateVarPersistence, true, undefined>;
8
8
  }>;
9
9
  functions: Section<Record<string, Prop<any, any, undefined>> & {
10
10
  set: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[value: any], void>, true, undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.8-next.8",
3
+ "version": "2.0.8",
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.8-next.8",
36
+ "@superblocksteam/library-shared": "2.0.8",
37
37
  "@superblocksteam/shared": "0.9160.0",
38
38
  "antd": "4.24.15",
39
39
  "apca-w3": "^0.1.9",