@fragmentsx/definition 0.2.1 → 0.2.2
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/index.cjs.js
CHANGED
|
@@ -1503,6 +1503,8 @@ const TextHighlightSchema = /* @__PURE__ */ object({
|
|
|
1503
1503
|
color: layerField(/* @__PURE__ */ string(), { fallback: null }),
|
|
1504
1504
|
lineHeight: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1505
1505
|
fontSize: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1506
|
+
fontWeight: layerField(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ number()]), { fallback: 400 }),
|
|
1507
|
+
fontFamily: layerField(/* @__PURE__ */ string(), { fallback: null }),
|
|
1506
1508
|
textDecoration: layerField(/* @__PURE__ */ picklist(Object.keys(textDecorations)), {
|
|
1507
1509
|
fallback: null
|
|
1508
1510
|
}),
|
package/dist/index.es.js
CHANGED
|
@@ -1501,6 +1501,8 @@ const TextHighlightSchema = /* @__PURE__ */ object({
|
|
|
1501
1501
|
color: layerField(/* @__PURE__ */ string(), { fallback: null }),
|
|
1502
1502
|
lineHeight: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1503
1503
|
fontSize: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1504
|
+
fontWeight: layerField(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ number()]), { fallback: 400 }),
|
|
1505
|
+
fontFamily: layerField(/* @__PURE__ */ string(), { fallback: null }),
|
|
1504
1506
|
textDecoration: layerField(/* @__PURE__ */ picklist(Object.keys(textDecorations)), {
|
|
1505
1507
|
fallback: null
|
|
1506
1508
|
}),
|
|
@@ -5,6 +5,8 @@ export declare const TextHighlightSchema: v.ObjectSchema<{
|
|
|
5
5
|
readonly color: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
6
6
|
readonly lineHeight: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
7
7
|
readonly fontSize: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
8
|
+
readonly fontWeight: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
9
|
+
readonly fontFamily: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
8
10
|
readonly textDecoration: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
9
11
|
readonly parent: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
10
12
|
}, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextHighlightSchema.d.ts","sourceRoot":"","sources":["../../../src/schemas/helperNodes/TextHighlightSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAK7B,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"TextHighlightSchema.d.ts","sourceRoot":"","sources":["../../../src/schemas/helperNodes/TextHighlightSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAK7B,eAAO,MAAM,mBAAmB;;;;;;;;;;aAW9B,CAAC"}
|