@hazem3500/palette 0.9.114 → 0.9.116
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/README.md +4 -2
- package/dist/chunk-ZGJYCFAB.js +1 -0
- package/dist/frame-size-24FEF7RJ.js +1 -0
- package/dist/index.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/react.js +1 -1
- package/dist/server.js +1 -1
- package/dist/setup.js +1 -1
- package/dist/shell-mode-RPV7AVA4.js +1 -0
- package/dist/shell-mode.d.ts +2 -2
- package/dist/shell-session.d.ts +1 -1
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
- package/server/setup-client.txt +58 -58
- package/src/types.ts +3 -0
- package/dist/chunk-AXW6CU4X.js +0 -1
- package/dist/frame-size-TF6SIUFO.js +0 -1
- package/dist/shell-mode-PLV6F474.js +0 -1
package/src/types.ts
CHANGED
|
@@ -281,10 +281,13 @@ export interface CommentsOptions {
|
|
|
281
281
|
*/
|
|
282
282
|
defaultMode?: "iframe" | "transform";
|
|
283
283
|
iframeUrl?(location: Location): string;
|
|
284
|
+
/** Resolve a comment destination before same-origin iframe navigation. Null cancels; current is the live framed page, not the shell. */
|
|
285
|
+
resolveUrl?(destination: URL, current: Location): URL | null;
|
|
284
286
|
/**
|
|
285
287
|
* Single-copy simulated viewport (with mode "iframe"): turning it on reloads this page as a
|
|
286
288
|
* shell for Palette, so the app runs once, in the frame. Requires the app's entry
|
|
287
289
|
* to skip mounting when `isShell(project)` from `@hazem3500/palette/shell` is true.
|
|
290
|
+
* Cancellation or failure keeps the normal page; a second app is never loaded as fallback.
|
|
288
291
|
*/
|
|
289
292
|
shell?: boolean;
|
|
290
293
|
};
|