prismic-ts-codegen
Advanced tools
Comparing version 0.1.24 to 0.1.25-alpha.0
@@ -1,2 +0,2 @@ | ||
const version = "7.15.1"; | ||
const version = "7.16.0-alpha.1"; | ||
export { | ||
@@ -3,0 +3,0 @@ version |
@@ -15,2 +15,3 @@ const CustomTypeModelFieldType = { | ||
StructuredText: "StructuredText", | ||
Table: "Table", | ||
Text: "Text", | ||
@@ -17,0 +18,0 @@ Timestamp: "Timestamp", |
@@ -17,2 +17,3 @@ const CUSTOM_TYPES_DOCUMENTATION_URL = "https://prismic.io/docs/custom-types"; | ||
GeoPoint: "https://prismic.io/docs/field#geopoint", | ||
Table: "https://prismic.io/docs/field#table", | ||
Group: "https://prismic.io/docs/field#group", | ||
@@ -19,0 +20,0 @@ IntegrationFields: "https://prismic.io/docs/field#integration", |
@@ -121,2 +121,6 @@ import { CustomTypeModelFieldType } from './../_node_modules/@prismicio/client/dist/types/model/types.js'; | ||
} | ||
case "Table": { | ||
code = addLine(`${name}: prismic.TableField;`, code); | ||
break; | ||
} | ||
case "Text": { | ||
@@ -123,0 +127,0 @@ code = addLine(`${name}: prismic.KeyTextField;`, code); |
{ | ||
"name": "prismic-ts-codegen", | ||
"version": "0.1.24", | ||
"version": "0.1.25-alpha.0", | ||
"description": "An experimental Prismic model-to-TypeScript-type generator", | ||
@@ -63,4 +63,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@prismicio/client": "7.15.1", | ||
"@prismicio/mock": "0.5.0", | ||
"@prismicio/client": "7.16.0-alpha.1", | ||
"@prismicio/mock": "0.7.0-alpha.4", | ||
"@size-limit/preset-small-lib": "^8.2.6", | ||
@@ -86,2 +86,5 @@ "@trivago/prettier-plugin-sort-imports": "^4.3.0", | ||
}, | ||
"overrides": { | ||
"@prismicio/client": "7.16.0-alpha.1" | ||
}, | ||
"peerDependencies": { | ||
@@ -88,0 +91,0 @@ "@prismicio/client": "^6.6 || ^7", |
@@ -28,2 +28,3 @@ import type { CustomTypeModelFieldType } from "@prismicio/client"; | ||
GeoPoint: "https://prismic.io/docs/field#geopoint", | ||
Table: "https://prismic.io/docs/field#table", | ||
Group: "https://prismic.io/docs/field#group", | ||
@@ -30,0 +31,0 @@ IntegrationFields: "https://prismic.io/docs/field#integration", |
@@ -247,2 +247,8 @@ import { | ||
case "Table": { | ||
code = addLine(`${name}: prismic.TableField;`, code); | ||
break; | ||
} | ||
case "Text": { | ||
@@ -249,0 +255,0 @@ code = addLine(`${name}: prismic.KeyTextField;`, code); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3626255
39730