@rebasepro/admin 0.14.1 → 0.14.2-canary.gca521e9
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-BeS4lxGh.js → CollectionEditorDialog-DOLuFPQ0.js} +3 -3
- package/dist/{CollectionEditorDialog-BeS4lxGh.js.map → CollectionEditorDialog-DOLuFPQ0.js.map} +1 -1
- package/dist/{PropertyEditView-BFJ6H9-Q.js → PropertyEditView-SQc_qPXc.js} +2 -2
- package/dist/{PropertyEditView-BFJ6H9-Q.js.map → PropertyEditView-SQc_qPXc.js.map} +1 -1
- package/dist/{RouterCollectionsStudioView-sfsUpEJz.js → RouterCollectionsStudioView-Dt6kZhqQ.js} +4 -4
- package/dist/{RouterCollectionsStudioView-sfsUpEJz.js.map → RouterCollectionsStudioView-Dt6kZhqQ.js.map} +1 -1
- package/dist/collection_editor_ui.js +4 -4
- package/dist/{export-KEf57Jso.js → export-C2-QOP8Y.js} +2 -2
- package/dist/{export-KEf57Jso.js.map → export-C2-QOP8Y.js.map} +1 -1
- package/dist/{history-Ctd2cRn_.js → history-CSl-c8KX.js} +2 -2
- package/dist/{history-Ctd2cRn_.js.map → history-CSl-c8KX.js.map} +1 -1
- package/dist/{import-BujhycMq.js → import-Dk7LCL_o.js} +2 -2
- package/dist/{import-BujhycMq.js.map → import-Dk7LCL_o.js.map} +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/{util-bL-fk6C6.js → util-CWKlZGWP.js} +7 -7
- package/dist/util-CWKlZGWP.js.map +1 -0
- package/package.json +9 -9
- package/src/components/CollectionEditorDialogs.tsx +4 -3
- package/src/components/CollectionViewBinding/CollectionViewActions.tsx +4 -4
- package/src/components/EntityInspector.tsx +3 -2
- package/src/components/RebaseNavigation.tsx +3 -3
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +3 -2
- package/dist/util-bL-fk6C6.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/admin",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.2-canary.gca521e9",
|
|
5
5
|
"description": "Rebase CMS — content management views, forms, and routing",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/rebaseco"
|
|
@@ -83,14 +83,14 @@
|
|
|
83
83
|
"react-dropzone": "^19.1.1",
|
|
84
84
|
"react-use-measure": "^2.1.7",
|
|
85
85
|
"zod": "^4.4.3",
|
|
86
|
-
"@rebasepro/admin-types": "0.14.
|
|
87
|
-
"@rebasepro/
|
|
88
|
-
"@rebasepro/
|
|
89
|
-
"@rebasepro/
|
|
90
|
-
"@rebasepro/
|
|
91
|
-
"@rebasepro/
|
|
92
|
-
"@rebasepro/
|
|
93
|
-
"@rebasepro/
|
|
86
|
+
"@rebasepro/admin-types": "0.14.2-canary.gca521e9",
|
|
87
|
+
"@rebasepro/app": "0.14.2-canary.gca521e9",
|
|
88
|
+
"@rebasepro/common": "0.14.2-canary.gca521e9",
|
|
89
|
+
"@rebasepro/inference": "0.14.2-canary.gca521e9",
|
|
90
|
+
"@rebasepro/types": "0.14.2-canary.gca521e9",
|
|
91
|
+
"@rebasepro/forms": "0.14.2-canary.gca521e9",
|
|
92
|
+
"@rebasepro/utils": "0.14.2-canary.gca521e9",
|
|
93
|
+
"@rebasepro/ui": "0.14.2-canary.gca521e9"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"react": ">=19.2.7",
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { Suspense } from "react";
|
|
2
|
+
import { lazyChunk } from "@rebasepro/ui";
|
|
2
3
|
import { useCollectionEditorDialogsState } from "../collection_editor/CollectionEditorDialogsContext";
|
|
3
4
|
|
|
4
5
|
// Dynamic imports targeting the separate collection_editor_ui entry point.
|
|
5
6
|
// This ensures the heavy editor UI lands in its own chunk and is only fetched
|
|
6
7
|
// when a dialog is actually opened.
|
|
7
|
-
const CollectionEditorDialog =
|
|
8
|
+
const CollectionEditorDialog = lazyChunk(() =>
|
|
8
9
|
import("../collection_editor/ui/collection_editor/CollectionEditorDialog")
|
|
9
10
|
.then(m => ({ default: m.CollectionEditorDialog }))
|
|
10
11
|
);
|
|
11
12
|
|
|
12
|
-
const PropertyFormDialog =
|
|
13
|
+
const PropertyFormDialog = lazyChunk(() =>
|
|
13
14
|
import("../collection_editor/ui/collection_editor/PropertyEditView")
|
|
14
15
|
.then(m => ({ default: m.PropertyFormDialog }))
|
|
15
16
|
);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import React, {
|
|
3
|
+
import React, { Suspense } from "react";
|
|
4
4
|
|
|
5
5
|
import { useLargeLayout, useTranslation, useSlot, resolveComponentRef } from "@rebasepro/app";
|
|
6
6
|
import { CollectionActionsProps, EntityTableController, SelectionController, AdminCollection } from "@rebasepro/admin-types";
|
|
7
|
-
import { Button, IconButton, Tooltip, Popover, iconSize } from "@rebasepro/ui";
|
|
7
|
+
import { Button, IconButton, Tooltip, Popover, iconSize, lazyChunk } from "@rebasepro/ui";
|
|
8
8
|
import { ErrorBoundary, Link2Icon, MoreVerticalIcon, PlusIcon, Trash2Icon } from "@rebasepro/ui";
|
|
9
9
|
import { usePermissions } from "@rebasepro/app";
|
|
10
10
|
import { toArray } from "@rebasepro/utils";
|
|
11
11
|
// Lazy-load import/export — pulls in exceljs only on demand
|
|
12
|
-
const ImportCollectionAction =
|
|
13
|
-
const ExportCollectionAction =
|
|
12
|
+
const ImportCollectionAction = lazyChunk(() => import("../../data_import/import").then(m => ({ default: m.ImportCollectionAction })));
|
|
13
|
+
const ExportCollectionAction = lazyChunk(() => import("../../data_export/export").then(m => ({ default: m.ExportCollectionAction })));
|
|
14
14
|
import { EditorCollectionAction } from "../../collection_editor/ui/EditorCollectionAction";
|
|
15
15
|
import { useCollectionEditorController } from "../../collection_editor/useCollectionEditorController";
|
|
16
16
|
import { useAdminContext } from "../../hooks/useAdminContext";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AdminCollection } from "@rebasepro/admin-types";
|
|
2
2
|
import type { Entity } from "@rebasepro/types";
|
|
3
3
|
import type { FormContext } from "../types/fields";
|
|
4
|
-
import React, {
|
|
4
|
+
import React, { Suspense, useEffect } from "react";
|
|
5
5
|
import {
|
|
6
6
|
CircularProgressCenter,
|
|
7
7
|
cls,
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
ErrorBoundary,
|
|
10
10
|
IconButton,
|
|
11
11
|
iconSize,
|
|
12
|
+
lazyChunk,
|
|
12
13
|
Tab,
|
|
13
14
|
Tabs,
|
|
14
15
|
XIcon
|
|
@@ -16,7 +17,7 @@ import {
|
|
|
16
17
|
import { useTranslation } from "@rebasepro/app";
|
|
17
18
|
import { JsonPreviewBinding } from "./JsonPreviewBinding";
|
|
18
19
|
|
|
19
|
-
const EntityHistoryView =
|
|
20
|
+
const EntityHistoryView = lazyChunk(() => import("./history").then(m => ({ default: m.EntityHistoryView })));
|
|
20
21
|
|
|
21
22
|
export type InspectorTab = "json" | "history";
|
|
22
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useMemo, useRef, useEffect, useCallback, useContext,
|
|
1
|
+
import React, { useMemo, useRef, useEffect, useCallback, useContext, Suspense } from "react";
|
|
2
2
|
import {
|
|
3
3
|
useRebaseRegistry,
|
|
4
4
|
useRebaseContext,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
RebaseDataContext
|
|
17
17
|
} from "@rebasepro/app";
|
|
18
18
|
import { buildRoutedRebaseData, resolveDataSource } from "@rebasepro/common";
|
|
19
|
-
import { CircularProgressCenter } from "@rebasepro/ui";
|
|
19
|
+
import { CircularProgressCenter, lazyChunk } from "@rebasepro/ui";
|
|
20
20
|
|
|
21
21
|
import type { AppView, CollectionEditorOptions, EntityCustomView, EntityAction, RebasePlugin, AdminCollection } from "@rebasepro/admin-types";
|
|
22
22
|
import type { CollectionRegistryController } from "@rebasepro/types";
|
|
@@ -41,7 +41,7 @@ import { ConfigControllerProvider } from "../collection_editor/ConfigControllerP
|
|
|
41
41
|
import { useCollectionsConfigController } from "../collection_editor/useCollectionsConfigController";
|
|
42
42
|
|
|
43
43
|
// Lazy-load the schema view — only fetched when studio schema tool is active
|
|
44
|
-
const CollectionsStudioView =
|
|
44
|
+
const CollectionsStudioView = lazyChunk(() =>
|
|
45
45
|
import("../collection_editor/ui/collection_editor/RouterCollectionsStudioView")
|
|
46
46
|
.then(m => ({ default: m.RouterCollectionsStudioView }))
|
|
47
47
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { Suspense, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
2
2
|
import { FieldHelperText } from "../components/FieldHelperText";
|
|
3
3
|
import { LabelWithIconAndTooltip } from "../components/LabelWithIconAndTooltip";
|
|
4
4
|
import { useAuthController, useStorageSource } from "@rebasepro/app";
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
fieldBackgroundHoverMixin,
|
|
14
14
|
fieldBackgroundMixin,
|
|
15
15
|
IconButton,
|
|
16
|
+
lazyChunk,
|
|
16
17
|
Skeleton,
|
|
17
18
|
XIcon
|
|
18
19
|
} from "@rebasepro/ui";
|
|
@@ -22,7 +23,7 @@ import { randomString } from "@rebasepro/utils";
|
|
|
22
23
|
|
|
23
24
|
// Lazy-load ProseMirror editor + markdown parser/serializer (~300KB)
|
|
24
25
|
// Only fetched when a markdown field is actually rendered.
|
|
25
|
-
const RichTextEditor =
|
|
26
|
+
const RichTextEditor = lazyChunk(() => import("../../editor").then(m => ({ default: m.RichTextEditor })));
|
|
26
27
|
const loadMarkdownUtils = () => import("../../editor/markdown");
|
|
27
28
|
let _markdownUtils: Awaited<ReturnType<typeof loadMarkdownUtils>> | null = null;
|
|
28
29
|
const getMarkdownUtils = async () => {
|