attaform 0.30.1 → 0.31.0
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/abstract.d.mts +5 -5
- package/dist/abstract.mjs +3 -3
- package/dist/dev/abstract.mjs +3 -3
- package/dist/dev/chunks/devtools.mjs +2 -2
- package/dist/dev/directive.mjs +1 -1
- package/dist/dev/history.mjs +1 -1
- package/dist/dev/index.mjs +4 -4
- package/dist/dev/runtime/plugins/attaform.mjs +1 -1
- package/dist/dev/shared/{attaform-dev.Chm4D6SJ.mjs → attaform-dev.B1q-x9R9.mjs} +2 -2
- package/dist/dev/shared/{attaform-dev.BUIFcTYf.mjs → attaform-dev.Caibt7sb.mjs} +11 -10
- package/dist/dev/shared/{attaform-dev.CT7MDjPy.mjs → attaform-dev.CtyqGia7.mjs} +152 -227
- package/dist/dev/shared/{attaform-dev.BJK1kqHY.mjs → attaform-dev.DJ3nsWw6.mjs} +74 -110
- package/dist/dev/shared/{attaform-dev.DuEE4GU1.mjs → attaform-dev.DlaT4xGd.mjs} +3 -3
- package/dist/dev/shared/{attaform-dev.BMQ3GcgD.mjs → attaform-dev.k5X47GMD.mjs} +474 -336
- package/dist/dev/shared/{attaform-dev.DxHdkkPG.mjs → attaform-dev.y9x9Vp9F.mjs} +206 -127
- package/dist/dev/zod-v3.mjs +5 -5
- package/dist/dev/zod-v4.mjs +5 -5
- package/dist/dev/zod.mjs +4 -4
- package/dist/directive.d.mts +2 -2
- package/dist/directive.mjs +1 -1
- package/dist/history.d.mts +1 -1
- package/dist/history.mjs +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +4 -4
- package/dist/runtime/components/AttaformDevtoolsPanel.vue +3 -3
- package/dist/runtime/plugins/attaform.mjs +1 -1
- package/dist/shared/{attaform.CO918TdU.mjs → attaform.BWUn8Kjy.mjs} +74 -110
- package/dist/shared/{attaform.WiGdIqgx.mjs → attaform.C4shmwyJ.mjs} +2 -2
- package/dist/shared/{attaform.2FslhB9R.d.mts → attaform.CRVe8s82.d.mts} +1 -1
- package/dist/shared/{attaform.L0kUn3vL.d.mts → attaform.D9RqPgGu.d.mts} +1 -1
- package/dist/shared/{attaform.BcQwgWaq.d.mts → attaform.DAo0QBmS.d.mts} +28 -8
- package/dist/shared/{attaform.ZYn2ahzJ.mjs → attaform.DBCbxlyk.mjs} +59 -1
- package/dist/shared/{attaform.DRsANMok.mjs → attaform.DL2nl_QR.mjs} +11 -10
- package/dist/shared/{attaform.BIWicztt.mjs → attaform.DNPJPOO7.mjs} +204 -125
- package/dist/shared/{attaform.Br8EBn5B.d.mts → attaform.DZnrDrNb.d.mts} +136 -32
- package/dist/shared/{attaform.D_f1WgYf.mjs → attaform.DxKQsqFZ.mjs} +456 -318
- package/dist/shared/{attaform.B2iebkPA.mjs → attaform.L011tHgJ.mjs} +3 -3
- package/dist/shared/{attaform.D_pt1gOj.mjs → attaform.LUPC-2Qg.mjs} +152 -227
- package/dist/transforms.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/zod-v3.d.mts +4 -4
- package/dist/zod-v3.mjs +5 -5
- package/dist/zod-v4.d.mts +13 -11
- package/dist/zod-v4.mjs +5 -5
- package/dist/zod.d.mts +4 -4
- package/dist/zod.mjs +4 -4
- package/package.json +1 -1
- package/skills/attaform/SKILL.md +1 -1
- package/skills/attaform/references/custom-components.md +4 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AttaformErrorCode, k as isPlainRecord, s as slimKindOf } from './attaform.
|
|
1
|
+
import { A as AttaformErrorCode, k as isPlainRecord, s as slimKindOf } from './attaform.DNPJPOO7.mjs';
|
|
2
2
|
import { e as canonicalizePath, h as SET_MEMBER_SEGMENT } from './attaform.CdZIEf7_.mjs';
|
|
3
3
|
import { a as safeOwnRead, b as safeAssign } from './attaform.8mfKZCwH.mjs';
|
|
4
4
|
|
|
@@ -37,9 +37,6 @@ function createAbstractSchema(rootSchema, intro, services, options) {
|
|
|
37
37
|
const discriminatorCache = /* @__PURE__ */ new Map();
|
|
38
38
|
const entryKeyKindCache = /* @__PURE__ */ new Map();
|
|
39
39
|
const slimKindsCache = /* @__PURE__ */ new Map();
|
|
40
|
-
let asyncValidationFlag = null;
|
|
41
|
-
let containerRefineFlag = null;
|
|
42
|
-
let discriminatedUnionFlag = null;
|
|
43
40
|
function mapKeySegmentKind(schema) {
|
|
44
41
|
const keyType = intro.getMapKeyType(schema);
|
|
45
42
|
if (keyType === void 0) return void 0;
|
|
@@ -92,20 +89,24 @@ function createAbstractSchema(rootSchema, intro, services, options) {
|
|
|
92
89
|
}
|
|
93
90
|
const abstractSchema = {
|
|
94
91
|
needsAsyncValidation() {
|
|
95
|
-
|
|
96
|
-
return
|
|
92
|
+
const { asyncRefine, asyncTransform } = intro.capabilitiesOf(rootSchema);
|
|
93
|
+
return asyncRefine || asyncTransform;
|
|
97
94
|
},
|
|
98
95
|
hasContainerOrRootRefine() {
|
|
99
|
-
|
|
100
|
-
return containerRefineFlag;
|
|
96
|
+
return intro.capabilitiesOf(rootSchema).containerOrRootRefine;
|
|
101
97
|
},
|
|
102
98
|
hasDiscriminatedUnions() {
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
return intro.capabilitiesOf(rootSchema).discriminatedUnion;
|
|
100
|
+
},
|
|
101
|
+
hasPreprocessOrCoerce() {
|
|
102
|
+
return intro.capabilitiesOf(rootSchema).preprocessOrCoerce;
|
|
105
103
|
},
|
|
106
104
|
getDefaultValues(config) {
|
|
107
105
|
return services.runGetDefaults(rootSchema, config, maxRecursionDepth);
|
|
108
106
|
},
|
|
107
|
+
validateSync(data) {
|
|
108
|
+
return services.validateSync(rootSchema, data);
|
|
109
|
+
},
|
|
109
110
|
getDefaultAtPath(path) {
|
|
110
111
|
if (path.length === 0) {
|
|
111
112
|
return services.deriveDefault(rootSchema, true, maxRecursionDepth);
|