@prismicio/types-internal 2.5.0-alpha.1 → 2.5.0-alpha.3
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/lib/content/Document.d.ts +4 -4
- package/lib/content/fields/GroupContent.d.ts +8 -8
- package/lib/content/fields/GroupContent.js +16 -32
- package/lib/content/fields/WidgetContent.d.ts +4 -4
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +2 -2
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2 -2
- package/lib/content/fields/slices/Slice/RepeatableContent.js +1 -1
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +2 -2
- package/lib/content/fields/slices/Slice/index.d.ts +4 -4
- package/lib/content/fields/slices/SliceItem.d.ts +4 -4
- package/lib/content/fields/slices/SlicesContent.d.ts +4 -4
- package/lib/customtypes/CustomType.d.ts +2042 -690
- package/lib/customtypes/Section.d.ts +2028 -676
- package/lib/customtypes/diff/SharedSlice.d.ts +678 -2
- package/lib/customtypes/diff/Variation.d.ts +678 -3
- package/lib/customtypes/widgets/Group.d.ts +996 -15
- package/lib/customtypes/widgets/Group.js +15 -24
- package/lib/customtypes/widgets/Widget.d.ts +1684 -7
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +168 -2
- package/lib/customtypes/widgets/slices/LegacySlice.js +1 -1
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +670 -2
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +674 -3
- package/lib/customtypes/widgets/slices/Slices.d.ts +1522 -7
- package/lib/validators/function.js +8 -1
- package/package.json +1 -1
- package/src/content/fields/GroupContent.ts +26 -45
- package/src/content/fields/slices/Slice/RepeatableContent.ts +1 -1
- package/src/customtypes/diff/Variation.ts +1 -3
- package/src/customtypes/widgets/Group.ts +31 -52
- package/src/customtypes/widgets/slices/LegacySlice.ts +2 -2
- package/src/validators/function.ts +11 -1
|
@@ -670,7 +670,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
670
670
|
}>>]>>;
|
|
671
671
|
repeat: t.ArrayC<t.ExactC<t.TypeC<{
|
|
672
672
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
673
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
673
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
674
674
|
type: t.StringC;
|
|
675
675
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
676
676
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -996,7 +996,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
996
996
|
}>]>>]>>;
|
|
997
997
|
}>>, t.ExactC<t.TypeC<{
|
|
998
998
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
999
|
-
}>>]>]>]>>;
|
|
999
|
+
}>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>>;
|
|
1000
1000
|
}>>>;
|
|
1001
1001
|
}>>, t.ExactC<t.TypeC<{
|
|
1002
1002
|
__TYPE__: t.LiteralC<"SharedSliceContent">;
|
|
@@ -1330,7 +1330,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1330
1330
|
}>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>>;
|
|
1331
1331
|
items: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1332
1332
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
1333
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
1333
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1334
1334
|
type: t.StringC;
|
|
1335
1335
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
1336
1336
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1656,7 +1656,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1656
1656
|
}>]>>]>>;
|
|
1657
1657
|
}>>, t.ExactC<t.TypeC<{
|
|
1658
1658
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
1659
|
-
}>>]>]>]>>;
|
|
1659
|
+
}>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>>;
|
|
1660
1660
|
}>>>;
|
|
1661
1661
|
}>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1662
1662
|
type: t.StringC;
|
|
@@ -3,19 +3,20 @@ import type { ContentPath, TraverseWidgetContentFn } from "../../_internal/utils
|
|
|
3
3
|
import { type Group, type NestableWidget } from "../../customtypes";
|
|
4
4
|
import { LegacyContentCtx, WithTypes } from "../LegacyContentCtx";
|
|
5
5
|
import { NestableContent } from "./nestable";
|
|
6
|
-
export declare const GroupContentType: "GroupContentType";
|
|
7
|
-
export declare const isGroupContent: (u: unknown) => u is GroupContent;
|
|
8
|
-
export declare const GroupContent: t.Type<GroupContent>;
|
|
9
|
-
export declare type GroupContent = {
|
|
10
|
-
__TYPE__: typeof GroupContentType;
|
|
11
|
-
value: GroupItemContent[];
|
|
12
|
-
};
|
|
13
6
|
export declare const GroupItemContentType: "GroupItemContent";
|
|
7
|
+
export declare const GroupContentType: "GroupContentType";
|
|
14
8
|
export declare const GroupItemContent: t.Type<GroupItemContent>;
|
|
15
9
|
export declare type GroupItemContent = {
|
|
16
10
|
__TYPE__: typeof GroupItemContentType;
|
|
17
11
|
value: [string, NestableContent | GroupContent][];
|
|
18
12
|
};
|
|
13
|
+
export declare const GroupContent: t.Type<GroupContent>;
|
|
14
|
+
export declare type GroupContent = {
|
|
15
|
+
__TYPE__: typeof GroupContentType;
|
|
16
|
+
value: GroupItemContent[];
|
|
17
|
+
};
|
|
18
|
+
export declare const isGroupContent: (u: unknown) => u is GroupContent;
|
|
19
|
+
export declare const GroupContentDefaultValue: GroupContent;
|
|
19
20
|
declare const itemLegacyReader: t.RecordC<t.StringC, t.UnknownC>;
|
|
20
21
|
declare type GroupItemLegacy = t.TypeOf<typeof itemLegacyReader>;
|
|
21
22
|
export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<GroupItemContent, WithTypes<{
|
|
@@ -23,7 +24,6 @@ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<GroupIte
|
|
|
23
24
|
}>, unknown>;
|
|
24
25
|
declare type GroupLegacy = Array<GroupItemLegacy>;
|
|
25
26
|
export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<GroupContent, WithTypes<GroupLegacy>, unknown>;
|
|
26
|
-
export declare const GroupContentDefaultValue: GroupContent;
|
|
27
27
|
export declare function groupContentWithDefaultValues(customType: Group, content: GroupContent): GroupContent;
|
|
28
28
|
export declare function traverseGroupContent({ path, key, apiId, model, content, }: {
|
|
29
29
|
path: ContentPath;
|
|
@@ -1,52 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.traverseGroupItemsContent = exports.traverseGroupContent = exports.groupContentWithDefaultValues = exports.
|
|
3
|
+
exports.traverseGroupItemsContent = exports.traverseGroupContent = exports.groupContentWithDefaultValues = exports.GroupLegacy = exports.GroupItemLegacy = exports.GroupContentDefaultValue = exports.isGroupContent = exports.GroupContent = exports.GroupItemContent = exports.GroupContentType = exports.GroupItemContentType = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fp_ts_1 = require("fp-ts");
|
|
6
6
|
const Either_1 = require("fp-ts/lib/Either");
|
|
7
7
|
const function_1 = require("fp-ts/lib/function");
|
|
8
8
|
const t = (0, tslib_1.__importStar)(require("io-ts"));
|
|
9
9
|
const customtypes_1 = require("../../customtypes");
|
|
10
|
-
const function_2 = require("../../validators/function");
|
|
11
10
|
const LegacyContentCtx_1 = require("../LegacyContentCtx");
|
|
12
11
|
const utils_1 = require("../utils");
|
|
13
12
|
const nestable_1 = require("./nestable");
|
|
14
13
|
const withDefaultValues_1 = require("./withDefaultValues");
|
|
15
|
-
exports.GroupContentType = "GroupContentType";
|
|
16
|
-
const isGroupContent = (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.GroupContentType;
|
|
17
|
-
exports.isGroupContent = isGroupContent;
|
|
18
|
-
const MAX_GROUP_DEPTH = 1;
|
|
19
|
-
const getGroupDepth = (group, depth = 0) => {
|
|
20
|
-
// Stop searching when we're over limit
|
|
21
|
-
if (depth > MAX_GROUP_DEPTH)
|
|
22
|
-
return depth;
|
|
23
|
-
for (const item of group.value) {
|
|
24
|
-
for (const [_key, widget] of item.value) {
|
|
25
|
-
if ((0, exports.isGroupContent)(widget)) {
|
|
26
|
-
depth = Math.max(depth, getGroupDepth(widget, depth + 1));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return depth;
|
|
31
|
-
};
|
|
32
|
-
exports.GroupContent = (0, function_2.refineType)(t.recursion("GroupContent", () => t.strict({
|
|
33
|
-
__TYPE__: t.literal(exports.GroupContentType),
|
|
34
|
-
value: t.array(exports.GroupItemContent),
|
|
35
|
-
})), "GroupContent", (g) => {
|
|
36
|
-
return getGroupDepth(g) <= MAX_GROUP_DEPTH;
|
|
37
|
-
});
|
|
38
14
|
exports.GroupItemContentType = "GroupItemContent";
|
|
15
|
+
exports.GroupContentType = "GroupContentType";
|
|
39
16
|
exports.GroupItemContent = t.recursion("GroupItemContent", () => t.strict({
|
|
40
17
|
__TYPE__: t.literal(exports.GroupItemContentType),
|
|
41
18
|
value: t.array(t.tuple([t.string, t.union([nestable_1.NestableContent, exports.GroupContent])])),
|
|
42
19
|
}));
|
|
20
|
+
exports.GroupContent = t.recursion("GroupContent", () => t.strict({
|
|
21
|
+
__TYPE__: t.literal(exports.GroupContentType),
|
|
22
|
+
value: t.array(exports.GroupItemContent),
|
|
23
|
+
}));
|
|
24
|
+
const isGroupContent = (u) => (0, utils_1.hasContentType)(u) &&
|
|
25
|
+
u.__TYPE__ === exports.GroupContentType &&
|
|
26
|
+
exports.GroupContent.decode(u)._tag === "Right";
|
|
27
|
+
exports.isGroupContent = isGroupContent;
|
|
28
|
+
exports.GroupContentDefaultValue = {
|
|
29
|
+
__TYPE__: exports.GroupContentType,
|
|
30
|
+
value: [],
|
|
31
|
+
};
|
|
43
32
|
const itemLegacyReader = t.record(t.string, t.unknown);
|
|
44
33
|
const GroupItemLegacy = (ctx) => {
|
|
45
34
|
return new t.Type("GroupItemLegacy", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.GroupItemContentType, (u) => {
|
|
46
35
|
const parsed = (0, function_1.pipe)(itemLegacyReader.decode(u), fp_ts_1.either.map((items) => {
|
|
47
36
|
const parsedItems = Object.entries(items).reduce((acc, [itemKey, itemValue]) => {
|
|
48
37
|
const itemCtx = (0, LegacyContentCtx_1.getFieldCtx)(itemKey, ctx);
|
|
49
|
-
const result = itemCtx.fieldType ===
|
|
38
|
+
const result = itemCtx.fieldType === customtypes_1.GroupFieldType
|
|
50
39
|
? (0, exports.GroupLegacy)(itemCtx).decode(itemValue)
|
|
51
40
|
: (0, nestable_1.NestableLegacy)(itemCtx).decode(itemValue);
|
|
52
41
|
if (!result)
|
|
@@ -99,15 +88,11 @@ const GroupLegacy = (ctx) => {
|
|
|
99
88
|
content: res.map((block) => block.content),
|
|
100
89
|
types: res.reduce((acc, block) => {
|
|
101
90
|
return { ...acc, ...block.types };
|
|
102
|
-
}, { [ctx.keyOfType]:
|
|
91
|
+
}, { [ctx.keyOfType]: customtypes_1.GroupFieldType }),
|
|
103
92
|
};
|
|
104
93
|
});
|
|
105
94
|
};
|
|
106
95
|
exports.GroupLegacy = GroupLegacy;
|
|
107
|
-
exports.GroupContentDefaultValue = {
|
|
108
|
-
__TYPE__: exports.GroupContentType,
|
|
109
|
-
value: [],
|
|
110
|
-
};
|
|
111
96
|
function groupContentWithDefaultValues(customType, content) {
|
|
112
97
|
var _a;
|
|
113
98
|
const fields = (_a = customType.config) === null || _a === void 0 ? void 0 : _a.fields;
|
|
@@ -151,7 +136,6 @@ function traverseGroupItemsContent({ path, model, content, }) {
|
|
|
151
136
|
let transformedField;
|
|
152
137
|
if ((!fieldDef || (fieldDef === null || fieldDef === void 0 ? void 0 : fieldDef.type) === customtypes_1.GroupFieldType) &&
|
|
153
138
|
fieldContent.__TYPE__ === exports.GroupContentType) {
|
|
154
|
-
console.log({ yes: "yes" });
|
|
155
139
|
transformedField = traverseGroupContent({
|
|
156
140
|
path: groupItemPath.concat([{ key: fieldKey, type: "Widget" }]),
|
|
157
141
|
key: fieldKey,
|
|
@@ -667,7 +667,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
667
667
|
}>>]>>;
|
|
668
668
|
repeat: t.ArrayC<t.ExactC<t.TypeC<{
|
|
669
669
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
670
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
670
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
671
671
|
type: t.StringC;
|
|
672
672
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
673
673
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -993,7 +993,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
993
993
|
}>]>>]>>;
|
|
994
994
|
}>>, t.ExactC<t.TypeC<{
|
|
995
995
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
996
|
-
}>>]>]>]>>;
|
|
996
|
+
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
|
|
997
997
|
}>>>;
|
|
998
998
|
}>>, t.ExactC<t.TypeC<{
|
|
999
999
|
__TYPE__: t.LiteralC<"SharedSliceContent">;
|
|
@@ -1327,7 +1327,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
1327
1327
|
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>>;
|
|
1328
1328
|
items: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1329
1329
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
1330
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
1330
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1331
1331
|
type: t.StringC;
|
|
1332
1332
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
1333
1333
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1653,7 +1653,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
1653
1653
|
}>]>>]>>;
|
|
1654
1654
|
}>>, t.ExactC<t.TypeC<{
|
|
1655
1655
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
1656
|
-
}>>]>]>]>>;
|
|
1656
|
+
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
|
|
1657
1657
|
}>>>;
|
|
1658
1658
|
}>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1659
1659
|
type: t.StringC;
|
|
@@ -1456,7 +1456,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1456
1456
|
}>>]>>;
|
|
1457
1457
|
repeat: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1458
1458
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
1459
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
1459
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1460
1460
|
type: t.StringC;
|
|
1461
1461
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
1462
1462
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1782,7 +1782,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1782
1782
|
}>]>>]>>;
|
|
1783
1783
|
}>>, t.ExactC<t.TypeC<{
|
|
1784
1784
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
1785
|
-
}>>]>]>]>>;
|
|
1785
|
+
}>>]>, t.Type<import("../../GroupContent").GroupContent, import("../../GroupContent").GroupContent, unknown>]>]>>;
|
|
1786
1786
|
}>>>;
|
|
1787
1787
|
}>>;
|
|
1788
1788
|
export declare type CompositeSliceContent = t.TypeOf<typeof CompositeSliceContent>;
|
|
@@ -6,7 +6,7 @@ export declare const RepeatableWidgetsLegacy: (ctx: LegacyContentCtx) => t.Array
|
|
|
6
6
|
}>, unknown>>;
|
|
7
7
|
export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
8
8
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
9
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
9
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
10
10
|
type: t.StringC;
|
|
11
11
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
12
12
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -332,5 +332,5 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
332
332
|
}>]>>]>>;
|
|
333
333
|
}>>, t.ExactC<t.TypeC<{
|
|
334
334
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
335
|
-
}>>]>]>]>>;
|
|
335
|
+
}>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
|
|
336
336
|
}>>>;
|
|
@@ -11,7 +11,7 @@ const RepeatableWidgetsLegacy = (ctx) => {
|
|
|
11
11
|
exports.RepeatableWidgetsLegacy = RepeatableWidgetsLegacy;
|
|
12
12
|
const RepeatableWidget = t.tuple([
|
|
13
13
|
t.string,
|
|
14
|
-
t.union([
|
|
14
|
+
t.union([nestable_1.NestableContent, GroupContent_1.GroupContent]),
|
|
15
15
|
]);
|
|
16
16
|
const RepeatableWidgetsBlock = t.strict({
|
|
17
17
|
__TYPE__: t.literal(GroupContent_1.GroupItemContentType),
|
|
@@ -1460,7 +1460,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
1460
1460
|
}>>]>, t.Type<import("../../GroupContent").GroupContent, import("../../GroupContent").GroupContent, unknown>]>>;
|
|
1461
1461
|
items: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1462
1462
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
1463
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
1463
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1464
1464
|
type: t.StringC;
|
|
1465
1465
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
1466
1466
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1786,7 +1786,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
1786
1786
|
}>]>>]>>;
|
|
1787
1787
|
}>>, t.ExactC<t.TypeC<{
|
|
1788
1788
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
1789
|
-
}>>]>]>]>>;
|
|
1789
|
+
}>>]>, t.Type<import("../../GroupContent").GroupContent, import("../../GroupContent").GroupContent, unknown>]>]>>;
|
|
1790
1790
|
}>>>;
|
|
1791
1791
|
}>>;
|
|
1792
1792
|
export declare type SharedSliceContent = t.TypeOf<typeof SharedSliceContent>;
|
|
@@ -1724,7 +1724,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
1724
1724
|
}>>]>>;
|
|
1725
1725
|
repeat: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1726
1726
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
1727
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
1727
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1728
1728
|
type: t.StringC;
|
|
1729
1729
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
1730
1730
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -2050,7 +2050,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
2050
2050
|
}>]>>]>>;
|
|
2051
2051
|
}>>, t.ExactC<t.TypeC<{
|
|
2052
2052
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2053
|
-
}>>]>]>]>>;
|
|
2053
|
+
}>>]>, t.Type<import("../..").GroupContent, import("../..").GroupContent, unknown>]>]>>;
|
|
2054
2054
|
}>>>;
|
|
2055
2055
|
}>>, t.ExactC<t.TypeC<{
|
|
2056
2056
|
__TYPE__: t.LiteralC<"SharedSliceContent">;
|
|
@@ -2384,7 +2384,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
2384
2384
|
}>>]>, t.Type<import("../..").GroupContent, import("../..").GroupContent, unknown>]>>;
|
|
2385
2385
|
items: t.ArrayC<t.ExactC<t.TypeC<{
|
|
2386
2386
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
2387
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
2387
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
2388
2388
|
type: t.StringC;
|
|
2389
2389
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
2390
2390
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -2710,7 +2710,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
2710
2710
|
}>]>>]>>;
|
|
2711
2711
|
}>>, t.ExactC<t.TypeC<{
|
|
2712
2712
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2713
|
-
}>>]>]>]>>;
|
|
2713
|
+
}>>]>, t.Type<import("../..").GroupContent, import("../..").GroupContent, unknown>]>]>>;
|
|
2714
2714
|
}>>>;
|
|
2715
2715
|
}>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
2716
2716
|
type: t.StringC;
|
|
@@ -341,7 +341,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
341
341
|
}>>]>>;
|
|
342
342
|
repeat: t.ArrayC<t.ExactC<t.TypeC<{
|
|
343
343
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
344
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
344
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
345
345
|
type: t.StringC;
|
|
346
346
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
347
347
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -667,7 +667,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
667
667
|
}>]>>]>>;
|
|
668
668
|
}>>, t.ExactC<t.TypeC<{
|
|
669
669
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
670
|
-
}>>]>]>]>>;
|
|
670
|
+
}>>]>, t.Type<import("../GroupContent").GroupContent, import("../GroupContent").GroupContent, unknown>]>]>>;
|
|
671
671
|
}>>>;
|
|
672
672
|
}>>, t.ExactC<t.TypeC<{
|
|
673
673
|
__TYPE__: t.LiteralC<"SharedSliceContent">;
|
|
@@ -1001,7 +1001,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1001
1001
|
}>>]>, t.Type<import("../GroupContent").GroupContent, import("../GroupContent").GroupContent, unknown>]>>;
|
|
1002
1002
|
items: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1003
1003
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
1004
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
1004
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1005
1005
|
type: t.StringC;
|
|
1006
1006
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
1007
1007
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1327,7 +1327,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1327
1327
|
}>]>>]>>;
|
|
1328
1328
|
}>>, t.ExactC<t.TypeC<{
|
|
1329
1329
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
1330
|
-
}>>]>]>]>>;
|
|
1330
|
+
}>>]>, t.Type<import("../GroupContent").GroupContent, import("../GroupContent").GroupContent, unknown>]>]>>;
|
|
1331
1331
|
}>>>;
|
|
1332
1332
|
}>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
1333
1333
|
type: t.StringC;
|
|
@@ -3137,7 +3137,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
3137
3137
|
}>>]>>;
|
|
3138
3138
|
repeat: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3139
3139
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
3140
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
3140
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
3141
3141
|
type: t.StringC;
|
|
3142
3142
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
3143
3143
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -3463,7 +3463,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
3463
3463
|
}>]>>]>>;
|
|
3464
3464
|
}>>, t.ExactC<t.TypeC<{
|
|
3465
3465
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
3466
|
-
}>>]>]>]>>;
|
|
3466
|
+
}>>]>, t.Type<import("..").GroupContent, import("..").GroupContent, unknown>]>]>>;
|
|
3467
3467
|
}>>>;
|
|
3468
3468
|
}>>, t.ExactC<t.TypeC<{
|
|
3469
3469
|
__TYPE__: t.LiteralC<"SharedSliceContent">;
|
|
@@ -3797,7 +3797,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
3797
3797
|
}>>]>, t.Type<import("..").GroupContent, import("..").GroupContent, unknown>]>>;
|
|
3798
3798
|
items: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3799
3799
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
3800
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
3800
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
3801
3801
|
type: t.StringC;
|
|
3802
3802
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
3803
3803
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -4123,7 +4123,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4123
4123
|
}>]>>]>>;
|
|
4124
4124
|
}>>, t.ExactC<t.TypeC<{
|
|
4125
4125
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
4126
|
-
}>>]>]>]>>;
|
|
4126
|
+
}>>]>, t.Type<import("..").GroupContent, import("..").GroupContent, unknown>]>]>>;
|
|
4127
4127
|
}>>>;
|
|
4128
4128
|
}>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
4129
4129
|
type: t.StringC;
|