@joy-ride/joy-ride 0.1.0 → 0.2.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/npm/embed.js CHANGED
@@ -5,4 +5,4 @@ if (typeof document !== 'undefined' && !document.querySelector('link[data-jr-sty
5
5
  link.href = new URL("embed-assets/src-DCczMlG6.css", import.meta.url).href;
6
6
  document.head.append(link);
7
7
  }
8
- import{t as e}from"./embed-chunks/src-d3m8FEbx.js";if(typeof window<`u`&&(window.JoyRide=e,document.querySelector(`script[data-jr-auto]`))){let t=()=>{e.active||e.mount()};document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,t,{once:!0}):queueMicrotask(t)}var t=e;export{t as default};
8
+ import{t as e}from"./embed-chunks/src-UqbaZg21.js";if(typeof window<`u`&&(window.JoyRide=e,document.querySelector(`script[data-jr-auto]`))){let t=()=>{e.active||e.mount()};document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,t,{once:!0}):queueMicrotask(t)}var t=e;export{t as default};
package/npm/index.d.ts CHANGED
@@ -623,11 +623,11 @@ declare class VehicleEntity {
623
623
  id: string;
624
624
  label: string;
625
625
  appearance: "light" | "auto" | "dark";
626
- slots: Readonly<Partial<Record<9 | 1 | 8 | 4 | 5 | 7 | 2 | 6 | 3, false | VehicleSlot>>>;
627
- slotHeld: (9 | 1 | 8 | 4 | 5 | 7 | 2 | 6 | 3)[];
628
- slotPulses: (9 | 1 | 8 | 4 | 5 | 7 | 2 | 6 | 3)[];
629
- slotPresses: (9 | 1 | 8 | 4 | 5 | 7 | 2 | 6 | 3)[];
630
- previousSlotInput: (9 | 1 | 8 | 4 | 5 | 7 | 2 | 6 | 3)[];
626
+ slots: Readonly<Partial<Record<1 | 4 | 2 | 3 | 5 | 8 | 9 | 7 | 6, false | VehicleSlot>>>;
627
+ slotHeld: (1 | 4 | 2 | 3 | 5 | 8 | 9 | 7 | 6)[];
628
+ slotPulses: (1 | 4 | 2 | 3 | 5 | 8 | 9 | 7 | 6)[];
629
+ slotPresses: (1 | 4 | 2 | 3 | 5 | 8 | 9 | 7 | 6)[];
630
+ previousSlotInput: (1 | 4 | 2 | 3 | 5 | 8 | 9 | 7 | 6)[];
631
631
  activeEmitters: {
632
632
  slot: SlotNumber;
633
633
  liquid: string;
@@ -2680,6 +2680,11 @@ declare function mount(input?: EmbedOptions | PlaygroundConfiguration): EmbedCon
2680
2680
  /** Keep the runtime API available as the default export for bundled hosts. */
2681
2681
  declare const api: {
2682
2682
  mount: typeof mount;
2683
+ options: {
2684
+ presets: {
2685
+ sfw(overrides?: EmbedOptions): EmbedOptions;
2686
+ };
2687
+ };
2683
2688
  resolveWorkMode: typeof resolveWorkMode;
2684
2689
  vehicleTools: readonly VehicleToolDefinition[];
2685
2690
  availableVehicleTools: typeof availableVehicleTools;
package/npm/index.js CHANGED
@@ -5,4 +5,4 @@ if (typeof document !== 'undefined' && !document.querySelector('link[data-jr-sty
5
5
  link.href = new URL("embed-assets/src-DCczMlG6.css", import.meta.url).href;
6
6
  document.head.append(link);
7
7
  }
8
- export{t as default}from"./embed-chunks/src-d3m8FEbx.js";
8
+ export{t as default}from"./embed-chunks/src-UqbaZg21.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@joy-ride/joy-ride",
3
3
  "private": false,
4
- "version": "0.1.0",
4
+ "version": "0.2.1",
5
5
  "description": "Drive through any website with cars, tire marks, liquids, fire, and breakable artwork.",
6
6
  "type": "module",
7
7
  "repository": {
@@ -44,6 +44,7 @@
44
44
  "build": "pnpm run typecheck && pnpm --filter @joy-ride/site build",
45
45
  "build:package": "pnpm run typecheck && pnpm --filter @joy-ride/embed build:package",
46
46
  "check:package": "node packages/embed/scripts/check-package.mjs",
47
+ "publish:package": "node scripts/publish-package.mjs",
47
48
  "prepublishOnly": "node packages/embed/scripts/check-package.mjs",
48
49
  "build:pages": "pnpm run typecheck && pnpm --filter @joy-ride/site build:pages && pnpm --filter @joy-ride/embed build && node scripts/copy-embed.mjs && node scripts/check-bundle-size.mjs",
49
50
  "build:extension": "pnpm --filter @joy-ride/extension build",