@milaboratories/milaboratories.ui-examples.model 1.1.19 → 1.1.21
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/.turbo/turbo-build.log +11 -11
- package/CHANGELOG.md +12 -0
- package/dist/bundle.js +15 -2
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
- package/src/index.ts +20 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @milaboratories/milaboratories.ui-examples.model@1.1.
|
|
2
|
+
> @milaboratories/milaboratories.ui-examples.model@1.1.21 build /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model
|
|
3
3
|
> tsup && vite build && block-tools build-model
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mCJS[39m Build start
|
|
12
12
|
[34mESM[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m3.87 KB[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m8.93 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 82ms
|
|
16
|
+
[32mESM[39m [1mdist/index.js [22m[32m3.82 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m8.89 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 83ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 858ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m1.45 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.45 KB[39m
|
|
23
23
|
[36mvite v5.4.11 [32mbuilding for production...[36m[39m
|
|
@@ -25,6 +25,6 @@ transforming...
|
|
|
25
25
|
[32m✓[39m 4 modules transformed.
|
|
26
26
|
rendering chunks...
|
|
27
27
|
computing gzip size...
|
|
28
|
-
[2mdist/[22m[36mbundle.js [39m[1m[
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m156.
|
|
30
|
-
[32m✓ built in
|
|
28
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m146.17 kB[22m[1m[22m[2m │ gzip: 26.82 kB[22m[2m │ map: 319.35 kB[22m
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m156.48 kB[22m[1m[22m[2m │ gzip: 27.33 kB[22m[2m │ map: 320.50 kB[22m
|
|
30
|
+
[32m✓ built in 423ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.ui-examples.model
|
|
2
2
|
|
|
3
|
+
## 1.1.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fdd58fd: Isolate possible errors in “sections”, “title” and “argsValid”
|
|
8
|
+
|
|
9
|
+
## 1.1.20
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- @platforma-sdk/model@1.22.59
|
|
14
|
+
|
|
3
15
|
## 1.1.19
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -4583,7 +4583,7 @@
|
|
|
4583
4583
|
return this.ctx.getCurrentUnstableMarker();
|
|
4584
4584
|
}
|
|
4585
4585
|
}
|
|
4586
|
-
const T = "1.22.
|
|
4586
|
+
const T = "1.22.59";
|
|
4587
4587
|
function Ee(t) {
|
|
4588
4588
|
return t.__renderLambda === true;
|
|
4589
4589
|
}
|
|
@@ -4823,7 +4823,12 @@
|
|
|
4823
4823
|
const $BlockArgs = z.object({
|
|
4824
4824
|
numbers: z.array(z.coerce.number())
|
|
4825
4825
|
});
|
|
4826
|
-
const platforma = _.create("Heavy").withArgs({ numbers: [1, 2, 3, 4] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).
|
|
4826
|
+
const platforma = _.create("Heavy").withArgs({ numbers: [1, 2, 3, 4] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
|
|
4827
|
+
if (ctx.args.numbers.length === 5) {
|
|
4828
|
+
throw new Error("argsValid: test error");
|
|
4829
|
+
}
|
|
4830
|
+
return ctx.args.numbers.length > 0;
|
|
4831
|
+
}).output("numbers", (ctx) => {
|
|
4827
4832
|
var _a, _b;
|
|
4828
4833
|
return (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("numbers")) == null ? void 0 : _b.getDataAsJson();
|
|
4829
4834
|
}).output("pt", (ctx) => {
|
|
@@ -4874,12 +4879,20 @@
|
|
|
4874
4879
|
]
|
|
4875
4880
|
}
|
|
4876
4881
|
);
|
|
4882
|
+
}).title((ctx) => {
|
|
4883
|
+
if (ctx.args.numbers.length === 5) {
|
|
4884
|
+
throw new Error("block title: test error");
|
|
4885
|
+
}
|
|
4886
|
+
return "Ui Examples";
|
|
4877
4887
|
}).sections((ctx) => {
|
|
4878
4888
|
const dynamicSections = (ctx.uiState.dynamicSections ?? []).map((it2) => ({
|
|
4879
4889
|
type: "link",
|
|
4880
4890
|
href: `/section?id=${it2.id}`,
|
|
4881
4891
|
label: it2.label
|
|
4882
4892
|
}));
|
|
4893
|
+
if (dynamicSections.some((it2) => it2.label === "Error")) {
|
|
4894
|
+
throw new Error("sections: test error");
|
|
4895
|
+
}
|
|
4883
4896
|
return [
|
|
4884
4897
|
{ type: "link", href: "/loaders", label: "Loaders" },
|
|
4885
4898
|
{ type: "link", href: "/", label: "Icons/Masks" },
|