@rebasepro/admin 0.16.1-canary.g701140a → 0.16.1-canary.g7cfd220
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/{CollectionEditorDialog-D2Vf4C3-.js → CollectionEditorDialog-Dt_Wv20U.js} +7 -3
- package/dist/{CollectionEditorDialog-D2Vf4C3-.js.map → CollectionEditorDialog-Dt_Wv20U.js.map} +1 -1
- package/dist/{PropertyEditView-D3NBsK9_.js → PropertyEditView-C4IltWX5.js} +2 -2
- package/dist/{PropertyEditView-D3NBsK9_.js.map → PropertyEditView-C4IltWX5.js.map} +1 -1
- package/dist/{RouterCollectionsStudioView-hPB54l3Q.js → RouterCollectionsStudioView-C-BHWJ0J.js} +4 -4
- package/dist/{RouterCollectionsStudioView-hPB54l3Q.js.map → RouterCollectionsStudioView-C-BHWJ0J.js.map} +1 -1
- package/dist/SchemaChangeDialog-DceT8QFX.js +394 -0
- package/dist/SchemaChangeDialog-DceT8QFX.js.map +1 -0
- package/dist/collection_editor/liveSchemaClient.d.ts +182 -0
- package/dist/collection_editor/serializable_types.d.ts +0 -1
- package/dist/collection_editor/types/config_controller.d.ts +11 -0
- package/dist/collection_editor/ui/collection_editor/SchemaChangeDialog.d.ts +85 -0
- package/dist/collection_editor/useLiveSchemaEditing.d.ts +71 -0
- package/dist/collection_editor_ui.js +4 -4
- package/dist/components/DrawerNavigationGroup.d.ts +0 -9
- package/dist/components/DrawerNavigationItem.d.ts +0 -4
- package/dist/components/RelationSelector.d.ts +0 -2
- package/dist/data_import/utils/file_to_json.d.ts +1 -1
- package/dist/{export-oauWlxuu.js → export-CF1-p5nY.js} +2 -2
- package/dist/{export-oauWlxuu.js.map → export-CF1-p5nY.js.map} +1 -1
- package/dist/{history-C2cqc0bw.js → history-BoT8GhO1.js} +2 -2
- package/dist/{history-C2cqc0bw.js.map → history-BoT8GhO1.js.map} +1 -1
- package/dist/{import-Bxv5JPm-.js → import-Dg4X01sA.js} +2 -2
- package/dist/{import-Bxv5JPm-.js.map → import-Dg4X01sA.js.map} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +262 -21
- package/dist/index.js.map +1 -1
- package/dist/util/previews.d.ts +2 -2
- package/dist/{util-C4qsI1QV.js → util-DUIsQ2zh.js} +132 -9
- package/dist/util-DUIsQ2zh.js.map +1 -0
- package/package.json +11 -11
- package/src/collection_editor/ConfigControllerProvider.tsx +5 -0
- package/src/collection_editor/liveSchemaClient.ts +285 -0
- package/src/collection_editor/serializable_types.ts +0 -1
- package/src/collection_editor/serializable_utils.ts +0 -1
- package/src/collection_editor/types/config_controller.tsx +11 -0
- package/src/collection_editor/ui/collection_editor/CollectionEditorDialog.tsx +10 -0
- package/src/collection_editor/ui/collection_editor/SchemaChangeDialog.tsx +470 -0
- package/src/collection_editor/useLiveSchemaEditing.tsx +315 -0
- package/src/collection_editor/useLocalCollectionsConfigController.tsx +109 -10
- package/src/components/DrawerNavigationGroup.tsx +0 -9
- package/src/components/DrawerNavigationItem.tsx +0 -4
- package/src/components/RelationSelector.tsx +0 -2
- package/src/data_import/utils/data.ts +1 -1
- package/src/data_import/utils/file_to_json.ts +0 -3
- package/src/index.ts +6 -0
- package/src/util/previews.ts +4 -2
- package/dist/util-C4qsI1QV.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as updatePropertyFromWidget, c as useAIModifiedPaths, i as supportedFields, n as PropertyForm, o as PropertyTree, r as PropertyFormDialog, s as AIModifiedPathsProvider } from "./PropertyEditView-
|
|
2
|
+
import { A as getFieldId, Dt as ImportNewPropertyFieldPreview, Gt as FieldCaption, Lt as ImportFileUpload, Mt as getInferenceType, Nt as useImportConfig, Ot as DataNewPropertiesMapping, Pt as ImportSaveInProgress, S as isSchemaChangeCancelled, Ut as PropertyConfigBadge, Wt as SearchIconsView, _ as useCollectionsConfigController, gn as useNavigationStateController, i as namespaceToPropertiesOrderPath, k as getFieldConfig, kt as convertDataToEntity, l as validateCollectionJson, ln as CollectionTableBinding, m as toSerializableCollectionConfig, mn as useUrlController, n as getFullIdPath, o as CollectionGenerationApiError, qn as useCollectionRegistryController, r as idToPropertiesPath, sn as useSelectionController, st as useSafeSnackbarController, t as getFullId, wt as useCollectionEditorController } from "./util-DUIsQ2zh.js";
|
|
3
|
+
import { a as updatePropertyFromWidget, c as useAIModifiedPaths, i as supportedFields, n as PropertyForm, o as PropertyTree, r as PropertyFormDialog, s as AIModifiedPathsProvider } from "./PropertyEditView-C4IltWX5.js";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { Alert, AppWindow, ArrowLeftIcon, BooleanSwitchWithLabel, Button, Card, CheckIcon, Chip, CircularProgress, CircularProgressCenter, CodeIcon, ColumnsIcon, Container, CopyIcon, DebouncedTextField, Dialog, DialogActions, DialogContent, DialogTitle, ErrorBoundary, FileIcon, FileSearchIcon, FileTextIcon, IconButton, KanbanIcon, KeyIcon, LayoutGridIcon, ListIcon, LoadingButton, Menu, MultiSelect, MultiSelectItem, PanelLeftIcon, Paper, PlusIcon, Select, SelectItem, ShoppingCartIcon, SquareIcon, Tab, TableIcon, Tabs, TextField, ToggleButtonGroup, Tooltip, Trash2Icon, Typography, UserIcon, XIcon, cls, coolIconKeys, defaultBorderMixin, iconSize } from "@rebasepro/ui";
|
|
@@ -3062,6 +3062,10 @@ function CollectionEditorInternal({ isNewCollection, configController, editedCol
|
|
|
3062
3062
|
setError(void 0);
|
|
3063
3063
|
return true;
|
|
3064
3064
|
}).catch((e) => {
|
|
3065
|
+
if (isSchemaChangeCancelled(e)) {
|
|
3066
|
+
setError(void 0);
|
|
3067
|
+
return false;
|
|
3068
|
+
}
|
|
3065
3069
|
setError(e);
|
|
3066
3070
|
console.error(e);
|
|
3067
3071
|
snackbarController.open({
|
|
@@ -3566,4 +3570,4 @@ var validateId = (value, isNewCollection, existingPaths, existingIds) => {
|
|
|
3566
3570
|
//#endregion
|
|
3567
3571
|
export { CollectionEditorDialog as n, CollectionEditorDialog_exports as r, CollectionEditor as t };
|
|
3568
3572
|
|
|
3569
|
-
//# sourceMappingURL=CollectionEditorDialog-
|
|
3573
|
+
//# sourceMappingURL=CollectionEditorDialog-Dt_Wv20U.js.map
|