@crystaldesign/diva-backoffice 26.8.0-beta.49 → 26.8.0-beta.50

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.
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ export interface PopoutWindowProps {
3
+ /** Stable identity of this popout (e.g. the tool id) — lets a StrictMode remount reclaim the same window. */
4
+ windowKey: string;
5
+ /** Preference key for the persisted geometry — slots sharing one window spot across tools pass their slot key (defaults to `windowKey`). */
6
+ boundsKey?: string;
7
+ title: string;
8
+ width?: number;
9
+ height?: number;
10
+ /**
11
+ * Resolves an element whose ancestor scope classes (diva-component-*, theme) are replicated
12
+ * around the popout content so scoped CSS keeps matching. A getter so the host need not read
13
+ * a reactive value during render (that would loop with inline ref callbacks).
14
+ */
15
+ anchor?: () => HTMLElement | null;
16
+ /** Called when the user closes the window (or opening was blocked by the browser). */
17
+ onClose: () => void;
18
+ /** Reports the live child window handle (undefined on teardown) — used to focus it. */
19
+ onWindow?: (win: Window | undefined) => void;
20
+ children: React.ReactNode;
21
+ }
22
+ /**
23
+ * Renders its children into a REAL browser window (`window.open`) via a React portal.
24
+ * The JavaScript (React tree, contexts, stores) keeps running in the MAIN window —
25
+ * the child is only a rendering surface, so nothing re-initializes there. The parent
26
+ * document's styles and the body class (darkmode) are mirrored into the child.
27
+ */
28
+ declare const PopoutWindow: ({ windowKey, boundsKey, title, width, height, anchor, onClose, onWindow, children }: PopoutWindowProps) => React.ReactPortal | null;
29
+ export default PopoutWindow;
30
+ //# sourceMappingURL=PopoutWindow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopoutWindow.d.ts","sourceRoot":"","sources":["../../../../../../src/layout/Toolbar/PopoutWindow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,MAAM,WAAW,iBAAiB;IAChC,6GAA6G;IAC7G,SAAS,EAAE,MAAM,CAAC;IAClB,4IAA4I;IAC5I,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,CAAC;IAClC,sFAAsF;IACtF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AA4HD;;;;;GAKG;AACH,QAAA,MAAM,YAAY,wFAAkH,iBAAiB,6BA2GpJ,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layout/Toolbar/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoC,MAAM,OAAO,CAAC;wCA+B1B;IAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAA;CAAE;;;AA2F/D,wBAAiC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layout/Toolbar/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+C,MAAM,OAAO,CAAC;wCAkCrC;IAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAA;CAAE;;;AAmK/D,wBAAiC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContentStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,wBAAwB,CAAC;AAI7E,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAKnE,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAI1C,MAAM,CAAC,OAAO;IAWA,O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AE,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,CAAC,EAAE,IAAI;IA+BjG,uBAAuB,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM;IAWjD;;;;;;;;;OASG;IACH,OAAO,CAAC,yBAAyB;IAmBjC,OAAO,CAAC,OAAO;IAiCf;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAwBpB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAgBxB;;;;OAIG;IACH,OAAO,CAAC,WAAW;IA2BnB;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;CAgC/B;AAED,eAAO,MAAM,IAAI,EAAE,QAAQ,EA0pB1B,CAAC"}
@@ -5,19 +5,32 @@ import { Tool } from '../layout/Navigation/types';
5
5
  */
