@joy-ride/joy-ride 0.4.1 → 0.5.0

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 CHANGED
@@ -26,7 +26,7 @@ Install the root package with `npm install @joy-ride/joy-ride` and import `JoyRi
26
26
 
27
27
  Mark an initial destination with `data-jr-arrive-to` to have the car fade in and skid to that element automatically. Add `data-jr-arrive-to-delay-ms="1000"` to start the entrance one second after mount. Without a marker, the embed skids into the viewport center from a random direction. Call `ride.arriveAt({ ...options, delayMs: 1000 })` for a later entrance.
28
28
 
29
- For a quieter embed, start with `JoyRide.mount(JoyRide.options.presets.sfw({ workMode: { brandName: 'Drive' } }))`. Override only the settings you need; the preset supplies the rest.
29
+ For a quieter embed, start with `JoyRide.mount(JoyRide.options.presets.sfw({ options: { ui: { brandName: 'Drive' } } }))`. Override only the settings you need; the preset supplies the rest.
30
30
 
31
31
  Package owners can follow the [npm publishing guide](docs/npm-publishing.md) for later releases.
32
32
 
@@ -1,4 +1,4 @@
1
- import { c as PlaygroundConfiguration } from "./playground-xDP5-tDc.js";
1
+ import { c as PlaygroundConfiguration } from "./playground-Bo-lQHlD.js";
2
2
  /** A self-contained bookmark URL that captures the complete configuration. */
3
3
  export declare function bookmarkletUrl(configuration: PlaygroundConfiguration): string;
4
4
  /** A small HTML button that loads the CDN module only on demand. */
@@ -1 +1 @@
1
- export{t as asyncEmbedCode,n as bookmarkletUrl,r as fullEmbedCode,i as npmEmbedCode}from"./embed-chunks/bookmarklet-BcOPb3dX.js";
1
+ export{t as asyncEmbedCode,n as bookmarkletUrl,r as fullEmbedCode,i as npmEmbedCode}from"./embed-chunks/bookmarklet-Do0CfxbY.js";
@@ -0,0 +1 @@
1
+ .joy-code-block{--code-bg:#f5f5f5;--code-header:transparent;--code-ink:#171717;--code-muted:#737373;--code-line:#e5e5e5;--code-accent:#171717;--sh-class:#8f3c2e;--sh-identifier:var(--code-ink);--sh-sign:#72695f;--sh-property:#8f3c2e;--sh-entity:#b32d25;--sh-jsxliterals:#8f3c2e;--sh-string:#775b43;--sh-keyword:#b32d25;--sh-comment:#797267;--sh-space:inherit;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;border:1px solid var(--code-line);border-radius:var(--radius-lg,8px);background:var(--code-bg);min-width:0;color:var(--code-ink);text-align:left;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow:hidden}:where(.dark,[data-jr-theme=dark],[data-theme=dark]) .joy-code-block:not([data-code-theme=light]),:host(.dark) .joy-code-block:not([data-code-theme=light]),.joy-code-block[data-code-theme=dark]{--code-bg:#1c1c1c;--code-header:transparent;--code-ink:#fafafa;--code-muted:#a3a3a3;--code-line:#333;--code-accent:#fafafa;--sh-class:#e6b49b;--sh-sign:#b5a99b;--sh-property:#e6b49b;--sh-entity:#ff998a;--sh-jsxliterals:#e6b49b;--sh-string:#d4c3aa;--sh-keyword:#ff998a;--sh-comment:#9a9389;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.joy-code-block .joy-code-header{border-bottom:1px solid var(--code-line);background:var(--code-header);align-items:center;gap:10px;min-height:43px;padding:0 16px;display:flex}.joy-code-block .joy-code-heading{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.joy-code-block .joy-code-title{color:var(--code-ink);letter-spacing:0;text-overflow:ellipsis;white-space:nowrap;font:600 11px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.joy-code-block .joy-code-language{color:var(--code-muted);font:9px ui-monospace,SFMono-Regular,Menlo,monospace}.joy-code-block button{min-height:32px;color:var(--code-muted);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:0;justify-content:center;align-items:center;gap:6px;padding:4px 6px;font:500 10px -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;display:inline-flex}.joy-code-block button:hover{color:var(--code-ink);text-underline-offset:4px;text-decoration:underline}.joy-code-block .joy-code-copy{flex:none;margin-left:auto}.joy-code-block .joy-code-copy>span{text-align:left;min-width:36px}.joy-code-block .joy-code-copy svg{flex:none;width:13px;height:13px}.joy-code-block :is(button,pre):focus-visible{outline:2px solid var(--code-accent);outline-offset:-3px}.joy-code-block .joy-code-tabs{flex:1;min-width:0}.joy-code-block [role=tablist]{flex-wrap:wrap;gap:2px;display:flex}.joy-code-block button[role=tab]{text-transform:uppercase;letter-spacing:.06em;border-bottom:2px solid #0000;border-radius:0;min-height:42px;padding-inline:8px;font-weight:700}.joy-code-block button[aria-selected=true]{border-bottom-color:var(--code-accent);color:var(--code-ink)}.joy-code-block .joy-code-pre{min-width:0;max-width:100%;color:var(--code-ink);text-align:left;white-space:pre;overflow-wrap:normal;font-variant-ligatures:none;tab-size:2;-webkit-overflow-scrolling:touch;background:0 0;border:0;border-radius:0;margin:0;padding:18px;font:11.5px/1.85 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:block;overflow:auto}.joy-code-block code{font:inherit;color:inherit;background:0 0;padding:0}.joy-code-block .sh__line{display:inline}.joy-code-block .sh__token--comment{font-style:italic}.joy-code-block[data-wrap] .joy-code-pre{white-space:pre-wrap;overflow-wrap:anywhere}.joy-code-block[data-compact] .joy-code-header{min-height:35px;padding-inline:10px}.joy-code-block[data-compact] .joy-code-pre{padding:12px;font-size:10.5px;line-height:1.75}.joy-code-block .joy-code-status{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.joy-code-block .joy-code-status[data-error]{clip-path:none;width:auto;height:auto;color:var(--code-accent);padding:10px 14px;font-size:11px;display:block;position:static}@media (width<=480px){.joy-code-block .joy-code-header{gap:6px;padding-inline:9px}.joy-code-block .joy-code-language{display:none}.joy-code-block .joy-code-pre{padding:14px;font-size:11px}.joy-code-block button[role=tab]{padding-inline:5px;font-size:9px}}