@prismicio/types-internal 1.5.1 → 1.5.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.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Document = exports.WidgetKey = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const t = (0, tslib_1.__importStar)(require("io-ts"));
|
|
6
|
+
const widgets_1 = require("../documents/widgets");
|
|
7
|
+
const fields_1 = require("./fields");
|
|
8
|
+
exports.WidgetKey = widgets_1.WidgetKey;
|
|
9
|
+
const WidgetContent = t.union([
|
|
10
|
+
fields_1.SlicesContent,
|
|
11
|
+
fields_1.UIDContent,
|
|
12
|
+
fields_1.NestableContent,
|
|
13
|
+
fields_1.GroupContent,
|
|
14
|
+
]);
|
|
15
|
+
exports.Document = t.record(exports.WidgetKey, WidgetContent);
|
package/lib/content/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./Document";
|
|
2
2
|
export * from "./fields";
|
package/lib/content/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./Document"), exports);
|
|
5
5
|
(0, tslib_1.__exportStar)(require("./fields"), exports);
|
package/package.json
CHANGED
|
@@ -17,5 +17,5 @@ const WidgetContent = t.union([
|
|
|
17
17
|
NestableContent,
|
|
18
18
|
GroupContent,
|
|
19
19
|
])
|
|
20
|
-
export const
|
|
21
|
-
export type
|
|
20
|
+
export const Document = t.record(WidgetKey, WidgetContent)
|
|
21
|
+
export type Document = t.TypeOf<typeof Document>
|
package/src/content/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./Document"
|
|
2
2
|
export * from "./fields"
|