6
6
  export default class ToolBarStore {
7
7
  private defaultLanguage;
8
+ private preferenceScope?;
8
9
  private _tools;
9
10
  private _hidden;
10
11
  private _pinned;
11
12
  private _selectedToolId;
13
+ private _mountedToolIds;
14
+ private _detachedToolIds;
15
+ /** Detached tools whose owning view is gone — kept alive in their window until a view re-adds (adopts) them or the grace timer closes them. */
16
+ private _orphanedDetachedIds;
17
+ /** Pending grace-period close timers for orphaned detached tools — plain handles, deliberately not observable. */
18
+ private _orphanCloseTimers;
19
+ /** Live child windows of detached tools — DOM handles, deliberately not observable. */
20
+ private _popoutWindows;
12
21
  private _loadingTools;
13
22
  private _currentLanguage;
14
23
  private _width;
15
24
  private _toolbarElement;
25
+ /** Set when the system (not the user) closed an orphaned detached window — the next tool filling this slot reopens detached. */
26
+ private _reopenDetached;
16
27
  /**
17
28
  * Creates a new ToolBarStore instance.
18
29
  * @param defaultLanguage - The default language to use for tools
30
+ * @param preferenceScope - When set, this toolbar is ONE slot: its tools share the user
31
+ * preferences under this key and the detached state survives across tool ids.
19
32
  */
20
- constructor(defaultLanguage: string);
33
+ constructor(defaultLanguage: string, preferenceScope?: string | undefined);
21
34
  /**
22
35
  * The list of available tools in the toolbar
23
36
  */
@@ -35,6 +48,50 @@ export default class ToolBarStore {
35
48
  * @param {...string} toolIds - Variable number of tool IDs to remove
36
49
  */
37
50
  removeTools(...toolIds: string[]): void;
51
+ /**
52
+ * Marks a tool as mounted: once mounted, it stays rendered (hidden via CSS when inactive)
53
+ * so its state survives tool switches. Reset only when the tool is removed.
54
+ */
55
+ markMounted(toolId: string): void;
56
+ /**
57
+ * The tools that have been opened at least once and are still in the toolbar
58
+ */
59
+ get mountedTools(): Tool[];
60
+ /** Whether a tool is detached into its own browser window. */
61
+ isDetached(toolId: string): boolean;
62
+ /**
63
+ * Detaches a tool into its own window (rendered via PopoutWindow). The inline slot
64
+ * no longer shows it, so the selection moves to the next dockable tool.
65
+ */
66
+ detach(toolId: string): void;
67
+ /** Returns a detached tool to the toolbar (also called when its window is closed). */
68
+ redock(toolId: string): void;
69
+ /** Dragging the handle open while the content lives in a detached window pulls it back
70
+ * into the toolbar. No-op while a docked tool is visible (that drag is a plain resize). */
71
+ redockDetachedForDrag(): void;
72
+ /**
73
+ * Hard-closes detached tools whose owning view is gone (orphans): their windows close
74
+ * and the tools are removed entirely. Without `toolId` it closes all orphans — used when
75
+ * the user leaves the section the tools belong to (e.g. the catalog editor); with a
76
+ * `toolId` it closes just that orphan — used by the grace timer.
77
+ */
78
+ closeOrphanedDetached(toolId?: string): void;
79
+ /** Detaches the first usable newly added tool when the slot's previous window was
80
+ * system-closed. Runs right after a user click, so the popup open isn't blocked. */
81
+ private reopenDetachedIfPending;
82
+ /** Storage key for a tool's user preferences — the shared slot key when this toolbar is scoped, else the tool id. */
83
+ preferenceKey(toolId: string): string;
84
+ /**
85
+ * Starts the grace timer that closes an orphaned detached tool unless a view adopts it first.
86
+ * Idempotent: repeated removals (effect-cleanup churn re-removes the id on every re-render)
87
+ * must not extend the grace period — it counts from when the tool became orphaned.
88
+ */
89
+ private scheduleOrphanClose;
90
+ private cancelOrphanClose;
91
+ /** Reported by PopoutWindow — the live child window handle (undefined on teardown). */
92
+ setPopoutWindow(toolId: string, win: Window | undefined): void;
93
+ /** Brings a detached tool's window to the front. */
94
+ focusPopout(toolId: string): void;
38
95
  /**
39
96
  * Updates the internal tool state based on available tools.
40
97
  * Sets default values for selected tool, pinned state, visibility and width.
@@ -1 +1 @@
1
- {"version":3,"file":"ToolBarStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ToolBarStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAMlD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;IAcnB,OAAO,CAAC,eAAe;IAbnC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,aAAa,CAAoC;IACzD,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,eAAe,CAA+B;IAEtD;;;OAGG;gBACiB,eAAe,EAAE,MAAM;IAO3C;;OAEG;IACH,IAAI,KAAK,IAAI,IAAI,EAAE,CAElB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,EAGtB;IAED;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,KAAK,EAAE,IAAI,EAAE;IAYzB;;;OAGG;IACH,WAAW,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE;IAKhC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAavB;;;;OAIG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,EAKzB;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,EAEzB;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED,IAAI,eAAe,CAAC,QAAQ,EAAE,MA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AI,OAAO,CAEpB;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,EAIzB;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED,IAAI,eAAe,CAAC,QAAQ,EAAE,MAAM,EAEnC;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,IAAI,GAAG,SAAS,CAEtC;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EActB;IAED;;OAEG;IACH,IAAI,cAAc,IAAI,cAAc,GAAG,IAAI,CAE1C;IAED,IAAI,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,EAEhD;IAED;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS;IAsBrC;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAKlC;;;;;OAKG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;CAsD/D"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Browser-persisted per-tool user preferences (docked width/pin/open + popout geometry).
3
+ * Keyed by the owning toolbar's preference key: the tool id, or one shared slot key for
4
+ * scoped toolbars. Configured defaults stay on the `Tool`; stored preferences win.
5
+ */
6
+ /** Last known size + on-screen position of a tool's popout window. */
7
+ export interface PopoutBounds {
8
+ width: number;
9
+ height: number;
10
+ left: number;
11
+ top: number;
12
+ }
13
+ export interface ToolPreferences {
14
+ /** Toolbar width the user resized to while the tool was open (overrides `startWidth`). */
15
+ width?: number;
16
+ /** Pin state the user chose while the tool was open (overrides `defaultPinned`). */
17
+ pinned?: boolean;
18
+ /** Whether the docked panel was open — tracked only for scoped toolbar slots (overrides `defaultOpen`). */
19
+ open?: boolean;
20
+ /** Popout geometry, persisted so reopening the window restores its placement. */
21
+ popoutBounds?: PopoutBounds;
22
+ }
23
+ export declare function readToolPreferences(toolId: string): ToolPreferences;
24
+ /** Merges the given fields into the tool's stored preferences. Best-effort — preferences are non-essential. */
25
+ export declare function updateToolPreferences(toolId: string, patch: ToolPreferences): void;
26
+ //# sourceMappingURL=toolPreferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolPreferences.d.ts","sourceRoot":"","sources":["../../../../../src/store/toolPreferences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,sEAAsE;AACtE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2GAA2G;IAC3G,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,iFAAiF;IACjF,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAmBD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAOnE;AAED,+GAA+G;AAC/G,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,QAM3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTools.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/CommonComponents/useTools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAuB,iBAAiB,EAAE,MAAM,wEAAwE,CAAC;AAEhI,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG;IACnC,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;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,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD,uBAAuB;IACvB,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;CACtC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ,4IAWlB,aAAa;sCAuD2B,OAAO,CAAC,iBAAiB,CAAC;qCAd3B,MAAM,QAAQ,OAAO;CAuD9D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "26.8.0-beta.49",
3
+ "version": "26.8.0-beta.50",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^6.5.0",
@@ -15,13 +15,13 @@
15
15
  "dependencies": {
16
16
  "@ant-design/icons": "6.1.0",
17
17
  "@babel/runtime": "7.24.7",
18
- "@crystaldesign/content-box": "26.8.0-beta.49",
19
- "@crystaldesign/content-item": "26.8.0-beta.49",
20
- "@crystaldesign/diva-core": "26.8.0-beta.49",
21
- "@crystaldesign/diva-utils": "26.8.0-beta.49",
22
- "@crystaldesign/media-upload": "26.8.0-beta.49",
23
- "@crystaldesign/rtf-editor": "26.8.0-beta.49",
24
- "@crystaldesign/spreadsheet": "26.8.0-beta.49",
18
+ "@crystaldesign/content-box": "26.8.0-beta.50",
19
+ "@crystaldesign/content-item": "26.8.0-beta.50",
20
+ "@crystaldesign/diva-core": "26.8.0-beta.50",
21
+ "@crystaldesign/diva-utils": "26.8.0-beta.50",
22
+ "@crystaldesign/media-upload": "26.8.0-beta.50",
23
+ "@crystaldesign/rtf-editor": "26.8.0-beta.50",
24
+ "@crystaldesign/spreadsheet": "26.8.0-beta.50",
25
25
  "@dnd-kit/core": "^6.1.0",
26
26
  "@dnd-kit/sortable": "^8.0.0",
27
27
  "@dnd-kit/utilities": "^3.2.2",
@@ -56,5 +56,5 @@
56
56
  },
57
57
  "module": "build/esm/index.js",
58
58
  "types": "./build/types/backoffice/src/index.d.ts",
59
- "gitHead": "fdbc5fff3bf4d46aec97c4cc33c303b4d9daf19d"
59
+ "gitHead": "51ad2bd55715e229bf2191bc00ec680a41bc6729"
60
60
  }