@superblocksteam/library 2.0.0-next.71 → 2.0.0-next.72
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-C6OJ6mru.js → allPaths-BEMBVFG6.js} +2 -2
- package/dist/{allPaths-C6OJ6mru.js.map → allPaths-BEMBVFG6.js.map} +1 -1
- package/dist/{allPaths-gAit3yMA.js → allPaths-D1hW6X12.js} +2 -2
- package/dist/{allPaths-gAit3yMA.js.map → allPaths-D1hW6X12.js.map} +1 -1
- package/dist/{allPathsLoader-BJfnsyfx.js → allPathsLoader-CqWCwT3j.js} +3 -3
- package/dist/{allPathsLoader-Bjuqgh93.js.map → allPathsLoader-CqWCwT3j.js.map} +1 -1
- package/dist/{allPathsLoader-Bjuqgh93.js → allPathsLoader-DgTxmOj3.js} +3 -3
- package/dist/{allPathsLoader-BJfnsyfx.js.map → allPathsLoader-DgTxmOj3.js.map} +1 -1
- package/dist/{index-B2rMu95r.js → index-DVBMCzww.js} +60 -31
- package/dist/{index-B2rMu95r.js.map → index-DVBMCzww.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-bQPBH87C.js → splitPathsBySizeLoader-4ldgFy1R.js} +2 -2
- package/dist/{splitPathsBySizeLoader-bQPBH87C.js.map → splitPathsBySizeLoader-4ldgFy1R.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-DJBHYgBR.js → splitPathsBySizeLoader-c4raUE-g.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DJBHYgBR.js.map → splitPathsBySizeLoader-c4raUE-g.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 +4 -1
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +2 -1
- package/dist-types/lib/user-facing/state/sb-computed.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IconSvgPaths16 } from "./index-BxzKdlqH.js";
|
|
2
2
|
import { I as IconSvgPaths20 } from "./index-DIn-fanT.js";
|
|
3
|
-
import { p as pascalCase, b as IconSize } from "./index-
|
|
3
|
+
import { p as pascalCase, b as IconSize } from "./index-DVBMCzww.js";
|
|
4
4
|
function getIconPaths(name, size) {
|
|
5
5
|
var key = pascalCase(name);
|
|
6
6
|
return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
getIconPaths,
|
|
15
15
|
iconNameToPathsRecordKey
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=allPaths-
|
|
17
|
+
//# sourceMappingURL=allPaths-BEMBVFG6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-BEMBVFG6.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/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 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 { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":[],"mappings":";;;AA6BO,SAAS,aAAa,MAAM,MAAM;AACrC,MAAI,MAAM,WAAW,IAAI;AACzB,SAAO,SAAS,SAAS,WAAW,eAAe,GAAG,IAAI,eAAe,GAAG;AAChF;AAOO,SAAS,yBAAyB,MAAM;AAC3C,SAAO,WAAW,IAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IconSvgPaths16 } from "./index-DIJYif9G.js";
|
|
2
2
|
import { I as IconSvgPaths20 } from "./index-LHtbj0-V.js";
|
|
3
|
-
import { p as pascalCase, I as IconSize } from "./index-
|
|
3
|
+
import { p as pascalCase, I as IconSize } from "./index-DVBMCzww.js";
|
|
4
4
|
function getIconPaths(name, size) {
|
|
5
5
|
var key = pascalCase(name);
|
|
6
6
|
return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
getIconPaths,
|
|
15
15
|
iconNameToPathsRecordKey
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=allPaths-
|
|
17
|
+
//# sourceMappingURL=allPaths-D1hW6X12.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-D1hW6X12.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/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 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 { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":[],"mappings":";;;AA6BO,SAAS,aAAa,MAAM,MAAM;AACrC,MAAI,MAAM,WAAW,IAAI;AACzB,SAAO,SAAS,SAAS,WAAW,eAAe,GAAG,IAAI,eAAe,GAAG;AAChF;AAOO,SAAS,yBAAyB,MAAM;AAC3C,SAAO,WAAW,IAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-DVBMCzww.js";
|
|
2
2
|
var allPathsLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var getIconPaths;
|
|
@@ -7,7 +7,7 @@ var allPathsLoader = function(name, size) {
|
|
|
7
7
|
case 0:
|
|
8
8
|
return [4, import(
|
|
9
9
|
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
10
|
-
"./allPaths-
|
|
10
|
+
"./allPaths-BEMBVFG6.js"
|
|
11
11
|
)];
|
|
12
12
|
case 1:
|
|
13
13
|
getIconPaths = _a.sent().getIconPaths;
|
|
@@ -19,4 +19,4 @@ var allPathsLoader = function(name, size) {
|
|
|
19
19
|
export {
|
|
20
20
|
allPathsLoader
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=allPathsLoader-
|
|
22
|
+
//# sourceMappingURL=allPathsLoader-CqWCwT3j.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-CqWCwT3j.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/allPathsLoader.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\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":[],"mappings":";AAmBU,IAAC,iBAAiB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAI;AACJ,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,yBAAgB,GAAG,KAAI,EAAI;AAC3B,iBAAO,CAAC,GAAc,aAAa,MAAM,IAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-DVBMCzww.js";
|
|
2
2
|
var allPathsLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var getIconPaths;
|
|
@@ -7,7 +7,7 @@ var allPathsLoader = function(name, size) {
|
|
|
7
7
|
case 0:
|
|
8
8
|
return [4, import(
|
|
9
9
|
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
10
|
-
"./allPaths-
|
|
10
|
+
"./allPaths-D1hW6X12.js"
|
|
11
11
|
)];
|
|
12
12
|
case 1:
|
|
13
13
|
getIconPaths = _a.sent().getIconPaths;
|
|
@@ -19,4 +19,4 @@ var allPathsLoader = function(name, size) {
|
|
|
19
19
|
export {
|
|
20
20
|
allPathsLoader
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=allPathsLoader-
|
|
22
|
+
//# sourceMappingURL=allPathsLoader-DgTxmOj3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-DgTxmOj3.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/allPathsLoader.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\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":[],"mappings":";AAmBU,IAAC,iBAAiB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAI;AACJ,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,yBAAgB,GAAG,KAAI,EAAI;AAC3B,iBAAO,CAAC,GAAc,aAAa,MAAM,IAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -2690,14 +2690,14 @@ function getLoaderFn$1(options) {
|
|
|
2690
2690
|
if (!(loader === "all")) return [3, 3];
|
|
2691
2691
|
return [4, import(
|
|
2692
2692
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
2693
|
-
"./allPathsLoader-
|
|
2693
|
+
"./allPathsLoader-DgTxmOj3.js"
|
|
2694
2694
|
)];
|
|
2695
2695
|
case 2:
|
|
2696
2696
|
return [2, _b2.sent().allPathsLoader];
|
|
2697
2697
|
case 3:
|
|
2698
2698
|
return [4, import(
|
|
2699
2699
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
2700
|
-
"./splitPathsBySizeLoader-
|
|
2700
|
+
"./splitPathsBySizeLoader-c4raUE-g.js"
|
|
2701
2701
|
)];
|
|
2702
2702
|
case 4:
|
|
2703
2703
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -92713,8 +92713,9 @@ hooks.HTML5_FMT = {
|
|
|
92713
92713
|
const Valid = (result) => {
|
|
92714
92714
|
return { valid: true, result };
|
|
92715
92715
|
};
|
|
92716
|
-
const
|
|
92717
|
-
|
|
92716
|
+
const DEFAULT_INVALID_MESSAGE = "Value does not match Required Data Format";
|
|
92717
|
+
const Invalid = (message2 = DEFAULT_INVALID_MESSAGE, invalidValue) => {
|
|
92718
|
+
return { valid: false, message: message2, invalidValue };
|
|
92718
92719
|
};
|
|
92719
92720
|
const VALIDATORS = {
|
|
92720
92721
|
TEXT: (value) => {
|
|
@@ -92733,7 +92734,7 @@ const VALIDATORS = {
|
|
|
92733
92734
|
} catch (e3) {
|
|
92734
92735
|
console.error(`Error when parsing ${value} to string`);
|
|
92735
92736
|
console.error(e3);
|
|
92736
|
-
return Invalid();
|
|
92737
|
+
return Invalid("Invalid string", value);
|
|
92737
92738
|
}
|
|
92738
92739
|
}
|
|
92739
92740
|
return Valid(parsed);
|
|
@@ -92756,16 +92757,16 @@ const VALIDATORS = {
|
|
|
92756
92757
|
try {
|
|
92757
92758
|
new RegExp(result.result);
|
|
92758
92759
|
} catch (_e2) {
|
|
92759
|
-
return Invalid();
|
|
92760
|
+
return Invalid("Invalid regex", value);
|
|
92760
92761
|
}
|
|
92761
92762
|
return Valid(result.result);
|
|
92762
92763
|
}
|
|
92763
|
-
return Invalid();
|
|
92764
|
+
return Invalid("Invalid regex", value);
|
|
92764
92765
|
},
|
|
92765
92766
|
NUMBER: (value) => {
|
|
92766
92767
|
let parsed = value;
|
|
92767
92768
|
if (lodashExports.isUndefined(value)) {
|
|
92768
|
-
return Invalid();
|
|
92769
|
+
return Invalid("Invalid number", value);
|
|
92769
92770
|
}
|
|
92770
92771
|
let isValid3 = lodashExports.isNumber(value);
|
|
92771
92772
|
if (!isValid3) {
|
|
@@ -92775,7 +92776,7 @@ const VALIDATORS = {
|
|
|
92775
92776
|
} catch (e3) {
|
|
92776
92777
|
console.error(`Error when parsing ${value} to number`);
|
|
92777
92778
|
console.error(e3);
|
|
92778
|
-
return Invalid();
|
|
92779
|
+
return Invalid("Invalid number", value);
|
|
92779
92780
|
}
|
|
92780
92781
|
}
|
|
92781
92782
|
return Valid(parsed);
|
|
@@ -92788,14 +92789,14 @@ const VALIDATORS = {
|
|
|
92788
92789
|
},
|
|
92789
92790
|
BOOLEAN: (value) => {
|
|
92790
92791
|
if (lodashExports.isUndefined(value)) {
|
|
92791
|
-
return Invalid();
|
|
92792
|
+
return Invalid(DEFAULT_INVALID_MESSAGE, value);
|
|
92792
92793
|
}
|
|
92793
92794
|
return Valid(Boolean(value));
|
|
92794
92795
|
},
|
|
92795
92796
|
OBJECT: (value) => {
|
|
92796
92797
|
let parsed = value;
|
|
92797
92798
|
if (lodashExports.isUndefined(value)) {
|
|
92798
|
-
return Invalid();
|
|
92799
|
+
return Invalid(DEFAULT_INVALID_MESSAGE, value);
|
|
92799
92800
|
}
|
|
92800
92801
|
let isValid3 = lodashExports.isObject(value);
|
|
92801
92802
|
if (!isValid3) {
|
|
@@ -92805,7 +92806,7 @@ const VALIDATORS = {
|
|
|
92805
92806
|
} catch (e3) {
|
|
92806
92807
|
console.error(`Error when parsing ${value} to object`);
|
|
92807
92808
|
console.error(e3);
|
|
92808
|
-
return Invalid();
|
|
92809
|
+
return Invalid(DEFAULT_INVALID_MESSAGE, value);
|
|
92809
92810
|
}
|
|
92810
92811
|
}
|
|
92811
92812
|
return Valid(parsed);
|
|
@@ -92820,26 +92821,26 @@ const VALIDATORS = {
|
|
|
92820
92821
|
let parsed = value;
|
|
92821
92822
|
try {
|
|
92822
92823
|
if (lodashExports.isUndefined(value)) {
|
|
92823
|
-
return Invalid();
|
|
92824
|
+
return Invalid(DEFAULT_INVALID_MESSAGE, value);
|
|
92824
92825
|
}
|
|
92825
92826
|
if (lodashExports.isString(value)) {
|
|
92826
92827
|
parsed = lib.parse(parsed);
|
|
92827
92828
|
}
|
|
92828
92829
|
if (!Array.isArray(parsed)) {
|
|
92829
|
-
return Invalid();
|
|
92830
|
+
return Invalid(DEFAULT_INVALID_MESSAGE, value);
|
|
92830
92831
|
}
|
|
92831
92832
|
return Valid(parsed);
|
|
92832
92833
|
} catch (e3) {
|
|
92833
92834
|
console.error(e3);
|
|
92834
|
-
return Invalid();
|
|
92835
|
+
return Invalid(DEFAULT_INVALID_MESSAGE, value);
|
|
92835
92836
|
}
|
|
92836
92837
|
},
|
|
92837
92838
|
NUMBER_ARRAY: (value, props) => {
|
|
92838
92839
|
const res = VALIDATORS.ARRAY(value, props);
|
|
92839
92840
|
if (!res.valid) {
|
|
92840
|
-
return Invalid();
|
|
92841
|
+
return Invalid("Invalid number array", value);
|
|
92841
92842
|
} else if (!res.result.every((datum) => typeof datum === "number")) {
|
|
92842
|
-
return Invalid("Not all elements in the array are numbers");
|
|
92843
|
+
return Invalid("Not all elements in the array are numbers", value);
|
|
92843
92844
|
}
|
|
92844
92845
|
return Valid(res.result);
|
|
92845
92846
|
},
|
|
@@ -92849,33 +92850,34 @@ const VALIDATORS = {
|
|
|
92849
92850
|
}
|
|
92850
92851
|
const result = VALIDATORS.NUMBER(value, props);
|
|
92851
92852
|
if (!result.valid) {
|
|
92852
|
-
return Invalid();
|
|
92853
|
+
return Invalid(DEFAULT_INVALID_MESSAGE, value);
|
|
92853
92854
|
}
|
|
92854
92855
|
if (result.result < 0 || result.result > 20) {
|
|
92855
|
-
return Invalid();
|
|
92856
|
+
return Invalid(DEFAULT_INVALID_MESSAGE, value);
|
|
92856
92857
|
}
|
|
92857
92858
|
return Valid(result.result);
|
|
92858
92859
|
},
|
|
92859
92860
|
ICONS: () => {
|
|
92860
|
-
return Invalid("Icons validation not implemented");
|
|
92861
|
+
return Invalid("Icons validation not implemented", void 0);
|
|
92861
92862
|
},
|
|
92862
92863
|
DATE: (value, props) => {
|
|
92863
92864
|
const ISO_DATE_FORMAT2 = "YYYY-MM-DD";
|
|
92864
92865
|
const dateFormat = props.dateFormat ? props.dateFormat : ISO_DATE_FORMAT2;
|
|
92865
92866
|
if (value === void 0) {
|
|
92866
92867
|
return Invalid(
|
|
92867
|
-
"Value does not match Required Data Format" + (props.dateFormat ? props.dateFormat : "")
|
|
92868
|
+
"Value does not match Required Data Format" + (props.dateFormat ? props.dateFormat : ""),
|
|
92869
|
+
value
|
|
92868
92870
|
);
|
|
92869
92871
|
}
|
|
92870
92872
|
const isValid3 = hooks(value, dateFormat).isValid();
|
|
92871
92873
|
if (!isValid3) {
|
|
92872
|
-
return Invalid();
|
|
92874
|
+
return Invalid(DEFAULT_INVALID_MESSAGE, value);
|
|
92873
92875
|
}
|
|
92874
92876
|
return Valid(value);
|
|
92875
92877
|
},
|
|
92876
92878
|
URL_OR_BASE64: (value) => {
|
|
92877
92879
|
if (!value) {
|
|
92878
|
-
return Invalid(
|
|
92880
|
+
return Invalid(DEFAULT_INVALID_MESSAGE, value);
|
|
92879
92881
|
}
|
|
92880
92882
|
const base64Regex = (
|
|
92881
92883
|
// eslint-disable-next-line no-useless-escape
|
|
@@ -92887,11 +92889,11 @@ const VALIDATORS = {
|
|
|
92887
92889
|
try {
|
|
92888
92890
|
const newUrl = new URL(value);
|
|
92889
92891
|
if (newUrl.protocol !== "https:") {
|
|
92890
|
-
return Invalid("Only HTTPS protocol supported");
|
|
92892
|
+
return Invalid("Only HTTPS protocol supported", value);
|
|
92891
92893
|
}
|
|
92892
92894
|
return Valid(newUrl.href);
|
|
92893
92895
|
} catch {
|
|
92894
|
-
return Invalid("Provided URL / Base64 is invalid.");
|
|
92896
|
+
return Invalid("Provided URL / Base64 is invalid.", value);
|
|
92895
92897
|
}
|
|
92896
92898
|
},
|
|
92897
92899
|
URL_FOR_HYPERLINK: (value) => {
|
|
@@ -92901,14 +92903,14 @@ const VALIDATORS = {
|
|
|
92901
92903
|
if (!isRelative) {
|
|
92902
92904
|
const absoluteUrl = new URL(value);
|
|
92903
92905
|
if (absoluteUrl.protocol === "javascript:") {
|
|
92904
|
-
return Invalid(`Invalid protocol ${absoluteUrl.protocol}
|
|
92906
|
+
return Invalid(`Invalid protocol ${absoluteUrl.protocol}`, value);
|
|
92905
92907
|
}
|
|
92906
92908
|
} else if (value && value.startsWith("..")) {
|
|
92907
|
-
return Invalid("Relative URLs cannot start with '..'");
|
|
92909
|
+
return Invalid("Relative URLs cannot start with '..'", value);
|
|
92908
92910
|
}
|
|
92909
92911
|
return Valid(value);
|
|
92910
92912
|
} catch {
|
|
92911
|
-
return Invalid("Provided URL is invalid.");
|
|
92913
|
+
return Invalid("Provided URL is invalid.", value);
|
|
92912
92914
|
}
|
|
92913
92915
|
}
|
|
92914
92916
|
};
|
|
@@ -94270,16 +94272,19 @@ class EntityManager {
|
|
|
94270
94272
|
constructor(componentRegistry, options) {
|
|
94271
94273
|
__publicField(this, "state");
|
|
94272
94274
|
__publicField(this, "atoms", {});
|
|
94275
|
+
__publicField(this, "validationCache", {});
|
|
94273
94276
|
__publicField(this, "dirComputeEngine");
|
|
94274
94277
|
__publicField(this, "evalComputeEngine");
|
|
94275
94278
|
this.componentRegistry = componentRegistry;
|
|
94276
94279
|
this.state = observable(buildEntityScope(GLOBAL_SCOPE_ID));
|
|
94280
|
+
this.validationCache = observable({});
|
|
94277
94281
|
this.dirComputeEngine = new DirectComputeEngine();
|
|
94278
94282
|
this.evalComputeEngine = new EvalComputeEngine();
|
|
94279
94283
|
makeObservable(this, {
|
|
94280
94284
|
createScope: action,
|
|
94281
94285
|
deleteScope: action,
|
|
94282
94286
|
getFullState: computed,
|
|
94287
|
+
getValidationState: computed,
|
|
94283
94288
|
createEntity: action,
|
|
94284
94289
|
updateEntity: action,
|
|
94285
94290
|
deleteEntity: action,
|
|
@@ -94307,6 +94312,9 @@ class EntityManager {
|
|
|
94307
94312
|
const scope = this.getScope(scopeId);
|
|
94308
94313
|
return scope.name ?? "";
|
|
94309
94314
|
}
|
|
94315
|
+
get getValidationState() {
|
|
94316
|
+
return this.validationCache;
|
|
94317
|
+
}
|
|
94310
94318
|
get getFullState() {
|
|
94311
94319
|
const entities = {};
|
|
94312
94320
|
const processScope = (scope) => {
|
|
@@ -94431,6 +94439,9 @@ class EntityManager {
|
|
|
94431
94439
|
}
|
|
94432
94440
|
this.addMissingProps(managedPropsForType, addedProperties, scopeId, name);
|
|
94433
94441
|
}
|
|
94442
|
+
getValidationCacheKey(instanceId, propertyName) {
|
|
94443
|
+
return `${instanceId}-${propertyName}`;
|
|
94444
|
+
}
|
|
94434
94445
|
addProperty(scopeId, name, prop, eov) {
|
|
94435
94446
|
if (prop.split(".").includes(RECORD_PATH_IDENTIFIER)) {
|
|
94436
94447
|
console.log(`ALERT: Cannot add a property with a record path (${prop})`);
|
|
@@ -94511,6 +94522,16 @@ class EntityManager {
|
|
|
94511
94522
|
const currentState = snapshot(scopeId);
|
|
94512
94523
|
const entity2 = currentState[name.value];
|
|
94513
94524
|
const validationResult = managedProp.validate(ret, entity2);
|
|
94525
|
+
if (entity2[WIDGET_SOURCE_ID_ATTRIBUTE]) {
|
|
94526
|
+
this.validationCache[this.getValidationCacheKey(
|
|
94527
|
+
entity2[WIDGET_SOURCE_ID_ATTRIBUTE],
|
|
94528
|
+
prop
|
|
94529
|
+
)] = {
|
|
94530
|
+
isValid: validationResult.valid,
|
|
94531
|
+
message: validationResult.valid ? "" : validationResult.message,
|
|
94532
|
+
invalidValue: validationResult.valid ? void 0 : validationResult.invalidValue
|
|
94533
|
+
};
|
|
94534
|
+
}
|
|
94514
94535
|
if (!validationResult.valid) {
|
|
94515
94536
|
return void 0;
|
|
94516
94537
|
}
|
|
@@ -101057,6 +101078,14 @@ class EditStore {
|
|
|
101057
101078
|
},
|
|
101058
101079
|
debounce: 50
|
|
101059
101080
|
});
|
|
101081
|
+
startEditorSync({
|
|
101082
|
+
storeId: "validationState",
|
|
101083
|
+
store: rootStore2.entityManager,
|
|
101084
|
+
projection: (store) => {
|
|
101085
|
+
return store.getValidationState;
|
|
101086
|
+
},
|
|
101087
|
+
debounce: 50
|
|
101088
|
+
});
|
|
101060
101089
|
}
|
|
101061
101090
|
setIsInitialized(isInitialized) {
|
|
101062
101091
|
this.isInitialized = isInitialized;
|
|
@@ -144392,14 +144421,14 @@ function getLoaderFn(options) {
|
|
|
144392
144421
|
if (!(loader === "all")) return [3, 3];
|
|
144393
144422
|
return [4, import(
|
|
144394
144423
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
144395
|
-
"./allPathsLoader-
|
|
144424
|
+
"./allPathsLoader-CqWCwT3j.js"
|
|
144396
144425
|
)];
|
|
144397
144426
|
case 2:
|
|
144398
144427
|
return [2, _b2.sent().allPathsLoader];
|
|
144399
144428
|
case 3:
|
|
144400
144429
|
return [4, import(
|
|
144401
144430
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
144402
|
-
"./splitPathsBySizeLoader-
|
|
144431
|
+
"./splitPathsBySizeLoader-4ldgFy1R.js"
|
|
144403
144432
|
)];
|
|
144404
144433
|
case 4:
|
|
144405
144434
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -190886,4 +190915,4 @@ export {
|
|
|
190886
190915
|
copyToClipboard as y,
|
|
190887
190916
|
navigateTo as z
|
|
190888
190917
|
};
|
|
190889
|
-
//# sourceMappingURL=index-
|
|
190918
|
+
//# sourceMappingURL=index-DVBMCzww.js.map
|