@fragmentsx/definition 0.0.2 → 0.1.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/constants/index.d.ts +173 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/helpers/findSchemaByPath.d.ts +9 -0
- package/dist/helpers/findSchemaByPath.d.ts.map +1 -0
- package/dist/helpers/getLayerSchema.d.ts +2 -0
- package/dist/helpers/getLayerSchema.d.ts.map +1 -0
- package/dist/helpers/getNormalizeLayer.d.ts +4 -0
- package/dist/helpers/getNormalizeLayer.d.ts.map +1 -0
- package/dist/helpers/layerField.d.ts +12 -0
- package/dist/helpers/layerField.d.ts.map +1 -0
- package/dist/helpers/normalizeLayer.d.ts +10 -0
- package/dist/helpers/normalizeLayer.d.ts.map +1 -0
- package/dist/helpers/parseLayerField.d.ts +20 -0
- package/dist/helpers/parseLayerField.d.ts.map +1 -0
- package/dist/index.cjs.js +417 -53
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +417 -53
- package/dist/schemas/ChildrenSchema.d.ts +5 -0
- package/dist/schemas/ChildrenSchema.d.ts.map +1 -0
- package/dist/schemas/CssOverrideSchema.d.ts +5 -0
- package/dist/schemas/CssOverrideSchema.d.ts.map +1 -0
- package/dist/schemas/GraphFieldSchema.d.ts +6 -0
- package/dist/schemas/GraphFieldSchema.d.ts.map +1 -0
- package/dist/schemas/InteractionsSchema.d.ts +5 -0
- package/dist/schemas/InteractionsSchema.d.ts.map +1 -0
- package/dist/schemas/LinkSchema.d.ts +6 -0
- package/dist/schemas/LinkSchema.d.ts.map +1 -0
- package/dist/schemas/OverridesSchema.d.ts +6 -0
- package/dist/schemas/OverridesSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/CollectionSchema.d.ts +54 -0
- package/dist/schemas/nodes/CollectionSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/FragmentSchema.d.ts +12 -0
- package/dist/schemas/nodes/FragmentSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/FrameSchema.d.ts +57 -0
- package/dist/schemas/nodes/FrameSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/InstanceSchema.d.ts +39 -0
- package/dist/schemas/nodes/InstanceSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/TextSchema.d.ts +41 -0
- package/dist/schemas/nodes/TextSchema.d.ts.map +1 -0
- package/dist/schemas/styles/BorderSchema.d.ts +7 -0
- package/dist/schemas/styles/BorderSchema.d.ts.map +1 -0
- package/dist/schemas/styles/FillSchema.d.ts +8 -0
- package/dist/schemas/styles/FillSchema.d.ts.map +1 -0
- package/dist/schemas/styles/LayerSchema.d.ts +11 -0
- package/dist/schemas/styles/LayerSchema.d.ts.map +1 -0
- package/dist/schemas/styles/PositionSchema.d.ts +11 -0
- package/dist/schemas/styles/PositionSchema.d.ts.map +1 -0
- package/dist/schemas/styles/SceneSchema.d.ts +8 -0
- package/dist/schemas/styles/SceneSchema.d.ts.map +1 -0
- package/dist/schemas/styles/SizeSchema.d.ts +17 -0
- package/dist/schemas/styles/SizeSchema.d.ts.map +1 -0
- package/dist/schemas/styles/fields/BorderRadiusSchema.d.ts +3 -0
- package/dist/schemas/styles/fields/BorderRadiusSchema.d.ts.map +1 -0
- package/dist/schemas/styles/fields/OverflowSchema.d.ts +3 -0
- package/dist/schemas/styles/fields/OverflowSchema.d.ts.map +1 -0
- package/dist/schemas/variables/ArrayVariableSchema.d.ts +13 -0
- package/dist/schemas/variables/ArrayVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/BooleanVariableSchema.d.ts +12 -0
- package/dist/schemas/variables/BooleanVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/ColorVariableSchema.d.ts +12 -0
- package/dist/schemas/variables/ColorVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/EnumVariableSchema.d.ts +13 -0
- package/dist/schemas/variables/EnumVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/EventVariableSchema.d.ts +13 -0
- package/dist/schemas/variables/EventVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/ImageVariableSchema.d.ts +13 -0
- package/dist/schemas/variables/ImageVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/LinkVariableSchema.d.ts +12 -0
- package/dist/schemas/variables/LinkVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/NumberVariableSchema.d.ts +16 -0
- package/dist/schemas/variables/NumberVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/ObjectVariableSchema.d.ts +13 -0
- package/dist/schemas/variables/ObjectVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/StringVariableSchema.d.ts +14 -0
- package/dist/schemas/variables/StringVariableSchema.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +4 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageVariableSchema.d.ts","sourceRoot":"","sources":["../../../src/schemas/variables/ImageVariableSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAK7B,eAAO,MAAM,mBAAmB;;;;;;;;;;aAgB9B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const LinkVariableSchema: v.ObjectSchema<{
|
|
3
|
+
readonly _id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
4
|
+
readonly _type: v.PicklistSchema<string[], undefined>;
|
|
5
|
+
readonly nodePropertyControlReference: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
6
|
+
readonly name: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
7
|
+
readonly parent: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
8
|
+
readonly type: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
9
|
+
readonly defaultValue: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
10
|
+
readonly required: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
11
|
+
}, undefined>;
|
|
12
|
+
//# sourceMappingURL=LinkVariableSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkVariableSchema.d.ts","sourceRoot":"","sources":["../../../src/schemas/variables/LinkVariableSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAK7B,eAAO,MAAM,kBAAkB;;;;;;;;;aAa7B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const NumberVariableSchema: v.ObjectSchema<{
|
|
3
|
+
readonly _id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
4
|
+
readonly _type: v.PicklistSchema<string[], undefined>;
|
|
5
|
+
readonly nodePropertyControlReference: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
6
|
+
readonly name: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
7
|
+
readonly parent: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
8
|
+
readonly type: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
9
|
+
readonly defaultValue: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
10
|
+
readonly required: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
11
|
+
readonly min: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
12
|
+
readonly max: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
13
|
+
readonly step: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
14
|
+
readonly displayStepper: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
//# sourceMappingURL=NumberVariableSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberVariableSchema.d.ts","sourceRoot":"","sources":["../../../src/schemas/variables/NumberVariableSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAK7B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;aAiB/B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const ObjectVariableSchema: v.ObjectSchema<{
|
|
3
|
+
readonly _id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
4
|
+
readonly _type: v.PicklistSchema<string[], undefined>;
|
|
5
|
+
readonly nodePropertyControlReference: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
6
|
+
readonly name: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
7
|
+
readonly type: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
8
|
+
readonly parent: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
9
|
+
readonly defaultValue: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
10
|
+
readonly fields: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
11
|
+
readonly required: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
//# sourceMappingURL=ObjectVariableSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectVariableSchema.d.ts","sourceRoot":"","sources":["../../../src/schemas/variables/ObjectVariableSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAK7B,eAAO,MAAM,oBAAoB;;;;;;;;;;aAc/B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const StringVariableSchema: v.ObjectSchema<{
|
|
3
|
+
readonly _id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
4
|
+
readonly _type: v.PicklistSchema<string[], undefined>;
|
|
5
|
+
readonly nodePropertyControlReference: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
6
|
+
readonly name: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
7
|
+
readonly type: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
8
|
+
readonly parent: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
9
|
+
readonly defaultValue: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
10
|
+
readonly required: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
11
|
+
readonly placeholder: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
12
|
+
readonly isTextarea: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
//# sourceMappingURL=StringVariableSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringVariableSchema.d.ts","sourceRoot":"","sources":["../../../src/schemas/variables/StringVariableSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAK7B,eAAO,MAAM,oBAAoB;;;;;;;;;;;aAe/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fragmentsx/definition",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
9
12
|
"types": "./dist/index.d.ts",
|
|
10
13
|
"exports": {
|
|
11
14
|
".": {
|