@strapi/content-type-builder 5.8.1 → 5.10.0
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/admin/chunks/ListView-CDnrvVrV.mjs +1184 -0
- package/dist/admin/chunks/ListView-CDnrvVrV.mjs.map +1 -0
- package/dist/admin/chunks/ListView-CQwvSbZH.js +1186 -0
- package/dist/admin/chunks/ListView-CQwvSbZH.js.map +1 -0
- package/dist/admin/chunks/ar-Df0f0-PT.js +52 -0
- package/dist/admin/chunks/ar-Df0f0-PT.js.map +1 -0
- package/dist/admin/chunks/ar-sRW9VFC-.mjs +49 -0
- package/dist/admin/chunks/ar-sRW9VFC-.mjs.map +1 -0
- package/dist/admin/chunks/cs-BpQ26jiq.mjs +136 -0
- package/dist/{_chunks/cs-ChL4LaFY.mjs.map → admin/chunks/cs-BpQ26jiq.mjs.map} +1 -1
- package/dist/admin/chunks/cs-DeTwqc7p.js +140 -0
- package/dist/{_chunks/cs-Ci3js5EC.js.map → admin/chunks/cs-DeTwqc7p.js.map} +1 -1
- package/dist/admin/chunks/de-BJkS06jF.js +194 -0
- package/dist/{_chunks/de-DnlblIOh.js.map → admin/chunks/de-BJkS06jF.js.map} +1 -1
- package/dist/admin/chunks/de-DSxx5_x-.mjs +190 -0
- package/dist/{_chunks/de-DsHQNzp2.mjs.map → admin/chunks/de-DSxx5_x-.mjs.map} +1 -1
- package/dist/admin/chunks/dk-BnjVZ7A_.mjs +180 -0
- package/dist/{_chunks/es-BE_zx2_w.mjs.map → admin/chunks/dk-BnjVZ7A_.mjs.map} +1 -1
- package/dist/admin/chunks/dk-CGm-qVH7.js +184 -0
- package/dist/{_chunks/dk-D3XnOjYz.js.map → admin/chunks/dk-CGm-qVH7.js.map} +1 -1
- package/dist/admin/chunks/en-BJUu34b0.js +217 -0
- package/dist/{_chunks/en-CXG5y_vo.js.map → admin/chunks/en-BJUu34b0.js.map} +1 -1
- package/dist/admin/chunks/en-Bhut8Yay.mjs +213 -0
- package/dist/{_chunks/en-jBwb53yg.mjs.map → admin/chunks/en-Bhut8Yay.mjs.map} +1 -1
- package/dist/admin/chunks/es-DG8g9igJ.mjs +180 -0
- package/dist/admin/chunks/es-DG8g9igJ.mjs.map +1 -0
- package/dist/admin/chunks/es-J8kvHlNy.js +184 -0
- package/dist/{_chunks/es-DL8lez9W.js.map → admin/chunks/es-J8kvHlNy.js.map} +1 -1
- package/dist/admin/chunks/fr-C6y35iY7.js +76 -0
- package/dist/admin/chunks/fr-C6y35iY7.js.map +1 -0
- package/dist/admin/chunks/fr-UpV34MHY.mjs +73 -0
- package/dist/admin/chunks/fr-UpV34MHY.mjs.map +1 -0
- package/dist/admin/chunks/id-BWM18ljw.mjs +163 -0
- package/dist/{_chunks/ru-DGSjru5m.mjs.map → admin/chunks/id-BWM18ljw.mjs.map} +1 -1
- package/dist/admin/chunks/id-BvxV6wLP.js +167 -0
- package/dist/{_chunks/ru-C8A_4j0w.js.map → admin/chunks/id-BvxV6wLP.js.map} +1 -1
- package/dist/admin/chunks/index-BQ2VO38W.js +7781 -0
- package/dist/admin/chunks/index-BQ2VO38W.js.map +1 -0
- package/dist/admin/chunks/index-BZeN5KRn.js +1421 -0
- package/dist/admin/chunks/index-BZeN5KRn.js.map +1 -0
- package/dist/admin/chunks/index-BhX2euW0.mjs +1384 -0
- package/dist/admin/chunks/index-BhX2euW0.mjs.map +1 -0
- package/dist/admin/chunks/index-Cr5tfW7U.mjs +7754 -0
- package/dist/admin/chunks/index-Cr5tfW7U.mjs.map +1 -0
- package/dist/admin/chunks/it-1_vd9gV4.mjs +164 -0
- package/dist/{_chunks/tr-DsUerr-c.mjs.map → admin/chunks/it-1_vd9gV4.mjs.map} +1 -1
- package/dist/admin/chunks/it-C_IgFU-G.js +168 -0
- package/dist/{_chunks/sk-raWRcmPT.js.map → admin/chunks/it-C_IgFU-G.js.map} +1 -1
- package/dist/admin/chunks/ja-CWo4Qqq6.js +51 -0
- package/dist/admin/chunks/ja-CWo4Qqq6.js.map +1 -0
- package/dist/admin/chunks/ja-Cx23a2Ui.mjs +48 -0
- package/dist/admin/chunks/ja-Cx23a2Ui.mjs.map +1 -0
- package/dist/admin/chunks/ko-BsByJNEl.js +184 -0
- package/dist/admin/chunks/ko-BsByJNEl.js.map +1 -0
- package/dist/admin/chunks/ko-DC7paEx5.mjs +180 -0
- package/dist/admin/chunks/ko-DC7paEx5.mjs.map +1 -0
- package/dist/admin/chunks/ms-C3s4kxq6.mjs +160 -0
- package/dist/{_chunks/id-W1sKBFEw.mjs.map → admin/chunks/ms-C3s4kxq6.mjs.map} +1 -1
- package/dist/admin/chunks/ms-DPTzS7SH.js +164 -0
- package/dist/{_chunks/th-C83Bb_kR.js.map → admin/chunks/ms-DPTzS7SH.js.map} +1 -1
- package/dist/admin/chunks/nl-TzvfktV_.mjs +153 -0
- package/dist/{_chunks/nl-BaTAuelQ.mjs.map → admin/chunks/nl-TzvfktV_.mjs.map} +1 -1
- package/dist/admin/chunks/nl-db29QMOx.js +157 -0
- package/dist/{_chunks/nl-DQjrDEw0.js.map → admin/chunks/nl-db29QMOx.js.map} +1 -1
- package/dist/admin/chunks/pl-BdvupIN_.mjs +190 -0
- package/dist/admin/chunks/pl-BdvupIN_.mjs.map +1 -0
- package/dist/admin/chunks/pl-pYy1djj3.js +194 -0
- package/dist/admin/chunks/pl-pYy1djj3.js.map +1 -0
- package/dist/admin/chunks/pt-BQmWcdeG.js +52 -0
- package/dist/admin/chunks/pt-BQmWcdeG.js.map +1 -0
- package/dist/admin/chunks/pt-BR-CTPuXGWF.js +194 -0
- package/dist/{_chunks/pt-BR-DPd5nRnl.js.map → admin/chunks/pt-BR-CTPuXGWF.js.map} +1 -1
- package/dist/admin/chunks/pt-BR-DPrVmKeZ.mjs +190 -0
- package/dist/{_chunks/pt-BR-CCQGwXs0.mjs.map → admin/chunks/pt-BR-DPrVmKeZ.mjs.map} +1 -1
- package/dist/admin/chunks/pt-BTLIwmCv.mjs +49 -0
- package/dist/admin/chunks/pt-BTLIwmCv.mjs.map +1 -0
- package/dist/admin/chunks/ru-D46no502.mjs +165 -0
- package/dist/{_chunks/dk-BC7NAQR2.mjs.map → admin/chunks/ru-D46no502.mjs.map} +1 -1
- package/dist/admin/chunks/ru-DQiDXgUV.js +169 -0
- package/dist/admin/chunks/ru-DQiDXgUV.js.map +1 -0
- package/dist/admin/chunks/sk-Byr_l4Jc.mjs +164 -0
- package/dist/{_chunks/ko-DoNsXHXA.mjs.map → admin/chunks/sk-Byr_l4Jc.mjs.map} +1 -1
- package/dist/admin/chunks/sk-DrnebmXb.js +168 -0
- package/dist/{_chunks/it-DS4sM3km.js.map → admin/chunks/sk-DrnebmXb.js.map} +1 -1
- package/dist/admin/chunks/sv-Bbam7IDm.mjs +199 -0
- package/dist/admin/chunks/sv-Bbam7IDm.mjs.map +1 -0
- package/dist/admin/chunks/sv-CrWlNosi.js +203 -0
- package/dist/admin/chunks/sv-CrWlNosi.js.map +1 -0
- package/dist/admin/chunks/th-BbrCkfgX.js +165 -0
- package/dist/{_chunks/id-DYuTgqcc.js.map → admin/chunks/th-BbrCkfgX.js.map} +1 -1
- package/dist/admin/chunks/th-hfS0Wmk_.mjs +161 -0
- package/dist/{_chunks/it-D04lb2Wc.mjs.map → admin/chunks/th-hfS0Wmk_.mjs.map} +1 -1
- package/dist/admin/chunks/tr-CHdMj8m6.js +180 -0
- package/dist/admin/chunks/tr-CHdMj8m6.js.map +1 -0
- package/dist/admin/chunks/tr-DS7DBOhC.mjs +176 -0
- package/dist/admin/chunks/tr-DS7DBOhC.mjs.map +1 -0
- package/dist/admin/chunks/uk-BQEQ3weH.js +165 -0
- package/dist/{_chunks/uk-VwB0oiuV.js.map → admin/chunks/uk-BQEQ3weH.js.map} +1 -1
- package/dist/admin/chunks/uk-Cj8-BKeu.mjs +161 -0
- package/dist/{_chunks/sk-DVK4HfSC.mjs.map → admin/chunks/uk-Cj8-BKeu.mjs.map} +1 -1
- package/dist/admin/chunks/zh-BUVXH75-.mjs +199 -0
- package/dist/admin/chunks/zh-BUVXH75-.mjs.map +1 -0
- package/dist/admin/chunks/zh-CWj4avQA.js +203 -0
- package/dist/admin/chunks/zh-CWj4avQA.js.map +1 -0
- package/dist/admin/chunks/zh-Hans-BElOnuRb.mjs +144 -0
- package/dist/{_chunks/zh-Hans-Cc0M5PXr.mjs.map → admin/chunks/zh-Hans-BElOnuRb.mjs.map} +1 -1
- package/dist/admin/chunks/zh-Hans-lXbNiMp9.js +148 -0
- package/dist/{_chunks/zh-Hans-CLTLm_nt.js.map → admin/chunks/zh-Hans-lXbNiMp9.js.map} +1 -1
- package/dist/admin/index.js +24 -4
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +17 -7
- package/dist/admin/index.mjs.map +1 -1
- package/dist/admin/src/components/ContentTypeBuilderNav/useContentTypeBuilderMenu.d.ts +5 -2
- package/dist/admin/src/components/DataManagerProvider/reducer.d.ts +97 -6
- package/dist/admin/src/components/FormModal/reducer.d.ts +110 -4
- package/dist/admin/src/components/ListRow.d.ts +2 -1
- package/dist/admin/src/contexts/DataManagerContext.d.ts +4 -4
- package/dist/admin/src/index.d.ts +2 -1
- package/dist/admin/src/pages/ListView/LinkToCMSettingsView.d.ts +1 -2
- package/dist/admin/src/pluginId.d.ts +1 -1
- package/dist/admin/src/reducers.d.ts +8 -1
- package/dist/admin/src/types.d.ts +2 -5
- package/dist/server/index.js +2504 -2151
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +2500 -2147
- package/dist/server/index.mjs.map +1 -1
- package/package.json +13 -10
- package/dist/_chunks/ListView-CsqdnKp3.mjs +0 -959
- package/dist/_chunks/ListView-CsqdnKp3.mjs.map +0 -1
- package/dist/_chunks/ListView-tgW460ly.js +0 -964
- package/dist/_chunks/ListView-tgW460ly.js.map +0 -1
- package/dist/_chunks/ar-BYDB75EB.mjs +0 -51
- package/dist/_chunks/ar-BYDB75EB.mjs.map +0 -1
- package/dist/_chunks/ar-OCxhAFUy.js +0 -51
- package/dist/_chunks/ar-OCxhAFUy.js.map +0 -1
- package/dist/_chunks/cs-ChL4LaFY.mjs +0 -139
- package/dist/_chunks/cs-Ci3js5EC.js +0 -139
- package/dist/_chunks/de-DnlblIOh.js +0 -193
- package/dist/_chunks/de-DsHQNzp2.mjs +0 -193
- package/dist/_chunks/dk-BC7NAQR2.mjs +0 -183
- package/dist/_chunks/dk-D3XnOjYz.js +0 -183
- package/dist/_chunks/en-CXG5y_vo.js +0 -216
- package/dist/_chunks/en-jBwb53yg.mjs +0 -216
- package/dist/_chunks/es-BE_zx2_w.mjs +0 -183
- package/dist/_chunks/es-DL8lez9W.js +0 -183
- package/dist/_chunks/fr-DnTxugIo.js +0 -75
- package/dist/_chunks/fr-DnTxugIo.js.map +0 -1
- package/dist/_chunks/fr-lU_OMJma.mjs +0 -75
- package/dist/_chunks/fr-lU_OMJma.mjs.map +0 -1
- package/dist/_chunks/id-DYuTgqcc.js +0 -166
- package/dist/_chunks/id-W1sKBFEw.mjs +0 -166
- package/dist/_chunks/index-AjJmuxjv.js +0 -1357
- package/dist/_chunks/index-AjJmuxjv.js.map +0 -1
- package/dist/_chunks/index-BhIIILgq.mjs +0 -6694
- package/dist/_chunks/index-BhIIILgq.mjs.map +0 -1
- package/dist/_chunks/index-D79WZLAU.js +0 -6730
- package/dist/_chunks/index-D79WZLAU.js.map +0 -1
- package/dist/_chunks/index-DIuvDpH9.mjs +0 -1331
- package/dist/_chunks/index-DIuvDpH9.mjs.map +0 -1
- package/dist/_chunks/it-D04lb2Wc.mjs +0 -167
- package/dist/_chunks/it-DS4sM3km.js +0 -167
- package/dist/_chunks/ja-BHLK_2_g.mjs +0 -50
- package/dist/_chunks/ja-BHLK_2_g.mjs.map +0 -1
- package/dist/_chunks/ja-BjouJgZf.js +0 -50
- package/dist/_chunks/ja-BjouJgZf.js.map +0 -1
- package/dist/_chunks/ko-D_71Pdfn.js +0 -183
- package/dist/_chunks/ko-D_71Pdfn.js.map +0 -1
- package/dist/_chunks/ko-DoNsXHXA.mjs +0 -183
- package/dist/_chunks/ms-BtGFDB9t.mjs +0 -163
- package/dist/_chunks/ms-BtGFDB9t.mjs.map +0 -1
- package/dist/_chunks/ms-Re1pSHmx.js +0 -163
- package/dist/_chunks/ms-Re1pSHmx.js.map +0 -1
- package/dist/_chunks/nl-BaTAuelQ.mjs +0 -156
- package/dist/_chunks/nl-DQjrDEw0.js +0 -156
- package/dist/_chunks/pl-BGwXgwH7.js +0 -193
- package/dist/_chunks/pl-BGwXgwH7.js.map +0 -1
- package/dist/_chunks/pl-CP2Zgp01.mjs +0 -193
- package/dist/_chunks/pl-CP2Zgp01.mjs.map +0 -1
- package/dist/_chunks/pt-BR-CCQGwXs0.mjs +0 -193
- package/dist/_chunks/pt-BR-DPd5nRnl.js +0 -193
- package/dist/_chunks/pt-CJoUDTHQ.js +0 -51
- package/dist/_chunks/pt-CJoUDTHQ.js.map +0 -1
- package/dist/_chunks/pt-DMeTMW2x.mjs +0 -51
- package/dist/_chunks/pt-DMeTMW2x.mjs.map +0 -1
- package/dist/_chunks/ru-C8A_4j0w.js +0 -168
- package/dist/_chunks/ru-DGSjru5m.mjs +0 -168
- package/dist/_chunks/sk-DVK4HfSC.mjs +0 -167
- package/dist/_chunks/sk-raWRcmPT.js +0 -167
- package/dist/_chunks/sv-BGb12eW3.mjs +0 -202
- package/dist/_chunks/sv-BGb12eW3.mjs.map +0 -1
- package/dist/_chunks/sv-BNN71SFE.js +0 -202
- package/dist/_chunks/sv-BNN71SFE.js.map +0 -1
- package/dist/_chunks/th--u3VqsON.mjs +0 -164
- package/dist/_chunks/th--u3VqsON.mjs.map +0 -1
- package/dist/_chunks/th-C83Bb_kR.js +0 -164
- package/dist/_chunks/tr-BW20CfcO.js +0 -179
- package/dist/_chunks/tr-BW20CfcO.js.map +0 -1
- package/dist/_chunks/tr-DsUerr-c.mjs +0 -179
- package/dist/_chunks/uk-Bx5IlOKX.mjs +0 -164
- package/dist/_chunks/uk-Bx5IlOKX.mjs.map +0 -1
- package/dist/_chunks/uk-VwB0oiuV.js +0 -164
- package/dist/_chunks/zh-BiOCwPJu.js +0 -202
- package/dist/_chunks/zh-BiOCwPJu.js.map +0 -1
- package/dist/_chunks/zh-CsUDN13W.mjs +0 -202
- package/dist/_chunks/zh-CsUDN13W.mjs.map +0 -1
- package/dist/_chunks/zh-Hans-CLTLm_nt.js +0 -147
- package/dist/_chunks/zh-Hans-Cc0M5PXr.mjs +0 -147
- package/dist/admin/src/components/DataManagerProvider/constants.d.ts +0 -17
- package/dist/admin/src/components/FormModal/constants.d.ts +0 -12
- package/dist/admin/src/pages/RecursivePath/RecursivePath.d.ts +0 -1
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var configurations = "配置";
|
|
4
|
+
var from = "来自";
|
|
5
|
+
var zhHans = {
|
|
6
|
+
"attribute.boolean": "布尔类型",
|
|
7
|
+
"attribute.boolean.description": "Yes 或 no, 1 或 0, true 或 false",
|
|
8
|
+
"attribute.component": "组件",
|
|
9
|
+
"attribute.component.description": "您可以重复或重复使用的字段组",
|
|
10
|
+
"attribute.date": "日期选择器",
|
|
11
|
+
"attribute.date.description": "带有小时,分钟和秒的日期选择器",
|
|
12
|
+
"attribute.datetime": "日期时间选择器",
|
|
13
|
+
"attribute.dynamiczone": "动态区域",
|
|
14
|
+
"attribute.dynamiczone.description": "编辑内容时动态选择组件",
|
|
15
|
+
"attribute.email": "电子邮件",
|
|
16
|
+
"attribute.email.description": "带有格式验证的电子邮件字段",
|
|
17
|
+
"attribute.enumeration": "列举",
|
|
18
|
+
"attribute.enumeration.description": "值的列表,然后可以从中选择一个",
|
|
19
|
+
"attribute.json": "JSON",
|
|
20
|
+
"attribute.json.description": "JSON 格式的数据",
|
|
21
|
+
"attribute.media": "媒体文件",
|
|
22
|
+
"attribute.media.description": "图片,视频等文件",
|
|
23
|
+
"attribute.null": " ",
|
|
24
|
+
"attribute.number": "数字类型",
|
|
25
|
+
"attribute.number.description": "数字类型 (integer, float, decimal)",
|
|
26
|
+
"attribute.password": "密码输入框",
|
|
27
|
+
"attribute.password.description": "密码字段,会隐藏字符",
|
|
28
|
+
"attribute.relation": "引用",
|
|
29
|
+
"attribute.relation.description": "引用一个 Content Type",
|
|
30
|
+
"attribute.richtext": "富文本编辑器",
|
|
31
|
+
"attribute.richtext.description": "具有格式选项的富文本编辑器",
|
|
32
|
+
"attribute.text": "文本",
|
|
33
|
+
"attribute.text.description": "较短或较长的文字,例如标题或说明",
|
|
34
|
+
"attribute.time": "时间",
|
|
35
|
+
"attribute.uid": "UID",
|
|
36
|
+
"attribute.uid.description": "唯一标识符",
|
|
37
|
+
"button.attributes.add.another": "添加一个新字段",
|
|
38
|
+
"button.component.add": "添加组件",
|
|
39
|
+
"button.component.create": "创建新组件",
|
|
40
|
+
"button.model.create": "创建一个新的 Content Type",
|
|
41
|
+
"component.repeatable": "(可重复的)",
|
|
42
|
+
"components.componentSelect.no-component-available": "您已经添加了所有组件",
|
|
43
|
+
"components.componentSelect.no-component-available.with-search": "没有与您的搜索相匹配的组件",
|
|
44
|
+
"components.componentSelect.value-component": "{number} 个组件被选择 (输入以搜索组件)",
|
|
45
|
+
"components.componentSelect.value-components": "{number} 个组件被选择",
|
|
46
|
+
configurations: configurations,
|
|
47
|
+
"contentType.collectionName.description": "当 Content Type 的名称和表名称不同时会很有用",
|
|
48
|
+
"contentType.collectionName.label": "集合名称",
|
|
49
|
+
"contentType.displayName.label": "显示名称",
|
|
50
|
+
"contentType.apiId-plural.description": "API ID(复数形式)",
|
|
51
|
+
"contentType.apiId-plural.label": "API ID(复数形式)",
|
|
52
|
+
"contentType.apiId-singular.description": "UID 用于生成 API 路由和数据库表/集合。",
|
|
53
|
+
"contentType.apiId-singular.label": "API ID(单数形式)",
|
|
54
|
+
"contentType.kind.change.warning": "您刚刚更改了内容类型的种类:API 将被重置(路由、控制器和服务将被覆盖)。",
|
|
55
|
+
"error.contentTypeName.reserved-name": "此名称不能在项目中使用,因为它可能会破坏其他功能",
|
|
56
|
+
"error.validation.minSupMax": "不能更高",
|
|
57
|
+
"form.attribute.component.option.add": "添加一个组件",
|
|
58
|
+
"form.attribute.component.option.create": "创建一个新的组件",
|
|
59
|
+
"form.attribute.component.option.create.description": "组件在类型和组件之间共享,它将随处可用。",
|
|
60
|
+
"form.attribute.component.option.repeatable": "可重复组件",
|
|
61
|
+
"form.attribute.component.option.repeatable.description": "最适合的成分,元标记等的多个实例(数组)。",
|
|
62
|
+
"form.attribute.component.option.reuse-existing": "使用一个已存在的组件",
|
|
63
|
+
"form.attribute.component.option.reuse-existing.description": "重用已经创建的组件,以使您的数据在内容类型之间保持一致。",
|
|
64
|
+
"form.attribute.component.option.single": "单一组件",
|
|
65
|
+
"form.attribute.component.option.single.description": "最适合的对完整地址,主要信息等字段进行分组...",
|
|
66
|
+
"form.attribute.item.customColumnName": "自定义列名称",
|
|
67
|
+
"form.attribute.item.customColumnName.description": "修改数据库列名,使得API返回更容易理解。",
|
|
68
|
+
"form.attribute.item.defineRelation.fieldName": "字段名称",
|
|
69
|
+
"form.attribute.item.enumeration.graphql": "GraphQL 的名称重写",
|
|
70
|
+
"form.attribute.item.enumeration.graphql.description": "允许您覆盖 GraphQL 的默认生成名称",
|
|
71
|
+
"form.attribute.item.enumeration.placeholder": "例如:\nmorning\nnoon\nevening",
|
|
72
|
+
"form.attribute.item.enumeration.rules": "值(每个值占一行)",
|
|
73
|
+
"form.attribute.item.maximum": "最大值",
|
|
74
|
+
"form.attribute.item.maximumLength": "最大长度",
|
|
75
|
+
"form.attribute.item.minimum": "最小值",
|
|
76
|
+
"form.attribute.item.minimumLength": "最小长度",
|
|
77
|
+
"form.attribute.item.number.type": "数字格式",
|
|
78
|
+
"form.attribute.item.number.type.biginteger": "big integer (例如: 123456789)",
|
|
79
|
+
"form.attribute.item.number.type.decimal": "decimal (例如: 2.22)",
|
|
80
|
+
"form.attribute.item.number.type.float": "float (例如: 3.33333333)",
|
|
81
|
+
"form.attribute.item.number.type.integer": "integer (例如: 10)",
|
|
82
|
+
"form.attribute.item.privateField": "私有字段",
|
|
83
|
+
"form.attribute.item.privateField.description": "该字段不会显示在 API 请求的响应中",
|
|
84
|
+
"form.attribute.item.requiredField": "必须的",
|
|
85
|
+
"form.attribute.item.requiredField.description": "如果此字段为空,则无法创建字段。",
|
|
86
|
+
"form.attribute.item.uniqueField": "唯一的",
|
|
87
|
+
"form.attribute.item.uniqueField.description": "如果存在具有相同内容的现有条目,则无法创建条目。",
|
|
88
|
+
"form.attribute.media.option.multiple": "多种媒体",
|
|
89
|
+
"form.attribute.media.option.multiple.description": "最适合的滑块,转盘或多个文件下载",
|
|
90
|
+
"form.attribute.media.option.single": "单一的媒体",
|
|
91
|
+
"form.attribute.media.option.single.description": "最适合的头像,个人资料图片或封面",
|
|
92
|
+
"form.attribute.settings.default": "默认值",
|
|
93
|
+
"form.attribute.text.option.long-text": "较长的文字",
|
|
94
|
+
"form.attribute.text.option.long-text.description": "最适合的描述,传记。\u2028精确搜索已禁用。",
|
|
95
|
+
"form.attribute.text.option.short-text": "较短的文字",
|
|
96
|
+
"form.attribute.text.option.short-text.description": "最适合的标题,名称,链接(URL)。它还可以在字段进行精确搜索。",
|
|
97
|
+
"form.button.add-components-to-dynamiczone": "将组件添加到区域",
|
|
98
|
+
"form.button.add-field": "添加另一个字段",
|
|
99
|
+
"form.button.add-first-field-to-created-component": "添加第一个字段到这个组件",
|
|
100
|
+
"form.button.add.field.to.component": "向该组件添加另一个字段",
|
|
101
|
+
"form.button.cancel": "取消",
|
|
102
|
+
"form.button.configure-component": "配置组件",
|
|
103
|
+
"form.button.configure-view": "配置视图",
|
|
104
|
+
"form.button.select-component": "选择一个组件",
|
|
105
|
+
from: from,
|
|
106
|
+
"modalForm.attribute.form.base.name.description": "属性名称不允许使用空格",
|
|
107
|
+
"modalForm.attributes.select-component": "选择一个组件",
|
|
108
|
+
"modalForm.attributes.select-components": "选择组件",
|
|
109
|
+
"modalForm.component.header-create": "创建一个组件",
|
|
110
|
+
"modalForm.components.create-component.category.label": "选择一个类别或输入名称以创建一个新类别",
|
|
111
|
+
"modalForm.components.icon.label": "图标",
|
|
112
|
+
"modalForm.editCategory.base.name.description": "类别名称不允许有空格",
|
|
113
|
+
"modalForm.header-edit": "编辑 {name}",
|
|
114
|
+
"modalForm.header.categories": "类别",
|
|
115
|
+
"modalForm.header.back": "后退",
|
|
116
|
+
"modalForm.sub-header.addComponentToDynamicZone": "将新组件添加到动态区域",
|
|
117
|
+
"modalForm.sub-header.attribute.create": "添加新的 {type} 字段",
|
|
118
|
+
"modalForm.sub-header.attribute.create.step": "添加新的组件 ({step}/2)",
|
|
119
|
+
"modalForm.sub-header.attribute.edit": "编辑 {name}",
|
|
120
|
+
"modalForm.sub-header.chooseAttribute.collectionType": "为您的 Content Type 选择一个字段",
|
|
121
|
+
"modalForm.sub-header.chooseAttribute.component": "为您的组件选择一个字段",
|
|
122
|
+
"modalForm.collectionType.header-create": "创建一个集合类型",
|
|
123
|
+
"modelPage.attribute.relationWith": "关联",
|
|
124
|
+
"notification.info.autoreaload-disable": "要使用此插件,需要自动重载功能。请使用 `strapi develop` 启动服务",
|
|
125
|
+
"notification.info.creating.notSaved": "在创建新的内容类型或组件之前,请保存您的工作",
|
|
126
|
+
"plugin.description.long": "给你的 API 的数据结构建模. 快速的创造新的字段(fields)和关系(relations)。将会自动在项目中创建和更新文件。",
|
|
127
|
+
"plugin.description.short": "给你的 API 的数据结构建模",
|
|
128
|
+
"popUpForm.navContainer.advanced": "高级设置",
|
|
129
|
+
"popUpForm.navContainer.base": "基础设置",
|
|
130
|
+
"popUpWarning.bodyMessage.cancel-modifications": "您确定要取消修改吗?",
|
|
131
|
+
"popUpWarning.bodyMessage.cancel-modifications.with-components": "您确定要取消修改吗?某些组件已创建或已修改了...",
|
|
132
|
+
"popUpWarning.bodyMessage.category.delete": "您确定要删除此类别吗?所有组件也将被删除。",
|
|
133
|
+
"popUpWarning.bodyMessage.component.delete": "您确定要删除此组件吗?",
|
|
134
|
+
"popUpWarning.bodyMessage.contentType.delete": "您确定要删除此 Content Type 吗?",
|
|
135
|
+
"prompt.unsaved": "您确定要离开吗?您所有的修改都将丢失。",
|
|
136
|
+
"relation.attributeName.placeholder": "例如: author, category, tag",
|
|
137
|
+
"relation.manyToMany": "有并属于许多",
|
|
138
|
+
"relation.manyToOne": "有很多",
|
|
139
|
+
"relation.manyWay": "有很多",
|
|
140
|
+
"relation.oneToMany": "属于很多",
|
|
141
|
+
"relation.oneToOne": "有一个",
|
|
142
|
+
"relation.oneWay": "有一个"
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
exports.configurations = configurations;
|
|
146
|
+
exports.default = zhHans;
|
|
147
|
+
exports.from = from;
|
|
148
|
+
//# sourceMappingURL=zh-Hans-lXbNiMp9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-Hans-
|
|
1
|
+
{"version":3,"file":"zh-Hans-lXbNiMp9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/admin/index.js
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('@strapi/icons');
|
|
6
|
+
var index = require('./chunks/index-BZeN5KRn.js');
|
|
7
|
+
require('@reduxjs/toolkit');
|
|
8
|
+
require('immer');
|
|
9
|
+
require('lodash/get');
|
|
10
|
+
require('lodash/set');
|
|
11
|
+
require('lodash/snakeCase');
|
|
12
|
+
require('pluralize');
|
|
13
|
+
require('@sindresorhus/slugify');
|
|
14
|
+
require('lodash/cloneDeep');
|
|
15
|
+
require('yup');
|
|
16
|
+
require('react/jsx-runtime');
|
|
17
|
+
require('react');
|
|
18
|
+
require('@strapi/design-system');
|
|
19
|
+
require('react-dom');
|
|
20
|
+
require('react-intl');
|
|
21
|
+
require('styled-components');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
5
25
|
exports.default = index.index;
|
|
6
26
|
exports.private_AutoReloadOverlayBlockerProvider = index.AutoReloadOverlayBlockerProvider;
|
|
7
27
|
exports.private_useAutoReloadOverlayBlocker = index.useAutoReloadOverlayBlocker;
|
package/dist/admin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/admin/index.mjs
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import '@strapi/icons';
|
|
2
|
+
export { f as default, A as private_AutoReloadOverlayBlockerProvider, u as private_useAutoReloadOverlayBlocker } from './chunks/index-BhX2euW0.mjs';
|
|
3
|
+
import '@reduxjs/toolkit';
|
|
4
|
+
import 'immer';
|
|
5
|
+
import 'lodash/get';
|
|
6
|
+
import 'lodash/set';
|
|
7
|
+
import 'lodash/snakeCase';
|
|
8
|
+
import 'pluralize';
|
|
9
|
+
import '@sindresorhus/slugify';
|
|
10
|
+
import 'lodash/cloneDeep';
|
|
11
|
+
import 'yup';
|
|
12
|
+
import 'react/jsx-runtime';
|
|
13
|
+
import 'react';
|
|
14
|
+
import '@strapi/design-system';
|
|
15
|
+
import 'react-dom';
|
|
16
|
+
import 'react-intl';
|
|
17
|
+
import 'styled-components';
|
|
8
18
|
//# sourceMappingURL=index.mjs.map
|
package/dist/admin/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -14,6 +14,9 @@ export declare const useContentTypeBuilderMenu: () => {
|
|
|
14
14
|
onClick: () => void;
|
|
15
15
|
} | undefined;
|
|
16
16
|
}[];
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
search: {
|
|
18
|
+
value: string;
|
|
19
|
+
onChange: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
20
|
+
clear: () => void;
|
|
21
|
+
};
|
|
19
22
|
};
|
|
@@ -1,12 +1,103 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { DataManagerStateType, ContentType, Component } from '../../types';
|
|
3
|
+
import type { Internal } from '@strapi/types';
|
|
4
|
+
type Target = 'component' | 'components' | 'contentType' | 'contentTypes';
|
|
5
|
+
export type Action<T = any> = {
|
|
6
|
+
type: T;
|
|
4
7
|
uid?: string;
|
|
5
|
-
mainDataKey:
|
|
8
|
+
mainDataKey: Target;
|
|
6
9
|
schemaType: 'component' | 'contentType';
|
|
7
10
|
attributeToRemoveName?: string;
|
|
8
11
|
[key: string]: any;
|
|
9
12
|
};
|
|
10
13
|
declare const initialState: DataManagerStateType;
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
type InitPayload = {
|
|
15
|
+
components: Record<string, Component>;
|
|
16
|
+
contentTypes: Record<string, ContentType>;
|
|
17
|
+
reservedNames: Record<string, string>;
|
|
18
|
+
};
|
|
19
|
+
type AddAttributePayload = {
|
|
20
|
+
attributeToSet: Record<string, any>;
|
|
21
|
+
forTarget: Target;
|
|
22
|
+
targetUid: string;
|
|
23
|
+
shouldAddComponentToData: boolean;
|
|
24
|
+
};
|
|
25
|
+
type AddCreateComponentToDynamicZonePayload = {
|
|
26
|
+
dynamicZoneTarget: string;
|
|
27
|
+
componentsToAdd: Internal.UID.Component[];
|
|
28
|
+
};
|
|
29
|
+
type AddCustomFieldAttributePayload = {
|
|
30
|
+
attributeToSet: Record<string, any>;
|
|
31
|
+
forTarget: Target;
|
|
32
|
+
targetUid: string;
|
|
33
|
+
};
|
|
34
|
+
type ChangeDynamicZoneComponentsPayload = {
|
|
35
|
+
dynamicZoneTarget: string;
|
|
36
|
+
newComponents: Internal.UID.Component[];
|
|
37
|
+
};
|
|
38
|
+
type CreateComponentSchemaPayload = {
|
|
39
|
+
uid: string;
|
|
40
|
+
data: any;
|
|
41
|
+
componentCategory: string;
|
|
42
|
+
shouldAddComponentToData: boolean;
|
|
43
|
+
};
|
|
44
|
+
type CreateSchemaPayload = {
|
|
45
|
+
uid: string;
|
|
46
|
+
data: any;
|
|
47
|
+
};
|
|
48
|
+
type EditAttributePayload = {
|
|
49
|
+
attributeToSet: Record<string, any>;
|
|
50
|
+
forTarget: Target;
|
|
51
|
+
targetUid: string;
|
|
52
|
+
initialAttribute: Record<string, any>;
|
|
53
|
+
};
|
|
54
|
+
type EditCustomFieldAttributePayload = {
|
|
55
|
+
attributeToSet: Record<string, any>;
|
|
56
|
+
forTarget: Target;
|
|
57
|
+
targetUid: string;
|
|
58
|
+
initialAttribute: Record<string, any>;
|
|
59
|
+
};
|
|
60
|
+
type RemoveComponentFromDynamicZonePayload = {
|
|
61
|
+
dzName: string;
|
|
62
|
+
componentToRemoveIndex: number;
|
|
63
|
+
};
|
|
64
|
+
type RemoveFieldPayload = {
|
|
65
|
+
mainDataKey: Target;
|
|
66
|
+
attributeToRemoveName: string;
|
|
67
|
+
};
|
|
68
|
+
type RemoveFieldFromDisplayedComponentPayload = {
|
|
69
|
+
attributeToRemoveName: string;
|
|
70
|
+
componentUid: string;
|
|
71
|
+
};
|
|
72
|
+
type SetModifiedDataPayload = {
|
|
73
|
+
schemaToSet: Partial<DataManagerStateType['modifiedData']>;
|
|
74
|
+
hasJustCreatedSchema: boolean;
|
|
75
|
+
};
|
|
76
|
+
type UpdateSchemaPayload = {
|
|
77
|
+
data: Record<string, any>;
|
|
78
|
+
schemaType: 'component';
|
|
79
|
+
uid: string;
|
|
80
|
+
} | {
|
|
81
|
+
data: Record<string, any>;
|
|
82
|
+
schemaType: 'contentType';
|
|
83
|
+
};
|
|
84
|
+
export declare const reducer: import("redux").Reducer<DataManagerStateType>, actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
85
|
+
init: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<InitPayload>) => void;
|
|
86
|
+
addAttribute: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<AddAttributePayload>) => void;
|
|
87
|
+
addCreatedComponentToDynamicZone: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<AddCreateComponentToDynamicZonePayload>) => void;
|
|
88
|
+
addCustomFieldAttribute: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<AddCustomFieldAttributePayload>) => void;
|
|
89
|
+
changeDynamicZoneComponents: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<ChangeDynamicZoneComponentsPayload>) => void;
|
|
90
|
+
createComponentSchema: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<CreateComponentSchemaPayload>) => void;
|
|
91
|
+
createSchema: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<CreateSchemaPayload>) => void;
|
|
92
|
+
editAttribute: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<EditAttributePayload>) => void;
|
|
93
|
+
editCustomFieldAttribute: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<EditCustomFieldAttributePayload>) => void;
|
|
94
|
+
updateInitialState: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>) => void;
|
|
95
|
+
deleteNotSavedType: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>) => void;
|
|
96
|
+
reloadPlugin: () => DataManagerStateType;
|
|
97
|
+
removeComponentFromDynamicZone: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<RemoveComponentFromDynamicZonePayload>) => void;
|
|
98
|
+
removeField: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<RemoveFieldPayload>) => void;
|
|
99
|
+
removeFieldFromDisplayedComponent: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<RemoveFieldFromDisplayedComponentPayload>) => void;
|
|
100
|
+
setModifiedData: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<SetModifiedDataPayload>) => void;
|
|
101
|
+
updateSchema: (state: import("immer/dist/internal.js").WritableDraft<DataManagerStateType>, action: PayloadAction<UpdateSchemaPayload>) => void;
|
|
102
|
+
}, "data-manager">;
|
|
103
|
+
export { initialState };
|
|
@@ -1,4 +1,110 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { Schema } from '@strapi/types';
|
|
3
|
+
type State = {
|
|
4
|
+
formErrors: Record<string, any>;
|
|
5
|
+
modifiedData: Record<string, any>;
|
|
6
|
+
initialData: Record<string, any>;
|
|
7
|
+
componentToCreate: Record<string, any>;
|
|
8
|
+
isCreatingComponentWhileAddingAField: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const initialState: State;
|
|
11
|
+
type OnChangePayload = {
|
|
12
|
+
keys: string[];
|
|
13
|
+
value: any;
|
|
14
|
+
};
|
|
15
|
+
type OnChangeRelationTargetPayload = {
|
|
16
|
+
target: {
|
|
17
|
+
oneThatIsCreatingARelationWithAnother: string;
|
|
18
|
+
selectedContentTypeFriendlyName: string;
|
|
19
|
+
targetContentTypeAllowedRelations: Schema.Attribute.RelationKind.Any[] | null;
|
|
20
|
+
value: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type OnChangeRelationTypePayload = {
|
|
24
|
+
target: {
|
|
25
|
+
oneThatIsCreatingARelationWithAnother: string;
|
|
26
|
+
value: Schema.Attribute.RelationKind.Any;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type ResetPropsAndSetFormForAddingAnExistingCompoPayload = {
|
|
30
|
+
options?: Record<string, any>;
|
|
31
|
+
};
|
|
32
|
+
type ResetPropsAndSaveCurrentDataPayload = {
|
|
33
|
+
options?: Record<string, any>;
|
|
34
|
+
};
|
|
35
|
+
type SetDataToEditPayload = {
|
|
36
|
+
data: Record<string, any>;
|
|
37
|
+
};
|
|
38
|
+
type SetAttributeDataSchemaPayload = {
|
|
39
|
+
isEditing: true;
|
|
40
|
+
modifiedDataToSetForEditing: Record<string, any>;
|
|
41
|
+
} | {
|
|
42
|
+
isEditing?: false;
|
|
43
|
+
modifiedDataToSetForEditing: Record<string, any>;
|
|
44
|
+
attributeType: string;
|
|
45
|
+
nameToSetForRelation: string;
|
|
46
|
+
targetUid: string;
|
|
47
|
+
step: string | null;
|
|
48
|
+
options?: Record<string, any>;
|
|
49
|
+
};
|
|
50
|
+
type SetCustomFieldDataSchemaPayload = {
|
|
51
|
+
isEditing: true;
|
|
52
|
+
modifiedDataToSetForEditing: Record<string, any>;
|
|
53
|
+
} | {
|
|
54
|
+
isEditing?: false;
|
|
55
|
+
modifiedDataToSetForEditing: Record<string, any>;
|
|
56
|
+
customField: Record<string, any>;
|
|
57
|
+
options?: Record<string, any>;
|
|
58
|
+
};
|
|
59
|
+
type SetDynamicZoneDataSchemaPayload = {
|
|
60
|
+
attributeToEdit: Record<string, any>;
|
|
61
|
+
};
|
|
62
|
+
type SetErrorsPayload = {
|
|
63
|
+
errors: Record<string, any>;
|
|
64
|
+
};
|
|
65
|
+
export { initialState };
|
|
66
|
+
export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
67
|
+
onChange: (state: import("immer/dist/internal.js").WritableDraft<State>, action: PayloadAction<OnChangePayload>) => void;
|
|
68
|
+
onChangeRelationTarget: (state: import("immer/dist/internal.js").WritableDraft<State>, action: PayloadAction<OnChangeRelationTargetPayload>) => void;
|
|
69
|
+
onChangeRelationType: (state: import("immer/dist/internal.js").WritableDraft<State>, action: PayloadAction<OnChangeRelationTypePayload>) => void;
|
|
70
|
+
resetProps: () => State;
|
|
71
|
+
resetPropsAndSetFormForAddingAnExistingCompo: (state: import("immer/dist/internal.js").WritableDraft<State>, action: PayloadAction<ResetPropsAndSetFormForAddingAnExistingCompoPayload>) => {
|
|
72
|
+
modifiedData: {
|
|
73
|
+
type: string;
|
|
74
|
+
repeatable: boolean;
|
|
75
|
+
};
|
|
76
|
+
formErrors: Record<string, any>;
|
|
77
|
+
initialData: Record<string, any>;
|
|
78
|
+
componentToCreate: Record<string, any>;
|
|
79
|
+
isCreatingComponentWhileAddingAField: boolean;
|
|
80
|
+
};
|
|
81
|
+
resetPropsAndSaveCurrentData: (state: import("immer/dist/internal.js").WritableDraft<State>, action: PayloadAction<ResetPropsAndSaveCurrentDataPayload>) => {
|
|
82
|
+
componentToCreate: any;
|
|
83
|
+
modifiedData: {
|
|
84
|
+
component: `${string}.${string}`;
|
|
85
|
+
displayName: any;
|
|
86
|
+
type: string;
|
|
87
|
+
repeatable: boolean;
|
|
88
|
+
};
|
|
89
|
+
isCreatingComponentWhileAddingAField: any;
|
|
90
|
+
formErrors: Record<string, any>;
|
|
91
|
+
initialData: Record<string, any>;
|
|
92
|
+
};
|
|
93
|
+
resetPropsAndSetTheFormForAddingACompoToADz: (state: import("immer/dist/internal.js").WritableDraft<State>) => {
|
|
94
|
+
modifiedData: {
|
|
95
|
+
createComponent: boolean;
|
|
96
|
+
componentToCreate: {
|
|
97
|
+
type: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
formErrors: Record<string, any>;
|
|
101
|
+
initialData: Record<string, any>;
|
|
102
|
+
componentToCreate: Record<string, any>;
|
|
103
|
+
isCreatingComponentWhileAddingAField: boolean;
|
|
104
|
+
};
|
|
105
|
+
setDataToEdit: (state: import("immer/dist/internal.js").WritableDraft<State>, action: PayloadAction<SetDataToEditPayload>) => void;
|
|
106
|
+
setAttributeDataSchema: (state: import("immer/dist/internal.js").WritableDraft<State>, action: PayloadAction<SetAttributeDataSchemaPayload>) => void;
|
|
107
|
+
setCustomFieldDataSchema: (state: import("immer/dist/internal.js").WritableDraft<State>, action: PayloadAction<SetCustomFieldDataSchemaPayload>) => void;
|
|
108
|
+
setDynamicZoneDataSchema: (state: import("immer/dist/internal.js").WritableDraft<State>, action: PayloadAction<SetDynamicZoneDataSchemaPayload>) => void;
|
|
109
|
+
setErrors: (state: import("immer/dist/internal.js").WritableDraft<State>, action: PayloadAction<SetErrorsPayload>) => void;
|
|
110
|
+
}, "formModal">, reducer: import("redux").Reducer<State>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconByType } from './AttributeIcon';
|
|
3
|
+
import type { SchemaType } from '../types';
|
|
3
4
|
export declare const BoxWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
|
|
4
5
|
children?: import("react").ReactNode;
|
|
5
6
|
} & import("@strapi/design-system/dist/types").AsProp<import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
|
|
@@ -10,7 +11,7 @@ export declare const BoxWrapper: import("styled-components").IStyledComponent<"w
|
|
|
10
11
|
type ListRowProps = {
|
|
11
12
|
configurable?: boolean;
|
|
12
13
|
customField?: string | null;
|
|
13
|
-
editTarget:
|
|
14
|
+
editTarget: SchemaType;
|
|
14
15
|
firstLoopComponentUid?: string | null;
|
|
15
16
|
isFromDynamicZone?: boolean;
|
|
16
17
|
name: string;
|
|
@@ -11,10 +11,10 @@ export interface DataManagerContextValue {
|
|
|
11
11
|
addAttribute: (attributeToSet: Record<string, any>, forTarget: SchemaType, targetUid: Internal.UID.Schema, isEditing?: boolean, initialAttribute?: Record<string, any>, shouldAddComponentToData?: boolean) => void;
|
|
12
12
|
addCustomFieldAttribute: (params: CustomFieldAttributeParams) => void;
|
|
13
13
|
editCustomFieldAttribute: (params: CustomFieldAttributeParams) => void;
|
|
14
|
-
addCreatedComponentToDynamicZone: (dynamicZoneTarget: string, componentsToAdd:
|
|
14
|
+
addCreatedComponentToDynamicZone: (dynamicZoneTarget: string, componentsToAdd: Internal.UID.Component[]) => void;
|
|
15
15
|
createSchema: (data: Record<string, any>, schemaType: SchemaType, uid: Internal.UID.Schema, componentCategory?: string, shouldAddComponentToData?: boolean) => void;
|
|
16
|
-
changeDynamicZoneComponents: (dynamicZoneTarget: string, newComponents:
|
|
17
|
-
removeAttribute: (mainDataKey:
|
|
16
|
+
changeDynamicZoneComponents: (dynamicZoneTarget: string, newComponents: Internal.UID.Component[]) => void;
|
|
17
|
+
removeAttribute: (mainDataKey: 'contentType' | 'component' | 'contentTypes' | 'components', attributeToRemoveName: string, componentUid?: string) => void;
|
|
18
18
|
deleteCategory: (categoryUid: string) => void;
|
|
19
19
|
deleteData: () => void;
|
|
20
20
|
editCategory: (categoryUid: string, body: any) => void;
|
|
@@ -22,7 +22,7 @@ export interface DataManagerContextValue {
|
|
|
22
22
|
setModifiedData: () => void;
|
|
23
23
|
sortedContentTypesList: any[];
|
|
24
24
|
submitData: (additionalContentTypeData?: Record<string, any>) => Promise<void>;
|
|
25
|
-
updateSchema: (data: Record<string, any>, schemaType:
|
|
25
|
+
updateSchema: (data: Record<string, any>, schemaType: 'contentType' | 'component', componentUID: Internal.UID.Component) => void;
|
|
26
26
|
components: Record<Internal.UID.Component, Component>;
|
|
27
27
|
componentsGroupedByCategory: Record<string, Component[]>;
|
|
28
28
|
componentsThatHaveOtherComponentInTheirAttributes: any[];
|
|
@@ -3,8 +3,7 @@ interface LinkToCMSettingsViewProps {
|
|
|
3
3
|
disabled: boolean;
|
|
4
4
|
contentTypeKind?: string;
|
|
5
5
|
isInContentTypeView?: boolean;
|
|
6
|
-
isTemporary?: boolean;
|
|
7
6
|
targetUid?: string;
|
|
8
7
|
}
|
|
9
|
-
export declare const LinkToCMSettingsView: import("react").MemoExoticComponent<({ disabled,
|
|
8
|
+
export declare const LinkToCMSettingsView: import("react").MemoExoticComponent<({ disabled, isInContentTypeView, contentTypeKind, targetUid, }: LinkToCMSettingsViewProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
10
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const pluginId
|
|
1
|
+
export declare const pluginId = "content-type-builder";
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export declare const reducers: {
|
|
2
|
-
|
|
2
|
+
"content-type-builder_formModal": import("redux").Reducer<{
|
|
3
|
+
formErrors: Record<string, any>;
|
|
4
|
+
modifiedData: Record<string, any>;
|
|
5
|
+
initialData: Record<string, any>;
|
|
6
|
+
componentToCreate: Record<string, any>;
|
|
7
|
+
isCreatingComponentWhileAddingAField: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
"content-type-builder_dataManagerProvider": import("redux").Reducer<import("./types").DataManagerStateType>;
|
|
3
10
|
};
|
|
@@ -24,7 +24,7 @@ export interface Component {
|
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
}
|
|
26
26
|
export interface ContentType {
|
|
27
|
-
uid
|
|
27
|
+
uid: Internal.UID.ContentType;
|
|
28
28
|
isTemporary?: boolean;
|
|
29
29
|
visible?: boolean;
|
|
30
30
|
name?: string;
|
|
@@ -40,9 +40,7 @@ export type Components = Record<string, Component>;
|
|
|
40
40
|
export type ContentTypes = Record<string, ContentType>;
|
|
41
41
|
export interface DataManagerStateType {
|
|
42
42
|
components: Components;
|
|
43
|
-
contentTypes
|
|
44
|
-
initialComponents: Components;
|
|
45
|
-
initialContentTypes: ContentTypes;
|
|
43
|
+
contentTypes: ContentTypes;
|
|
46
44
|
initialData: Record<string, any>;
|
|
47
45
|
modifiedData: {
|
|
48
46
|
components: Components;
|
|
@@ -52,6 +50,5 @@ export interface DataManagerStateType {
|
|
|
52
50
|
};
|
|
53
51
|
reservedNames: Record<string, string>;
|
|
54
52
|
isLoading: boolean;
|
|
55
|
-
isLoadingForDataToBeSet: boolean;
|
|
56
53
|
[key: string]: any;
|
|
57
54
|
}
|