@hazem3500/palette 0.9.115 → 0.9.117
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/NODE.md +1 -1
- package/README.md +3 -1
- 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 +3 -3
- package/dist/react.js +1 -1
- package/dist/server.js +3 -3
- package/dist/setup.js +1 -1
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
- package/server/setup-client.txt +14 -14
- package/server/tokens.ts +2 -2
- package/src/types.ts +2 -0
- package/dist/chunk-PI5FFV5P.js +0 -1
- package/dist/frame-size-TF6SIUFO.js +0 -1
package/NODE.md
CHANGED
|
@@ -257,4 +257,4 @@ project/repo/branch authentication and PAT `comments:read`; writes retain guest
|
|
|
257
257
|
consent and author/reviewer checks and PAT `comments:write`. No token enablement
|
|
258
258
|
policy changes are included.
|
|
259
259
|
|
|
260
|
-
Proxy token operator allowances: `PALETTE_PROXY_TOKEN_ALL_PROJECTS=true` enables All your projects; `PALETTE_PROXY_TOKEN_NO_EXPIRY=true` enables Never expires. Both default to false and require `PALETTE_PROXY_ACCESS_TOKENS=true`. Their `KOMO_` aliases apply when the corresponding `PALETTE_` value is unset. Finite expiry remains capped at 365 days. All-project grants include current and future projects the account owns or has joined
|
|
260
|
+
Proxy token operator allowances: `PALETTE_PROXY_TOKEN_ALL_PROJECTS=true` enables All your projects; `PALETTE_PROXY_TOKEN_NO_EXPIRY=true` enables Never expires. Both default to false and require `PALETTE_PROXY_ACCESS_TOKENS=true`. Their `KOMO_` aliases apply when the corresponding `PALETTE_` value is unset. Finite expiry remains capped at 365 days. All-project grants include current and future projects the account owns, has explicit access to, or has joined while they remain public. Access is checked on every use; private projects require ownership or an active membership grant, so removing a private membership takes effect immediately. Disable an allowance to reject existing tokens using it, or revoke individual tokens when offboarding. Non-proxy token policy is unchanged.
|
package/README.md
CHANGED
|
@@ -442,6 +442,8 @@ Frame opens on your browser window's own size at **Fit**, and one compact contro
|
|
|
442
442
|
|
|
443
443
|
`frame: { mode: "iframe" }` adds a simulated viewport, like a browser's device mode. The current URL renders in a same-origin `<iframe>` sized to the chosen width × height, at Fit or 100%, so media queries, `vw`/`vh`, `matchMedia`, resize events and `window.innerWidth` are real. Palette keeps running on your page and reaches into the frame: picking, hover outlines, pins, threads, Design mode (inspector, previews, Undo, Before/After), Tokens previews and keyboard shortcuts all work there, including with focus inside the frame. The page's own Palette, booted inside the frame, sees that Palette framed it and stays inert, so there is only ever one instance. Reviewers turn it on or off with **Simulate real viewport**, a checkbox row at the end of the Frame size menu ("Reloads the page in a frame so breakpoints and popovers match this size. Runs a second copy of the app."). Unchecked, Frame shows the page itself. Palette remembers the choice per project.
|
|
444
444
|
|
|
445
|
+
Hosts that store normalized comment paths can supply `frame.resolveUrl(destination, current)`. It receives the comment URL and the live iframe's `Location`; return the real same-origin `URL` for that context, or `null` to cancel. This hook is used only for comment navigation inside the viewport; `navigate` continues to own outer-page SPA navigation. Preserve any query/hash the host needs. Palette consumes its own `comment`/`comment-view` parameters before assigning the resolved URL. Exceptions, cancellation and cross-origin results retain the conversation without navigating. Stored page identities and anchors are unchanged.
|
|
446
|
+
|
|
445
447
|
- **Opt-in.** The frame runs a second live copy of your app, with its own requests, sockets, analytics and auth refreshes, so the default stays `"transform"` (the page itself). Turn it on once your app is safe to run twice. With `defaultMode: "transform"`, Frame opens on the page itself and offers the simulated viewport, and a reviewer's own choice is remembered over the default. Without `mode: "iframe"` (an `iframeUrl` alone included) Frame never creates the iframe and the row doesn't appear; a choice remembered earlier is kept, unused, and applies again if you turn the mode back on.
|
|
446
448
|
- **`iframeUrl(location)`** picks the URL to frame, e.g. a preview route for an app that needs its own bootstrap. It must be same-origin. If it changes the path, pass `page(location)` too, so comments keep the page they belong to: in the simulated viewport Palette passes the frame's location to `page`.
|
|
447
449
|
- **Fallback.** When the frame can't show a same-origin page, Frame falls back to the page itself and the ⓘ beside the control says why: X-Frame-Options `DENY`, a CSP `frame-ancestors` that excludes the page, a redirect to another origin, or no load within 15 seconds. Turning **Simulate real viewport** off and on again retries.
|
|
@@ -950,4 +952,4 @@ existing tokens remain usable. Nonproxy token policy is unchanged. Snapshot GET
|
|
|
950
952
|
requires `comments:read`, the granted project and an allowed Origin. No deployment
|
|
951
953
|
is enabled by this configuration example.
|
|
952
954
|
|
|
953
|
-
Proxy token operator allowances: `PALETTE_PROXY_TOKEN_ALL_PROJECTS=true` enables All your projects; `PALETTE_PROXY_TOKEN_NO_EXPIRY=true` enables Never expires. Both default to false and require `PALETTE_PROXY_ACCESS_TOKENS=true`. Their `KOMO_` aliases apply when the corresponding `PALETTE_` value is unset. Finite expiry remains capped at 365 days. All-project grants include current and future projects the account owns or has joined
|
|
955
|
+
Proxy token operator allowances: `PALETTE_PROXY_TOKEN_ALL_PROJECTS=true` enables All your projects; `PALETTE_PROXY_TOKEN_NO_EXPIRY=true` enables Never expires. Both default to false and require `PALETTE_PROXY_ACCESS_TOKENS=true`. Their `KOMO_` aliases apply when the corresponding `PALETTE_` value is unset. Finite expiry remains capped at 365 days. All-project grants include current and future projects the account owns, has explicit access to, or has joined while they remain public. Access is checked on every use; private projects require ownership or an active membership grant, so removing a private membership takes effect immediately. Disable an allowance to reject existing tokens using it, or revoke individual tokens when offboarding. Non-proxy token policy is unchanged.
|