@object-ui/plugin-designer 3.3.1 → 3.4.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/CHANGELOG.md +55 -0
- package/dist/index.js +401 -351
- package/dist/index.umd.cjs +2 -2
- package/dist/packages/plugin-designer/src/components/HistoryPanel.d.ts +42 -0
- package/dist/packages/plugin-designer/src/components/index.d.ts +2 -0
- package/dist/packages/plugin-designer/src/hooks/useUndoRedo.d.ts +38 -0
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# @object-ui/plugin-designer
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a2d7023: End-user feature batch — forms, designer history, import/export, and PWA offline sync.
|
|
8
|
+
|
|
9
|
+
**Forms (`@object-ui/fields`, `@object-ui/providers`)**
|
|
10
|
+
- `FileField`: native `<input capture="environment">` camera capture for mobile devices, plus a uploading-progress indicator driven by `UploadProvider`.
|
|
11
|
+
- `ImageField`: per-image inline crop/rotate via the lazy-loaded `ImageCropperDialog` (canvas-based, zero new deps).
|
|
12
|
+
- New `UploadProvider` in `@object-ui/providers` with pluggable adapters for S3 and Azure Blob (plus the default object-URL adapter for local previews). XHR-based with progress, abort, and retry.
|
|
13
|
+
- `LookupField`: `lookup.dependsOn: string | string[]` to chain dependent lookups (e.g. State depends on Country); the trigger is gated until parent values are present and the OData `$filter` is built automatically.
|
|
14
|
+
|
|
15
|
+
**Container-aware widget widths (`@object-ui/components`)**
|
|
16
|
+
- New `useResizeObserver(ref)` hook exposing `{ width, height }` of any element. SSR-safe; reads the initial size via `getBoundingClientRect`.
|
|
17
|
+
- `plugin-gantt` and `plugin-kanban` now react to their container size instead of `window.innerWidth`, so they behave correctly inside split panels and dashboards.
|
|
18
|
+
|
|
19
|
+
**Designer history (`@object-ui/plugin-designer`)**
|
|
20
|
+
- `useUndoRedo` (and therefore `useDesignerHistory`) gains `persistKey` + `storage` options to round-trip the undo/redo stack through `sessionStorage`, plus a `clearPersisted()` cleanup helper. Drafts now survive accidental tab refreshes.
|
|
21
|
+
- New `<HistoryPanel>` component renders the timeline visually with one-click jump-to-checkpoint via the new `jumpTo(index)` API.
|
|
22
|
+
|
|
23
|
+
**Import wizard (`@object-ui/plugin-grid`)**
|
|
24
|
+
- Saved column-mapping templates: name, save, re-apply, and delete via a new template bar in the mapping step. Persisted under `objectui:import-templates:${objectName}` (override via `templateStorageKey` / `templateStorage`).
|
|
25
|
+
- Inline validation correction: cells with errors in the preview step are now editable; corrections feed straight into the import without requiring a re-upload, with green-bar status indicators for fixed rows.
|
|
26
|
+
|
|
27
|
+
**PWA offline sync (`@object-ui/mobile`)**
|
|
28
|
+
- New `MemoryOfflineQueue` / `IndexedDbOfflineQueue` (`createOfflineQueue()` picks the best backend) backed by IndexedDB.
|
|
29
|
+
- `createOfflineDataSource(inner, { queue })` wraps any DataSource so mutations issued while offline (or that fail with a network-style error) are queued and replayed in order on reconnect. Includes `replay()`, `drop()`, `clear()`, `pending()`, an `onChange` notifier, and an opt-in `resolveConflict` hook for stale-write conflicts.
|
|
30
|
+
- New `useOfflineSync(source)` hook exposes `{ isOnline, pending, isReplaying, replay, drop, clear }` and auto-replays on the browser's `online` event.
|
|
31
|
+
- `getServiceWorkerSource(opts)` emits a customisable Service Worker that pre-caches the app shell, applies network-first to API requests, and broadcasts `REPLAY_QUEUE` to clients on Background Sync. `requestBackgroundSync(tag)` registers a one-shot sync from the page.
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [a2d7023]
|
|
34
|
+
- Updated dependencies [f1ca238]
|
|
35
|
+
- Updated dependencies [de881ef]
|
|
36
|
+
- @object-ui/components@3.4.0
|
|
37
|
+
- @object-ui/fields@3.4.0
|
|
38
|
+
- @object-ui/plugin-grid@3.4.0
|
|
39
|
+
- @object-ui/types@3.4.0
|
|
40
|
+
- @object-ui/plugin-form@3.4.0
|
|
41
|
+
- @object-ui/core@3.4.0
|
|
42
|
+
- @object-ui/react@3.4.0
|
|
43
|
+
- @object-ui/i18n@3.4.0
|
|
44
|
+
|
|
45
|
+
## 3.3.2
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- @object-ui/types@3.3.2
|
|
50
|
+
- @object-ui/core@3.3.2
|
|
51
|
+
- @object-ui/i18n@3.3.2
|
|
52
|
+
- @object-ui/react@3.3.2
|
|
53
|
+
- @object-ui/components@3.3.2
|
|
54
|
+
- @object-ui/fields@3.3.2
|
|
55
|
+
- @object-ui/plugin-form@3.3.2
|
|
56
|
+
- @object-ui/plugin-grid@3.3.2
|
|
57
|
+
|
|
3
58
|
## 3.3.1
|
|
4
59
|
|
|
5
60
|
### Patch Changes
|