@joy-ride/game 0.25.0 → 0.25.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/README.md CHANGED
@@ -119,6 +119,9 @@ Use a new React `key` to replace the authored setup. See the
119
119
  [React reference](packages/ui/src/documentation/api.md#react) for controller refs,
120
120
  readiness, and errors.
121
121
 
122
+ Use `<JoyRide preset="sfw" initialOptions={…} />` for safe-for-work defaults. Explicit
123
+ initial options override the preset; changing either requires a new component key.
124
+
122
125
  Import `@joy-ride/game` for self-contained JavaScript or `@joy-ride/game/react`
123
126
  for a React application. React and React DOM are optional peers at the package
124
127
  level, so the root import does not require them.
@@ -1,4 +1,4 @@
1
- import{n as e,r as t}from"./rolldown-runtime-XKyaHtl9.js";import{i as n,t as r}from"./react-vendor~index~embed-BNCMh3YF.js";import{a as i,i as a,o,s}from"./X.es-d7B7rOGv.js";import{T as c}from"./vehicle-popover-CtdtJ1cl.js";var l=t(n(),1),u=new Map([[`bold`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),l.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),d=l.forwardRef((e,t)=>l.createElement(a,{ref:t,...e,weights:u}));d.displayName=`CopyIcon`;var f=`identifier keyword string class property entity jsxliterals sign comment break space`.split(` `),[p,m,h,g,_,v,y,b,x,S,C]=f.map((e,t)=>t);new Map(f.map((e,t)=>[e,t]));function ee(e,t){let n=[],r=0,i=[],a=!1;function o(e){let t=``,i=Array(e.length);for(let n=0;n<e.length;n++){let[r,a]=e[n];t+=a,i[n]={type:f[r],value:a}}n.push({index:r++,value:t,tokens:i,annotations:[]})}for(let e=0;e<t.length;e++){let n=t[e],[r,s]=n;if(r!==S){if(s.includes(`
1
+ import{n as e,r as t}from"./rolldown-runtime-XKyaHtl9.js";import{i as n,t as r}from"./react-vendor~index~embed-BNCMh3YF.js";import{a as i,i as a,o,s}from"./X.es-d7B7rOGv.js";import{T as c}from"./vehicle-popover-CBTIiR6Q.js";var l=t(n(),1),u=new Map([[`bold`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),l.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,l.createElement(l.Fragment,null,l.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),d=l.forwardRef((e,t)=>l.createElement(a,{ref:t,...e,weights:u}));d.displayName=`CopyIcon`;var f=`identifier keyword string class property entity jsxliterals sign comment break space`.split(` `),[p,m,h,g,_,v,y,b,x,S,C]=f.map((e,t)=>t);new Map(f.map((e,t)=>[e,t]));function ee(e,t){let n=[],r=0,i=[],a=!1;function o(e){let t=``,i=Array(e.length);for(let n=0;n<e.length;n++){let[r,a]=e[n];t+=a,i[n]={type:f[r],value:a}}n.push({index:r++,value:t,tokens:i,annotations:[]})}for(let e=0;e<t.length;e++){let n=t[e],[r,s]=n;if(r!==S){if(s.includes(`
2
2
  `)){let e=s.split(`
3
3
  `);for(let t=0;t<e.length;t++){let n=t<e.length-1,a=e[t];i.push([r,n&&a.endsWith(`\r`)?a.slice(0,-1):a]),n&&(o(i),i.length=0)}}else i.push(n);a=!1}else{if(a)o([]);else{let e=i[i.length-1];s===`
4
4
  `&&e&&e[1].endsWith(`\r`)&&(i[i.length-1]=[e[0],e[1].slice(0,-1)]),o(i),i.length=0}e===t.length-1&&o([]),a=!0}}return i.length&&o(i),{value:e,lines:n}}function te(e,t){let n={index:e.index,value:e.value,tokens:e.tokens,annotations:e.annotations,className:`sh__line${e.annotations.map(e=>` sh__line--${e}`).join(``)}`,style:{},properties:{}};return t?.(n),n}function ne({type:e,value:t},n,r){let i=n?.[e],a={type:e,value:t,className:`sh__token--${e}${i?` ${i}`:``}`,style:{color:`var(--sh-${e})`},properties:{}};return r?.(a),a}function w(e,t){let n=t?.cx,r=t?.mark,i=t?.markLine;return e.lines.map(e=>{let t=te(e,i);return{type:`element`,tagName:`span`,children:e.tokens.map(e=>{let t=ne(e,n,r);return{type:`element`,tokenType:t.type,tagName:`span`,children:[{type:`text`,value:t.value}],properties:{...t.properties,className:t.className,style:t.style}}}),properties:{...t.properties,className:t.className,style:t.style}}})}Object.fromEntries(f.map(e=>[e,`<span class="sh__token--${e}" style="color:var(--sh-${e})">`]));var T=new Set(`+-*/%=!&|^~?:.,;()[]{}<>#@\\`.split(``)),E=()=>0,D=e=>{let t=e.charCodeAt(0);return t<128?t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36:/[\p{L}\p{N}]/u.test(e)},O=e=>e>=48&&e<=57,k=(e,t)=>{let n=e.charCodeAt(t);return n<128?n===32||n===9||n===11||n===12:/\s/.test(e[t])},A=e=>{let t=e.charCodeAt(0);return t<128?t>=65&&t<=90:/^\p{Lu}/u.test(e)};function j(e,t){for(;t<e.length&&/\s/.test(e[t]);)t++;return e[t]===`:`}function M(e,t){if(typeof t?.tokenize==`function`)return t.tokenize(e,t);let n=t?.keywords||new Set,r=t?.typeKeywords||new Set,i=t?.onCommentStart||E,a=t?.onCommentEnd||E,o=t?.caseInsensitive?e=>e.toLowerCase():e=>e,s=[],c=``;function l(e,t){t&&(s.push([e,t]),e!==C&&e!==S&&(c=t))}for(let s=0;s<e.length;){let u=e[s],d=e[s+1],f=i(u,d,s,e);if(f){let t=s++;for(;s<e.length;){if(a(e[s-1],e[s],s,e,t)==f){s++;break}s++}l(x,e.slice(t,s));continue}let v=t?.onLiteral?.(u,s,e);if(v)l(h,e.slice(s,s+v)),s+=v;else{if(typeof t?.onQuote==`function`&&u===`'`){let n=t.onQuote(u,s,e);if(typeof n==`number`&&n>=1){l(p,e.slice(s,s+n)),s+=n;continue}}if(u===`"`||u===`'`||t?.templateStrings&&u==="`"){let n=u,r=s++;for(;s<e.length;){if(e[s]===`\\`)s++;else if(e[s]===n){s++;break}s++}let i=e.slice(r,s);l(t?.quotedKeys&&j(e,s)?_:h,i)}else if(u===`