@webiny/app-headless-cms-common 0.0.0-unstable.085ff6572f → 0.0.0-unstable.c7dec08bb0
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/package.json +7 -7
- package/types/model.d.ts +7 -2
- package/types/model.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-headless-cms-common",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.c7dec08bb0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"@babel/runtime": "7.20.13",
|
|
17
17
|
"@fortawesome/fontawesome-svg-core": "1.3.0",
|
|
18
18
|
"@types/react": "17.0.39",
|
|
19
|
-
"@webiny/app-security": "0.0.0-unstable.
|
|
20
|
-
"@webiny/form": "0.0.0-unstable.
|
|
21
|
-
"@webiny/plugins": "0.0.0-unstable.
|
|
19
|
+
"@webiny/app-security": "0.0.0-unstable.c7dec08bb0",
|
|
20
|
+
"@webiny/form": "0.0.0-unstable.c7dec08bb0",
|
|
21
|
+
"@webiny/plugins": "0.0.0-unstable.c7dec08bb0",
|
|
22
22
|
"graphql": "15.8.0",
|
|
23
23
|
"graphql-tag": "2.12.6",
|
|
24
24
|
"prop-types": "15.8.1",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@babel/preset-env": "7.20.2",
|
|
32
32
|
"@babel/preset-react": "7.18.6",
|
|
33
33
|
"@babel/preset-typescript": "7.18.6",
|
|
34
|
-
"@webiny/cli": "0.0.0-unstable.
|
|
35
|
-
"@webiny/project-utils": "0.0.0-unstable.
|
|
34
|
+
"@webiny/cli": "0.0.0-unstable.c7dec08bb0",
|
|
35
|
+
"@webiny/project-utils": "0.0.0-unstable.c7dec08bb0",
|
|
36
36
|
"babel-plugin-emotion": "9.2.11",
|
|
37
37
|
"babel-plugin-lodash": "3.3.4",
|
|
38
38
|
"babel-plugin-module-resolver": "4.1.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"build": "yarn webiny run build",
|
|
49
49
|
"watch": "yarn webiny run watch"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "c7dec08bb095467cca6a61381bd399d66b7bb147"
|
|
52
52
|
}
|
package/types/model.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CmsModelFieldValidator } from "./validation";
|
|
2
|
-
import { CmsDynamicZoneTemplate, CmsEditorFieldPredefinedValues } from "./index";
|
|
2
|
+
import { CmsDynamicZoneTemplate, CmsEditorFieldPredefinedValues, CmsModelFieldRendererPlugin } from "./index";
|
|
3
3
|
import { CmsIdentity } from "./shared";
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Use `CmsModelField` instead.
|
|
@@ -31,7 +31,12 @@ export declare type CmsModelField<T = unknown> = T & {
|
|
|
31
31
|
settings?: CmsModelFieldSettings<T>;
|
|
32
32
|
renderer: {
|
|
33
33
|
name: string;
|
|
34
|
-
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Use this only for programmatic assignment of renderers.
|
|
37
|
+
* Since functions cannot be serialized, this can only work via code.
|
|
38
|
+
*/
|
|
39
|
+
| CmsModelFieldRendererPlugin["renderer"]["render"];
|
|
35
40
|
tags?: string[];
|
|
36
41
|
};
|
|
37
42
|
export declare type CmsEditorFieldId = string;
|
package/types/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["model.ts"],"sourcesContent":["import { CmsModelFieldValidator } from \"~/types/validation\";\nimport {
|
|
1
|
+
{"version":3,"names":[],"sources":["model.ts"],"sourcesContent":["import { CmsModelFieldValidator } from \"~/types/validation\";\nimport {\n CmsDynamicZoneTemplate,\n CmsEditorFieldPredefinedValues,\n CmsModelFieldRendererPlugin\n} from \"~/types/index\";\nimport { CmsIdentity } from \"~/types/shared\";\n\n/**\n * @deprecated Use `CmsModelField` instead.\n */\nexport type CmsEditorField<T = unknown> = CmsModelField<T>;\n\nexport interface CmsModelFieldSettings<T = unknown> {\n defaultValue?: string | null | undefined;\n defaultSetValue?: string;\n type?: string;\n fields?: CmsModelField<T>[];\n layout?: string[][];\n models?: Pick<CmsModel, \"modelId\">[];\n templates?: CmsDynamicZoneTemplate[];\n imagesOnly?: boolean;\n [key: string]: any;\n}\n\nexport type CmsModelField<T = unknown> = T & {\n id: string;\n type: string;\n fieldId: CmsEditorFieldId;\n storageId?: string;\n label: string;\n helpText?: string;\n placeholderText?: string;\n validation?: CmsModelFieldValidator[];\n listValidation?: CmsModelFieldValidator[];\n multipleValues?: boolean;\n predefinedValues?: CmsEditorFieldPredefinedValues;\n settings?: CmsModelFieldSettings<T>;\n renderer:\n | {\n name: string;\n }\n /**\n * Use this only for programmatic assignment of renderers.\n * Since functions cannot be serialized, this can only work via code.\n */\n | CmsModelFieldRendererPlugin[\"renderer\"][\"render\"];\n tags?: string[];\n};\n\nexport type CmsEditorFieldId = string;\nexport type CmsEditorFieldsLayout = CmsEditorFieldId[][];\n\n/**\n * @category GraphQL\n * @category Model\n */\nexport type CmsEditorContentModel = CmsModel;\n\n/**\n * @category GraphQL\n * @category Group\n */\nexport interface CmsGroup {\n id: string;\n name: string;\n slug: string;\n icon?: string;\n description?: string;\n contentModels: CmsModel[];\n createdBy: CmsIdentity;\n /**\n * Tells if this group is a plugin one (cannot be changed/deleted)\n */\n plugin?: boolean;\n}\n\nexport interface CmsModel {\n id: string;\n group: Pick<CmsGroup, \"id\" | \"name\">;\n description?: string;\n version: number;\n layout?: CmsEditorFieldsLayout;\n fields: CmsModelField[];\n lockedFields: CmsModelField[];\n icon: string;\n name: string;\n modelId: string;\n singularApiName: string;\n pluralApiName: string;\n titleFieldId: string | null;\n descriptionFieldId: string | null;\n imageFieldId: string | null;\n settings: {\n [key: string]: any;\n };\n status: string;\n savedOn: string;\n meta: any;\n createdBy: CmsIdentity;\n tags: string[];\n /**\n * If model is a plugin one (it cannot be changed/deleted)\n */\n plugin?: boolean;\n}\n"],"mappings":""}
|