@seed-hypermedia/client 0.0.35 → 0.0.36
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/{chunk-RDTEH34P.mjs → chunk-2BRMXRIG.mjs} +17 -5
- package/dist/hm-types.d.ts +1143 -172
- package/dist/hm-types.mjs +5 -1
- package/dist/index.mjs +156 -86
- package/dist/unicode.d.ts +6 -1
- package/package.json +1 -1
|
@@ -71,19 +71,27 @@ var HighlightAnnotationSchema = z.object({
|
|
|
71
71
|
type: z.literal("Range"),
|
|
72
72
|
...baseAnnotationProperties
|
|
73
73
|
}).strict();
|
|
74
|
-
var
|
|
74
|
+
var exclusiveAnnotationProperties = {
|
|
75
75
|
...baseAnnotationProperties,
|
|
76
76
|
attributes: z.object({
|
|
77
|
-
|
|
77
|
+
value: z.string()
|
|
78
78
|
}).optional()
|
|
79
79
|
};
|
|
80
80
|
var TextColorAnnotationSchema = z.object({
|
|
81
81
|
type: z.literal("TextColor"),
|
|
82
|
-
...
|
|
82
|
+
...exclusiveAnnotationProperties
|
|
83
83
|
}).strict();
|
|
84
84
|
var BackgroundColorAnnotationSchema = z.object({
|
|
85
85
|
type: z.literal("BackgroundColor"),
|
|
86
|
-
...
|
|
86
|
+
...exclusiveAnnotationProperties
|
|
87
|
+
}).strict();
|
|
88
|
+
var TextSizeAnnotationSchema = z.object({
|
|
89
|
+
type: z.literal("TextSize"),
|
|
90
|
+
...exclusiveAnnotationProperties
|
|
91
|
+
}).strict();
|
|
92
|
+
var TextFamilyAnnotationSchema = z.object({
|
|
93
|
+
type: z.literal("TextFamily"),
|
|
94
|
+
...exclusiveAnnotationProperties
|
|
87
95
|
}).strict();
|
|
88
96
|
var HMAnnotationSchema = z.discriminatedUnion("type", [
|
|
89
97
|
BoldAnnotationSchema,
|
|
@@ -95,7 +103,9 @@ var HMAnnotationSchema = z.discriminatedUnion("type", [
|
|
|
95
103
|
InlineEmbedAnnotationSchema,
|
|
96
104
|
HighlightAnnotationSchema,
|
|
97
105
|
TextColorAnnotationSchema,
|
|
98
|
-
BackgroundColorAnnotationSchema
|
|
106
|
+
BackgroundColorAnnotationSchema,
|
|
107
|
+
TextSizeAnnotationSchema,
|
|
108
|
+
TextFamilyAnnotationSchema
|
|
99
109
|
]);
|
|
100
110
|
var HMAnnotationsSchema = z.array(HMAnnotationSchema).optional();
|
|
101
111
|
var blockBaseProperties = {
|
|
@@ -1237,6 +1247,8 @@ export {
|
|
|
1237
1247
|
HighlightAnnotationSchema,
|
|
1238
1248
|
TextColorAnnotationSchema,
|
|
1239
1249
|
BackgroundColorAnnotationSchema,
|
|
1250
|
+
TextSizeAnnotationSchema,
|
|
1251
|
+
TextFamilyAnnotationSchema,
|
|
1240
1252
|
HMAnnotationSchema,
|
|
1241
1253
|
HMAnnotationsSchema,
|
|
1242
1254
|
HMBlockParagraphSchema,
|