@joy-ride/game 0.25.1 → 0.26.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 +1 -5
- package/bookmarklet.d.ts +1 -1
- package/bookmarklet.js +1 -1
- package/embed-chunks/{CodeBlock-DMi-BeLY.js → CodeBlock-Dn8EZ_BP.js} +1 -1
- package/embed-chunks/{Documentation-CI9JoAsv.js → Documentation-FnghYLFE.js} +2 -2
- package/embed-chunks/{EmbedPanel-CgEZTMF7.js → EmbedPanel-DZGEiiy9.js} +1 -1
- package/embed-chunks/{JoyRideView-C3AYwIPH.js → JoyRideView-EDSeeY9m.js} +1 -1
- package/embed-chunks/{configuration~index~embed-CG9auZKS.js → configuration~index~embed-0luxl74s.js} +1 -1
- package/embed-chunks/{configuration~index~embed~bookmarklet-C8RUCiUX.js → configuration~index~embed~bookmarklet-BH7GyoGh.js} +1 -1
- package/embed-chunks/{configuration~index~embed~bookmarklet~vehicle-popover~EmbedPanel~Documentation~JoyRideView~~n76yhyet-zf1LIsS8.js → configuration~index~embed~bookmarklet~vehicle-popover~EmbedPanel~Documentation~JoyRideView~~n76yhyet-mgPW9A8j.js} +1 -1
- package/embed-chunks/{configuration~index~embed~bookmarklet~vehicle-popover~EmbedPanel~JoyRideView~browser-sessio~iaaa3ndj-BBrKrH7m.js → configuration~index~embed~bookmarklet~vehicle-popover~EmbedPanel~JoyRideView~browser-sessio~iaaa3ndj-DLfKTakR.js} +1 -1
- package/embed-chunks/runtime~JoyRideView~browser-session-core-D3nCbCee.js +1 -0
- package/embed-chunks/runtime~browser-session-core-CXDCVDsi.js +1 -0
- package/embed-chunks/runtime~index~embed-BVbNVFHj.js +210 -0
- package/embed-chunks/{runtime~index~embed~vehicle-popover~browser-session-core~renderer-OqE9OpvH.js → runtime~index~embed~vehicle-popover~browser-session-core~renderer-YuWj6rHi.js} +1 -1
- package/embed-chunks/{runtime~vehicle-popover-DI44kx2W.js → runtime~vehicle-popover-vmgt62ll.js} +1 -1
- package/embed-chunks/{runtime~vehicle-popover~browser-session-core-BC-HGK32.js → runtime~vehicle-popover~browser-session-core-CjXpkmYi.js} +1 -1
- package/embed-chunks/{runtime~vehicle-popover~browser-session-core~renderer-CHG4ymHM.js → runtime~vehicle-popover~browser-session-core~renderer-CLLM7CAb.js} +1 -1
- package/embed-chunks/{runtime~vehicle-popover~renderer-DwVymD49.js → runtime~vehicle-popover~renderer-Cx3wjyMH.js} +1 -1
- package/embed-chunks/{src-v4km-Xn-.js → src-BBr94UQ7.js} +2 -2
- package/embed-chunks/{vehicle-catalog~index~embed-DcyLaPhV.js → vehicle-catalog~index~embed-CZzI6C0M.js} +1 -1
- package/embed-chunks/{vehicle-popover-CBTIiR6Q.js → vehicle-popover-DxuDMFyq.js} +1 -1
- package/embed.js +1 -1
- package/{index-BqJy85Tu.d.ts → index-BeKl7UbC.d.ts} +8 -9
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/npm-chunks/{Documentation-D5RIEQza.js → Documentation-_R0nI0HT.js} +2 -2
- package/npm-chunks/{EmbedPanel-COgcEIgT.js → EmbedPanel-lzZkV-zO.js} +1 -1
- package/npm-chunks/{JoyRideView-C2nOVKZu.js → JoyRideView-fHWzVVNB.js} +1 -1
- package/npm-chunks/{configuration~react-CKBQFWEF.js → configuration~react-CgNlw0cC.js} +1 -1
- package/npm-chunks/{configuration~react~vehicle-popover~EmbedPanel~Documentation~JoyRideView~browser-session-co~fvauaeow-zf1LIsS8.js → configuration~react~vehicle-popover~EmbedPanel~Documentation~JoyRideView~browser-session-co~fvauaeow-mgPW9A8j.js} +1 -1
- package/npm-chunks/{configuration~react~vehicle-popover~EmbedPanel~JoyRideView~browser-session-core-BQ8wO_VE.js → configuration~react~vehicle-popover~EmbedPanel~JoyRideView~browser-session-core-rFMaxKZs.js} +1 -1
- package/npm-chunks/{configuration~react~vehicle-popover~EmbedPanel~JoyRideView~browser-session-core~renderer-DJhBwBho.js → configuration~react~vehicle-popover~EmbedPanel~JoyRideView~browser-session-core~renderer-Bo9KSudc.js} +1 -1
- package/npm-chunks/runtime~JoyRideView~browser-session-core-BkwDrc9q.js +1 -0
- package/npm-chunks/runtime~browser-session-core-Y1rfFp6D.js +1 -0
- package/npm-chunks/{runtime~react-BKEnJfDK.js → runtime~react-CoMJOwyg.js} +1 -1
- package/npm-chunks/runtime~react~browser-session-core-35T1PZHO.js +1 -0
- package/npm-chunks/{runtime~vehicle-popover~browser-session-core-Ddxp7Nuh.js → runtime~vehicle-popover~browser-session-core-Ce3U7qky.js} +1 -1
- package/npm-chunks/{runtime~vehicle-popover~renderer-CYXkRwO4.js → runtime~vehicle-popover~renderer-Dmf1M43y.js} +1 -1
- package/npm-chunks/{sync-shadow-theme-Bqi_M9ro.js → sync-shadow-theme-DieEPOi7.js} +1 -1
- package/npm-chunks/{vehicle-catalog~react~vehicle-popover~browser-session-core-B1wVsjdQ.js → vehicle-catalog~react~vehicle-popover~browser-session-core-CX066OIY.js} +1 -1
- package/npm-chunks/{vehicle-popover-CbBEYEjM.js → vehicle-popover-Deuulng7.js} +1 -1
- package/package.json +1 -1
- package/{playground-DrT_x51v.d.ts → playground-e0rOBXY5.d.ts} +1 -0
- package/react.d.ts +2 -2
- package/react.js +2 -2
- package/embed-chunks/runtime~JoyRideView~browser-session-core-Ya-yv4PC.js +0 -1
- package/embed-chunks/runtime~browser-session-core-DUfZaJcj.js +0 -1
- package/embed-chunks/runtime~index~embed-B2Zpd22X.js +0 -210
- package/npm-chunks/runtime~JoyRideView~browser-session-core-CuSPCh9O.js +0 -1
- package/npm-chunks/runtime~browser-session-core-BenGnDZN.js +0 -1
- package/npm-chunks/runtime~react~browser-session-core-Cr50FE3R.js +0 -1
package/embed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t,r as n}from"./embed-chunks/controls~index~embed-B_C92tUz.js";import{t as r}from"./embed-chunks/definitions~index~embed-CDMM_m1T.js";import{i,n as a,r as o,t as s}from"./embed-chunks/configuration~index~embed-
|
|
1
|
+
import{n as e,o as t,r as n}from"./embed-chunks/controls~index~embed-B_C92tUz.js";import{t as r}from"./embed-chunks/definitions~index~embed-CDMM_m1T.js";import{i,n as a,r as o,t as s}from"./embed-chunks/configuration~index~embed-0luxl74s.js";import{a as c,c as l,i as u,l as d,t as f}from"./embed-chunks/vehicle-catalog~index~embed-CZzI6C0M.js";import{n as p,r as m,t as h}from"./embed-chunks/src-BBr94UQ7.js";var g=`script[data-jr-mount]`;function _(e){if(e.nodeType!==1)return!1;let t=e;return t.matches(g)||!!t.querySelector(g)}function v(e){let t=e.getAttribute(`data-jr-mount`);if(t===`false`||t===null)return null;let n=!t||t===`true`?{}:JSON.parse(t);if(!n||typeof n!=`object`||Array.isArray(n))throw TypeError(`data-jr-mount must be true or a JSON object`);let r=e.getAttribute(`data-jr-mount-preset`),a=r?i(r,n):n,o=e.getAttribute(`data-jr-dialog-theme`);if(o!==null){if(o!==`auto`&&o!==`light`&&o!==`dark`)throw TypeError(`data-jr-dialog-theme must be auto, light, or dark`);a.dialog={...a.dialog,dialogTheme:o}}let s=e.getAttribute(`data-jr-accent-color`),c=e.getAttribute(`data-jr-dialog-font-family`);if(s!==null||c!==null){if(s!==null&&!/^#[\da-f]{6}$/i.test(s))throw TypeError(`data-jr-accent-color must be six-digit hex`);if(c!==null&&!c.trim())throw TypeError(`data-jr-dialog-font-family must be a CSS font-family value`);a.dialog={...a.dialog,...s===null?{}:{accentColor:s},...c===null?{}:{dialogFontFamily:c}}}for(let[t,n]of[[`vehicle`,`data-jr-persist-vehicle`],[`audio`,`data-jr-persist-audio`]]){let r=e.getAttribute(n);if(r!==null){if(r!==``&&r!==`true`&&r!==`false`)throw TypeError(`${n} must be true or false`);a.persist={...a.persist,[t]:r!==`false`}}}return a}function y(e){let t=e.getAttribute(`data-jr-unmount`);if(t===null||t===`false`||t===`none`)return{route:!1,remove:!1};if(t===``||t===`true`)return{route:!0,remove:!0};let n=t.trim().split(/[\s,]+/);if(n.some(e=>e!==`route`&&e!==`remove`))throw TypeError(`data-jr-unmount accepts route, remove, or both`);return{route:n.includes(`route`),remove:n.includes(`remove`)}}function b(e,t){let n=e.location.href,r=e.history,i=r.pushState,a=r.replaceState,o=!0,s=()=>{o&&e.location.href!==n&&t()},c=function(...e){i.apply(this,e),s()},l=function(...e){a.apply(this,e),s()};return r.pushState=c,r.replaceState=l,e.addEventListener(`popstate`,s),e.addEventListener(`hashchange`,s),()=>{o=!1,e.removeEventListener(`popstate`,s),e.removeEventListener(`hashchange`,s),r.pushState===c&&(r.pushState=i),r.replaceState===l&&(r.replaceState=a)}}function x(e,t=document,n=window){let r=new WeakSet,i,a,o=()=>{if(!e.active){for(let s of t.querySelectorAll(g))if(!r.has(s)&&s.isConnected)try{let c=v(s),l=y(s);if(r.add(s),!c)continue;let u=e.mount(c);i={script:s,controller:u,remove:l.remove,route:l.route,href:n.location.href};let d=l.route?b(n,()=>u.dispose()):()=>{};u.on(`dispose`,()=>{d(),i?.controller===u&&(i=void 0),queueMicrotask(o)}),(l.route||l.remove)&&!a&&(a=new MutationObserver(t=>{i?.route&&n.location.href!==i.href&&i.controller.dispose(),i?.remove&&!i.script.isConnected&&i.controller.dispose(),!e.active&&t.some(e=>[...e.addedNodes].some(_))&&o()}),a.observe(t.documentElement,{childList:!0,subtree:!0}));break}catch(e){r.add(s),console.error(`Joy Ride could not mount from script attributes`,e)}}};t.readyState===`loading`?t.addEventListener(`DOMContentLoaded`,o,{once:!0}):queueMicrotask(o)}typeof window<`u`&&(window.JoyRide=h,x(h));var S=h;export{f as availableVehicleTools,S as default,r as define,p as getActive,i as getMountPreset,c as getVehiclePreset,t as keyboardControls,l as listVehicleOptions,d as listVehiclePresets,m as mount,e as overlayLayers,n as overlayZIndex,s as publicDataAttributeNames,a as publicDataAttributePrefixes,o as publicDataAttributes,u as vehicleTools};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as VehiclePreset, A as VehicleSlots, B as RuntimeOptionsPatch, C as VehiclePatch, D as LiquidEmission, E as VehiclePickupEffect, F as LiquidResidue, G as VehicleMasks, H as MaskRect, I as LiquidSource, J as SimulationState, K as Controls, L as CoreOptionsPatch, M as LiquidColorInput, N as LiquidKind, O as SlotNumber, P as LiquidPourOptions, Q as FlamethrowerProfile, R as DriveSettings, S as VehicleConfiguration, T as PickupPulse, U as MaskShape, W as VehicleMask, X as VehicleMode, Y as Vec2, Z as CombustibleStage, _ as ObjectiveSpec, a as PlaygroundObject, b as PlaygroundDefinitions, c as PlaygroundConfiguration, ct as DebrisVector, d as DeepReadonly, et as LightningWeapon, f as ObjectPatch, h as ObjectiveHandle, i as PlaygroundDiagnostic, it as DebrisHandle, j as LiquidColor, k as VehicleSlot, l as definePlayground, m as ObjectiveEventDetail, n as PlaygroundTriggerDetail, o as PlaygroundRegistry, ot as DebrisOptions, q as Simulation, r as PlaygroundBinding, rt as DebrisBounds, s as PlaygroundTarget, st as DebrisParticle, t as PlaygroundRouteHandle, tt as Debris, u as Appearance, w as PickupEffectInput, x as RouteSpec, y as PlayerConfiguration, z as RuntimeOptions } from "./playground-
|
|
1
|
+
import { $ as VehiclePreset, A as VehicleSlots, B as RuntimeOptionsPatch, C as VehiclePatch, D as LiquidEmission, E as VehiclePickupEffect, F as LiquidResidue, G as VehicleMasks, H as MaskRect, I as LiquidSource, J as SimulationState, K as Controls, L as CoreOptionsPatch, M as LiquidColorInput, N as LiquidKind, O as SlotNumber, P as LiquidPourOptions, Q as FlamethrowerProfile, R as DriveSettings, S as VehicleConfiguration, T as PickupPulse, U as MaskShape, W as VehicleMask, X as VehicleMode, Y as Vec2, Z as CombustibleStage, _ as ObjectiveSpec, a as PlaygroundObject, b as PlaygroundDefinitions, c as PlaygroundConfiguration, ct as DebrisVector, d as DeepReadonly, et as LightningWeapon, f as ObjectPatch, h as ObjectiveHandle, i as PlaygroundDiagnostic, it as DebrisHandle, j as LiquidColor, k as VehicleSlot, l as definePlayground, m as ObjectiveEventDetail, n as PlaygroundTriggerDetail, o as PlaygroundRegistry, ot as DebrisOptions, q as Simulation, r as PlaygroundBinding, rt as DebrisBounds, s as PlaygroundTarget, st as DebrisParticle, t as PlaygroundRouteHandle, tt as Debris, u as Appearance, w as PickupEffectInput, x as RouteSpec, y as PlayerConfiguration, z as RuntimeOptions } from "./playground-e0rOBXY5.js";
|
|
2
2
|
/** The exact source crop and painted size shared by the renderer and collision mask. */
|
|
3
3
|
declare function vehicleImageFootprint(preset: VehiclePreset, imageWidth: number, imageHeight: number): {
|
|
4
4
|
source: {
|
|
@@ -999,12 +999,12 @@ declare class VehicleEntity {
|
|
|
999
999
|
id: string;
|
|
1000
1000
|
label: string;
|
|
1001
1001
|
appearance: "auto" | "light" | "dark";
|
|
1002
|
-
slots: Readonly<Partial<Record<1 | 2 |
|
|
1003
|
-
slotHeld: (1 | 2 |
|
|
1004
|
-
slotPulses: (1 | 2 |
|
|
1005
|
-
slotPresses: (1 | 2 |
|
|
1006
|
-
blockedSlots: (1 | 2 |
|
|
1007
|
-
previousSlotInput: (1 | 2 |
|
|
1002
|
+
slots: Readonly<Partial<Record<1 | 2 | 3 | 4 | 7 | 5 | 9 | 8 | 6, false | VehicleSlot>>>;
|
|
1003
|
+
slotHeld: (1 | 2 | 3 | 4 | 7 | 5 | 9 | 8 | 6)[];
|
|
1004
|
+
slotPulses: (1 | 2 | 3 | 4 | 7 | 5 | 9 | 8 | 6)[];
|
|
1005
|
+
slotPresses: (1 | 2 | 3 | 4 | 7 | 5 | 9 | 8 | 6)[];
|
|
1006
|
+
blockedSlots: (1 | 2 | 3 | 4 | 7 | 5 | 9 | 8 | 6)[];
|
|
1007
|
+
previousSlotInput: (1 | 2 | 3 | 4 | 7 | 5 | 9 | 8 | 6)[];
|
|
1008
1008
|
activeEmitters: {
|
|
1009
1009
|
slot: SlotNumber;
|
|
1010
1010
|
liquid: string;
|
|
@@ -1862,7 +1862,7 @@ declare class Odometer {
|
|
|
1862
1862
|
mode: "screen" | "print";
|
|
1863
1863
|
};
|
|
1864
1864
|
restoreState(state: ReturnType<Odometer['captureState']>): void;
|
|
1865
|
-
get dpi():
|
|
1865
|
+
get dpi(): 300 | 96;
|
|
1866
1866
|
cycleDpi(): DistanceReadout;
|
|
1867
1867
|
flush(): void;
|
|
1868
1868
|
get kilometers(): number;
|
|
@@ -2192,7 +2192,6 @@ type BrowserSessionOptions = CoreOptionsPatch & {
|
|
|
2192
2192
|
color?: LiquidColor;
|
|
2193
2193
|
}[];
|
|
2194
2194
|
readonly initialGroundMarks?: readonly TirePaintMark[];
|
|
2195
|
-
readonly introDriveIn?: boolean;
|
|
2196
2195
|
readonly initialArrivalPending?: boolean;
|
|
2197
2196
|
screenShakeProfiles?: ScreenShakeProfileOverrides;
|
|
2198
2197
|
automatedInput?: Controls | null;
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { B as RuntimeOptionsPatch, C as VehiclePatch, O as SlotNumber, S as VehicleConfiguration, V as VehicleHintOptions, _ as ObjectiveSpec, at as DebrisKind, c as PlaygroundConfiguration, d as DeepReadonly, f as ObjectPatch, g as ObjectiveProgress, h as ObjectiveHandle, it as DebrisHandle, l as definePlayground, m as ObjectiveEventDetail, nt as DebrisAnchor, ot as DebrisOptions, p as ObjectSpec, u as Appearance, v as ObjectiveType, w as PickupEffectInput, y as PlayerConfiguration, z as RuntimeOptions } from "./playground-
|
|
2
|
-
import { C as listVehicleOptions, D as overlayLayers, E as vehicleTools, O as overlayZIndex, S as getVehiclePreset, T as availableVehicleTools, _ as PlayerEntryResult, a as MountPreset, b as PageDebrisHandle, c as mount, d as MountOptions, f as PlaygroundEventMap, g as PlayerEntryOptions, h as PageTarget, i as publicDataAttributes, l as keyboardControls, m as RideController, n as publicDataAttributeNames, o as getMountPreset, p as PlaygroundState, r as publicDataAttributePrefixes, s as getActive, t as api, u as MountHostOptions, v as VehicleHandle, w as listVehiclePresets, x as PageDebrisTarget, y as VehicleSpawnOptions } from "./index-
|
|
1
|
+
import { B as RuntimeOptionsPatch, C as VehiclePatch, O as SlotNumber, S as VehicleConfiguration, V as VehicleHintOptions, _ as ObjectiveSpec, at as DebrisKind, c as PlaygroundConfiguration, d as DeepReadonly, f as ObjectPatch, g as ObjectiveProgress, h as ObjectiveHandle, it as DebrisHandle, l as definePlayground, m as ObjectiveEventDetail, nt as DebrisAnchor, ot as DebrisOptions, p as ObjectSpec, u as Appearance, v as ObjectiveType, w as PickupEffectInput, y as PlayerConfiguration, z as RuntimeOptions } from "./playground-e0rOBXY5.js";
|
|
2
|
+
import { C as listVehicleOptions, D as overlayLayers, E as vehicleTools, O as overlayZIndex, S as getVehiclePreset, T as availableVehicleTools, _ as PlayerEntryResult, a as MountPreset, b as PageDebrisHandle, c as mount, d as MountOptions, f as PlaygroundEventMap, g as PlayerEntryOptions, h as PageTarget, i as publicDataAttributes, l as keyboardControls, m as RideController, n as publicDataAttributeNames, o as getMountPreset, p as PlaygroundState, r as publicDataAttributePrefixes, s as getActive, t as api, u as MountHostOptions, v as VehicleHandle, w as listVehiclePresets, x as PageDebrisTarget, y as VehicleSpawnOptions } from "./index-BeKl7UbC.js";
|
|
3
3
|
export { type Appearance, type DebrisAnchor, type DebrisHandle, type DebrisKind, type DebrisOptions, type DeepReadonly, type MountHostOptions, type MountOptions, type MountPreset, type ObjectPatch, type ObjectSpec, type ObjectiveEventDetail, type ObjectiveHandle, type ObjectiveProgress, type ObjectiveSpec, type ObjectiveType, type PageDebrisHandle, type PageDebrisTarget, type PageTarget, type PickupEffectInput, type PlayerConfiguration, type PlayerEntryOptions, type PlayerEntryResult, type PlaygroundConfiguration, type PlaygroundEventMap, type PlaygroundState, type RideController, type RuntimeOptions, type RuntimeOptionsPatch, type SlotNumber, type VehicleConfiguration, type VehicleHandle, type VehicleHintOptions, type VehiclePatch, type VehicleSpawnOptions, availableVehicleTools, api as default, definePlayground as define, getActive, getMountPreset, getVehiclePreset, keyboardControls, listVehicleOptions, listVehiclePresets, mount, overlayLayers, overlayZIndex, publicDataAttributeNames, publicDataAttributePrefixes, publicDataAttributes, vehicleTools };
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t,r as n}from"./embed-chunks/controls~index~embed-B_C92tUz.js";import{t as r}from"./embed-chunks/definitions~index~embed-CDMM_m1T.js";import{i,n as a,r as o,t as s}from"./embed-chunks/configuration~index~embed-
|
|
1
|
+
import{n as e,o as t,r as n}from"./embed-chunks/controls~index~embed-B_C92tUz.js";import{t as r}from"./embed-chunks/definitions~index~embed-CDMM_m1T.js";import{i,n as a,r as o,t as s}from"./embed-chunks/configuration~index~embed-0luxl74s.js";import{a as c,c as l,i as u,l as d,t as f}from"./embed-chunks/vehicle-catalog~index~embed-CZzI6C0M.js";import{n as p,r as m,t as h}from"./embed-chunks/src-BBr94UQ7.js";export{f as availableVehicleTools,h as default,r as define,p as getActive,i as getMountPreset,c as getVehiclePreset,t as keyboardControls,l as listVehicleOptions,d as listVehiclePresets,m as mount,e as overlayLayers,n as overlayZIndex,s as publicDataAttributeNames,a as publicDataAttributePrefixes,o as publicDataAttributes,u as vehicleTools};
|