@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);
@@ -1,2 +1,2 @@
1
- export * from "./CustomType";
1
+ export * from "./Document";
2
2
  export * from "./fields";
@@ -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("./CustomType"), exports);
4
+ (0, tslib_1.__exportStar)(require("./Document"), exports);
5
5
  (0, tslib_1.__exportStar)(require("./fields"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/types-internal",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Prismic types for Custom Types and Prismic Data",
5
5
  "keywords": [
6
6
  "typescript",
@@ -17,5 +17,5 @@ const WidgetContent = t.union([
17
17
  NestableContent,
18
18
  GroupContent,
19
19
  ])
20
- export const CustomTypeContent = t.record(WidgetKey, WidgetContent)
21
- export type CustomTypeContent = t.TypeOf<typeof CustomTypeContent>
20
+ export const Document = t.record(WidgetKey, WidgetContent)
21
+ export type Document = t.TypeOf<typeof Document>
@@ -1,2 +1,2 @@
1
- export * from "./CustomType"
1
+ export * from "./Document"
2
2
  export * from "./fields"