@prismicio/types-internal 4.8.0-pr.42.c8d7746 → 4.8.1-canary.c67e5e1
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RichTextLegacyBlockSchema, RichTextLegacySchema, RichTextNodeType } from "../legacy/richText.js";
|
|
2
2
|
import { RichTextContentSchema, RichTextContentType } from "../richText.js";
|
|
3
3
|
import { embedContentToLegacy, embedLegacyToContent } from "./embed.js";
|
|
4
|
-
import { imageLegacyToContent } from "./image.js";
|
|
5
4
|
import { linkLegacyToValue, linkValueToLegacy } from "./link.js";
|
|
6
5
|
//#region src/content/codec/richText.ts
|
|
7
6
|
function blockLegacyToValue(block) {
|
|
@@ -9,13 +8,16 @@ function blockLegacyToValue(block) {
|
|
|
9
8
|
...block,
|
|
10
9
|
data: embedLegacyToContent(block.data)
|
|
11
10
|
};
|
|
12
|
-
if (block.type === RichTextNodeType.image)
|
|
13
|
-
...block
|
|
14
|
-
|
|
15
|
-
...
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
if (block.type === RichTextNodeType.image) {
|
|
12
|
+
const { linkTo, ...imageData } = block.data;
|
|
13
|
+
return {
|
|
14
|
+
...block,
|
|
15
|
+
data: {
|
|
16
|
+
...imageData,
|
|
17
|
+
...linkTo !== void 0 ? { linkTo: linkTo ? linkLegacyToValue(linkTo) : null } : {}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
19
21
|
const spans = [];
|
|
20
22
|
for (const span of block.content.spans ?? []) if (span.type === RichTextNodeType.hyperlink) {
|
|
21
23
|
if (span.data) spans.push({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"richText.js","names":[],"sources":["../../../src/content/codec/richText.ts"],"sourcesContent":["import type { RichTextLegacy, RichTextLegacyBlock, RichTextLegacySpan } from \"../legacy/richText\"\nimport {\n\tRichTextLegacyBlockSchema,\n\tRichTextLegacySchema,\n\tRichTextNodeType,\n} from \"../legacy/richText\"\nimport type { RichTextContent, RichTextContentBlock, RichTextContentSpan } from \"../richText\"\nimport { RichTextContentSchema, RichTextContentType } from \"../richText\"\nimport { embedContentToLegacy, embedLegacyToContent } from \"./embed\"\nimport
|
|
1
|
+
{"version":3,"file":"richText.js","names":[],"sources":["../../../src/content/codec/richText.ts"],"sourcesContent":["import type { RichTextLegacy, RichTextLegacyBlock, RichTextLegacySpan } from \"../legacy/richText\"\nimport {\n\tRichTextLegacyBlockSchema,\n\tRichTextLegacySchema,\n\tRichTextNodeType,\n} from \"../legacy/richText\"\nimport type { RichTextContent, RichTextContentBlock, RichTextContentSpan } from \"../richText\"\nimport { RichTextContentSchema, RichTextContentType } from \"../richText\"\nimport { embedContentToLegacy, embedLegacyToContent } from \"./embed\"\nimport type { LegacyCodec, LegacyContentCtx } from \"./legacyContentCtx\"\nimport { linkLegacyToValue, linkValueToLegacy } from \"./link\"\n\n// Also used by content/codec/table\nexport function blockLegacyToValue(block: RichTextLegacyBlock): RichTextContentBlock {\n\tif (block.type === RichTextNodeType.embed) {\n\t\treturn {\n\t\t\t...block,\n\t\t\tdata: embedLegacyToContent(block.data),\n\t\t}\n\t}\n\n\tif (block.type === RichTextNodeType.image) {\n\t\tconst { linkTo, ...imageData } = block.data\n\t\treturn {\n\t\t\t...block,\n\t\t\tdata: {\n\t\t\t\t...imageData,\n\t\t\t\t...(linkTo !== undefined ? { linkTo: linkTo ? linkLegacyToValue(linkTo) : null } : {}),\n\t\t\t},\n\t\t}\n\t}\n\n\tconst spans: RichTextContentSpan[] = []\n\tfor (const span of block.content.spans ?? []) {\n\t\tif (span.type === RichTextNodeType.hyperlink) {\n\t\t\t// Legacy documents can have hyperlink spans with null data. We\n\t\t\t// drop them since a hyperlink without link data is meaningless.\n\t\t\tif (span.data) {\n\t\t\t\tspans.push({ ...span, data: linkLegacyToValue(span.data) })\n\t\t\t}\n\t\t} else {\n\t\t\tspans.push(span)\n\t\t}\n\t}\n\n\treturn { ...block, content: { ...block.content, spans } }\n}\n\n// Also used by content/codec/table\nexport function blockValueToLegacy(block: RichTextContentBlock): RichTextLegacyBlock {\n\tif (block.type === RichTextNodeType.embed) {\n\t\treturn {\n\t\t\t...block,\n\t\t\tdata: embedContentToLegacy(block.data),\n\t\t}\n\t}\n\n\tif (block.type === RichTextNodeType.image) {\n\t\treturn {\n\t\t\t...block,\n\t\t\tdata: {\n\t\t\t\t...block.data,\n\t\t\t\t...(block.data.linkTo ? { linkTo: linkValueToLegacy(block.data.linkTo) } : {}),\n\t\t\t},\n\t\t}\n\t}\n\n\tif (\"content\" in block) {\n\t\tconst spans: RichTextLegacySpan[] = []\n\t\tfor (const span of block.content.spans ?? []) {\n\t\t\tif (span.type === RichTextNodeType.hyperlink) {\n\t\t\t\t// Legacy documents can have hyperlink spans with null data. We\n\t\t\t\t// drop them since a hyperlink without link data is meaningless.\n\t\t\t\tif (span.data) {\n\t\t\t\t\tspans.push({ ...span, data: linkValueToLegacy(span.data) })\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tspans.push(span)\n\t\t\t}\n\t\t}\n\n\t\treturn { ...block, content: { ...block.content, spans } }\n\t}\n\n\treturn RichTextLegacyBlockSchema.parse(block)\n}\n\nexport const RichTextLegacyCodec = (\n\tctx: LegacyContentCtx,\n): LegacyCodec<RichTextContent, RichTextLegacy> => ({\n\tname: \"RichTextLegacy\",\n\n\tis(input): input is RichTextContent {\n\t\treturn RichTextContentSchema.safeParse(input).success\n\t},\n\n\ttoContent(input) {\n\t\tconst parsed = RichTextLegacySchema.safeParse(input)\n\t\tif (!parsed.success) {\n\t\t\treturn parsed\n\t\t}\n\n\t\treturn {\n\t\t\tsuccess: true,\n\t\t\tdata: {\n\t\t\t\tvalue: parsed.data.map((block) => blockLegacyToValue(block)),\n\t\t\t\t__TYPE__: RichTextContentType,\n\t\t\t},\n\t\t}\n\t},\n\n\tfromContent(input) {\n\t\treturn {\n\t\t\tcontent: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,MAAM,KAAK;IAAE,GAAG;IAAM,MAAM,kBAAkB,KAAK,IAAI;GAAE,CAAC;EAAA,OAG3D,MAAM,KAAK,IAAI;EAIjB,OAAO;GAAE,GAAG;GAAO,SAAS;IAAE,GAAG,MAAM;IAAS;GAAM;EAAE;CACzD;CAEA,OAAO,0BAA0B,MAAM,KAAK;AAC7C;AAEA,MAAa,uBACZ,SACmD;CACnD,MAAM;CAEN,GAAG,OAAiC;EACnC,OAAO,sBAAsB,UAAU,KAAK,CAAC,CAAC;CAC/C;CAEA,UAAU,OAAO;EAChB,MAAM,SAAS,qBAAqB,UAAU,KAAK;EACnD,IAAI,CAAC,OAAO,SACX,OAAO;EAGR,OAAO;GACN,SAAS;GACT,MAAM;IACL,OAAO,OAAO,KAAK,KAAK,UAAU,mBAAmB,KAAK,CAAC;IAC3D,UAAU;GACX;EACD;CACD;CAEA,YAAY,OAAO;EAClB,OAAO;GACN,SAAS,MAAM,MAAM,KAAK,UAAU,mBAAmB,KAAK,CAAC;GAC7D,OAAO,GAAG,IAAI,YAAY,iBAAiB;GAC3C,MAAM,CAAC;EACR;CACD;AACD"}
|
package/dist/io-ts.d.ts
CHANGED
|
@@ -198,6 +198,9 @@ declare const SharedSliceContentSchema: t.Type<{
|
|
|
198
198
|
__TYPE__: "SharedSliceContent";
|
|
199
199
|
variation: string;
|
|
200
200
|
primary: Record<string, {
|
|
201
|
+
type: string;
|
|
202
|
+
__TYPE__: "EmptyContent";
|
|
203
|
+
} | {
|
|
201
204
|
type: "Text";
|
|
202
205
|
value: string;
|
|
203
206
|
__TYPE__: "FieldContent";
|
|
@@ -249,9 +252,6 @@ declare const SharedSliceContentSchema: t.Type<{
|
|
|
249
252
|
} | {
|
|
250
253
|
__TYPE__: "StructuredTextContent";
|
|
251
254
|
value: RichTextContentBlock[];
|
|
252
|
-
} | {
|
|
253
|
-
type: string;
|
|
254
|
-
__TYPE__: "EmptyContent";
|
|
255
255
|
} | {
|
|
256
256
|
__TYPE__: "IntegrationFieldsContent";
|
|
257
257
|
value: string;
|
|
@@ -347,6 +347,9 @@ declare const SharedSliceContentSchema: t.Type<{
|
|
|
347
347
|
__TYPE__: "SharedSliceContent";
|
|
348
348
|
variation: string;
|
|
349
349
|
primary: Record<string, {
|
|
350
|
+
type: string;
|
|
351
|
+
__TYPE__: "EmptyContent";
|
|
352
|
+
} | {
|
|
350
353
|
type: "Text";
|
|
351
354
|
value: string;
|
|
352
355
|
__TYPE__: "FieldContent";
|
|
@@ -398,9 +401,6 @@ declare const SharedSliceContentSchema: t.Type<{
|
|
|
398
401
|
} | {
|
|
399
402
|
__TYPE__: "StructuredTextContent";
|
|
400
403
|
value: RichTextContentBlock[];
|
|
401
|
-
} | {
|
|
402
|
-
type: string;
|
|
403
|
-
__TYPE__: "EmptyContent";
|
|
404
404
|
} | {
|
|
405
405
|
__TYPE__: "IntegrationFieldsContent";
|
|
406
406
|
value: string;
|
|
@@ -811,6 +811,9 @@ declare const RepeatableContentSchema: t.Type<{
|
|
|
811
811
|
}[];
|
|
812
812
|
}, unknown>;
|
|
813
813
|
declare const NestableContentSchema: t.Type<{
|
|
814
|
+
type: string;
|
|
815
|
+
__TYPE__: "EmptyContent";
|
|
816
|
+
} | {
|
|
814
817
|
type: "Text";
|
|
815
818
|
value: string;
|
|
816
819
|
__TYPE__: "FieldContent";
|
|
@@ -862,9 +865,6 @@ declare const NestableContentSchema: t.Type<{
|
|
|
862
865
|
} | {
|
|
863
866
|
__TYPE__: "StructuredTextContent";
|
|
864
867
|
value: RichTextContentBlock[];
|
|
865
|
-
} | {
|
|
866
|
-
type: string;
|
|
867
|
-
__TYPE__: "EmptyContent";
|
|
868
868
|
} | {
|
|
869
869
|
__TYPE__: "IntegrationFieldsContent";
|
|
870
870
|
value: string;
|
|
@@ -952,6 +952,9 @@ declare const NestableContentSchema: t.Type<{
|
|
|
952
952
|
};
|
|
953
953
|
__TYPE__: "GeoPointContent";
|
|
954
954
|
}, {
|
|
955
|
+
type: string;
|
|
956
|
+
__TYPE__: "EmptyContent";
|
|
957
|
+
} | {
|
|
955
958
|
type: "Text";
|
|
956
959
|
value: string;
|
|
957
960
|
__TYPE__: "FieldContent";
|
|
@@ -1003,9 +1006,6 @@ declare const NestableContentSchema: t.Type<{
|
|
|
1003
1006
|
} | {
|
|
1004
1007
|
__TYPE__: "StructuredTextContent";
|
|
1005
1008
|
value: RichTextContentBlock[];
|
|
1006
|
-
} | {
|
|
1007
|
-
type: string;
|
|
1008
|
-
__TYPE__: "EmptyContent";
|
|
1009
1009
|
} | {
|
|
1010
1010
|
__TYPE__: "IntegrationFieldsContent";
|
|
1011
1011
|
value: string;
|
|
@@ -1104,6 +1104,9 @@ declare const GroupItemContentSchema: t.Type<GroupItemContent, GroupItemContent,
|
|
|
1104
1104
|
declare const CompositeSliceContentSchema: t.Type<{
|
|
1105
1105
|
__TYPE__: "CompositeSliceContent";
|
|
1106
1106
|
nonRepeat: Record<string, {
|
|
1107
|
+
type: string;
|
|
1108
|
+
__TYPE__: "EmptyContent";
|
|
1109
|
+
} | {
|
|
1107
1110
|
type: "Text";
|
|
1108
1111
|
value: string;
|
|
1109
1112
|
__TYPE__: "FieldContent";
|
|
@@ -1155,9 +1158,6 @@ declare const CompositeSliceContentSchema: t.Type<{
|
|
|
1155
1158
|
} | {
|
|
1156
1159
|
__TYPE__: "StructuredTextContent";
|
|
1157
1160
|
value: RichTextContentBlock[];
|
|
1158
|
-
} | {
|
|
1159
|
-
type: string;
|
|
1160
|
-
__TYPE__: "EmptyContent";
|
|
1161
1161
|
} | {
|
|
1162
1162
|
__TYPE__: "IntegrationFieldsContent";
|
|
1163
1163
|
value: string;
|
|
@@ -1249,6 +1249,9 @@ declare const CompositeSliceContentSchema: t.Type<{
|
|
|
1249
1249
|
}, {
|
|
1250
1250
|
__TYPE__: "CompositeSliceContent";
|
|
1251
1251
|
nonRepeat: Record<string, {
|
|
1252
|
+
type: string;
|
|
1253
|
+
__TYPE__: "EmptyContent";
|
|
1254
|
+
} | {
|
|
1252
1255
|
type: "Text";
|
|
1253
1256
|
value: string;
|
|
1254
1257
|
__TYPE__: "FieldContent";
|
|
@@ -1300,9 +1303,6 @@ declare const CompositeSliceContentSchema: t.Type<{
|
|
|
1300
1303
|
} | {
|
|
1301
1304
|
__TYPE__: "StructuredTextContent";
|
|
1302
1305
|
value: RichTextContentBlock[];
|
|
1303
|
-
} | {
|
|
1304
|
-
type: string;
|
|
1305
|
-
__TYPE__: "EmptyContent";
|
|
1306
1306
|
} | {
|
|
1307
1307
|
__TYPE__: "IntegrationFieldsContent";
|
|
1308
1308
|
value: string;
|
|
@@ -1393,6 +1393,9 @@ declare const CompositeSliceContentSchema: t.Type<{
|
|
|
1393
1393
|
repeat: GroupItemContent[];
|
|
1394
1394
|
}, unknown>;
|
|
1395
1395
|
declare const LegacySliceContentSchema: t.Type<{
|
|
1396
|
+
type: string;
|
|
1397
|
+
__TYPE__: "EmptyContent";
|
|
1398
|
+
} | {
|
|
1396
1399
|
type: "Text";
|
|
1397
1400
|
value: string;
|
|
1398
1401
|
__TYPE__: "FieldContent";
|
|
@@ -1444,9 +1447,6 @@ declare const LegacySliceContentSchema: t.Type<{
|
|
|
1444
1447
|
} | {
|
|
1445
1448
|
__TYPE__: "StructuredTextContent";
|
|
1446
1449
|
value: RichTextContentBlock[];
|
|
1447
|
-
} | {
|
|
1448
|
-
type: string;
|
|
1449
|
-
__TYPE__: "EmptyContent";
|
|
1450
1450
|
} | {
|
|
1451
1451
|
__TYPE__: "IntegrationFieldsContent";
|
|
1452
1452
|
value: string;
|
|
@@ -1537,6 +1537,9 @@ declare const LegacySliceContentSchema: t.Type<{
|
|
|
1537
1537
|
__TYPE__: "GroupContentType";
|
|
1538
1538
|
value: GroupItemContent[];
|
|
1539
1539
|
}, {
|
|
1540
|
+
type: string;
|
|
1541
|
+
__TYPE__: "EmptyContent";
|
|
1542
|
+
} | {
|
|
1540
1543
|
type: "Text";
|
|
1541
1544
|
value: string;
|
|
1542
1545
|
__TYPE__: "FieldContent";
|
|
@@ -1588,9 +1591,6 @@ declare const LegacySliceContentSchema: t.Type<{
|
|
|
1588
1591
|
} | {
|
|
1589
1592
|
__TYPE__: "StructuredTextContent";
|
|
1590
1593
|
value: RichTextContentBlock[];
|
|
1591
|
-
} | {
|
|
1592
|
-
type: string;
|
|
1593
|
-
__TYPE__: "EmptyContent";
|
|
1594
1594
|
} | {
|
|
1595
1595
|
__TYPE__: "IntegrationFieldsContent";
|
|
1596
1596
|
value: string;
|
|
@@ -1687,6 +1687,9 @@ declare const LegacySliceItemContentSchema: t.Type<{
|
|
|
1687
1687
|
name: string;
|
|
1688
1688
|
maybeLabel?: string | undefined;
|
|
1689
1689
|
widget: {
|
|
1690
|
+
type: string;
|
|
1691
|
+
__TYPE__: "EmptyContent";
|
|
1692
|
+
} | {
|
|
1690
1693
|
type: "Text";
|
|
1691
1694
|
value: string;
|
|
1692
1695
|
__TYPE__: "FieldContent";
|
|
@@ -1738,9 +1741,6 @@ declare const LegacySliceItemContentSchema: t.Type<{
|
|
|
1738
1741
|
} | {
|
|
1739
1742
|
__TYPE__: "StructuredTextContent";
|
|
1740
1743
|
value: RichTextContentBlock[];
|
|
1741
|
-
} | {
|
|
1742
|
-
type: string;
|
|
1743
|
-
__TYPE__: "EmptyContent";
|
|
1744
1744
|
} | {
|
|
1745
1745
|
__TYPE__: "IntegrationFieldsContent";
|
|
1746
1746
|
value: string;
|
|
@@ -1836,6 +1836,9 @@ declare const LegacySliceItemContentSchema: t.Type<{
|
|
|
1836
1836
|
name: string;
|
|
1837
1837
|
maybeLabel?: string | undefined;
|
|
1838
1838
|
widget: {
|
|
1839
|
+
type: string;
|
|
1840
|
+
__TYPE__: "EmptyContent";
|
|
1841
|
+
} | {
|
|
1839
1842
|
type: "Text";
|
|
1840
1843
|
value: string;
|
|
1841
1844
|
__TYPE__: "FieldContent";
|
|
@@ -1887,9 +1890,6 @@ declare const LegacySliceItemContentSchema: t.Type<{
|
|
|
1887
1890
|
} | {
|
|
1888
1891
|
__TYPE__: "StructuredTextContent";
|
|
1889
1892
|
value: RichTextContentBlock[];
|
|
1890
|
-
} | {
|
|
1891
|
-
type: string;
|
|
1892
|
-
__TYPE__: "EmptyContent";
|
|
1893
1893
|
} | {
|
|
1894
1894
|
__TYPE__: "IntegrationFieldsContent";
|
|
1895
1895
|
value: string;
|
|
@@ -1988,6 +1988,9 @@ declare const CompositeSliceItemContentSchema: t.Type<{
|
|
|
1988
1988
|
widget: {
|
|
1989
1989
|
__TYPE__: "CompositeSliceContent";
|
|
1990
1990
|
nonRepeat: Record<string, {
|
|
1991
|
+
type: string;
|
|
1992
|
+
__TYPE__: "EmptyContent";
|
|
1993
|
+
} | {
|
|
1991
1994
|
type: "Text";
|
|
1992
1995
|
value: string;
|
|
1993
1996
|
__TYPE__: "FieldContent";
|
|
@@ -2039,9 +2042,6 @@ declare const CompositeSliceItemContentSchema: t.Type<{
|
|
|
2039
2042
|
} | {
|
|
2040
2043
|
__TYPE__: "StructuredTextContent";
|
|
2041
2044
|
value: RichTextContentBlock[];
|
|
2042
|
-
} | {
|
|
2043
|
-
type: string;
|
|
2044
|
-
__TYPE__: "EmptyContent";
|
|
2045
2045
|
} | {
|
|
2046
2046
|
__TYPE__: "IntegrationFieldsContent";
|
|
2047
2047
|
value: string;
|
|
@@ -2138,6 +2138,9 @@ declare const CompositeSliceItemContentSchema: t.Type<{
|
|
|
2138
2138
|
widget: {
|
|
2139
2139
|
__TYPE__: "CompositeSliceContent";
|
|
2140
2140
|
nonRepeat: Record<string, {
|
|
2141
|
+
type: string;
|
|
2142
|
+
__TYPE__: "EmptyContent";
|
|
2143
|
+
} | {
|
|
2141
2144
|
type: "Text";
|
|
2142
2145
|
value: string;
|
|
2143
2146
|
__TYPE__: "FieldContent";
|
|
@@ -2189,9 +2192,6 @@ declare const CompositeSliceItemContentSchema: t.Type<{
|
|
|
2189
2192
|
} | {
|
|
2190
2193
|
__TYPE__: "StructuredTextContent";
|
|
2191
2194
|
value: RichTextContentBlock[];
|
|
2192
|
-
} | {
|
|
2193
|
-
type: string;
|
|
2194
|
-
__TYPE__: "EmptyContent";
|
|
2195
2195
|
} | {
|
|
2196
2196
|
__TYPE__: "IntegrationFieldsContent";
|
|
2197
2197
|
value: string;
|
|
@@ -2290,6 +2290,9 @@ declare const SharedSliceItemContentSchema: t.Type<{
|
|
|
2290
2290
|
__TYPE__: "SharedSliceContent";
|
|
2291
2291
|
variation: string;
|
|
2292
2292
|
primary: Record<string, {
|
|
2293
|
+
type: string;
|
|
2294
|
+
__TYPE__: "EmptyContent";
|
|
2295
|
+
} | {
|
|
2293
2296
|
type: "Text";
|
|
2294
2297
|
value: string;
|
|
2295
2298
|
__TYPE__: "FieldContent";
|
|
@@ -2341,9 +2344,6 @@ declare const SharedSliceItemContentSchema: t.Type<{
|
|
|
2341
2344
|
} | {
|
|
2342
2345
|
__TYPE__: "StructuredTextContent";
|
|
2343
2346
|
value: RichTextContentBlock[];
|
|
2344
|
-
} | {
|
|
2345
|
-
type: string;
|
|
2346
|
-
__TYPE__: "EmptyContent";
|
|
2347
2347
|
} | {
|
|
2348
2348
|
__TYPE__: "IntegrationFieldsContent";
|
|
2349
2349
|
value: string;
|
|
@@ -2444,6 +2444,9 @@ declare const SharedSliceItemContentSchema: t.Type<{
|
|
|
2444
2444
|
__TYPE__: "SharedSliceContent";
|
|
2445
2445
|
variation: string;
|
|
2446
2446
|
primary: Record<string, {
|
|
2447
|
+
type: string;
|
|
2448
|
+
__TYPE__: "EmptyContent";
|
|
2449
|
+
} | {
|
|
2447
2450
|
type: "Text";
|
|
2448
2451
|
value: string;
|
|
2449
2452
|
__TYPE__: "FieldContent";
|
|
@@ -2495,9 +2498,6 @@ declare const SharedSliceItemContentSchema: t.Type<{
|
|
|
2495
2498
|
} | {
|
|
2496
2499
|
__TYPE__: "StructuredTextContent";
|
|
2497
2500
|
value: RichTextContentBlock[];
|
|
2498
|
-
} | {
|
|
2499
|
-
type: string;
|
|
2500
|
-
__TYPE__: "EmptyContent";
|
|
2501
2501
|
} | {
|
|
2502
2502
|
__TYPE__: "IntegrationFieldsContent";
|
|
2503
2503
|
value: string;
|
|
@@ -3019,6 +3019,9 @@ declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3019
3019
|
content: GroupLegacy$1;
|
|
3020
3020
|
}, unknown>;
|
|
3021
3021
|
declare const LegacySliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
3022
|
+
type: string;
|
|
3023
|
+
__TYPE__: "EmptyContent";
|
|
3024
|
+
} | {
|
|
3022
3025
|
type: "Text";
|
|
3023
3026
|
value: string;
|
|
3024
3027
|
__TYPE__: "FieldContent";
|
|
@@ -3070,9 +3073,6 @@ declare const LegacySliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3070
3073
|
} | {
|
|
3071
3074
|
__TYPE__: "StructuredTextContent";
|
|
3072
3075
|
value: RichTextContentBlock[];
|
|
3073
|
-
} | {
|
|
3074
|
-
type: string;
|
|
3075
|
-
__TYPE__: "EmptyContent";
|
|
3076
3076
|
} | {
|
|
3077
3077
|
__TYPE__: "IntegrationFieldsContent";
|
|
3078
3078
|
value: string;
|
|
@@ -3170,6 +3170,9 @@ declare const LegacySliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3170
3170
|
declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
3171
3171
|
__TYPE__: "CompositeSliceContent";
|
|
3172
3172
|
nonRepeat: Record<string, {
|
|
3173
|
+
type: string;
|
|
3174
|
+
__TYPE__: "EmptyContent";
|
|
3175
|
+
} | {
|
|
3173
3176
|
type: "Text";
|
|
3174
3177
|
value: string;
|
|
3175
3178
|
__TYPE__: "FieldContent";
|
|
@@ -3221,9 +3224,6 @@ declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3221
3224
|
} | {
|
|
3222
3225
|
__TYPE__: "StructuredTextContent";
|
|
3223
3226
|
value: RichTextContentBlock[];
|
|
3224
|
-
} | {
|
|
3225
|
-
type: string;
|
|
3226
|
-
__TYPE__: "EmptyContent";
|
|
3227
3227
|
} | {
|
|
3228
3228
|
__TYPE__: "IntegrationFieldsContent";
|
|
3229
3229
|
value: string;
|
|
@@ -3324,6 +3324,9 @@ declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3324
3324
|
__TYPE__: "SharedSliceContent";
|
|
3325
3325
|
variation: string;
|
|
3326
3326
|
primary: Record<string, {
|
|
3327
|
+
type: string;
|
|
3328
|
+
__TYPE__: "EmptyContent";
|
|
3329
|
+
} | {
|
|
3327
3330
|
type: "Text";
|
|
3328
3331
|
value: string;
|
|
3329
3332
|
__TYPE__: "FieldContent";
|
|
@@ -3375,9 +3378,6 @@ declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3375
3378
|
} | {
|
|
3376
3379
|
__TYPE__: "StructuredTextContent";
|
|
3377
3380
|
value: RichTextContentBlock[];
|
|
3378
|
-
} | {
|
|
3379
|
-
type: string;
|
|
3380
|
-
__TYPE__: "EmptyContent";
|
|
3381
3381
|
} | {
|
|
3382
3382
|
__TYPE__: "IntegrationFieldsContent";
|
|
3383
3383
|
value: string;
|
package/dist/io-ts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io-ts.d.ts","names":[],"sources":["../src/io-ts.ts"],"mappings":";;;;;;;;;;;;;;;cAqJa,aAAW,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACX,aAAW,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cACX,qBAAmB,EAAA;cACnB,sBAAoB,EAAA;cACpB,iBAAe,EAAA;cAGf,sBAAoB,EAAA;;;;;;;cACpB,oBAAkB,EAAA;;;;;;;;;cAClB,mBAAiB,EAAA;;;;;;;;;cACjB,oBAAkB,EAAA;;;;;;;cAClB,uBAAqB,EAAA;;;;;;;;;;;;;cACrB,yBAAuB,EAAA;;;;;;MAAvB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACtB,yBAAuB,EAAA,KAAvB,mBAAuB;cACvB,wBAAsB,EAAA,KAAtB,kBAAsB;cACtB,yBAAuB,EAAA,KAAvB,mBAAuB;cACvB,0BAAwB,EAAA;;;;;;;;;;;;;;;;;;;;;;;cACxB,yBAAuB,EAAA;;;;;;;;;;;;;;;;;;;;;;;cACvB,yBAAuB,EAAA,KAAvB,mBAAuB;cACvB,0BAAwB,EAAA,KAAxB,oBAAwB;cACxB,wBAAsB,EAAA;cACtB,gCAA8B,EAAA,KAAA,eAA9B,oBAA8B,eAAA;cAC9B,iCAA+B,EAAA,KAAA,eAA/B,qBAA+B,eAAA;cAC/B,6BAA2B,EAAA;;;;sCAA3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACA,8BAA4B,EAAA;;;;sCAA5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEA,uBAAqB,EAAA;;;;sCAArB"}
|
package/dist/model/group.d.ts
CHANGED
|
@@ -202,22 +202,6 @@ declare const GroupModelSchema: z.ZodMiniObject<{
|
|
|
202
202
|
label?: string | null | undefined;
|
|
203
203
|
repeat?: boolean | undefined;
|
|
204
204
|
fields?: Record<string, {
|
|
205
|
-
type: "StructuredText";
|
|
206
|
-
fieldset?: string | null | undefined;
|
|
207
|
-
config?: {
|
|
208
|
-
label?: string | null | undefined;
|
|
209
|
-
placeholder?: string | undefined;
|
|
210
|
-
useAsTitle?: boolean | undefined;
|
|
211
|
-
single?: string | undefined;
|
|
212
|
-
multi?: string | undefined;
|
|
213
|
-
imageConstraint?: {
|
|
214
|
-
width?: number | null | undefined;
|
|
215
|
-
height?: number | null | undefined;
|
|
216
|
-
} | undefined;
|
|
217
|
-
labels?: string[] | undefined;
|
|
218
|
-
allowTargetBlank?: boolean | undefined;
|
|
219
|
-
} | undefined;
|
|
220
|
-
} | {
|
|
221
205
|
type: "Boolean";
|
|
222
206
|
config?: {
|
|
223
207
|
label?: string | null | undefined;
|
|
@@ -338,6 +322,22 @@ declare const GroupModelSchema: z.ZodMiniObject<{
|
|
|
338
322
|
max?: number | undefined;
|
|
339
323
|
step?: number | undefined;
|
|
340
324
|
} | undefined;
|
|
325
|
+
} | {
|
|
326
|
+
type: "StructuredText";
|
|
327
|
+
fieldset?: string | null | undefined;
|
|
328
|
+
config?: {
|
|
329
|
+
label?: string | null | undefined;
|
|
330
|
+
placeholder?: string | undefined;
|
|
331
|
+
useAsTitle?: boolean | undefined;
|
|
332
|
+
single?: string | undefined;
|
|
333
|
+
multi?: string | undefined;
|
|
334
|
+
imageConstraint?: {
|
|
335
|
+
width?: number | null | undefined;
|
|
336
|
+
height?: number | null | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
labels?: string[] | undefined;
|
|
339
|
+
allowTargetBlank?: boolean | undefined;
|
|
340
|
+
} | undefined;
|
|
341
341
|
} | {
|
|
342
342
|
type: "Select";
|
|
343
343
|
fieldset?: string | null | undefined;
|
|
@@ -384,22 +384,6 @@ declare const GroupModelSchema: z.ZodMiniObject<{
|
|
|
384
384
|
label?: string | null | undefined;
|
|
385
385
|
repeat?: boolean | undefined;
|
|
386
386
|
fields?: Record<string, {
|
|
387
|
-
type: "StructuredText";
|
|
388
|
-
fieldset?: string | null | undefined;
|
|
389
|
-
config?: {
|
|
390
|
-
label?: string | null | undefined;
|
|
391
|
-
placeholder?: string | undefined;
|
|
392
|
-
useAsTitle?: boolean | undefined;
|
|
393
|
-
single?: string | undefined;
|
|
394
|
-
multi?: string | undefined;
|
|
395
|
-
imageConstraint?: {
|
|
396
|
-
width?: number | null | undefined;
|
|
397
|
-
height?: number | null | undefined;
|
|
398
|
-
} | undefined;
|
|
399
|
-
labels?: string[] | undefined;
|
|
400
|
-
allowTargetBlank?: boolean | undefined;
|
|
401
|
-
} | undefined;
|
|
402
|
-
} | {
|
|
403
387
|
type: "Boolean";
|
|
404
388
|
config?: {
|
|
405
389
|
label?: string | null | undefined;
|
|
@@ -520,6 +504,22 @@ declare const GroupModelSchema: z.ZodMiniObject<{
|
|
|
520
504
|
max?: number | undefined;
|
|
521
505
|
step?: number | undefined;
|
|
522
506
|
} | undefined;
|
|
507
|
+
} | {
|
|
508
|
+
type: "StructuredText";
|
|
509
|
+
fieldset?: string | null | undefined;
|
|
510
|
+
config?: {
|
|
511
|
+
label?: string | null | undefined;
|
|
512
|
+
placeholder?: string | undefined;
|
|
513
|
+
useAsTitle?: boolean | undefined;
|
|
514
|
+
single?: string | undefined;
|
|
515
|
+
multi?: string | undefined;
|
|
516
|
+
imageConstraint?: {
|
|
517
|
+
width?: number | null | undefined;
|
|
518
|
+
height?: number | null | undefined;
|
|
519
|
+
} | undefined;
|
|
520
|
+
labels?: string[] | undefined;
|
|
521
|
+
allowTargetBlank?: boolean | undefined;
|
|
522
|
+
} | undefined;
|
|
523
523
|
} | {
|
|
524
524
|
type: "Select";
|
|
525
525
|
fieldset?: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
import type { RichTextContent, RichTextContentBlock, RichTextContentSpan } from "../richText"
|
|
8
8
|
import { RichTextContentSchema, RichTextContentType } from "../richText"
|
|
9
9
|
import { embedContentToLegacy, embedLegacyToContent } from "./embed"
|
|
10
|
-
import { imageLegacyToContent } from "./image"
|
|
11
10
|
import type { LegacyCodec, LegacyContentCtx } from "./legacyContentCtx"
|
|
12
11
|
import { linkLegacyToValue, linkValueToLegacy } from "./link"
|
|
13
12
|
|
|
@@ -21,11 +20,12 @@ export function blockLegacyToValue(block: RichTextLegacyBlock): RichTextContentB
|
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
if (block.type === RichTextNodeType.image) {
|
|
23
|
+
const { linkTo, ...imageData } = block.data
|
|
24
24
|
return {
|
|
25
25
|
...block,
|
|
26
26
|
data: {
|
|
27
|
-
...
|
|
28
|
-
...(
|
|
27
|
+
...imageData,
|
|
28
|
+
...(linkTo !== undefined ? { linkTo: linkTo ? linkLegacyToValue(linkTo) : null } : {}),
|
|
29
29
|
},
|
|
30
30
|
}
|
|
31
31
|
}
|