@firecms/collection_editor 3.3.0 → 3.4.0-canary.1faa2a9
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/de-BfAs6FCh.js +126 -0
- package/dist/de-BfAs6FCh.js.map +1 -0
- package/dist/es-n-JMLSct.js +126 -0
- package/dist/es-n-JMLSct.js.map +1 -0
- package/dist/fr-BkIcmidG.js +126 -0
- package/dist/fr-BkIcmidG.js.map +1 -0
- package/dist/hi-CeydXFQO.js +126 -0
- package/dist/hi-CeydXFQO.js.map +1 -0
- package/dist/index.es.js +836 -1583
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1631 -1622
- package/dist/index.umd.js.map +1 -1
- package/dist/it-B8DeGSZc.js +126 -0
- package/dist/it-B8DeGSZc.js.map +1 -0
- package/dist/pt-BDUhigIy.js +126 -0
- package/dist/pt-BDUhigIy.js.map +1 -0
- package/dist/ui/collection_editor/properties/StoragePropertyField.d.ts +1 -2
- package/package.json +8 -7
- package/src/locales/de.ts +2 -2
- package/src/locales/en.ts +2 -2
- package/src/locales/es.ts +2 -2
- package/src/locales/fr.ts +2 -2
- package/src/locales/hi.ts +2 -2
- package/src/locales/it.ts +2 -2
- package/src/locales/pt.ts +2 -2
- package/src/ui/collection_editor/CollectionPropertiesEditorForm.tsx +2 -2
- package/src/ui/collection_editor/DisplaySettingsForm.tsx +105 -0
- package/src/ui/collection_editor/PropertyEditView.tsx +2 -4
- package/src/ui/collection_editor/properties/StoragePropertyField.tsx +2 -4
- package/src/useCollectionEditorPlugin.tsx +9 -12
|
@@ -498,13 +498,11 @@ function PropertyEditFormFields({
|
|
|
498
498
|
showErrors={showErrors} />;
|
|
499
499
|
} else if (selectedFieldConfigId === "file_upload") {
|
|
500
500
|
childComponent =
|
|
501
|
-
<StoragePropertyField
|
|
502
|
-
multiple={false}
|
|
501
|
+
<StoragePropertyField multiple={false}
|
|
503
502
|
disabled={disabled} />;
|
|
504
503
|
} else if (selectedFieldConfigId === "multi_file_upload") {
|
|
505
504
|
childComponent =
|
|
506
|
-
<StoragePropertyField
|
|
507
|
-
multiple={true}
|
|
505
|
+
<StoragePropertyField multiple={true}
|
|
508
506
|
disabled={disabled} />;
|
|
509
507
|
} else if (selectedFieldConfigId === "switch") {
|
|
510
508
|
childComponent = <BooleanPropertyField disabled={disabled} />;
|
|
@@ -20,11 +20,9 @@ import { useTranslation } from "@firecms/core";
|
|
|
20
20
|
|
|
21
21
|
export function StoragePropertyField({
|
|
22
22
|
multiple,
|
|
23
|
-
existing,
|
|
24
23
|
disabled
|
|
25
24
|
}: {
|
|
26
25
|
multiple: boolean;
|
|
27
|
-
existing: boolean;
|
|
28
26
|
disabled: boolean;
|
|
29
27
|
}) {
|
|
30
28
|
|
|
@@ -179,7 +177,7 @@ export function StoragePropertyField({
|
|
|
179
177
|
}: FormexFieldProps) => {
|
|
180
178
|
return <SwitchControl
|
|
181
179
|
label={t("include_bucket_url")}
|
|
182
|
-
disabled={
|
|
180
|
+
disabled={disabled}
|
|
183
181
|
form={form}
|
|
184
182
|
field={field}/>;
|
|
185
183
|
}}
|
|
@@ -197,7 +195,7 @@ export function StoragePropertyField({
|
|
|
197
195
|
}: FormexFieldProps) => {
|
|
198
196
|
return <SwitchControl
|
|
199
197
|
label={t("save_url_instead_of_path")}
|
|
200
|
-
disabled={
|
|
198
|
+
disabled={disabled}
|
|
201
199
|
form={form}
|
|
202
200
|
field={field}/>;
|
|
203
201
|
}}
|
|
@@ -19,12 +19,6 @@ import { EditorEntityAction } from "./ui/EditorEntityAction";
|
|
|
19
19
|
import { KanbanSetupAction } from "./ui/KanbanSetupAction";
|
|
20
20
|
import { AddKanbanColumnAction } from "./ui/AddKanbanColumnAction";
|
|
21
21
|
import { collectionEditorTranslationsEn } from "./locales/en";
|
|
22
|
-
import { collectionEditorTranslationsEs } from "./locales/es";
|
|
23
|
-
import { collectionEditorTranslationsDe } from "./locales/de";
|
|
24
|
-
import { collectionEditorTranslationsFr } from "./locales/fr";
|
|
25
|
-
import { collectionEditorTranslationsIt } from "./locales/it";
|
|
26
|
-
import { collectionEditorTranslationsHi } from "./locales/hi";
|
|
27
|
-
import { collectionEditorTranslationsPt } from "./locales/pt";
|
|
28
22
|
|
|
29
23
|
export interface CollectionConfigControllerProps<EC extends PersistedCollection = PersistedCollection, USER extends User = User> {
|
|
30
24
|
|
|
@@ -139,13 +133,16 @@ export function useCollectionEditorPlugin<EC extends PersistedCollection = Persi
|
|
|
139
133
|
ActionsTop: EditorEntityAction,
|
|
140
134
|
},
|
|
141
135
|
i18n: {
|
|
136
|
+
// Only English is bundled; the rest load when that language is selected.
|
|
137
|
+
// Seven languages of strings in every plugin bundle is dead weight for
|
|
138
|
+
// the six nobody is reading.
|
|
142
139
|
en: collectionEditorTranslationsEn,
|
|
143
|
-
es: collectionEditorTranslationsEs,
|
|
144
|
-
de: collectionEditorTranslationsDe,
|
|
145
|
-
fr: collectionEditorTranslationsFr,
|
|
146
|
-
it: collectionEditorTranslationsIt,
|
|
147
|
-
hi: collectionEditorTranslationsHi,
|
|
148
|
-
pt: collectionEditorTranslationsPt
|
|
140
|
+
es: () => import("./locales/es").then((m) => m.collectionEditorTranslationsEs),
|
|
141
|
+
de: () => import("./locales/de").then((m) => m.collectionEditorTranslationsDe),
|
|
142
|
+
fr: () => import("./locales/fr").then((m) => m.collectionEditorTranslationsFr),
|
|
143
|
+
it: () => import("./locales/it").then((m) => m.collectionEditorTranslationsIt),
|
|
144
|
+
hi: () => import("./locales/hi").then((m) => m.collectionEditorTranslationsHi),
|
|
145
|
+
pt: () => import("./locales/pt").then((m) => m.collectionEditorTranslationsPt)
|
|
149
146
|
}
|
|
150
147
|
};
|
|
151
148
|
}
|