@joy-ride/game 0.27.0 → 0.28.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 +1 -1
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/bookmarklet.d.ts +1 -1
- package/bookmarklet.js +1 -1
- package/embed-assets/subaru-wrx-top-DszueAbm.webp +0 -0
- package/embed-assets/toyota-gr-corolla-top-dNitaLHl.webp +0 -0
- package/embed-chunks/{CodeBlock-CpSBaaOX.js → CodeBlock-ZJVQKkJK.js} +1 -1
- package/embed-chunks/{Documentation-8cbCUZ0p.js → Documentation-C1avN9ar.js} +3 -3
- package/embed-chunks/EmbedPanel-G7q47IIF.js +1 -0
- package/embed-chunks/JoyRideView-iI9D7qYG.js +1 -0
- package/embed-chunks/X.es-BZV6GJho.js +1 -0
- package/embed-chunks/{configuration~index~embed-ynFxJP_I.js → configuration~index~embed-yIM-mirE.js} +1 -1
- package/embed-chunks/configuration~index~embed~bookmarklet-D5yd-nGZ.js +1 -0
- package/embed-chunks/configuration~index~embed~bookmarklet~vehicle-popover~EmbedPanel~Documentation~JoyRideView~~n76yhyet-CxkUNnei.js +1 -0
- package/embed-chunks/{configuration~index~embed~bookmarklet~vehicle-popover~EmbedPanel~JoyRideView~browser-sessio~iaaa3ndj-DLfKTakR.js → configuration~index~embed~bookmarklet~vehicle-popover~EmbedPanel~JoyRideView~browser-sessio~iaaa3ndj-DuwqBPZc.js} +1 -1
- package/embed-chunks/controls~index~embed-x6xN6BFw.js +1 -0
- package/embed-chunks/controls~index~embed~vehicle-popover~JoyRideView~browser-session-core~renderer-Cnf30Q_A.js +1 -0
- package/embed-chunks/react-vendor~index~embed-Blb-qyUP.js +9 -0
- package/embed-chunks/react-vendor~index~embed~vehicle-popover~EmbedPanel~Documentation~JoyRideView-DSe2UFlv.js +1 -0
- package/embed-chunks/{runtime~JoyRideView~browser-session-core-D5ZWMVDY.js → runtime~JoyRideView~browser-session-core-D0evk3rV.js} +1 -1
- package/embed-chunks/runtime~browser-session-core-Coi2m2K_.js +1 -0
- package/embed-chunks/runtime~index~embed-DRvLAw-Q.js +210 -0
- package/embed-chunks/runtime~index~embed~vehicle-popover~browser-session-core~renderer-7QR7zJ4G.js +1 -0
- package/embed-chunks/{runtime~vehicle-popover-DRMddEZO.js → runtime~vehicle-popover-B9yI0IDm.js} +1 -1
- package/embed-chunks/{runtime~vehicle-popover~browser-session-core-0GDQdij8.js → runtime~vehicle-popover~browser-session-core-CG3br9PK.js} +1 -1
- package/embed-chunks/{runtime~vehicle-popover~browser-session-core~renderer-Cf4rBrLo.js → runtime~vehicle-popover~browser-session-core~renderer-D9Tkkuld.js} +1 -1
- package/embed-chunks/runtime~vehicle-popover~renderer-CucvcM5-.js +849 -0
- package/embed-chunks/{src-BJ7McU4o.js → src-DpO0cT8m.js} +2 -2
- package/embed-chunks/{vehicle-catalog~index~embed-DVqfWMzi.js → vehicle-catalog~index~embed-CP-EevYT.js} +1 -1
- package/embed-chunks/vehicle-popover-Dn9KYK8F.js +1 -0
- package/embed.js +1 -1
- package/{index-epZszWQ8.d.ts → index-CTJwxnBj.d.ts} +4 -3
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/npm-chunks/{Documentation-Cc_tsq8d.js → Documentation-C0eIjv6u.js} +3 -3
- package/npm-chunks/{EmbedPanel-ByMHNOc2.js → EmbedPanel-f5UGGrmb.js} +1 -1
- package/npm-chunks/JoyRideView-D5KwW5-l.js +1 -0
- package/npm-chunks/VehicleHint-YUZ0kRNw.js +1 -0
- package/npm-chunks/{configuration~react-CPx5MlF4.js → configuration~react-DUPESsWt.js} +1 -1
- package/npm-chunks/configuration~react~vehicle-popover~EmbedPanel~Documentation~JoyRideView~browser-session-co~fvauaeow-CxkUNnei.js +1 -0
- package/npm-chunks/{configuration~react~vehicle-popover~EmbedPanel~JoyRideView~browser-session-core-rFMaxKZs.js → configuration~react~vehicle-popover~EmbedPanel~JoyRideView~browser-session-core-PAwcrwen.js} +1 -1
- package/npm-chunks/{configuration~react~vehicle-popover~EmbedPanel~JoyRideView~browser-session-core~renderer-Bo9KSudc.js → configuration~react~vehicle-popover~EmbedPanel~JoyRideView~browser-session-core~renderer-DjaRQi9I.js} +1 -1
- package/npm-chunks/configuration~react~vehicle-popover~JoyRideView~browser-session-core~renderer-BwD100vD.js +1 -0
- package/npm-chunks/controls~react~vehicle-popover~Documentation~JoyRideView~browser-session-core-QxIfuAPb.js +1 -0
- package/npm-chunks/{runtime~JoyRideView~browser-session-core-DkTKYWMV.js → runtime~JoyRideView~browser-session-core-CqexK4_9.js} +1 -1
- package/npm-chunks/runtime~browser-session-core-CnigdG4N.js +1 -0
- package/npm-chunks/{runtime~react-DQ3peDbc.js → runtime~react-BiRrgv8z.js} +1 -1
- package/npm-chunks/{runtime~react~browser-session-core-B9a1rLNB.js → runtime~react~browser-session-core-BwCcJzcZ.js} +1 -1
- package/npm-chunks/runtime~react~vehicle-popover~browser-session-core-2aPQOOXj.js +210 -0
- package/npm-chunks/runtime~react~vehicle-popover~browser-session-core~renderer-DKpExYhH.js +1 -0
- package/npm-chunks/{runtime~vehicle-popover-VyqXHkfB.js → runtime~vehicle-popover-QsSxwpN_.js} +1 -1
- package/npm-chunks/{runtime~vehicle-popover~browser-session-core-DCZajgun.js → runtime~vehicle-popover~browser-session-core-CrZME-1Y.js} +1 -1
- package/npm-chunks/{runtime~vehicle-popover~browser-session-core~renderer-EswVyRVp.js → runtime~vehicle-popover~browser-session-core~renderer-L2_7uaz1.js} +1 -1
- package/npm-chunks/{runtime~vehicle-popover~renderer-4RpQDOHk.js → runtime~vehicle-popover~renderer-4k-iW9CG.js} +1 -1
- package/npm-chunks/{sync-shadow-theme-DieEPOi7.js → sync-shadow-theme-BfMjtxaN.js} +1 -1
- package/npm-chunks/{theme-CjrpDpKE.js → theme-DdVUqUf4.js} +1 -1
- package/npm-chunks/{vehicle-catalog~react~browser-session-core-D5_CJzRM.js → vehicle-catalog~react~browser-session-core-Ck9lXSBn.js} +1 -1
- package/npm-chunks/vehicle-catalog~react~vehicle-popover~browser-session-core-Dz1vucc8.js +1 -0
- package/npm-chunks/vehicle-popover-CVncA-Cd.js +1 -0
- package/package.json +1 -1
- package/{playground-BcoLBJrj.d.ts → playground-CSIrDKFk.d.ts} +11 -0
- package/react.d.ts +5 -3
- package/react.js +5 -5
- package/embed-assets/subaru-wrx-top-dLvMFYDs.webp +0 -0
- package/embed-assets/toyota-gr-corolla-top-B0NnJP3L.webp +0 -0
- package/embed-chunks/EmbedPanel-DCPAjVqp.js +0 -1
- package/embed-chunks/JoyRideView-CgMxrhvT.js +0 -1
- package/embed-chunks/X.es-d7B7rOGv.js +0 -1
- package/embed-chunks/configuration~index~embed~bookmarklet-BGiS_NuJ.js +0 -1
- package/embed-chunks/configuration~index~embed~bookmarklet~vehicle-popover~EmbedPanel~Documentation~JoyRideView~~n76yhyet-mgPW9A8j.js +0 -1
- package/embed-chunks/controls~index~embed-CFqR-DAK.js +0 -1
- package/embed-chunks/react-vendor~index~embed-BNCMh3YF.js +0 -9
- package/embed-chunks/runtime~browser-session-core-CDPI_Sw8.js +0 -1
- package/embed-chunks/runtime~index~embed-BdtYsSkV.js +0 -210
- package/embed-chunks/runtime~index~embed~vehicle-popover~browser-session-core~renderer-ZRVlax1L.js +0 -1
- package/embed-chunks/runtime~vehicle-popover~renderer-JCHjG7Oa.js +0 -849
- package/embed-chunks/vehicle-popover-zFwrdc1h.js +0 -1
- package/npm-chunks/JoyRideView-DHvlq6T7.js +0 -1
- package/npm-chunks/configuration~react~vehicle-popover~EmbedPanel~Documentation~JoyRideView~browser-session-co~fvauaeow-mgPW9A8j.js +0 -1
- package/npm-chunks/configuration~react~vehicle-popover~JoyRideView~browser-session-core~renderer-CPZkP_Db.js +0 -1
- package/npm-chunks/controls~react~vehicle-popover~Documentation~JoyRideView~browser-session-core-CoAcght5.js +0 -1
- package/npm-chunks/runtime~browser-session-core-CuS-sVVB.js +0 -1
- package/npm-chunks/runtime~react~vehicle-popover~browser-session-core-CLFQjhrw.js +0 -210
- package/npm-chunks/runtime~react~vehicle-popover~browser-session-core~renderer-Dmgs7E8f.js +0 -1
- package/npm-chunks/vehicle-catalog~react~vehicle-popover~browser-session-core-sqHgtPeO.js +0 -1
- package/npm-chunks/vehicle-popover-PaJpv-M-.js +0 -1
package/README.md
CHANGED
|
@@ -146,7 +146,7 @@ For vehicle tuning and JSON import/export, run `pnpm run vehicle-editor`. See th
|
|
|
146
146
|
|
|
147
147
|
For transparent vehicle scene PNGs, run `pnpm screenshots`; its independent test fixture server starts automatically. Run `pnpm screenshots --readme --animate` to refresh both the framed README stills and animated WebP scenes in one pass. See [scene captures](tests/README.md#scene-captures) for options.
|
|
148
148
|
|
|
149
|
-
The site uses Next.js App Router with a static export. Its [Open Graph image](apps/site/src/app/opengraph-image.tsx) uses `next/og` and the dark README scene, and is generated automatically during the site build. Approved audio lives in `packages/engine/src/assets/audio/
|
|
149
|
+
The site uses Next.js App Router with a static export. Its [Open Graph image](apps/site/src/app/opengraph-image.tsx) uses `next/og` and the dark README scene, and is generated automatically during the site build. Approved audio lives in `packages/engine/src/assets/audio/default/`. Builds check prepared loops automatically; run `pnpm sync:audio` after adding or removing recordings to refresh the shared asset registry.
|
|
150
150
|
|
|
151
151
|
For contributor details, see the [package map](docs/package-architecture.md), [testing guide](tests/README.md), [audio guide](packages/engine/src/assets/audio/README.md), and [publishing guide](docs/npm-publishing.md).
|
|
152
152
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -137,11 +137,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
|
137
137
|
|
|
138
138
|
## Audio
|
|
139
139
|
|
|
140
|
-
Shipped recordings live in `packages/engine/src/assets/audio/
|
|
140
|
+
Shipped recordings live in `packages/engine/src/assets/audio/default/`.
|
|
141
141
|
This section is the single source for their licensing and attribution. The
|
|
142
142
|
project's MIT license does not replace a recording's separate license.
|
|
143
143
|
All shipped derivatives are also converted to mono, loudness matched, peak
|
|
144
|
-
limited, and encoded as 64 kbps Opus. Source masters in `
|
|
144
|
+
limited, and encoded as 64 kbps Opus. Source masters in `default/source/` are
|
|
145
145
|
also compressed as Opus (80 kbps mono or 96 kbps stereo), are excluded from
|
|
146
146
|
bundles, and retain the same licenses.
|
|
147
147
|
|
|
@@ -162,7 +162,7 @@ AI's hosted Stable Audio 3 service. Their use is subject to the applicable
|
|
|
162
162
|
[Stability AI terms](https://stability.ai/terms-of-service) and
|
|
163
163
|
[hosted-audio usage policy](https://kb.stability.ai/knowledge-base/stable-audio-commerical-and-usage-licensing).
|
|
164
164
|
They are not labelled CC0. The original prompts, seeds, generation IDs, dates,
|
|
165
|
-
and file hashes are preserved in `
|
|
165
|
+
and file hashes are preserved in `default/processing.json`.
|
|
166
166
|
|
|
167
167
|
The approved recordings are stored as compressed Opus masters. Original input
|
|
168
168
|
hashes and generation provenance are retained. Shipped derivatives receive the
|
package/bookmarklet.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as PlaygroundConfiguration } from "./playground-
|
|
1
|
+
import { c as PlaygroundConfiguration } from "./playground-CSIrDKFk.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 declarative CDN embed that mounts from its own attributes. */
|
package/bookmarklet.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./embed-chunks/configuration~index~embed~bookmarklet-
|
|
1
|
+
import{t as e}from"./embed-chunks/configuration~index~embed~bookmarklet-D5yd-nGZ.js";var t=`https://unpkg.com/@joy-ride/game@latest/embed.js`,n=`https://unpkg.com/@joy-ride/game@latest/index.js`;function r(n){let r=e(n),i=r.definitions?.vehicles;if(!i)return r;let a=typeof document<`u`&&document.baseURI||t;return{...r,definitions:{...r.definitions,vehicles:Object.fromEntries(Object.entries(i).map(([e,t])=>[e,{...t,...t.image?.src?{image:{...t.image,src:new URL(t.image.src,a).href}}:{}}]))}}}function i(e){return`javascript:(()=>{const u=${JSON.stringify(t)},o=${JSON.stringify(r(e))},d=window.JoyRide;if(d){d.active?d.active.dispose():d.mount(o);return}const s=document.createElement('script');s.type='module';s.src=u;s.async=true;s.charset='utf-8';s.onload=()=>window.JoyRide.mount(o);document.head.append(s)})()`}function a(e){return JSON.stringify(r(e),null,2).replace(/^(\s*)"([A-Za-z_$][\w$]*)":/gm,`$1$2:`).replace(/</g,`\\u003c`)}function o(e){return`<script
|
|
2
2
|
type="module"
|
|
3
3
|
src="${t}"
|
|
4
4
|
data-jr-mount='${JSON.stringify(r(e),null,2).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/'/g,`'`).replace(/\n/g,`
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./rolldown-runtime-XKyaHtl9.js";import{
|
|
1
|
+
import{n as e,r as t}from"./rolldown-runtime-XKyaHtl9.js";import{r as n,t as r}from"./react-vendor~index~embed~vehicle-popover~EmbedPanel~Documentation~JoyRideView-DSe2UFlv.js";import{a as i,i as a,o,s}from"./X.es-BZV6GJho.js";import{T as c}from"./vehicle-popover-Dn9KYK8F.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===`
|