@air-jam/sdk 0.9.1 → 0.9.2
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/dist/arcade/bridge/controller.cjs +1 -1
- package/dist/arcade/bridge/controller.js +2 -2
- package/dist/arcade/bridge/host.cjs +1 -1
- package/dist/arcade/bridge/host.js +2 -2
- package/dist/arcade/bridge/iframe.cjs +1 -1
- package/dist/arcade/bridge/iframe.js +3 -3
- package/dist/arcade/bridge.cjs +1 -1
- package/dist/arcade/bridge.js +5 -5
- package/dist/arcade.cjs +1 -1
- package/dist/arcade.js +5 -5
- package/dist/{chunk-KXAFI5OP.js → chunk-6CMB356F.js} +2 -2
- package/dist/{chunk-FAT2KJ3K.js → chunk-7OTQTT6H.js} +2 -2
- package/dist/{chunk-CABEUV65.js → chunk-CVYR5RJT.js} +2 -2
- package/dist/{chunk-JEHV5C2X.js → chunk-DY67S3LR.js} +2 -2
- package/dist/{chunk-W3YA5BWR.js → chunk-E5PVHEAX.js} +2 -2
- package/dist/{chunk-VKBMZHMQ.js → chunk-KOB73SPD.js} +2 -2
- package/dist/{chunk-7UXSWCZZ.js → chunk-M4DKOI42.js} +2 -2
- package/dist/{chunk-CEJ5RFSG.js → chunk-Q4UALQO4.js} +2 -2
- package/dist/index.cjs +172 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +160 -89
- package/dist/index.js.map +1 -1
- package/dist/preview.js +4 -4
- package/dist/ui.cjs +95 -18
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.d.cts +11 -1
- package/dist/ui.d.ts +11 -1
- package/dist/ui.js +106 -29
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
- package/src/components/join-qr-overlay.tsx +115 -31
- package/src/hooks/use-host-audio-mute-preference.ts +99 -0
- package/src/index.ts +4 -0
- /package/dist/{chunk-KXAFI5OP.js.map → chunk-6CMB356F.js.map} +0 -0
- /package/dist/{chunk-FAT2KJ3K.js.map → chunk-7OTQTT6H.js.map} +0 -0
- /package/dist/{chunk-CABEUV65.js.map → chunk-CVYR5RJT.js.map} +0 -0
- /package/dist/{chunk-JEHV5C2X.js.map → chunk-DY67S3LR.js.map} +0 -0
- /package/dist/{chunk-W3YA5BWR.js.map → chunk-E5PVHEAX.js.map} +0 -0
- /package/dist/{chunk-VKBMZHMQ.js.map → chunk-KOB73SPD.js.map} +0 -0
- /package/dist/{chunk-7UXSWCZZ.js.map → chunk-M4DKOI42.js.map} +0 -0
- /package/dist/{chunk-CEJ5RFSG.js.map → chunk-Q4UALQO4.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -605,6 +605,13 @@ interface HostTickOptions {
|
|
|
605
605
|
*/
|
|
606
606
|
declare const useHostTick: (options: HostTickOptions) => void;
|
|
607
607
|
|
|
608
|
+
interface HostAudioMutePreference {
|
|
609
|
+
muted: boolean;
|
|
610
|
+
setMuted: (muted: boolean) => void;
|
|
611
|
+
toggleMuted: () => void;
|
|
612
|
+
}
|
|
613
|
+
declare const useHostAudioMutePreference: (scope: string, defaultMuted?: boolean) => HostAudioMutePreference;
|
|
614
|
+
|
|
608
615
|
declare const useInputWriter: () => ((input: ControllerInputPayload) => boolean);
|
|
609
616
|
|
|
610
617
|
declare const usePlayers: () => PlayerProfile[];
|
|
@@ -1153,4 +1160,4 @@ interface ElementWithFullscreen extends HTMLElement {
|
|
|
1153
1160
|
msRequestFullscreen?: () => Promise<void>;
|
|
1154
1161
|
}
|
|
1155
1162
|
|
|
1156
|
-
export { AIR_JAM_RUNTIME_INSPECTION_KEY, type AirJamActionAcceptance, type AirJamActionContext, AirJamActionInvocationResult, type AirJamActionRejection, AirJamAgentContract, type AirJamApp, type AirJamAppErrorBoundaryOptions, type AirJamControllerApi, type AirJamControllerOptions, AirJamControllerRuntime, type AirJamControllerRuntimeProps, type AirJamControllerState, type AirJamDiagnostic, type AirJamDiagnosticCode, type AirJamDiagnosticSeverity, AirJamErrorBoundary, type AirJamErrorBoundaryProps, type AirJamErrorFallbackRenderProps, type AirJamErrorFallbackRenderer, type AirJamHostActionEvent, type AirJamHostActionListener, type AirJamHostActionSubscriptionOptions, type AirJamHostApi, type AirJamHostOptions, AirJamHostRuntime, type AirJamHostRuntimeProps, type AirJamHostState, type AirJamRuntimeErrorBoundaryOptions, type AirJamRuntimeRole, type AirJamSyncedStoreHook, type AudioHandle, AudioRuntime, type AudioRuntimeControls, type AudioRuntimeProps, type AudioRuntimeStatus, type AudioVolumeCategory, ConnectionStatus, ControllerOrientation, type ControllerRuntimeInspectionContract, ControllerStatePayload, type ControllerTickInfo, type ControllerTickOptions, type ControllerToast, ControllerUpdatePlayerProfileAck, type CreateAirJamAppOptions, type CreateAirJamStoreOptions, type DocumentWithFullscreen, type ElementWithFullscreen, HapticSignalPayload, type HostFrameInfo, type HostRuntimeInspectionContract, type HostTickInfo, type HostTickOptions, type JoinUrlStatus, MusicPlaylist, type MusicPlaylistProps, type PlayOptions, PlayerProfile, PlayerProfilePatch, RoomCode, type RoomState, RunMode, type RuntimeInspectionContract, RuntimeState, type SendSignalFn, type SoundCategory, type SoundConfig, type SoundManifest, ToastSignalPayload, type UseControllerToastsOptions, acceptAirJamAction, createAirJamApp, createAirJamStore, createControllerRuntimeInspectionContract, createHostRuntimeInspectionContract, env, onAirJamDiagnostic, publishRuntimeInspectionContract, readRuntimeInspectionContract, rejectAirJamAction, resolveAirJamBrowserRouterBasename, setAirJamDiagnosticsEnabled, useAirJamController, useAirJamHost, useAudio, useAudioCategoryVolume, useAudioRuntimeControls, useAudioRuntimeStatus, useConnectionStatus, useControllerRuntimeInspectionContract, useControllerTick, useControllerToasts, useGetInput, useHostRuntimeInspectionContract, useHostTick, useInputWriter, useMusicVolume, usePlayers, useRoom, useSendSignal };
|
|
1163
|
+
export { AIR_JAM_RUNTIME_INSPECTION_KEY, type AirJamActionAcceptance, type AirJamActionContext, AirJamActionInvocationResult, type AirJamActionRejection, AirJamAgentContract, type AirJamApp, type AirJamAppErrorBoundaryOptions, type AirJamControllerApi, type AirJamControllerOptions, AirJamControllerRuntime, type AirJamControllerRuntimeProps, type AirJamControllerState, type AirJamDiagnostic, type AirJamDiagnosticCode, type AirJamDiagnosticSeverity, AirJamErrorBoundary, type AirJamErrorBoundaryProps, type AirJamErrorFallbackRenderProps, type AirJamErrorFallbackRenderer, type AirJamHostActionEvent, type AirJamHostActionListener, type AirJamHostActionSubscriptionOptions, type AirJamHostApi, type AirJamHostOptions, AirJamHostRuntime, type AirJamHostRuntimeProps, type AirJamHostState, type AirJamRuntimeErrorBoundaryOptions, type AirJamRuntimeRole, type AirJamSyncedStoreHook, type AudioHandle, AudioRuntime, type AudioRuntimeControls, type AudioRuntimeProps, type AudioRuntimeStatus, type AudioVolumeCategory, ConnectionStatus, ControllerOrientation, type ControllerRuntimeInspectionContract, ControllerStatePayload, type ControllerTickInfo, type ControllerTickOptions, type ControllerToast, ControllerUpdatePlayerProfileAck, type CreateAirJamAppOptions, type CreateAirJamStoreOptions, type DocumentWithFullscreen, type ElementWithFullscreen, HapticSignalPayload, type HostAudioMutePreference, type HostFrameInfo, type HostRuntimeInspectionContract, type HostTickInfo, type HostTickOptions, type JoinUrlStatus, MusicPlaylist, type MusicPlaylistProps, type PlayOptions, PlayerProfile, PlayerProfilePatch, RoomCode, type RoomState, RunMode, type RuntimeInspectionContract, RuntimeState, type SendSignalFn, type SoundCategory, type SoundConfig, type SoundManifest, ToastSignalPayload, type UseControllerToastsOptions, acceptAirJamAction, createAirJamApp, createAirJamStore, createControllerRuntimeInspectionContract, createHostRuntimeInspectionContract, env, onAirJamDiagnostic, publishRuntimeInspectionContract, readRuntimeInspectionContract, rejectAirJamAction, resolveAirJamBrowserRouterBasename, setAirJamDiagnosticsEnabled, useAirJamController, useAirJamHost, useAudio, useAudioCategoryVolume, useAudioRuntimeControls, useAudioRuntimeStatus, useConnectionStatus, useControllerRuntimeInspectionContract, useControllerTick, useControllerToasts, useGetInput, useHostAudioMutePreference, useHostRuntimeInspectionContract, useHostTick, useInputWriter, useMusicVolume, usePlayers, useRoom, useSendSignal };
|
package/dist/index.d.ts
CHANGED
|
@@ -605,6 +605,13 @@ interface HostTickOptions {
|
|
|
605
605
|
*/
|
|
606
606
|
declare const useHostTick: (options: HostTickOptions) => void;
|
|
607
607
|
|
|
608
|
+
interface HostAudioMutePreference {
|
|
609
|
+
muted: boolean;
|
|
610
|
+
setMuted: (muted: boolean) => void;
|
|
611
|
+
toggleMuted: () => void;
|
|
612
|
+
}
|
|
613
|
+
declare const useHostAudioMutePreference: (scope: string, defaultMuted?: boolean) => HostAudioMutePreference;
|
|
614
|
+
|
|
608
615
|
declare const useInputWriter: () => ((input: ControllerInputPayload) => boolean);
|
|
609
616
|
|
|
610
617
|
declare const usePlayers: () => PlayerProfile[];
|
|
@@ -1153,4 +1160,4 @@ interface ElementWithFullscreen extends HTMLElement {
|
|
|
1153
1160
|
msRequestFullscreen?: () => Promise<void>;
|
|
1154
1161
|
}
|
|
1155
1162
|
|
|
1156
|
-
export { AIR_JAM_RUNTIME_INSPECTION_KEY, type AirJamActionAcceptance, type AirJamActionContext, AirJamActionInvocationResult, type AirJamActionRejection, AirJamAgentContract, type AirJamApp, type AirJamAppErrorBoundaryOptions, type AirJamControllerApi, type AirJamControllerOptions, AirJamControllerRuntime, type AirJamControllerRuntimeProps, type AirJamControllerState, type AirJamDiagnostic, type AirJamDiagnosticCode, type AirJamDiagnosticSeverity, AirJamErrorBoundary, type AirJamErrorBoundaryProps, type AirJamErrorFallbackRenderProps, type AirJamErrorFallbackRenderer, type AirJamHostActionEvent, type AirJamHostActionListener, type AirJamHostActionSubscriptionOptions, type AirJamHostApi, type AirJamHostOptions, AirJamHostRuntime, type AirJamHostRuntimeProps, type AirJamHostState, type AirJamRuntimeErrorBoundaryOptions, type AirJamRuntimeRole, type AirJamSyncedStoreHook, type AudioHandle, AudioRuntime, type AudioRuntimeControls, type AudioRuntimeProps, type AudioRuntimeStatus, type AudioVolumeCategory, ConnectionStatus, ControllerOrientation, type ControllerRuntimeInspectionContract, ControllerStatePayload, type ControllerTickInfo, type ControllerTickOptions, type ControllerToast, ControllerUpdatePlayerProfileAck, type CreateAirJamAppOptions, type CreateAirJamStoreOptions, type DocumentWithFullscreen, type ElementWithFullscreen, HapticSignalPayload, type HostFrameInfo, type HostRuntimeInspectionContract, type HostTickInfo, type HostTickOptions, type JoinUrlStatus, MusicPlaylist, type MusicPlaylistProps, type PlayOptions, PlayerProfile, PlayerProfilePatch, RoomCode, type RoomState, RunMode, type RuntimeInspectionContract, RuntimeState, type SendSignalFn, type SoundCategory, type SoundConfig, type SoundManifest, ToastSignalPayload, type UseControllerToastsOptions, acceptAirJamAction, createAirJamApp, createAirJamStore, createControllerRuntimeInspectionContract, createHostRuntimeInspectionContract, env, onAirJamDiagnostic, publishRuntimeInspectionContract, readRuntimeInspectionContract, rejectAirJamAction, resolveAirJamBrowserRouterBasename, setAirJamDiagnosticsEnabled, useAirJamController, useAirJamHost, useAudio, useAudioCategoryVolume, useAudioRuntimeControls, useAudioRuntimeStatus, useConnectionStatus, useControllerRuntimeInspectionContract, useControllerTick, useControllerToasts, useGetInput, useHostRuntimeInspectionContract, useHostTick, useInputWriter, useMusicVolume, usePlayers, useRoom, useSendSignal };
|
|
1163
|
+
export { AIR_JAM_RUNTIME_INSPECTION_KEY, type AirJamActionAcceptance, type AirJamActionContext, AirJamActionInvocationResult, type AirJamActionRejection, AirJamAgentContract, type AirJamApp, type AirJamAppErrorBoundaryOptions, type AirJamControllerApi, type AirJamControllerOptions, AirJamControllerRuntime, type AirJamControllerRuntimeProps, type AirJamControllerState, type AirJamDiagnostic, type AirJamDiagnosticCode, type AirJamDiagnosticSeverity, AirJamErrorBoundary, type AirJamErrorBoundaryProps, type AirJamErrorFallbackRenderProps, type AirJamErrorFallbackRenderer, type AirJamHostActionEvent, type AirJamHostActionListener, type AirJamHostActionSubscriptionOptions, type AirJamHostApi, type AirJamHostOptions, AirJamHostRuntime, type AirJamHostRuntimeProps, type AirJamHostState, type AirJamRuntimeErrorBoundaryOptions, type AirJamRuntimeRole, type AirJamSyncedStoreHook, type AudioHandle, AudioRuntime, type AudioRuntimeControls, type AudioRuntimeProps, type AudioRuntimeStatus, type AudioVolumeCategory, ConnectionStatus, ControllerOrientation, type ControllerRuntimeInspectionContract, ControllerStatePayload, type ControllerTickInfo, type ControllerTickOptions, type ControllerToast, ControllerUpdatePlayerProfileAck, type CreateAirJamAppOptions, type CreateAirJamStoreOptions, type DocumentWithFullscreen, type ElementWithFullscreen, HapticSignalPayload, type HostAudioMutePreference, type HostFrameInfo, type HostRuntimeInspectionContract, type HostTickInfo, type HostTickOptions, type JoinUrlStatus, MusicPlaylist, type MusicPlaylistProps, type PlayOptions, PlayerProfile, PlayerProfilePatch, RoomCode, type RoomState, RunMode, type RuntimeInspectionContract, RuntimeState, type SendSignalFn, type SoundCategory, type SoundConfig, type SoundManifest, ToastSignalPayload, type UseControllerToastsOptions, acceptAirJamAction, createAirJamApp, createAirJamStore, createControllerRuntimeInspectionContract, createHostRuntimeInspectionContract, env, onAirJamDiagnostic, publishRuntimeInspectionContract, readRuntimeInspectionContract, rejectAirJamAction, resolveAirJamBrowserRouterBasename, setAirJamDiagnosticsEnabled, useAirJamController, useAirJamHost, useAudio, useAudioCategoryVolume, useAudioRuntimeControls, useAudioRuntimeStatus, useConnectionStatus, useControllerRuntimeInspectionContract, useControllerTick, useControllerToasts, useGetInput, useHostAudioMutePreference, useHostRuntimeInspectionContract, useHostTick, useInputWriter, useMusicVolume, usePlayers, useRoom, useSendSignal };
|