@marinoscar/platform-web 0.1.0-next.25 → 0.1.0-next.27
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/CHANGELOG.md +30 -0
- package/dist/datatable/testing/runDataTableConformanceSuite.d.ts +6 -0
- package/dist/datatable/testing/runDataTableConformanceSuite.d.ts.map +1 -1
- package/dist/datatable/testing/runDataTableConformanceSuite.js +43 -13
- package/dist/datatable/testing/runDataTableConformanceSuite.js.map +1 -1
- package/dist/identity/index.d.ts +1 -1
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js.map +1 -1
- package/dist/notifications/headless/NotificationContext.d.ts +2 -0
- package/dist/notifications/headless/NotificationContext.d.ts.map +1 -1
- package/dist/notifications/headless/NotificationContext.js +30 -4
- package/dist/notifications/headless/NotificationContext.js.map +1 -1
- package/dist/notifications/headless/api.d.ts +14 -0
- package/dist/notifications/headless/api.d.ts.map +1 -1
- package/dist/notifications/headless/api.js +13 -0
- package/dist/notifications/headless/api.js.map +1 -1
- package/dist/notifications/headless/notificationStream.d.ts +14 -0
- package/dist/notifications/headless/notificationStream.d.ts.map +1 -1
- package/dist/notifications/headless/notificationStream.js +14 -0
- package/dist/notifications/headless/notificationStream.js.map +1 -1
- package/dist/shell/headless/context-pane.d.ts +56 -0
- package/dist/shell/headless/context-pane.d.ts.map +1 -0
- package/dist/shell/headless/context-pane.js +77 -0
- package/dist/shell/headless/context-pane.js.map +1 -0
- package/dist/shell/headless/index.d.ts +1 -0
- package/dist/shell/headless/index.d.ts.map +1 -1
- package/dist/shell/headless/index.js +1 -0
- package/dist/shell/headless/index.js.map +1 -1
- package/dist/shell/ui/ShellAppBar.d.ts +8 -1
- package/dist/shell/ui/ShellAppBar.d.ts.map +1 -1
- package/dist/shell/ui/ShellAppBar.js +6 -5
- package/dist/shell/ui/ShellAppBar.js.map +1 -1
- package/dist/shell/ui/ShellLayout.d.ts.map +1 -1
- package/dist/shell/ui/ShellLayout.js +29 -24
- package/dist/shell/ui/ShellLayout.js.map +1 -1
- package/dist/shell/ui/ShellNavigationRail.d.ts.map +1 -1
- package/dist/shell/ui/ShellNavigationRail.js +4 -0
- package/dist/shell/ui/ShellNavigationRail.js.map +1 -1
- package/dist/shell/ui/ShellUserMenu.d.ts +22 -1
- package/dist/shell/ui/ShellUserMenu.d.ts.map +1 -1
- package/dist/shell/ui/ShellUserMenu.js +14 -3
- package/dist/shell/ui/ShellUserMenu.js.map +1 -1
- package/dist/shell/ui/index.d.ts +1 -0
- package/dist/shell/ui/index.d.ts.map +1 -1
- package/dist/shell/ui/index.js +1 -0
- package/dist/shell/ui/index.js.map +1 -1
- package/dist/storage/headless/index.d.ts +4 -0
- package/dist/storage/headless/index.d.ts.map +1 -1
- package/dist/storage/headless/index.js +2 -0
- package/dist/storage/headless/index.js.map +1 -1
- package/dist/storage/headless/storage-migrations.d.ts +46 -0
- package/dist/storage/headless/storage-migrations.d.ts.map +1 -0
- package/dist/storage/headless/storage-migrations.js +35 -0
- package/dist/storage/headless/storage-migrations.js.map +1 -0
- package/dist/storage/headless/use-storage-migrations.d.ts +72 -0
- package/dist/storage/headless/use-storage-migrations.d.ts.map +1 -0
- package/dist/storage/headless/use-storage-migrations.js +138 -0
- package/dist/storage/headless/use-storage-migrations.js.map +1 -0
- package/dist/storage/ui/StorageConfigPage.d.ts.map +1 -1
- package/dist/storage/ui/StorageConfigPage.js +2 -1
- package/dist/storage/ui/StorageConfigPage.js.map +1 -1
- package/dist/storage/ui/StorageMigrationPanel.d.ts +52 -0
- package/dist/storage/ui/StorageMigrationPanel.d.ts.map +1 -0
- package/dist/storage/ui/StorageMigrationPanel.js +57 -0
- package/dist/storage/ui/StorageMigrationPanel.js.map +1 -0
- package/dist/storage/ui/index.d.ts +2 -0
- package/dist/storage/ui/index.d.ts.map +1 -1
- package/dist/storage/ui/index.js +1 -0
- package/dist/storage/ui/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The copy-only storage provider migration panel of `StorageConfigPage`
|
|
3
|
+
* (issue #1093).
|
|
4
|
+
*
|
|
5
|
+
* An administrator picks the driver to copy FROM and the driver to copy TO and
|
|
6
|
+
* starts a run; the panel shows the active run's live progress (it polls while
|
|
7
|
+
* the run is pending or running) with a Cancel button, and the recent run
|
|
8
|
+
* history below. Copying never deletes anything: every source object stays
|
|
9
|
+
* where it was, as a fallback, and only verified copies are repointed.
|
|
10
|
+
*
|
|
11
|
+
* Writes are gated inside the panel on `canWrite` (`storage_config:write`); a
|
|
12
|
+
* reader sees the progress and the history only.
|
|
13
|
+
*/
|
|
14
|
+
import type { PlatformApiClient } from '../../core/index.js';
|
|
15
|
+
/**
|
|
16
|
+
* One driver the panel offers.
|
|
17
|
+
*
|
|
18
|
+
* @stability experimental
|
|
19
|
+
*/
|
|
20
|
+
export interface StorageMigrationDriverOption {
|
|
21
|
+
/** The driver id. */
|
|
22
|
+
id: string;
|
|
23
|
+
/** Its label. */
|
|
24
|
+
label: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Props of {@link StorageMigrationPanel}.
|
|
28
|
+
*
|
|
29
|
+
* @stability experimental
|
|
30
|
+
*/
|
|
31
|
+
export interface StorageMigrationPanelProps {
|
|
32
|
+
/** The registered drivers (the configuration's descriptors). */
|
|
33
|
+
drivers: StorageMigrationDriverOption[];
|
|
34
|
+
/** The active driver: the default target. */
|
|
35
|
+
activeProvider: string;
|
|
36
|
+
/** `storage_config:write`: may start and cancel. */
|
|
37
|
+
canWrite: boolean;
|
|
38
|
+
/** The transport, outside a `PlatformHostProvider`. */
|
|
39
|
+
api?: PlatformApiClient;
|
|
40
|
+
/** Poll interval while a run is active, in ms (tests shorten it). */
|
|
41
|
+
pollMs?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Starts, follows and cancels a copy-only storage provider migration, and lists the recent runs.
|
|
45
|
+
*
|
|
46
|
+
* @param props - the drivers, the active one, write access and the transport.
|
|
47
|
+
* @returns the panel.
|
|
48
|
+
*
|
|
49
|
+
* @stability experimental
|
|
50
|
+
*/
|
|
51
|
+
export declare function StorageMigrationPanel(props: StorageMigrationPanelProps): import("react").JSX.Element;
|
|
52
|
+
//# sourceMappingURL=StorageMigrationPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageMigrationPanel.d.ts","sourceRoot":"","sources":["../../../src/storage/ui/StorageMigrationPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAyBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAI7D;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACxC,6CAA6C;IAC7C,cAAc,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,QAAQ,EAAE,OAAO,CAAC;IAClB,uDAAuD;IACvD,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiCD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BAsJtE"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The copy-only storage provider migration panel of `StorageConfigPage`
|
|
4
|
+
* (issue #1093).
|
|
5
|
+
*
|
|
6
|
+
* An administrator picks the driver to copy FROM and the driver to copy TO and
|
|
7
|
+
* starts a run; the panel shows the active run's live progress (it polls while
|
|
8
|
+
* the run is pending or running) with a Cancel button, and the recent run
|
|
9
|
+
* history below. Copying never deletes anything: every source object stays
|
|
10
|
+
* where it was, as a fallback, and only verified copies are repointed.
|
|
11
|
+
*
|
|
12
|
+
* Writes are gated inside the panel on `canWrite` (`storage_config:write`); a
|
|
13
|
+
* reader sees the progress and the history only.
|
|
14
|
+
*/
|
|
15
|
+
import { useEffect, useState } from 'react';
|
|
16
|
+
import { Alert, Box, Button, Chip, FormControl, InputLabel, LinearProgress, MenuItem, Paper, Select, Stack, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Typography, } from '@mui/material';
|
|
17
|
+
import { NUMERIC_DATE_TIME, formatDateTime, useDisplayTimeZone } from '../../core/index.js';
|
|
18
|
+
import { useStorageMigrations } from '../headless/index.js';
|
|
19
|
+
const STATUS_COLORS = {
|
|
20
|
+
pending: 'info',
|
|
21
|
+
running: 'info',
|
|
22
|
+
completed: 'success',
|
|
23
|
+
failed: 'error',
|
|
24
|
+
cancelled: 'warning',
|
|
25
|
+
};
|
|
26
|
+
function done(run) {
|
|
27
|
+
return run.migratedCount + run.failedCount + run.skippedCount;
|
|
28
|
+
}
|
|
29
|
+
function RunProgress({ run }) {
|
|
30
|
+
const percent = run.totalCount > 0 ? Math.round((done(run) / run.totalCount) * 100) : 0;
|
|
31
|
+
const planning = run.plannedAt === null;
|
|
32
|
+
return (_jsxs(Box, { "data-testid": "storage-migration-progress", children: [_jsx(LinearProgress, { variant: planning && run.totalCount === 0 ? 'indeterminate' : 'determinate', value: percent, "aria-label": "Migration progress" }), _jsxs(Typography, { variant: "body2", sx: { mt: 1 }, children: [planning ? 'Listing objects… ' : '', done(run), " of ", run.totalCount, " processed: ", run.migratedCount, " migrated, ", run.failedCount, " failed, ", run.skippedCount, " skipped", run.pendingCount > 0 ? `, ${run.pendingCount} to go` : ''] })] }));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Starts, follows and cancels a copy-only storage provider migration, and lists the recent runs.
|
|
36
|
+
*
|
|
37
|
+
* @param props - the drivers, the active one, write access and the transport.
|
|
38
|
+
* @returns the panel.
|
|
39
|
+
*
|
|
40
|
+
* @stability experimental
|
|
41
|
+
*/
|
|
42
|
+
export function StorageMigrationPanel(props) {
|
|
43
|
+
const { drivers, activeProvider, canWrite } = props;
|
|
44
|
+
useDisplayTimeZone(); // "Started" renders in the display zone.
|
|
45
|
+
const { runs, activeRun, isLoading, loadError, isWorking, actionError, clearActionError, start, cancel } = useStorageMigrations({
|
|
46
|
+
...(props.api ? { api: props.api } : {}),
|
|
47
|
+
...(props.pollMs !== undefined ? { pollMs: props.pollMs } : {}),
|
|
48
|
+
});
|
|
49
|
+
const [target, setTarget] = useState(activeProvider);
|
|
50
|
+
const [source, setSource] = useState(() => drivers.find((d) => d.id !== activeProvider)?.id ?? '');
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
setTarget(activeProvider);
|
|
53
|
+
}, [activeProvider]);
|
|
54
|
+
const canStart = canWrite && !activeRun && !isWorking && !!source && !!target && source !== target;
|
|
55
|
+
return (_jsxs(Paper, { sx: { mt: 2, p: { xs: 2, sm: 3 } }, "data-testid": "storage-migration-panel", children: [_jsx(Typography, { variant: "h6", component: "h2", children: "Copy objects between providers" }), _jsx(Typography, { variant: "body2", color: "text.secondary", sx: { mt: 0.5 }, children: "Copies every stored object from one provider to another, verifies each copy (size and checksum), and only then points the object at its new home. Nothing is deleted: the original stays where it is as a fallback. One migration runs at a time." }), loadError && (_jsx(Alert, { severity: "error", sx: { mt: 2 }, children: loadError })), actionError && (_jsx(Alert, { severity: "error", sx: { mt: 2 }, onClose: clearActionError, children: actionError })), canWrite && (_jsxs(Stack, { direction: { xs: 'column', sm: 'row' }, spacing: 2, sx: { mt: 2, alignItems: { sm: 'center' } }, children: [_jsxs(FormControl, { size: "small", sx: { minWidth: 180 }, children: [_jsx(InputLabel, { id: "storage-migration-source-label", children: "From" }), _jsx(Select, { labelId: "storage-migration-source-label", label: "From", value: source, onChange: (event) => setSource(String(event.target.value)), inputProps: { 'data-testid': 'storage-migration-source' }, children: drivers.map((driver) => (_jsx(MenuItem, { value: driver.id, children: driver.label }, driver.id))) })] }), _jsxs(FormControl, { size: "small", sx: { minWidth: 180 }, children: [_jsx(InputLabel, { id: "storage-migration-target-label", children: "To" }), _jsx(Select, { labelId: "storage-migration-target-label", label: "To", value: target, onChange: (event) => setTarget(String(event.target.value)), inputProps: { 'data-testid': 'storage-migration-target' }, children: drivers.map((driver) => (_jsx(MenuItem, { value: driver.id, children: driver.label }, driver.id))) })] }), _jsx(Button, { variant: "contained", disabled: !canStart, onClick: () => void start({ sourceProvider: source, targetProvider: target }), children: "Start migration" })] })), activeRun && (_jsxs(Box, { sx: { mt: 3 }, children: [_jsxs(Stack, { direction: "row", spacing: 1, sx: { mb: 1, alignItems: 'center', flexWrap: 'wrap' }, children: [_jsxs(Typography, { variant: "subtitle1", children: [activeRun.sourceProvider, " \u2192 ", activeRun.targetProvider] }), _jsx(Chip, { size: "small", label: activeRun.status, color: STATUS_COLORS[activeRun.status] ?? 'default' }), canWrite && (_jsx(Button, { size: "small", color: "warning", disabled: isWorking, onClick: () => void cancel(activeRun.id), children: "Cancel" }))] }), _jsx(RunProgress, { run: activeRun })] })), _jsx(Typography, { variant: "subtitle1", sx: { mt: 3 }, children: "Recent migrations" }), isLoading ? (_jsx(LinearProgress, { sx: { mt: 1 } })) : runs.length === 0 ? (_jsx(Typography, { variant: "body2", color: "text.secondary", sx: { mt: 1 }, children: "No migration has run yet." })) : (_jsx(TableContainer, { sx: { mt: 1, overflowX: 'auto' }, children: _jsxs(Table, { size: "small", "aria-label": "Recent storage migrations", children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { children: "Started" }), _jsx(TableCell, { children: "From \u2192 To" }), _jsx(TableCell, { children: "Status" }), _jsx(TableCell, { align: "right", children: "Migrated" }), _jsx(TableCell, { align: "right", children: "Failed" }), _jsx(TableCell, { align: "right", children: "Skipped" }), _jsx(TableCell, { align: "right", children: "Total" })] }) }), _jsx(TableBody, { children: runs.map((run) => (_jsxs(TableRow, { "data-testid": `storage-migration-run-${run.id}`, children: [_jsx(TableCell, { children: formatDateTime(run.createdAt, NUMERIC_DATE_TIME) }), _jsxs(TableCell, { children: [run.sourceProvider, " \u2192 ", run.targetProvider] }), _jsxs(TableCell, { children: [_jsx(Chip, { size: "small", label: run.status, color: STATUS_COLORS[run.status] ?? 'default' }), run.lastError && (_jsx(Typography, { variant: "caption", color: "text.secondary", sx: { display: 'block' }, children: run.lastError }))] }), _jsx(TableCell, { align: "right", children: run.migratedCount }), _jsx(TableCell, { align: "right", children: run.failedCount }), _jsx(TableCell, { align: "right", children: run.skippedCount }), _jsx(TableCell, { align: "right", children: run.totalCount })] }, run.id))) })] }) }))] }));
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=StorageMigrationPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageMigrationPanel.js","sourceRoot":"","sources":["../../../src/storage/ui/StorageMigrationPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACL,KAAK,EACL,GAAG,EACH,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,cAAc,EACd,QAAQ,EACR,KAAK,EACL,MAAM,EACN,KAAK,EACL,KAAK,EACL,SAAS,EACT,SAAS,EACT,cAAc,EACd,SAAS,EACT,QAAQ,EACR,UAAU,GACX,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAiC5D,MAAM,aAAa,GAAyE;IAC1F,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,SAAS;CACr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O,sBAAkB,IACjC,GACD,EACZ,KAAC,SAAS,cACP,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjB,MAAC,QAAQ,mBAA2B,yBAAyB,GAAG,CAAC,EAAE,EAAE,aACnE,KAAC,SAAS,cAAE,cAAc,CAAC,GAAG,CAAC,SAAS,EAAE,iBAAiB,CAAC,GAAa,EACzE,MAAC,SAAS,eACP,GAAG,CAAC,cAAc,cAAK,GAAG,CAAC,cAAc,IAChC,EACZ,MAAC,SAAS,eACR,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,SAAS,GAAI,EACtF,GAAG,CAAC,SAAS,IAAI,CAChB,KAAC,UAAU,IAAC,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,gBAAgB,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,YAC1E,GAAG,CAAC,SAAS,GACH,CACd,IACS,EACZ,KAAC,SAAS,IAAC,KAAK,EAAC,OAAO,YAAE,GAAG,CAAC,aAAa,GAAa,EACxD,KAAC,SAAS,IAAC,KAAK,EAAC,OAAO,YAAE,GAAG,CAAC,WAAW,GAAa,EACtD,KAAC,SAAS,IAAC,KAAK,EAAC,OAAO,YAAE,GAAG,CAAC,YAAY,GAAa,EACvD,KAAC,SAAS,IAAC,KAAK,EAAC,OAAO,YAAE,GAAG,CAAC,UAAU,GAAa,KAhBxC,GAAG,CAAC,EAAE,CAiBV,CACZ,CAAC,GACQ,IACN,GACO,CAClB,IACK,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { default, default as StorageConfigPage } from './StorageConfigPage.js';
|
|
2
2
|
export type { StorageConfigPageProps, StorageConfigPageSlots } from './StorageConfigPage.js';
|
|
3
3
|
export { StorageSwitchConfirmDialog } from './StorageSwitchConfirmDialog.js';
|
|
4
|
+
export { StorageMigrationPanel } from './StorageMigrationPanel.js';
|
|
5
|
+
export type { StorageMigrationDriverOption, StorageMigrationPanelProps } from './StorageMigrationPanel.js';
|
|
4
6
|
export type { StorageSwitchConfirmDialogProps } from './StorageSwitchConfirmDialog.js';
|
|
5
7
|
export { StorageGenericDriverPanel, getStorageDriverPanel, registerStorageDriverPanel, } from './driver-panels.js';
|
|
6
8
|
export type { StorageDriverPanelComponent, StorageDriverPanelOptions, StorageDriverPanelProps, } from './driver-panels.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/ui/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,YAAY,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/ui/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC3G,YAAY,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC"}
|
package/dist/storage/ui/index.js
CHANGED
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
// Documented in ../README.md.
|
|
8
8
|
export { default, default as StorageConfigPage } from './StorageConfigPage.js';
|
|
9
9
|
export { StorageSwitchConfirmDialog } from './StorageSwitchConfirmDialog.js';
|
|
10
|
+
export { StorageMigrationPanel } from './StorageMigrationPanel.js';
|
|
10
11
|
export { StorageGenericDriverPanel, getStorageDriverPanel, registerStorageDriverPanel, } from './driver-panels.js';
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/storage/ui/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,2EAA2E;AAC3E,+CAA+C;AAC/C,2EAA2E;AAC3E,gFAAgF;AAChF,+EAA+E;AAC/E,8BAA8B;AAE9B,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/storage/ui/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,2EAA2E;AAC3E,+CAA+C;AAC/C,2EAA2E;AAC3E,gFAAgF;AAChF,+EAA+E;AAC/E,8BAA8B;AAE9B,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marinoscar/platform-web",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.27",
|
|
4
4
|
"description": "React pages, components and hooks of the platform (ESM).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
"test:run": "vitest run"
|
|
307
307
|
},
|
|
308
308
|
"dependencies": {
|
|
309
|
-
"@marinoscar/platform-contract": "0.1.0-next.
|
|
309
|
+
"@marinoscar/platform-contract": "0.1.0-next.27"
|
|
310
310
|
},
|
|
311
311
|
"peerDependencies": {
|
|
312
312
|
"@codemirror/lang-sql": "^6.10.0",
|