react-dockable-desktop 7.12.0-next.0 → 7.12.0-next.1
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 +48 -1
- package/README.md +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -2
- package/dist/index.d.ts +21 -2
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/styles.css +5 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1337,6 +1337,22 @@ interface BuiltInEvents {
|
|
|
1337
1337
|
'panel:returned': {
|
|
1338
1338
|
id: string;
|
|
1339
1339
|
};
|
|
1340
|
+
/**
|
|
1341
|
+
* A panel is about to move into its own window (7.12.0): sent just before its element leaves the
|
|
1342
|
+
* page, once that window's page is ready. `panel:popped-out` follows. Not sent for a refused
|
|
1343
|
+
* pop-out, nor for docking or floating.
|
|
1344
|
+
*/
|
|
1345
|
+
'panel:popping-out': {
|
|
1346
|
+
id: string;
|
|
1347
|
+
};
|
|
1348
|
+
/**
|
|
1349
|
+
* A panel in its own window is about to come back (7.12.0): sent just before its element leaves
|
|
1350
|
+
* that window, whatever brings it back. `panel:returned` follows. Not sent for a panel closed while
|
|
1351
|
+
* out.
|
|
1352
|
+
*/
|
|
1353
|
+
'panel:returning': {
|
|
1354
|
+
id: string;
|
|
1355
|
+
};
|
|
1340
1356
|
/**
|
|
1341
1357
|
* Fires whenever something `saveLayout()` would capture changes — open/close/minimize/restore,
|
|
1342
1358
|
* float/dock/re-order/dock-to-edge, closing a group, maximizing a minimized panel, and an
|
|
@@ -2152,7 +2168,8 @@ interface DockableDesktopProviderProps {
|
|
|
2152
2168
|
* `/popout.html`, with an empty `<body>`. The library waits for it to load, then moves the panel
|
|
2153
2169
|
* in. Without it, the window opens blank. A page that can't be read (another origin, or a redirect
|
|
2154
2170
|
* off this one) or doesn't load within 10 s sends the panel back. Only used with
|
|
2155
|
-
* `createWorkspace({ popOut: true })`.
|
|
2171
|
+
* `createWorkspace({ popOut: true })`. Set it when a third-party embed refuses a blank window: a
|
|
2172
|
+
* YouTube player, for one, shows error 153 there.
|
|
2156
2173
|
*/
|
|
2157
2174
|
popoutUrl?: string;
|
|
2158
2175
|
/**
|
|
@@ -2161,7 +2178,9 @@ interface DockableDesktopProviderProps {
|
|
|
2161
2178
|
* document, so the panel's styles are inserted where it is shown (a pop-out doesn't get rules
|
|
2162
2179
|
* inserted with `insertRule` from the page). Rendered for every panel, for its whole life, while
|
|
2163
2180
|
* the workspace has `popOut: true` (none otherwise), so nothing remounts when a panel moves. Pass
|
|
2164
|
-
* a stable component (defined outside a render), not an inline function.
|
|
2181
|
+
* a stable component (defined outside a render), not an inline function. In a pop-out it is also
|
|
2182
|
+
* rendered around the window's frame (the icon and title you give the panel), a context menu and
|
|
2183
|
+
* the toasts shown there, with that window: keep one cache per document, not per wrapper.
|
|
2165
2184
|
*
|
|
2166
2185
|
* @example
|
|
2167
2186
|
* ```tsx
|
package/dist/index.d.ts
CHANGED
|
@@ -1337,6 +1337,22 @@ interface BuiltInEvents {
|
|
|
1337
1337
|
'panel:returned': {
|
|
1338
1338
|
id: string;
|
|
1339
1339
|
};
|
|
1340
|
+
/**
|
|
1341
|
+
* A panel is about to move into its own window (7.12.0): sent just before its element leaves the
|
|
1342
|
+
* page, once that window's page is ready. `panel:popped-out` follows. Not sent for a refused
|
|
1343
|
+
* pop-out, nor for docking or floating.
|
|
1344
|
+
*/
|
|
1345
|
+
'panel:popping-out': {
|
|
1346
|
+
id: string;
|
|
1347
|
+
};
|
|
1348
|
+
/**
|
|
1349
|
+
* A panel in its own window is about to come back (7.12.0): sent just before its element leaves
|
|
1350
|
+
* that window, whatever brings it back. `panel:returned` follows. Not sent for a panel closed while
|
|
1351
|
+
* out.
|
|
1352
|
+
*/
|
|
1353
|
+
'panel:returning': {
|
|
1354
|
+
id: string;
|
|
1355
|
+
};
|
|
1340
1356
|
/**
|
|
1341
1357
|
* Fires whenever something `saveLayout()` would capture changes — open/close/minimize/restore,
|
|
1342
1358
|
* float/dock/re-order/dock-to-edge, closing a group, maximizing a minimized panel, and an
|
|
@@ -2152,7 +2168,8 @@ interface DockableDesktopProviderProps {
|
|
|
2152
2168
|
* `/popout.html`, with an empty `<body>`. The library waits for it to load, then moves the panel
|
|
2153
2169
|
* in. Without it, the window opens blank. A page that can't be read (another origin, or a redirect
|
|
2154
2170
|
* off this one) or doesn't load within 10 s sends the panel back. Only used with
|
|
2155
|
-
* `createWorkspace({ popOut: true })`.
|
|
2171
|
+
* `createWorkspace({ popOut: true })`. Set it when a third-party embed refuses a blank window: a
|
|
2172
|
+
* YouTube player, for one, shows error 153 there.
|
|
2156
2173
|
*/
|
|
2157
2174
|
popoutUrl?: string;
|
|
2158
2175
|
/**
|
|
@@ -2161,7 +2178,9 @@ interface DockableDesktopProviderProps {
|
|
|
2161
2178
|
* document, so the panel's styles are inserted where it is shown (a pop-out doesn't get rules
|
|
2162
2179
|
* inserted with `insertRule` from the page). Rendered for every panel, for its whole life, while
|
|
2163
2180
|
* the workspace has `popOut: true` (none otherwise), so nothing remounts when a panel moves. Pass
|
|
2164
|
-
* a stable component (defined outside a render), not an inline function.
|
|
2181
|
+
* a stable component (defined outside a render), not an inline function. In a pop-out it is also
|
|
2182
|
+
* rendered around the window's frame (the icon and title you give the panel), a context menu and
|
|
2183
|
+
* the toasts shown there, with that window: keep one cache per document, not per wrapper.
|
|
2165
2184
|
*
|
|
2166
2185
|
* @example
|
|
2167
2186
|
* ```tsx
|