@prismicio/types-internal 0.1.0 → 0.1.1
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/customtypes/CustomType.d.ts +2703 -0
- package/dist/customtypes/CustomType.js +141 -0
- package/dist/customtypes/Format.d.ts +4 -0
- package/dist/customtypes/Format.js +8 -0
- package/dist/customtypes/Section.d.ts +4010 -0
- package/dist/customtypes/Section.js +40 -0
- package/dist/customtypes/index.d.ts +4 -18433
- package/dist/customtypes/index.js +30 -864
- package/dist/customtypes/widgets/Group.d.ts +172 -0
- package/dist/customtypes/widgets/Group.js +45 -0
- package/dist/customtypes/widgets/UID.d.ts +14 -0
- package/dist/customtypes/widgets/UID.js +42 -0
- package/dist/customtypes/widgets/Widget.d.ts +4011 -0
- package/dist/customtypes/widgets/Widget.js +51 -0
- package/dist/customtypes/widgets/WidgetTypes.d.ts +22 -0
- package/dist/customtypes/widgets/WidgetTypes.js +26 -0
- package/dist/customtypes/widgets/index.d.ts +7 -11697
- package/dist/customtypes/widgets/index.js +34 -734
- package/dist/customtypes/widgets/nestable/BooleanField.d.ts +14 -0
- package/dist/customtypes/widgets/nestable/BooleanField.js +42 -0
- package/dist/customtypes/widgets/nestable/Color.d.ts +13 -0
- package/dist/customtypes/widgets/nestable/Color.js +41 -0
- package/dist/customtypes/widgets/nestable/Date.d.ts +14 -0
- package/dist/customtypes/widgets/nestable/Date.js +42 -0
- package/dist/customtypes/widgets/nestable/Embed.d.ts +14 -0
- package/dist/customtypes/widgets/nestable/Embed.js +42 -0
- package/dist/customtypes/widgets/nestable/GeoPoint.d.ts +12 -0
- package/dist/customtypes/widgets/nestable/GeoPoint.js +40 -0
- package/dist/customtypes/widgets/nestable/Image.d.ts +23 -0
- package/dist/customtypes/widgets/nestable/Image.js +50 -0
- package/dist/customtypes/widgets/nestable/IntegrationField.d.ts +14 -0
- package/dist/customtypes/widgets/nestable/IntegrationField.js +42 -0
- package/dist/customtypes/widgets/nestable/Link.d.ts +19 -0
- package/dist/customtypes/widgets/nestable/Link.js +78 -0
- package/dist/customtypes/widgets/nestable/NestableWidget.d.ts +160 -0
- package/dist/customtypes/widgets/nestable/NestableWidget.js +58 -0
- package/dist/customtypes/widgets/nestable/Number.d.ts +16 -0
- package/dist/customtypes/widgets/nestable/Number.js +45 -0
- package/dist/customtypes/widgets/nestable/Range.d.ts +16 -0
- package/dist/customtypes/widgets/nestable/Range.js +45 -0
- package/dist/customtypes/widgets/nestable/RichText.d.ts +22 -0
- package/dist/customtypes/widgets/nestable/RichText.js +134 -0
- package/dist/customtypes/widgets/nestable/Select.d.ts +15 -0
- package/dist/customtypes/widgets/nestable/Select.js +45 -0
- package/dist/customtypes/widgets/nestable/Separator.d.ts +11 -0
- package/dist/customtypes/widgets/nestable/Separator.js +39 -0
- package/dist/customtypes/widgets/nestable/Text.d.ts +14 -0
- package/dist/customtypes/widgets/nestable/Text.js +42 -0
- package/dist/customtypes/widgets/nestable/Timestamp.d.ts +14 -0
- package/dist/customtypes/widgets/nestable/Timestamp.js +42 -0
- package/dist/customtypes/widgets/nestable/index.d.ts +15 -0
- package/dist/customtypes/widgets/nestable/index.js +36 -0
- package/dist/customtypes/widgets/shared/ImageConstraint.d.ts +7 -0
- package/dist/customtypes/widgets/shared/ImageConstraint.js +48 -0
- package/dist/customtypes/widgets/shared/index.d.ts +1 -0
- package/dist/customtypes/widgets/shared/index.js +8 -0
- package/dist/customtypes/widgets/slices/CompositeSlice.d.ts +329 -0
- package/dist/customtypes/widgets/slices/CompositeSlice.js +46 -0
- package/dist/customtypes/widgets/slices/LegacySlice.d.ts +336 -0
- package/dist/customtypes/widgets/slices/LegacySlice.js +34 -0
- package/dist/customtypes/widgets/slices/SharedSlice.d.ts +335 -0
- package/dist/customtypes/widgets/slices/SharedSlice.js +56 -0
- package/dist/customtypes/widgets/slices/SharedSliceRef.d.ts +7 -0
- package/dist/customtypes/widgets/slices/SharedSliceRef.js +30 -0
- package/dist/customtypes/widgets/slices/Slice.d.ts +6 -0
- package/dist/customtypes/widgets/slices/Slice.js +2 -0
- package/dist/customtypes/widgets/slices/Slices.d.ts +6009 -0
- package/dist/customtypes/widgets/slices/Slices.js +106 -0
- package/dist/customtypes/widgets/slices/SlicesTypes.d.ts +5 -0
- package/dist/customtypes/widgets/slices/SlicesTypes.js +8 -0
- package/dist/customtypes/widgets/slices/index.d.ts +7 -7079
- package/dist/customtypes/widgets/slices/index.js +36 -670
- package/dist/index.d.ts +1 -18455
- package/dist/index.js +23 -844
- package/dist/index.js.map +1 -1
- package/dist/validators/IntFromNumber.d.ts +7 -0
- package/dist/validators/IntFromNumber.js +35 -0
- package/dist/validators/IntFromPixels.d.ts +7 -0
- package/dist/validators/IntFromPixels.js +43 -0
- package/dist/validators/StringFromBoolean.d.ts +7 -0
- package/dist/validators/StringFromBoolean.js +31 -0
- package/dist/validators/StringFromNumber.d.ts +7 -0
- package/dist/validators/StringFromNumber.js +31 -0
- package/dist/validators/StringOrNull.d.ts +2 -0
- package/dist/validators/StringOrNull.js +24 -0
- package/package.json +4 -24
- package/dist/customtypes/index.cjs +0 -864
- package/dist/customtypes/index.cjs.map +0 -1
- package/dist/customtypes/index.d.ts.map +0 -1
- package/dist/customtypes/index.js.map +0 -1
- package/dist/customtypes/widgets/index.cjs +0 -735
- package/dist/customtypes/widgets/index.cjs.map +0 -1
- package/dist/customtypes/widgets/index.d.ts.map +0 -1
- package/dist/customtypes/widgets/index.js.map +0 -1
- package/dist/customtypes/widgets/slices/index.cjs +0 -671
- package/dist/customtypes/widgets/slices/index.cjs.map +0 -1
- package/dist/customtypes/widgets/slices/index.d.ts.map +0 -1
- package/dist/customtypes/widgets/slices/index.js.map +0 -1
- package/dist/index.cjs +0 -870
- package/dist/index.cjs.map +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
const t = __importStar(require("io-ts"));
|
|
26
|
+
const StringOrNull_1 = require("../../../validators/StringOrNull");
|
|
27
|
+
const WidgetTypes_1 = __importDefault(require("../WidgetTypes"));
|
|
28
|
+
const TextConfig = t.exact(t.partial({
|
|
29
|
+
label: StringOrNull_1.StringOrNull,
|
|
30
|
+
useAsTitle: t.boolean,
|
|
31
|
+
placeholder: t.string
|
|
32
|
+
}));
|
|
33
|
+
const Text = t.exact(t.intersection([
|
|
34
|
+
t.type({
|
|
35
|
+
type: t.literal(WidgetTypes_1.default.Text)
|
|
36
|
+
}),
|
|
37
|
+
t.partial({
|
|
38
|
+
fieldset: StringOrNull_1.StringOrNull,
|
|
39
|
+
config: TextConfig
|
|
40
|
+
})
|
|
41
|
+
]));
|
|
42
|
+
exports.default = Text;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as t from 'io-ts';
|
|
2
|
+
import WidgetTypes from '../WidgetTypes';
|
|
3
|
+
declare const Timestamp: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
4
|
+
type: t.LiteralC<WidgetTypes.Timestamp>;
|
|
5
|
+
}>, t.PartialC<{
|
|
6
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
7
|
+
config: t.ExactC<t.PartialC<{
|
|
8
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
9
|
+
placeholder: t.StringC;
|
|
10
|
+
default: t.StringC;
|
|
11
|
+
}>>;
|
|
12
|
+
}>]>>;
|
|
13
|
+
declare type Timestamp = t.TypeOf<typeof Timestamp>;
|
|
14
|
+
export default Timestamp;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
const t = __importStar(require("io-ts"));
|
|
26
|
+
const StringOrNull_1 = require("../../../validators/StringOrNull");
|
|
27
|
+
const WidgetTypes_1 = __importDefault(require("../WidgetTypes"));
|
|
28
|
+
const TimestampConfig = t.exact(t.partial({
|
|
29
|
+
label: StringOrNull_1.StringOrNull,
|
|
30
|
+
placeholder: t.string,
|
|
31
|
+
default: t.string
|
|
32
|
+
}));
|
|
33
|
+
const Timestamp = t.exact(t.intersection([
|
|
34
|
+
t.type({
|
|
35
|
+
type: t.literal(WidgetTypes_1.default.Timestamp)
|
|
36
|
+
}),
|
|
37
|
+
t.partial({
|
|
38
|
+
fieldset: StringOrNull_1.StringOrNull,
|
|
39
|
+
config: TimestampConfig
|
|
40
|
+
})
|
|
41
|
+
]));
|
|
42
|
+
exports.default = Timestamp;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as BooleanField } from './BooleanField';
|
|
2
|
+
export { default as Color } from './Color';
|
|
3
|
+
export { default as Date } from './Date';
|
|
4
|
+
export { default as GeoPoint } from './GeoPoint';
|
|
5
|
+
export { default as Image } from './Image';
|
|
6
|
+
export { default as IntegrationField } from './IntegrationField';
|
|
7
|
+
export { default as Link } from './Link';
|
|
8
|
+
export { default as NestableWidget } from './NestableWidget';
|
|
9
|
+
export { default as Number } from './Number';
|
|
10
|
+
export { default as Range } from './Range';
|
|
11
|
+
export { default as RichText } from './RichText';
|
|
12
|
+
export { default as Select } from './Select';
|
|
13
|
+
export { default as Separator } from './Separator';
|
|
14
|
+
export { default as Text } from './Text';
|
|
15
|
+
export { default as Timestamp } from './Timestamp';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Timestamp = exports.Text = exports.Separator = exports.Select = exports.RichText = exports.Range = exports.Number = exports.NestableWidget = exports.Link = exports.IntegrationField = exports.Image = exports.GeoPoint = exports.Date = exports.Color = exports.BooleanField = void 0;
|
|
7
|
+
var BooleanField_1 = require("./BooleanField");
|
|
8
|
+
Object.defineProperty(exports, "BooleanField", { enumerable: true, get: function () { return __importDefault(BooleanField_1).default; } });
|
|
9
|
+
var Color_1 = require("./Color");
|
|
10
|
+
Object.defineProperty(exports, "Color", { enumerable: true, get: function () { return __importDefault(Color_1).default; } });
|
|
11
|
+
var Date_1 = require("./Date");
|
|
12
|
+
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return __importDefault(Date_1).default; } });
|
|
13
|
+
var GeoPoint_1 = require("./GeoPoint");
|
|
14
|
+
Object.defineProperty(exports, "GeoPoint", { enumerable: true, get: function () { return __importDefault(GeoPoint_1).default; } });
|
|
15
|
+
var Image_1 = require("./Image");
|
|
16
|
+
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return __importDefault(Image_1).default; } });
|
|
17
|
+
var IntegrationField_1 = require("./IntegrationField");
|
|
18
|
+
Object.defineProperty(exports, "IntegrationField", { enumerable: true, get: function () { return __importDefault(IntegrationField_1).default; } });
|
|
19
|
+
var Link_1 = require("./Link");
|
|
20
|
+
Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return __importDefault(Link_1).default; } });
|
|
21
|
+
var NestableWidget_1 = require("./NestableWidget");
|
|
22
|
+
Object.defineProperty(exports, "NestableWidget", { enumerable: true, get: function () { return __importDefault(NestableWidget_1).default; } });
|
|
23
|
+
var Number_1 = require("./Number");
|
|
24
|
+
Object.defineProperty(exports, "Number", { enumerable: true, get: function () { return __importDefault(Number_1).default; } });
|
|
25
|
+
var Range_1 = require("./Range");
|
|
26
|
+
Object.defineProperty(exports, "Range", { enumerable: true, get: function () { return __importDefault(Range_1).default; } });
|
|
27
|
+
var RichText_1 = require("./RichText");
|
|
28
|
+
Object.defineProperty(exports, "RichText", { enumerable: true, get: function () { return __importDefault(RichText_1).default; } });
|
|
29
|
+
var Select_1 = require("./Select");
|
|
30
|
+
Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return __importDefault(Select_1).default; } });
|
|
31
|
+
var Separator_1 = require("./Separator");
|
|
32
|
+
Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return __importDefault(Separator_1).default; } });
|
|
33
|
+
var Text_1 = require("./Text");
|
|
34
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return __importDefault(Text_1).default; } });
|
|
35
|
+
var Timestamp_1 = require("./Timestamp");
|
|
36
|
+
Object.defineProperty(exports, "Timestamp", { enumerable: true, get: function () { return __importDefault(Timestamp_1).default; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as t from 'io-ts';
|
|
2
|
+
declare const ImageConstraint: t.PartialC<{
|
|
3
|
+
width: t.Type<number | null, any, unknown>;
|
|
4
|
+
height: t.Type<number | null, any, unknown>;
|
|
5
|
+
}>;
|
|
6
|
+
declare type ImageConstraint = t.TypeOf<typeof ImageConstraint>;
|
|
7
|
+
export default ImageConstraint;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
const t = __importStar(require("io-ts"));
|
|
23
|
+
const Either_1 = require("fp-ts/lib/Either");
|
|
24
|
+
const IntFromString_1 = require("io-ts-types/lib/IntFromString");
|
|
25
|
+
const IntFromNumber_1 = require("../../../validators/IntFromNumber");
|
|
26
|
+
const IntFromPixels_1 = require("../../../validators/IntFromPixels");
|
|
27
|
+
const SideConstraint = new t.Type('SideConstraints', (u) => {
|
|
28
|
+
return !u || typeof u === 'number';
|
|
29
|
+
}, (u, context) => {
|
|
30
|
+
return Either_1.either.chain(t.union([
|
|
31
|
+
t.literal('auto'),
|
|
32
|
+
t.literal(''),
|
|
33
|
+
t.Int,
|
|
34
|
+
IntFromString_1.IntFromString,
|
|
35
|
+
IntFromNumber_1.IntFromNumber,
|
|
36
|
+
IntFromPixels_1.IntFromPixels,
|
|
37
|
+
t.null
|
|
38
|
+
]).validate(u, context), (constraint) => {
|
|
39
|
+
if (constraint === 'auto' || constraint === '')
|
|
40
|
+
return t.success(null);
|
|
41
|
+
return t.success(constraint);
|
|
42
|
+
});
|
|
43
|
+
}, res => res);
|
|
44
|
+
const ImageConstraint = t.partial({
|
|
45
|
+
width: SideConstraint,
|
|
46
|
+
height: SideConstraint
|
|
47
|
+
});
|
|
48
|
+
exports.default = ImageConstraint;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ImageConstraint } from './ImageConstraint';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ImageConstraint = void 0;
|
|
7
|
+
var ImageConstraint_1 = require("./ImageConstraint");
|
|
8
|
+
Object.defineProperty(exports, "ImageConstraint", { enumerable: true, get: function () { return __importDefault(ImageConstraint_1).default; } });
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import * as t from 'io-ts';
|
|
2
|
+
import SlicesTypes from './SlicesTypes';
|
|
3
|
+
declare const CompositeSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
4
|
+
type: t.LiteralC<SlicesTypes.Slice>;
|
|
5
|
+
}>, t.PartialC<{
|
|
6
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
7
|
+
description: t.StringC;
|
|
8
|
+
icon: t.StringC;
|
|
9
|
+
display: t.StringC;
|
|
10
|
+
'non-repeat': t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
11
|
+
type: t.LiteralC<import("../WidgetTypes").default.Color>;
|
|
12
|
+
}>, t.PartialC<{
|
|
13
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
14
|
+
config: t.ExactC<t.PartialC<{
|
|
15
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
16
|
+
placeholder: t.StringC;
|
|
17
|
+
}>>;
|
|
18
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
19
|
+
type: t.LiteralC<import("../WidgetTypes").default.BooleanField>;
|
|
20
|
+
}>, t.PartialC<{
|
|
21
|
+
config: t.ExactC<t.PartialC<{
|
|
22
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
23
|
+
default_value: t.BooleanC;
|
|
24
|
+
placeholder_true: t.StringC;
|
|
25
|
+
placeholder_false: t.StringC;
|
|
26
|
+
}>>;
|
|
27
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
28
|
+
type: t.LiteralC<import("../WidgetTypes").default.Embed>;
|
|
29
|
+
}>, t.PartialC<{
|
|
30
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
31
|
+
config: t.ExactC<t.PartialC<{
|
|
32
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
33
|
+
placeholder: t.StringC;
|
|
34
|
+
useAsTitle: t.BooleanC;
|
|
35
|
+
}>>;
|
|
36
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
37
|
+
type: t.LiteralC<import("../WidgetTypes").default.GeoPoint>;
|
|
38
|
+
}>, t.PartialC<{
|
|
39
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
40
|
+
config: t.ExactC<t.PartialC<{
|
|
41
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
42
|
+
}>>;
|
|
43
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
44
|
+
type: t.LiteralC<import("../WidgetTypes").default.Date>;
|
|
45
|
+
}>, t.PartialC<{
|
|
46
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
47
|
+
config: t.ExactC<t.PartialC<{
|
|
48
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
49
|
+
placeholder: t.StringC;
|
|
50
|
+
default: t.StringC;
|
|
51
|
+
}>>;
|
|
52
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
53
|
+
type: t.LiteralC<import("../WidgetTypes").default.Number>;
|
|
54
|
+
}>, t.PartialC<{
|
|
55
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
56
|
+
config: t.ExactC<t.PartialC<{
|
|
57
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
58
|
+
placeholder: t.StringC;
|
|
59
|
+
min: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
60
|
+
max: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
61
|
+
step: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
62
|
+
}>>;
|
|
63
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
64
|
+
type: t.LiteralC<import("../WidgetTypes").default.Range>;
|
|
65
|
+
}>, t.PartialC<{
|
|
66
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
67
|
+
config: t.ExactC<t.PartialC<{
|
|
68
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
69
|
+
placeholder: t.StringC;
|
|
70
|
+
min: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
71
|
+
max: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
72
|
+
step: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
73
|
+
}>>;
|
|
74
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
75
|
+
type: t.LiteralC<import("../WidgetTypes").default.RichText>;
|
|
76
|
+
}>, t.PartialC<{
|
|
77
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
78
|
+
config: t.ExactC<t.PartialC<{
|
|
79
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
80
|
+
placeholder: t.StringC;
|
|
81
|
+
useAsTitle: t.BooleanC;
|
|
82
|
+
single: t.Type<string, string, unknown>;
|
|
83
|
+
multi: t.Type<string, string, unknown>;
|
|
84
|
+
imageConstraint: t.PartialC<{
|
|
85
|
+
width: t.Type<number | null, any, unknown>;
|
|
86
|
+
height: t.Type<number | null, any, unknown>;
|
|
87
|
+
}>;
|
|
88
|
+
labels: t.Type<string[], object, unknown>;
|
|
89
|
+
allowTargetBlank: t.BooleanC;
|
|
90
|
+
}>>;
|
|
91
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
92
|
+
type: t.LiteralC<import("../WidgetTypes").default.Select>;
|
|
93
|
+
}>, t.PartialC<{
|
|
94
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
95
|
+
config: t.ExactC<t.PartialC<{
|
|
96
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
97
|
+
placeholder: t.StringC;
|
|
98
|
+
default_value: t.StringC;
|
|
99
|
+
options: t.ArrayC<t.UnionC<[t.StringC, import("../../../validators/StringFromNumber").StringFromNumberC, import("../../../validators/StringFromBoolean").StringFromBooleanC]>>;
|
|
100
|
+
}>>;
|
|
101
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
102
|
+
type: t.LiteralC<import("../WidgetTypes").default.Separator>;
|
|
103
|
+
}>, t.PartialC<{
|
|
104
|
+
config: t.ExactC<t.PartialC<{
|
|
105
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
106
|
+
}>>;
|
|
107
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
108
|
+
type: t.LiteralC<import("../WidgetTypes").default.Text>;
|
|
109
|
+
}>, t.PartialC<{
|
|
110
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
111
|
+
config: t.ExactC<t.PartialC<{
|
|
112
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
113
|
+
useAsTitle: t.BooleanC;
|
|
114
|
+
placeholder: t.StringC;
|
|
115
|
+
}>>;
|
|
116
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
117
|
+
type: t.LiteralC<import("../WidgetTypes").default.Timestamp>;
|
|
118
|
+
}>, t.PartialC<{
|
|
119
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
120
|
+
config: t.ExactC<t.PartialC<{
|
|
121
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
122
|
+
placeholder: t.StringC;
|
|
123
|
+
default: t.StringC;
|
|
124
|
+
}>>;
|
|
125
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
126
|
+
type: t.LiteralC<import("../WidgetTypes").default.Link>;
|
|
127
|
+
}>, t.PartialC<{
|
|
128
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
129
|
+
config: t.ExactC<t.PartialC<{
|
|
130
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
131
|
+
useAsTitle: t.BooleanC;
|
|
132
|
+
placeholder: t.StringC;
|
|
133
|
+
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
|
|
134
|
+
customtypes: t.ArrayC<t.StringC>;
|
|
135
|
+
masks: t.Type<string[], object, unknown>;
|
|
136
|
+
tags: t.Type<string[], object, unknown>;
|
|
137
|
+
allowTargetBlank: t.BooleanC;
|
|
138
|
+
}>>;
|
|
139
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
140
|
+
type: t.LiteralC<import("../WidgetTypes").default.Image>;
|
|
141
|
+
}>, t.PartialC<{
|
|
142
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
143
|
+
config: t.ExactC<t.PartialC<{
|
|
144
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
145
|
+
placeholder: t.StringC;
|
|
146
|
+
constraint: t.PartialC<{
|
|
147
|
+
width: t.Type<number | null, any, unknown>;
|
|
148
|
+
height: t.Type<number | null, any, unknown>;
|
|
149
|
+
}>;
|
|
150
|
+
thumbnails: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
151
|
+
name: t.StringC;
|
|
152
|
+
}>, t.PartialC<{
|
|
153
|
+
width: t.Type<number | null, any, unknown>;
|
|
154
|
+
height: t.Type<number | null, any, unknown>;
|
|
155
|
+
}>]>>>;
|
|
156
|
+
}>>;
|
|
157
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
158
|
+
type: t.LiteralC<import("../WidgetTypes").default.IntegrationField>;
|
|
159
|
+
}>, t.PartialC<{
|
|
160
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
161
|
+
config: t.ExactC<t.PartialC<{
|
|
162
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
163
|
+
placeholder: t.StringC;
|
|
164
|
+
catalog: t.StringC;
|
|
165
|
+
}>>;
|
|
166
|
+
}>]>>]>>;
|
|
167
|
+
repeat: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
168
|
+
type: t.LiteralC<import("../WidgetTypes").default.Color>;
|
|
169
|
+
}>, t.PartialC<{
|
|
170
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
171
|
+
config: t.ExactC<t.PartialC<{
|
|
172
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
173
|
+
placeholder: t.StringC;
|
|
174
|
+
}>>;
|
|
175
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
176
|
+
type: t.LiteralC<import("../WidgetTypes").default.BooleanField>;
|
|
177
|
+
}>, t.PartialC<{
|
|
178
|
+
config: t.ExactC<t.PartialC<{
|
|
179
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
180
|
+
default_value: t.BooleanC;
|
|
181
|
+
placeholder_true: t.StringC;
|
|
182
|
+
placeholder_false: t.StringC;
|
|
183
|
+
}>>;
|
|
184
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
185
|
+
type: t.LiteralC<import("../WidgetTypes").default.Embed>;
|
|
186
|
+
}>, t.PartialC<{
|
|
187
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
188
|
+
config: t.ExactC<t.PartialC<{
|
|
189
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
190
|
+
placeholder: t.StringC;
|
|
191
|
+
useAsTitle: t.BooleanC;
|
|
192
|
+
}>>;
|
|
193
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
194
|
+
type: t.LiteralC<import("../WidgetTypes").default.GeoPoint>;
|
|
195
|
+
}>, t.PartialC<{
|
|
196
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
197
|
+
config: t.ExactC<t.PartialC<{
|
|
198
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
199
|
+
}>>;
|
|
200
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
201
|
+
type: t.LiteralC<import("../WidgetTypes").default.Date>;
|
|
202
|
+
}>, t.PartialC<{
|
|
203
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
204
|
+
config: t.ExactC<t.PartialC<{
|
|
205
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
206
|
+
placeholder: t.StringC;
|
|
207
|
+
default: t.StringC;
|
|
208
|
+
}>>;
|
|
209
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
210
|
+
type: t.LiteralC<import("../WidgetTypes").default.Number>;
|
|
211
|
+
}>, t.PartialC<{
|
|
212
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
213
|
+
config: t.ExactC<t.PartialC<{
|
|
214
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
215
|
+
placeholder: t.StringC;
|
|
216
|
+
min: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
217
|
+
max: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
218
|
+
step: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
219
|
+
}>>;
|
|
220
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
221
|
+
type: t.LiteralC<import("../WidgetTypes").default.Range>;
|
|
222
|
+
}>, t.PartialC<{
|
|
223
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
224
|
+
config: t.ExactC<t.PartialC<{
|
|
225
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
226
|
+
placeholder: t.StringC;
|
|
227
|
+
min: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
228
|
+
max: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
229
|
+
step: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>;
|
|
230
|
+
}>>;
|
|
231
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
232
|
+
type: t.LiteralC<import("../WidgetTypes").default.RichText>;
|
|
233
|
+
}>, t.PartialC<{
|
|
234
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
235
|
+
config: t.ExactC<t.PartialC<{
|
|
236
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
237
|
+
placeholder: t.StringC;
|
|
238
|
+
useAsTitle: t.BooleanC;
|
|
239
|
+
single: t.Type<string, string, unknown>;
|
|
240
|
+
multi: t.Type<string, string, unknown>;
|
|
241
|
+
imageConstraint: t.PartialC<{
|
|
242
|
+
width: t.Type<number | null, any, unknown>;
|
|
243
|
+
height: t.Type<number | null, any, unknown>;
|
|
244
|
+
}>;
|
|
245
|
+
labels: t.Type<string[], object, unknown>;
|
|
246
|
+
allowTargetBlank: t.BooleanC;
|
|
247
|
+
}>>;
|
|
248
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
249
|
+
type: t.LiteralC<import("../WidgetTypes").default.Select>;
|
|
250
|
+
}>, t.PartialC<{
|
|
251
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
252
|
+
config: t.ExactC<t.PartialC<{
|
|
253
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
254
|
+
placeholder: t.StringC;
|
|
255
|
+
default_value: t.StringC;
|
|
256
|
+
options: t.ArrayC<t.UnionC<[t.StringC, import("../../../validators/StringFromNumber").StringFromNumberC, import("../../../validators/StringFromBoolean").StringFromBooleanC]>>;
|
|
257
|
+
}>>;
|
|
258
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
259
|
+
type: t.LiteralC<import("../WidgetTypes").default.Separator>;
|
|
260
|
+
}>, t.PartialC<{
|
|
261
|
+
config: t.ExactC<t.PartialC<{
|
|
262
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
263
|
+
}>>;
|
|
264
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
265
|
+
type: t.LiteralC<import("../WidgetTypes").default.Text>;
|
|
266
|
+
}>, t.PartialC<{
|
|
267
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
268
|
+
config: t.ExactC<t.PartialC<{
|
|
269
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
270
|
+
useAsTitle: t.BooleanC;
|
|
271
|
+
placeholder: t.StringC;
|
|
272
|
+
}>>;
|
|
273
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
274
|
+
type: t.LiteralC<import("../WidgetTypes").default.Timestamp>;
|
|
275
|
+
}>, t.PartialC<{
|
|
276
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
277
|
+
config: t.ExactC<t.PartialC<{
|
|
278
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
279
|
+
placeholder: t.StringC;
|
|
280
|
+
default: t.StringC;
|
|
281
|
+
}>>;
|
|
282
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
283
|
+
type: t.LiteralC<import("../WidgetTypes").default.Link>;
|
|
284
|
+
}>, t.PartialC<{
|
|
285
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
286
|
+
config: t.ExactC<t.PartialC<{
|
|
287
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
288
|
+
useAsTitle: t.BooleanC;
|
|
289
|
+
placeholder: t.StringC;
|
|
290
|
+
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
|
|
291
|
+
customtypes: t.ArrayC<t.StringC>;
|
|
292
|
+
masks: t.Type<string[], object, unknown>;
|
|
293
|
+
tags: t.Type<string[], object, unknown>;
|
|
294
|
+
allowTargetBlank: t.BooleanC;
|
|
295
|
+
}>>;
|
|
296
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
297
|
+
type: t.LiteralC<import("../WidgetTypes").default.Image>;
|
|
298
|
+
}>, t.PartialC<{
|
|
299
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
300
|
+
config: t.ExactC<t.PartialC<{
|
|
301
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
302
|
+
placeholder: t.StringC;
|
|
303
|
+
constraint: t.PartialC<{
|
|
304
|
+
width: t.Type<number | null, any, unknown>;
|
|
305
|
+
height: t.Type<number | null, any, unknown>;
|
|
306
|
+
}>;
|
|
307
|
+
thumbnails: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
308
|
+
name: t.StringC;
|
|
309
|
+
}>, t.PartialC<{
|
|
310
|
+
width: t.Type<number | null, any, unknown>;
|
|
311
|
+
height: t.Type<number | null, any, unknown>;
|
|
312
|
+
}>]>>>;
|
|
313
|
+
}>>;
|
|
314
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
315
|
+
type: t.LiteralC<import("../WidgetTypes").default.IntegrationField>;
|
|
316
|
+
}>, t.PartialC<{
|
|
317
|
+
fieldset: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
318
|
+
config: t.ExactC<t.PartialC<{
|
|
319
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
320
|
+
placeholder: t.StringC;
|
|
321
|
+
catalog: t.StringC;
|
|
322
|
+
}>>;
|
|
323
|
+
}>]>>]>>;
|
|
324
|
+
config: t.ExactC<t.PartialC<{
|
|
325
|
+
label: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
|
326
|
+
}>>;
|
|
327
|
+
}>]>>;
|
|
328
|
+
declare type CompositeSlice = t.TypeOf<typeof CompositeSlice>;
|
|
329
|
+
export default CompositeSlice;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
const t = __importStar(require("io-ts"));
|
|
26
|
+
const SlicesTypes_1 = __importDefault(require("./SlicesTypes"));
|
|
27
|
+
const NestableWidget_1 = __importDefault(require("../nestable/NestableWidget"));
|
|
28
|
+
const StringOrNull_1 = require("../../../validators/StringOrNull");
|
|
29
|
+
const CompositeSliceConfig = t.exact(t.partial({
|
|
30
|
+
label: StringOrNull_1.StringOrNull
|
|
31
|
+
}));
|
|
32
|
+
const CompositeSlice = t.exact(t.intersection([
|
|
33
|
+
t.type({
|
|
34
|
+
type: t.literal(SlicesTypes_1.default.Slice)
|
|
35
|
+
}),
|
|
36
|
+
t.partial({
|
|
37
|
+
fieldset: StringOrNull_1.StringOrNull,
|
|
38
|
+
description: t.string,
|
|
39
|
+
icon: t.string,
|
|
40
|
+
display: t.string,
|
|
41
|
+
'non-repeat': t.record(t.string, NestableWidget_1.default),
|
|
42
|
+
repeat: t.record(t.string, NestableWidget_1.default),
|
|
43
|
+
config: CompositeSliceConfig
|
|
44
|
+
})
|
|
45
|
+
]));
|
|
46
|
+
exports.default = CompositeSlice;
|