@hazem3500/palette 0.9.118 → 0.9.120
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 +2 -2
- package/dist/chunk-AAFGCZLH.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-I5OAFZVD.js +1 -0
- package/dist/shell-mode.d.ts +4 -3
- package/dist/snapshot-BFHCCGOL.js +1 -0
- package/dist/snapshot.d.ts +6 -1
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
- package/server/setup-client.txt +51 -51
- package/src/types.ts +2 -0
- package/dist/chunk-3DH4SW3Z.js +0 -1
- package/dist/shell-mode-RPV7AVA4.js +0 -1
- package/dist/snapshot-H5JZR3ES.js +0 -1
package/README.md
CHANGED
|
@@ -100,7 +100,7 @@ Palette was called komo. Existing installs keep working without changes.
|
|
|
100
100
|
- Safe HTTP(S) links and simple Markdown links in comment messages.
|
|
101
101
|
- Searchable sidebar, draggable dock, and Google or guest profiles.
|
|
102
102
|
|
|
103
|
-
- Dismiss the toolbar for the current tab with ×; restore it with Shift+K or `controller.open()
|
|
103
|
+
- Dismiss the toolbar for the current tab with ×; restore it with Shift+K, `controller.restore()`, or `controller.open()` (which also opens the sidebar). Set `showToolbar: false` to start hidden.
|
|
104
104
|
- **More → Hide comments** (H) clears pins, comment cards and the open sidebar or Frame from the page while review stays on. Unsent comments and replies, the open thread and the list's filters and scroll come back with **Show comments**. Comments return only when the reviewer asks: Show comments, or starting a comment, opening the list or a thread. The choice lasts for the current tab (session storage).
|
|
105
105
|
- **More → Pin size** switches pins between Full, Compact (a small initial), Dot (the author's accent at full strength, with a brief breathing halo, until you open its latest comment in this browser; quieter after that) and Auto (dots while browsing, full while commenting or with the sidebar open). Small pins keep a 24px target and expand in place on hover, focus, a nearby pointer or selection. The choice is remembered per project and wins over `pins.size`.
|
|
106
106
|
- **Crowded pins** consolidate. Comments on the same target (its persistent owner, including a custom `anchorTarget`) draw as one tight avatar stack at the oldest comment's anchor; more than three collapse to the first author and a count. Hover, keyboard focus or a tap fans the stack out in creation order, and each pin opens its own thread. Pins on different targets whose 24px targets overlap at the current zoom or Frame scale merge into a count bubble; it opens a keyboard-navigable list of those comments. Grouping never changes anchors or saves anything, the open comment's pin is always drawn at its own anchor, and a pin moved with **Move pin** stays out of stacks and bubbles. Set `pins.cluster: false` to draw every pin on its own.
|
|
@@ -475,7 +475,7 @@ if (import.meta.env.DEV && isShell(palette.project)) {
|
|
|
475
475
|
|
|
476
476
|
- **Free in production.** `@hazem3500/palette/shell` is side-effect free and reads nothing until `isShell()` is called, so a build-time guard such as `import.meta.env.DEV && isShell(…)` drops it, and the shell branch, from production builds. Palette's package checks verify this on a minified build.
|
|
477
477
|
- **Only Palette makes a shell.** `isShell(project)` is true only when Palette set a random nonce in this tab's sessionStorage and the URL carries the same one, for the same project and origin. A link with `?komo-shell=…` alone, or a flag left by another project, returns false, so a crafted link can't blank your app. If Palette doesn't start within 4 seconds (`isShell(project, { timeout })`), the shell clears itself and loads the normal page.
|
|
478
|
-
- **Reloads.** Turning it on asks first,
|
|
478
|
+
- **Reloads.** Turning it on asks first only when Design has previews you haven't posted, since the reload drops them. Unsaved app state is left to your app's own `beforeunload` guard, which can refuse the reload. Cancel or a refused reload keeps the current app without starting another copy. Storage, startup and frame-load failures also keep the normal page, show the failure, and require an explicit retry of **Simulate real viewport**. A remembered Frame reopens in the shell on load without asking. Turning it off, Floating, closing Frame or a frame that can't load all reload the normal page on the frame's route.
|
|
479
479
|
- **URL.** The shell's URL follows the frame's route, so reloading or sharing it stays on the same page. The frame's own URL never carries the nonce.
|
|
480
480
|
- **Single-copy boundary.** `shell: true` never falls back to loading a second app. The early `isShell()` guard must run before mounting; server-rendered markup the guard cannot skip still paints in the shell. Reloads do not transfer in-memory auth or app state: the host must restore that state in the framed document.
|
|
481
481
|
|