diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 67a1232..041c7fd 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -8,6 +8,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ id-token: write
steps:
- name: Checkout repository
@@ -23,17 +26,13 @@ jobs:
uses: actions/setup-node@v7
with:
node-version: 26
- registry-url: 'https://registry.npmjs.org/'
cache: 'pnpm'
- name: Install dependencies
- run: pnpm install
+ run: pnpm install --frozen-lockfile
- name: Build package
run: pnpm build
- name: Publish to npm
- run: pnpm publish --access public --no-git-checks
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
-
+ run: pnpm publish --access public --no-git-checks --provenance
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cd89013..5c7c393 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,18 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+## [0.3.0] - 2026-11-25
+
+### Changed
+
+- Updated compatibility to `@interactive-video-labs/core@^0.3.1`.
+- Added pass-through support for current core player configuration options.
+- Added analytics subscriptions for the complete core event surface.
+- Added live sync event and status callbacks.
+- Added an imperative ref handle for core playback and decision APIs.
+- Updated README and developer documentation for core 0.3.1 usage.
+
## v0.2.0 2025-09-24
### Added
@@ -99,10 +114,6 @@
- update dependency @vitejs/plugin-react to v5
- update dependency typescript to v5.9.2
-# Changelog
-
-All notable changes to this project will be documented in this file.
-
## [0.0.2] - 2025-08-10
### Style
diff --git a/DEVELOPER.md b/DEVELOPER.md
index 6de2134..46d82d8 100644
--- a/DEVELOPER.md
+++ b/DEVELOPER.md
@@ -46,6 +46,7 @@ Here's an overview of the key directories and files in this project:
* `tsup.config.ts`: Configuration for `tsup`, the bundler used to build the library.
* `vitest.config.ts`: Configuration for `Vitest`, the testing framework.
* `package.json`: Project metadata, dependencies, and scripts.
+* Core compatibility: the wrapper targets `@interactive-video-labs/core@^0.3.1`.
## 3. Available Scripts
diff --git a/README.md b/README.md
index d3f77ec..6499e56 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,7 @@
Welcome to `@interactive-video-labs/react` — a lightweight React wrapper around the `@interactive-video-labs/core` engine for cue-driven interactive video experiences.
+This release tracks `@interactive-video-labs/core` `^0.3.1`.
This wrapper makes it easy to embed interactive video players in React apps using familiar props and event handlers, while keeping close to the core API.
@@ -28,6 +29,8 @@ This wrapper makes it easy to embed interactive video players in React apps usin
- **Cue Point Management**: Load and manage cue points for dynamic video interactions.
- **Analytics Events**: Receive detailed analytics events from the video player to track user engagement.
- **Localization**: Support for player localization through translations.
+- **Core 0.3.1 Features**: Pass-through support for subtitles, interactions, debugger mode, decision adapters, and live sync.
+- **Imperative Controls**: Optional React ref access to playback, state, cues, translations, decisions, and live sync.
- **Direct Core API Access**: Provides a React-friendly interface while maintaining close alignment with the core IVLabsPlayer API.
## Installation
@@ -55,7 +58,6 @@ const MyVideoPlayer = () => {
videoUrl="https://interactive-video-labs.github.io/interactive-video-demos/videos/big_buck_bunny.mp4"
autoplay={true}
loop={false}
- controls={true}
onAnalyticsEvent={(event, payload) => {
console.log('Analytics Event:', event, payload);
// Handle analytics events, e.g., send to a tracking service
@@ -93,6 +95,10 @@ const MyVideoPlayer = () => {
pause: 'Pause Video',
},
}}
+ debugger={true}
+ onLiveSyncStatus={(status) => {
+ console.log('Live sync status:', status);
+ }}
/>
);
@@ -107,11 +113,34 @@ The `InteractiveVideo` component accepts the following props:
- `videoUrl` (string, **required**): The URL of the video to be played.
- `onAnalyticsEvent` (function, optional): A callback function that is triggered when an analytics event occurs. It receives the `event` name and an optional `payload`.
- - `event`: `PLAYER_LOADED`, `VIDEO_STARTED`, `VIDEO_PAUSED`, `VIDEO_ENDED`, `CUE_TRIGGERED`, `INTERACTION_COMPLETED`, `ERROR`.
+ - Includes core events such as `PLAYER_LOADED`, `VIDEO_STARTED`, `VIDEO_PAUSED`, `CUE_LOADED`, `CUE_TRIGGERED`, `INTERACTION_SHOWN`, `INTERACTION_COMPLETED`, `VIDEO_ENDED`, `PLAYER_DESTROYED`, `ERROR`, and the normalized analytics hooks.
- `payload`: An object containing event-specific data.
- `cues` (CuePoint[], optional): An array of cue points to load into the player. Each `CuePoint` object should conform to the `@interactive-video-labs/core` `CuePoint` interface.
-- `translations` (Translations, optional): An object containing translations for player localization. This should conform to the `@interactive-video-labs/core` `Translations` interface.
-- `...restOptions` (PlayerConfig, optional): Any other valid `PlayerConfig` options from `@interactive-video-labs/core` (excluding `videoUrl`, `cues`, and `translations`). This allows for direct pass-through of core player configurations like `autoplay`, `loop`, `controls`, `locale`, etc.
+- `translations` (Record, optional): A locale-to-translations map for player localization.
+- `onLiveSyncEvent` (function, optional): Receives normalized live sync events such as room state, cue, decision, poll, and presence updates.
+- `onLiveSyncStatus` (function, optional): Receives live sync connection lifecycle updates.
+- `...restOptions` (PlayerConfig, optional): Any other valid `PlayerConfig` options from `@interactive-video-labs/core` (excluding `videoUrl`, `cues`, and `translations`). This allows for direct pass-through of core player configurations like `autoplay`, `loop`, `subtitlesUrl`, `locale`, `interactions`, `debugger`, `liveSync`, and decision adapters.
+
+## Imperative Ref
+
+The component forwards a ref for core player operations:
+
+```tsx
+import { useRef } from 'react';
+import {
+ InteractiveVideo,
+ type InteractiveVideoHandle,
+} from '@interactive-video-labs/react';
+
+const playerRef = useRef(null);
+
+
+playerRef.current?.play();
+playerRef.current?.pause();
+const state = playerRef.current?.getState();
+```
+
+Available methods include `play`, `pause`, `syncToLive`, `getState`, `setLocale`, `loadCues`, `loadTranslations`, `getDecisionHistory`, `clearDecisionHistory`, `sendLiveSyncMessage`, and `getPlayer`.
## Development
diff --git a/package.json b/package.json
index 41d484d..1128cf2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@interactive-video-labs/react",
- "version": "0.2.0",
+ "version": "0.3.0",
"description": "Thin React wrapper for the @interactive-video-labs/core engine. Enables cue-based interactive video playback in React apps.",
"type": "module",
"main": "dist/index.cjs",
@@ -55,34 +55,35 @@
},
"packageManager": "pnpm@12.23.0",
"peerDependencies": {
- "@interactive-video-labs/core": "^0.1.2 || ^0.2.0 || ^0.3.0",
+ "@interactive-video-labs/core": "^0.3.1",
"react": ">=17.0.0 || >=18.0.0",
"react-dom": ">=17.0.0 || >=18.0.0"
},
"dependencies": {
- "@vitejs/plugin-react": "^6.0.0",
"@typescript/native": "npm:typescript@^7.0.2",
- "jsdom": "^31.0.0",
+ "@vitejs/plugin-react": "^6.3.0",
+ "jsdom": "^31.0.1",
"tsup": "^9.0.0",
"typescript": "npm:@typescript/typescript6@^6.0.2",
- "vitest": "^5.0.0"
+ "vitest": "^5.1.1"
},
"devDependencies": {
- "@commitlint/cli": "^21.0.0",
- "@commitlint/config-conventional": "^21.0.0",
- "@testing-library/jest-dom": "^7.0.0",
- "@testing-library/react": "^16.0.0",
- "@types/react": "^19.1.9",
- "@typescript-eslint/eslint-plugin": "^8.39.0",
- "@typescript-eslint/parser": "^8.39.0",
- "eslint": "^10.0.0",
+ "@commitlint/cli": "^21.2.4",
+ "@commitlint/config-conventional": "^21.2.4",
+ "@interactive-video-labs/core": "0.3.1",
+ "@testing-library/jest-dom": "^7.0.1",
+ "@testing-library/react": "^16.3.3",
+ "@types/react": "^19.3.0",
+ "@typescript-eslint/eslint-plugin": "^8.74.0",
+ "@typescript-eslint/parser": "^8.74.0",
+ "eslint": "^10.15.0",
"eslint-config-prettier": "^10.1.8",
- "eslint-plugin-prettier": "^5.5.4",
+ "eslint-plugin-prettier": "^5.5.7",
"eslint-plugin-react": "^7.37.5",
"http-server": "^14.1.1",
"husky": "^9.1.7",
- "lint-staged": "^17.0.0",
- "prettier": "^3.6.2",
- "typescript-eslint": "^8.39.0"
+ "lint-staged": "^17.6.2",
+ "prettier": "^3.10.1",
+ "typescript-eslint": "^8.74.0"
}
}
\ No newline at end of file
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6a88995..45af68e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -185,17 +185,14 @@ importers:
.:
dependencies:
- '@interactive-video-labs/core':
- specifier: ^0.1.2 || ^0.2.0 || ^0.3.0
- version: 0.2.0
'@typescript/native':
specifier: npm:typescript@^7.0.2
version: typescript@7.0.2
'@vitejs/plugin-react':
- specifier: ^6.0.0
+ specifier: ^6.3.0
version: 6.3.0(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))
jsdom:
- specifier: ^31.0.0
+ specifier: ^31.0.1
version: 31.0.1
react:
specifier: '>=17.0.0 || >=18.0.0'
@@ -210,38 +207,41 @@ importers:
specifier: npm:@typescript/typescript6@^6.0.2
version: '@typescript/typescript6@6.0.2'
vitest:
- specifier: ^5.0.0
- version: 5.1.0(jsdom@31.0.1)(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))
+ specifier: ^5.1.1
+ version: 5.1.1(jsdom@31.0.1)(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))
devDependencies:
'@commitlint/cli':
- specifier: ^21.0.0
+ specifier: ^21.2.4
version: 21.2.4(@typescript/typescript6@6.0.2)(conventional-commits-parser@7.1.4)
'@commitlint/config-conventional':
- specifier: ^21.0.0
+ specifier: ^21.2.4
version: 21.2.4
+ '@interactive-video-labs/core':
+ specifier: 0.3.1
+ version: 0.3.1
'@testing-library/jest-dom':
- specifier: ^7.0.0
- version: 7.0.1(@testing-library/dom@10.4.2)(vitest@5.1.0(jsdom@31.0.1)(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))
+ specifier: ^7.0.1
+ version: 7.0.1(@testing-library/dom@10.4.2)(vitest@5.1.1(jsdom@31.0.1)(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))
'@testing-library/react':
- specifier: ^16.0.0
+ specifier: ^16.3.3
version: 16.3.3(@testing-library/dom@10.4.2)(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
'@types/react':
- specifier: ^19.1.9
+ specifier: ^19.3.0
version: 19.3.0
'@typescript-eslint/eslint-plugin':
- specifier: ^8.39.0
- version: 8.72.2(@typescript-eslint/parser@8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0))(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)
+ specifier: ^8.74.0
+ version: 8.74.0(@typescript-eslint/parser@8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2))(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)
'@typescript-eslint/parser':
- specifier: ^8.39.0
- version: 8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)
+ specifier: ^8.74.0
+ version: 8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)
eslint:
- specifier: ^10.0.0
+ specifier: ^10.15.0
version: 10.15.0(jiti@2.7.0)(supports-color@7.2.0)
eslint-config-prettier:
specifier: ^10.1.8
version: 10.1.8(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))
eslint-plugin-prettier:
- specifier: ^5.5.4
+ specifier: ^5.5.7
version: 5.5.7(eslint-config-prettier@10.1.8(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0)))(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(prettier@3.10.1)
eslint-plugin-react:
specifier: ^7.37.5
@@ -253,14 +253,14 @@ importers:
specifier: ^9.1.7
version: 9.1.7
lint-staged:
- specifier: ^17.0.0
- version: 17.6.1
+ specifier: ^17.6.2
+ version: 17.6.2
prettier:
- specifier: ^3.6.2
+ specifier: ^3.10.1
version: 3.10.1
typescript-eslint:
- specifier: ^8.39.0
- version: 8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)
+ specifier: ^8.74.0
+ version: 8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)
packages:
@@ -275,8 +275,8 @@ packages:
resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==}
engines: {node: '>=6.9.0'}
- '@babel/runtime@7.29.14':
- resolution: {integrity: sha512-Y5tqevQaUAZhhj82BpYMNC1ssvLQTVAfwKdm8iy8qwmhvC2/CpcAu8OC+QEtjM7pMk7knx83u1Qj8gzkicyelw==}
+ '@babel/runtime@7.29.15':
+ resolution: {integrity: sha512-304gsbbGVmQc+cNGHzwHBlqepYdWLKj3VXCQBGt/EGcV7PUPfKI7kAUNW1FZEOCwlQiLvQjg1JEaAlRQ616h+Q==}
engines: {node: '>=6.9.0'}
'@cacheable/memory@2.2.0':
@@ -597,8 +597,8 @@ packages:
resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
engines: {node: '>=18.18'}
- '@interactive-video-labs/core@0.2.0':
- resolution: {integrity: sha512-FCNXKwjL+X/vxg1dpMYp/iQ3xQIse0J5Nk6MzkUUli1+p2BATDfghEvhwCvTr0VoO2fBMkzEbBHv3FPf4pPnxw==}
+ '@interactive-video-labs/core@0.3.1':
+ resolution: {integrity: sha512-9CPMguzIQzKYEy0ZhC3cGtRJCWS5SWru9q/7FZa4kdwWYQewslw5IzSRh8OOuUTWVDxvlsetxklhLgDKCgZGZQ==}
'@isaacs/nonrecursive-glob-match@1.1.0':
resolution: {integrity: sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==}
@@ -743,146 +743,146 @@ packages:
'@rolldown/pluginutils@1.1.1':
resolution: {integrity: sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==}
- '@rollup/rollup-android-arm-eabi@4.68.4':
- resolution: {integrity: sha512-8AfICPTDNFpsRltDrWzlX3iVEwHubamhXc10bjOJRCl4eZXj+BE25uCVMYzFpbcqfuxSfrt4VkSVL5QqiHoVDQ==}
+ '@rollup/rollup-android-arm-eabi@4.68.8':
+ resolution: {integrity: sha512-7l9FdeCGjhmMTVePgndK4t9u5tLR+VuTTMoyc0PscqZDdYjS07ZsQ0vQYsWsODu/ZZYPG7WVJwbUZ77n1hVT+w==}
cpu: [arm]
os: [android]
- '@rollup/rollup-android-arm64@4.68.4':
- resolution: {integrity: sha512-Vs4CxDXeCrCVNZ9jPnicohYT7aX7cxLzjMepkno/7f1zFhC80OUsKHM03BJsusLfYnjKrUe7D8vPvQNdD+rjCg==}
+ '@rollup/rollup-android-arm64@4.68.8':
+ resolution: {integrity: sha512-kXkkIiJujBjArHwEToz99BQqIqibn4xdV6SjsoaxuZzvLUCVEzoHQ1Lp62m7xOhpLRpWpCtxL2ZUy/ADKuz9/g==}
cpu: [arm64]
os: [android]
- '@rollup/rollup-android-x64@4.68.4':
- resolution: {integrity: sha512-EEytXPqw9k5OIyx1Cou+Xg8XhTwtWW31WIGq1cWTpX05ek6STIprxJ5wY6cOEZAk5sjXM/mE2/JohNhtUiPukg==}
+ '@rollup/rollup-android-x64@4.68.8':
+ resolution: {integrity: sha512-KYoBygnHs3zUOLR0z7SaqhMnUrSF9pbuTOJT/uHK3PrgCXdv/xaMubZD8jCpg6NTo46deasLgZRq38xFTyu8uw==}
cpu: [x64]
os: [android]
- '@rollup/rollup-darwin-arm64@4.68.4':
- resolution: {integrity: sha512-eRYMGvFdL3TKnaXlacxifKMltpLxehT0XghbV5pPfzJUNCc+psia9rg/scZZPfeDK+VKpSZx9VoMz236yeYEaQ==}
+ '@rollup/rollup-darwin-arm64@4.68.8':
+ resolution: {integrity: sha512-YmBUNjgm5bsjOByO+H1TFbuGZe+ZnHcYtPXYj9+L1cwTu/BG8zjuUzO2PH9KwS85P0UH+WJDSb+mQ2hqjp5uBQ==}
cpu: [arm64]
os: [darwin]
- '@rollup/rollup-darwin-x64@4.68.4':
- resolution: {integrity: sha512-w+E1P+Ul1PgoAiH22tcONSEyx+3VjUcSIZeqr1QSOSC5vvawduMVtgD1ZtfQsPHkpTN/VJekrgN3JL2+YKhaDQ==}
+ '@rollup/rollup-darwin-x64@4.68.8':
+ resolution: {integrity: sha512-XMX5ybuOmkwiM13KJtsBxakZ69pyaR9thRYU2fMejhaB0VuzLMIkIc+9TBsu2rv34eEf6XaSMOaLOyEgHGWHTQ==}
cpu: [x64]
os: [darwin]
- '@rollup/rollup-freebsd-arm64@4.68.4':
- resolution: {integrity: sha512-nukgdVNAx7X07qu8nZjJwuCRW/yDjLIio83yXhKUkuUUXTlmEGjVRN+XxrzxnkhiTRfHnqC/OYAga3t7vMQkAw==}
+ '@rollup/rollup-freebsd-arm64@4.68.8':
+ resolution: {integrity: sha512-WuBXScWJDaqPJKwVrotUe1sM9DHWMN937C23RClt0MVHVt7A1rBy285ZfZTLccPEVMxmGJMt2jvdHMOI33lrKA==}
cpu: [arm64]
os: [freebsd]
- '@rollup/rollup-freebsd-x64@4.68.4':
- resolution: {integrity: sha512-o5vn+twqv2XwxEpseC76YCNXpCXoRlPmr+ZYpSnmlxbFh5kdHysap9V93cS1hzAXtK6xuXa5kdtS+/8rkUfs4Q==}
+ '@rollup/rollup-freebsd-x64@4.68.8':
+ resolution: {integrity: sha512-kegwGqP3rMenEMaKo8OzMBb5WvLW2h2jrQ3iKuYptTTF8C/yuxz+hinjBPrtYuIPLJDwxHc/hv2e4u5pmrqo9A==}
cpu: [x64]
os: [freebsd]
- '@rollup/rollup-linux-arm-gnueabihf@4.68.4':
- resolution: {integrity: sha512-b2w9laiL8oWofYqGF+ABzin9wNMPxzHRD21EIPJ5A0iniq19d3flE4UP7uZKl1gj+d3Kv/bt1htVUSzI0bE1TQ==}
+ '@rollup/rollup-linux-arm-gnueabihf@4.68.8':
+ resolution: {integrity: sha512-Qct0oLM1zGNbvqs1udQnuchg+Q9uHbkMcQqCfs3M7foNn7HvEkUypfFn9o5fklimUI5OF3A2nMknd4/vrEyeVg==}
cpu: [arm]
os: [linux]
libc: [glibc]
- '@rollup/rollup-linux-arm-musleabihf@4.68.4':
- resolution: {integrity: sha512-Ao858LxFnvGrn4qbin3rr+LmEhOrF9pQKgzEnT14f9KjOpytd5smOuj7OOtkejJ7YVb5cBdPpYdT1zjwNcNq9g==}
+ '@rollup/rollup-linux-arm-musleabihf@4.68.8':
+ resolution: {integrity: sha512-xTH5vD+lW/5MU3kL/Op8RSSG/O9fxUQZuJcSBmmBeYem9uXYvCq6PDHx/oDSNeyLD/p4pGujG2PVI0R8MjAhSw==}
cpu: [arm]
os: [linux]
libc: [musl]
- '@rollup/rollup-linux-arm64-gnu@4.68.4':
- resolution: {integrity: sha512-B78SoWLJeAleSOIDFZ+twb+7DoBla0g73LrdkxlkNwicAsrLfHeYX+NcPlOmxZ3Z8vKVvj0J/kmIMzEaqbQNGg==}
+ '@rollup/rollup-linux-arm64-gnu@4.68.8':
+ resolution: {integrity: sha512-lPPStmynSHvwWpSrAsuemPFB+EWFObXjwz44EK4Hph47U6SBAk1Kehq5MkI7i8EYVjrXddaAV7YkJH8mX8QSZQ==}
cpu: [arm64]
os: [linux]
libc: [glibc]
- '@rollup/rollup-linux-arm64-musl@4.68.4':
- resolution: {integrity: sha512-IK0JVhVLGer5AlmgU0eMbfuldxO1wNACZBwyq+ot9UW899hhkWPcO3k0eIrNlqmuWrySvMtzr7GK9xkbNekOTQ==}
+ '@rollup/rollup-linux-arm64-musl@4.68.8':
+ resolution: {integrity: sha512-kZkvIYAihM6l6M+giSUHayDDf/JL+TYR5bYWiAX7/jUFWvMkMmysA4GV2F0HOsXQNEyctW3x1xLjww1GqW7Q1w==}
cpu: [arm64]
os: [linux]
libc: [musl]
- '@rollup/rollup-linux-loong64-gnu@4.68.4':
- resolution: {integrity: sha512-6MoYXMYy+6eqtVesSNehfsS3LY4A0P8MpHfhcnMkVsWVhaLv0vvuCj2EGkanchIoyHxAmxY+aR3ankaTkokC2A==}
+ '@rollup/rollup-linux-loong64-gnu@4.68.8':
+ resolution: {integrity: sha512-XZKLEIY977OJr6zUtK6nlQcLXme34c8HqVp3+WmKQxKVN6Nj+b9qE3ZHWIDHXznHJsGl2AsaMOgB0GL0fkZGUg==}
cpu: [loong64]
os: [linux]
libc: [glibc]
- '@rollup/rollup-linux-loong64-musl@4.68.4':
- resolution: {integrity: sha512-mo+MC3fHiG4EOdtp7uGSvBv/4hKpqxhV16QGpXn2D0mTBBiOW6hGIOXUK7nck8THlURRWjYdtUPvvJfxHKZ/2w==}
+ '@rollup/rollup-linux-loong64-musl@4.68.8':
+ resolution: {integrity: sha512-+sN+Fj6F9suk8SkL6boIfXDmj9iJwSKPCTeCy8/pfTOHuzNX+duhTb9uyj6154oVK8Odl5zgL4DXRZzXjsRKcw==}
cpu: [loong64]
os: [linux]
libc: [musl]
- '@rollup/rollup-linux-ppc64-gnu@4.68.4':
- resolution: {integrity: sha512-uBRu6ztHsmoW/10bPsOVbhW8ie4Puw6+CQD/XLRGqr3ugv6pRNm3b4vebiwouhCgkjJ/ItJdqHKJ3mVhpr/wQA==}
+ '@rollup/rollup-linux-ppc64-gnu@4.68.8':
+ resolution: {integrity: sha512-EBCu3uDFaGwSodUl+XR8yubvVFUkSo6QK9YAIOV1vljqntzTF2/mXLM6utgLaSGf/8oM+qEe8Ai0Jd4+tyMoIQ==}
cpu: [ppc64]
os: [linux]
libc: [glibc]
- '@rollup/rollup-linux-ppc64-musl@4.68.4':
- resolution: {integrity: sha512-XNY+QlYWmhqzeiMdOKjziVnx6aP5cXSxbk4rDqbb+MH2IcNiIZWX1wPRfAVV6ntiM17XHJJ2WUNcxnglDNH69A==}
+ '@rollup/rollup-linux-ppc64-musl@4.68.8':
+ resolution: {integrity: sha512-hRC0jWdsLBckCijx2wiUfk7zW1SqEW47yMsCNoDGmQfoqq0AjW+9UYZqxg3LTmG76PyHNdNGBSuspB3CqrhGIA==}
cpu: [ppc64]
os: [linux]
libc: [musl]
- '@rollup/rollup-linux-riscv64-gnu@4.68.4':
- resolution: {integrity: sha512-agahuMApMIOQgJMNEaJNtQRD+iUllqAvkF/V7WutWaBLTSeMgFd0urEo6m1scFmG0Cd+2zIPvnu2SWcKeuSB1Q==}
+ '@rollup/rollup-linux-riscv64-gnu@4.68.8':
+ resolution: {integrity: sha512-OZKrTRWyGnLITUTipbeXDdtb2dxQPyFk/Fbw9qER8pIvd2Ja9hHELkY0Fv5p9yYYkimqtzVhApKKXGv0cWGQGw==}
cpu: [riscv64]
os: [linux]
libc: [glibc]
- '@rollup/rollup-linux-riscv64-musl@4.68.4':
- resolution: {integrity: sha512-1N+ysuGmcw/PAC4E5/vpotbjC7zHBMqOMJ+kdjkuvVGbj4Mkzu1/cNI4IMaU27VP6MWded1fQAU9ME2m/JmiUA==}
+ '@rollup/rollup-linux-riscv64-musl@4.68.8':
+ resolution: {integrity: sha512-HmhSRSQ+dOeOntPfmYux4rCpOQLtsGbcGLQu4nm8ig3tuVqe/bKfDHorg36LKAqYq4X/nwFr79ImtaFHHsn4ug==}
cpu: [riscv64]
os: [linux]
libc: [musl]
- '@rollup/rollup-linux-s390x-gnu@4.68.4':
- resolution: {integrity: sha512-ZO0fVys5Rtut3W0FcpKl/T/CTuTgaujErjanLJHVSmqhWaXnPr1u1VAinHPb8ash+cHA8yMX4QnRbmXhrrXfAg==}
+ '@rollup/rollup-linux-s390x-gnu@4.68.8':
+ resolution: {integrity: sha512-wk1Ci1hsMREaBELoKPSnzRAh1oUULI+8kfb2F5vVmTD2IcfR9AKMskCusizZhIAvojOtPZihPj4OdKy6ifZwhQ==}
cpu: [s390x]
os: [linux]
libc: [glibc]
- '@rollup/rollup-linux-x64-gnu@4.68.4':
- resolution: {integrity: sha512-a4T4Ji3Is/TCh4rUuV6ehDdSMp3hxLH/v7mP4VT0kVB90Hfr9GUHVAiJhiJ3iy+tJ4qpvIG4haP+HpivOyWYpw==}
+ '@rollup/rollup-linux-x64-gnu@4.68.8':
+ resolution: {integrity: sha512-mDufoUJ6fnKZnCyjV3sGEDvXQQkM6j1UmINHheGX4Emau3TZWJzX3sCVmbzkNB+W2G84BiFQdDCcF09lv0i0VA==}
cpu: [x64]
os: [linux]
libc: [glibc]
- '@rollup/rollup-linux-x64-musl@4.68.4':
- resolution: {integrity: sha512-I4FcDk1+t2w7/JwKakDbhOKvtP07Q8Y/jqaTTdgVklmfqTqmTwtIk254iSP4iCgXgQWThKm8CN67mDzPGDnpqw==}
+ '@rollup/rollup-linux-x64-musl@4.68.8':
+ resolution: {integrity: sha512-7EGVL9rYRYQZe3UC8JQzfBN9rxk484Rfs4u/yGWumTYKUdJt6tmdP+0Y3qHvAvzJCQ+JQM5rSqZbVyrJARlGpA==}
cpu: [x64]
os: [linux]
libc: [musl]
- '@rollup/rollup-openbsd-x64@4.68.4':
- resolution: {integrity: sha512-kpekXvZs3E/21ps5tUiPbQggi4C8bCx4jBl2eAIaVTerC7eDLWJunZ6nRw3/K4r20E5Z5f1bmbrfSS6H8GRv+A==}
+ '@rollup/rollup-openbsd-x64@4.68.8':
+ resolution: {integrity: sha512-Umklz+QSGwKWQVlVrsMJrwFx1oNRYHgrxSGiZM8pJCMpzWnMDMinDhPILf0BvRXfA1QOArsDcs+AE7Jd6dQxvA==}
cpu: [x64]
os: [openbsd]
- '@rollup/rollup-openharmony-arm64@4.68.4':
- resolution: {integrity: sha512-mrnM4nr22FidljIL4vGK1htFcxPNCjLK/g2LQvgpBbq8pKL/zHY1czntTDbtYjoaYWVFu+XX0P2r2h/7zwWlIw==}
+ '@rollup/rollup-openharmony-arm64@4.68.8':
+ resolution: {integrity: sha512-BlRp6uzQDK5rczAdaXQ8dlSIRFRlkDRBqpb8GGtv8iwZxQdOjoigdFU5t5dcxpnpU0caMoT9mH27MyAl4dWwKw==}
cpu: [arm64]
os: [openharmony]
- '@rollup/rollup-win32-arm64-msvc@4.68.4':
- resolution: {integrity: sha512-xKF6HKrBdrb3jpGFlGAGtNF6nMu/TGdnVO38durZTMQUaduIqH/aDIjyi7SXmXNDUXTfTMUEIGVwPQ5FuMhCLQ==}
+ '@rollup/rollup-win32-arm64-msvc@4.68.8':
+ resolution: {integrity: sha512-Sc8Mkf/fVfcV0hBJNDRIM82BjS4kJn2Of0jP8dgQ+TodquxtCZ/5D6FgSsY3uN5IBmNi8Zrb/OHd60IEYKaw+Q==}
cpu: [arm64]
os: [win32]
- '@rollup/rollup-win32-ia32-msvc@4.68.4':
- resolution: {integrity: sha512-uu45X0jgiXEab6vcoWuPQLqhBPKUCZkXc+gv0oTI78mhn5DnQC2WGvNJ/s6Cnc68PvB/8vAtlE2dIHrpx/wySw==}
+ '@rollup/rollup-win32-ia32-msvc@4.68.8':
+ resolution: {integrity: sha512-XPTFXclN+I+Cfu3ONWDsw+uvgSZjTJa1B2u2EvtdKlSdgNU6mrOZdgeaMkvN+2T2KPTEXn6fnRY8IODlRg3/Tg==}
cpu: [ia32]
os: [win32]
- '@rollup/rollup-win32-x64-gnu@4.68.4':
- resolution: {integrity: sha512-+sVn72CSCbAemlPieSHWpBsJR5vkWH/xQM0Px0loHUhscMNl3CuH0UwTHuzCIaamlv+ZTi1V44jEKQ45FUaNwg==}
+ '@rollup/rollup-win32-x64-gnu@4.68.8':
+ resolution: {integrity: sha512-63dWiHgvpWcienfdr465lT3SIn4u3535vbDfaLKhSn0F2KJ06bbcUsewDGJZUPZCbJ67qESrPDhb85UnWdb5ew==}
cpu: [x64]
os: [win32]
- '@rollup/rollup-win32-x64-msvc@4.68.4':
- resolution: {integrity: sha512-/eMzhxPPUGd5vjHdaNtvxHbblmoe+DyvPnJkZ4uQrDlVq9PQSd8br4pWwamycwRcLoNEzXwFy2mzcGoZTYqU5A==}
+ '@rollup/rollup-win32-x64-msvc@4.68.8':
+ resolution: {integrity: sha512-/W1LBsMeQAdiCuH3Z2gkRspl3mlxL+butknhq4vXjmxO45vuT08BqhehxDoE4YS+m6s9lhpq6M9/PjTEAg8PYw==}
cpu: [x64]
os: [win32]
@@ -947,63 +947,67 @@ packages:
'@types/react@19.3.0':
resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==}
- '@typescript-eslint/eslint-plugin@8.72.2':
- resolution: {integrity: sha512-222PKFXKihmFpi/pS5njoBgdAqsPhj2/GBmFbrNw8Tq8gEG9Sv+kSlKFy4u2q+mJv9ZzJgM2Gkv/bUzRZwZw5g==}
+ '@typescript-eslint/eslint-plugin@8.74.0':
+ resolution: {integrity: sha512-z3KXk1+Vm+d82ZRplOoC89ho4Rf1da5ju6sx8//92GnN532U62DGPjECXkkVqtYzIv0zoJlpO39SX2Z9tk6LVw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
- '@typescript-eslint/parser': ^8.72.2
+ '@typescript-eslint/parser': ^8.74.0
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
- '@typescript-eslint/parser@8.72.2':
- resolution: {integrity: sha512-llP+T1YuJOLlxEciP6OyQGtz5SMxyn+9LA2BvZw5RmToGVa1y4beEDVQL6Gje7T5WFYh19WREjDCN9Ev4gm5AA==}
+ '@typescript-eslint/parser@8.74.0':
+ resolution: {integrity: sha512-ecr8AYdig7avVkxaHdQvxHnIJ/mOyliO4Gv/uWF8q69vBew/z3sexqBwHUZX5Vql+Ns0w4sH6gBLkICGbOvJkA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
- '@typescript-eslint/project-service@8.72.2':
- resolution: {integrity: sha512-6y5dLTZdHhI8Eh3yIQ/bfQhRKwn5e+TpJj64o18Cngc0iW/BCrVvrr6zGYqXPnYH31u6YXAYiFh0+qxX5mybJw==}
+ '@typescript-eslint/project-service@8.74.0':
+ resolution: {integrity: sha512-z/mymuE+JlEeSFIv3Mo70EvgG1Zz74Hl0IDfExfXutARAP834bt+MppTD7mVAwmZO0GdxdOAi0jbTam749eH6g==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
- '@typescript-eslint/scope-manager@8.72.2':
- resolution: {integrity: sha512-iIoMJ6/8c1/QpFNyFjU0d1YzPco4MsZjQw0k3V+vfzNWAFmUmvhlyMoYEoYYDQZXc+J6Gi1X5XcxlzW2taIIGQ==}
+ '@typescript-eslint/scope-manager@8.74.0':
+ resolution: {integrity: sha512-kpOdpu4CpWN5U38ox3f727DwWRBtUAVhyUJtqTBYe5gf2wYoxac7PgKP14txrxN7ICVtcjlLdzjqfRgpSnDKvQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@typescript-eslint/tsconfig-utils@8.72.2':
- resolution: {integrity: sha512-+h3iCgZXuTNtoLXcnnjP12ZUHLMqoUcIHPfQrFEXTUqvb9dF8QK9b5nv5VtSo5fLkdHuks8ehbTzZj3rImAm9w==}
+ '@typescript-eslint/tsconfig-utils@8.74.0':
+ resolution: {integrity: sha512-p07wAuaS6BjCYgOSXKJi4YhvTnAf7fiG37e9THcpnYaQEt2QiTTYZWKwUFNgeRiywiMudazhzgddAirZ0GgHtQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <6.1.0'
- '@typescript-eslint/type-utils@8.72.2':
- resolution: {integrity: sha512-STfkR38qIdhfkLpgtXnUjAzsNy4xouqiBO0lrVc/Wpk9Kem5/aHXUx1J8dGC16zpdYN1+yc2ILQ28er1kXX7ag==}
+ '@typescript-eslint/type-utils@8.74.0':
+ resolution: {integrity: sha512-CV3Y3la8l3F9ANfxcfpgSSiQgJTe4IeLEoZV4O/gcW86Ugp8X6SKiQ0vm+QegXaRIbbDMokZZSF3A1CgiU/kPw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
- '@typescript-eslint/types@8.72.2':
- resolution: {integrity: sha512-Xfn37OLZx03+PCU7qWx9DTv2FCRh1E6fk2+wONeNY15HXIwtcwuveaSwVpGAUptkNmPQegRxW5JyRel9T7wrog==}
+ '@typescript-eslint/types@8.74.0':
+ resolution: {integrity: sha512-MpnMrJCVNpP1iVL8NiHkQZgQqIMBH5ewDGUPBh1pqQXwFtMFjsl1M03QcYPXmv6stCKEiF0PN7CGbU1ZbXFzEA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@typescript-eslint/typescript-estree@8.72.2':
- resolution: {integrity: sha512-pQEGqIK/cqEvKivVWaFLYpe7XYejFxfuAOi4mu1oAWFvIo36aRHI9esRFTUxcIy/z8N482RJyH+LpZB0ZIU7Ow==}
+ '@typescript-eslint/typescript-estree@8.74.0':
+ resolution: {integrity: sha512-wL348k6l92DNG+kPP5rVpKwNBoz7a3xRZy3TPKc1uymQttd7u7gcMv3eENmcuh4CjC4mO3FTM0DYstFXMyDLuw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
+ '@typescript/native': npm:typescript@>=7.1.0-dev.20261009.1 || >=7.1.0-beta <7.1.0-dev
typescript: '>=4.8.4 <6.1.0'
+ peerDependenciesMeta:
+ '@typescript/native':
+ optional: true
- '@typescript-eslint/utils@8.72.2':
- resolution: {integrity: sha512-hv3eRYbpPbbpezuax1EfGrzpa3C4ySgNZkPUkLOWOAjU8HsOKowEDAr8C7nsNl1C+SBSKDpvno6VKHnlhvp9iA==}
+ '@typescript-eslint/utils@8.74.0':
+ resolution: {integrity: sha512-IpWXPxXXomzxyTcvjhZJexgdvtTR1TooLAPpuxzaGqQ8BHll1lf4Ysp/BTE/l0U5TJ+x1j7B4bEM8pLRrvY+XA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
typescript: '>=4.8.4 <6.1.0'
- '@typescript-eslint/visitor-keys@8.72.2':
- resolution: {integrity: sha512-NAGrjn0Pitjqzq/GkgMC4kBYm233PQ8GffyQ9+kTA3AlNQYEzOf25EIM02BAHZv5FRJSpHpJk+OGUxVkOB93GQ==}
+ '@typescript-eslint/visitor-keys@8.74.0':
+ resolution: {integrity: sha512-XSZmOtMUbWCBIM+2BK134FyMFxmll1mW2mPLk/PSwYQYzGIPMgJAqL929U4qXVizLv7Xq5b7r41/o7Ombuwk0g==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript/typescript-aix-ppc64@7.0.2':
@@ -1146,8 +1150,8 @@ packages:
oxc-transform-react:
optional: true
- '@vitest/mocker@5.1.0':
- resolution: {integrity: sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==}
+ '@vitest/mocker@5.1.1':
+ resolution: {integrity: sha512-b2OgTB4+3ImWIVafXKazJXwLKwQxUNnix6b3xUvUTMh7RyXlrtzoxfZr8aEz9zkHOMAS4K5lu3TvFWoiVeVTQg==}
peerDependencies:
msw: ^2.4.9 || ^3.0.0
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
@@ -1157,8 +1161,8 @@ packages:
vite:
optional: true
- '@vitest/spy@5.1.0':
- resolution: {integrity: sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==}
+ '@vitest/spy@5.1.1':
+ resolution: {integrity: sha512-6K8C6alQG1/Yc8/ZI22iJS7JEsxPdVzqtqDq+/xM4Z0mGVykemMVjLhqMy/q6/IHYG3kKD8hKSwRen/ZdyI9vQ==}
acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
@@ -1202,8 +1206,8 @@ packages:
argparse@2.0.1:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
- argue-cli@3.2.0:
- resolution: {integrity: sha512-VipTB0gXgGIFO2Rg9yEVN5wLt2AurJcZqDbgmYSwPwsykhLrQhs240/bfceev4w68lI8JshoOJIk9uW7tFzROw==}
+ argue-cli@3.2.1:
+ resolution: {integrity: sha512-h8QG03KSAympQnbZe0k5h/mnQCCkoKO9rVQ0L+F99+NNTV4vm18Lq70WwIKE0aLN3mM1EUf42l960bl6Dd0jOw==}
engines: {node: '>=22'}
aria-query@5.3.0:
@@ -1276,8 +1280,8 @@ packages:
brace-expansion@1.1.22:
resolution: {integrity: sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==}
- brace-expansion@5.0.13:
- resolution: {integrity: sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==}
+ brace-expansion@5.1.0:
+ resolution: {integrity: sha512-aa11Dv491GKnYqxaul3aRJ0szew7yMJMfZPnqD44NjGrZXoj62l41OEDDpdpC4eE2P88vBFfLuSyRhpG91NUvg==}
engines: {node: 20 || >=22}
bundle-require@5.1.0:
@@ -1286,8 +1290,8 @@ packages:
peerDependencies:
esbuild: '>=0.18'
- cac@7.1.0:
- resolution: {integrity: sha512-LMDU/U2yA4IPIY8KT0NsNPWEYZvAMkbgyspxJ6btJaYV+WMDOHAZCmB0lsTObiHaRS1V/ztKAl7+TSkTqXyeoA==}
+ cac@7.1.1:
+ resolution: {integrity: sha512-8zc+h51HxpodKsA7L4PpBNd+9qlrfuUcyUDE5a793BJfN4NZgwk7v9NmrY3ptZ+Sk0+ToigxSzkb47AsEgyizw==}
engines: {node: '>=20.19.0'}
cacheable@2.5.0:
@@ -1379,8 +1383,8 @@ packages:
css.escape@1.5.1:
resolution: {integrity: sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==}
- csstype@3.2.3:
- resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
+ csstype@3.2.4:
+ resolution: {integrity: sha512-PoKaoPzQapnEoqUSnHx1u6W6ku8CVEgKsnpmmzU3m1nwkidpPBQ8V/Zq2+bWNrsOKoKLwTGdbx6xF7BXP1zLVQ==}
data-urls@8.0.0:
resolution: {integrity: sha512-JQUCCK+/CAGbGGx618PlFZMXH81Jtj7t73CHv9dd/zVWvxgGT2zLFRjnKb+Ng46GIwcy+f7f88qd4duqllK+WQ==}
@@ -1769,8 +1773,8 @@ packages:
resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
engines: {node: '>= 4'}
- ignore@7.0.14:
- resolution: {integrity: sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==}
+ ignore@7.0.16:
+ resolution: {integrity: sha512-52N+Y4HRMOJmbLmr+DqO4iSRyyB7N52gm7PWCT6h0p978+oKbqHCB7gIJIwZvBUsjlSdWbrBFqUSmIFNZMpn0A==}
engines: {node: '>= 4'}
import-fresh@3.3.1:
@@ -2050,8 +2054,8 @@ packages:
lines-and-columns@1.2.4:
resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
- lint-staged@17.6.1:
- resolution: {integrity: sha512-3MXgVN7BERDR/6CXZs2fDHGc+r0+hlvGAa9wqMlVbIS6RVRuaPOnb5SnN6wMXulwfEy9DXVkMVUN/8cUlpPDnw==}
+ lint-staged@17.6.2:
+ resolution: {integrity: sha512-c/JaXaXmleubmKUwwp4OAcq55RV9Z3HTUNdqdqPh2srtmP9Of3bcR6o00GoWDUye+9JhMuoYkhYqAVPIOZKcsw==}
engines: {node: '>=22.22.1'}
hasBin: true
@@ -2094,12 +2098,8 @@ packages:
resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}
engines: {node: '>=4'}
- minimatch@10.2.6:
- resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==}
- engines: {node: 18 || 20 || >=22}
-
- minimatch@11.0.8:
- resolution: {integrity: sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==}
+ minimatch@11.0.9:
+ resolution: {integrity: sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==}
engines: {node: 20 || >=22}
minimatch@3.1.5:
@@ -2133,8 +2133,8 @@ packages:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
- object-inspect@1.13.4:
- resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
+ object-inspect@1.14.0:
+ resolution: {integrity: sha512-IVgHNlp/jwQX271+Xzoq9LZNTWXxZK+cEOrGBOBxXNbn7fapnZ+Ts6TVMgNOuAezwG2wdtnMX97tTPK6VEnuOQ==}
engines: {node: '>= 0.4'}
object-keys@1.1.1:
@@ -2341,8 +2341,8 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
- rollup@4.68.4:
- resolution: {integrity: sha512-5acdO1/M9urvHQuZVkoOt8JWQH6XxCnFnox1qodE39qkXaML67S2E7MhHDgx3pQYycM1A5dRJwahYMDLO9a3Yg==}
+ rollup@4.68.8:
+ resolution: {integrity: sha512-IHx4DeeTGhoAPke6p1Wlg0JEQFyQoZQQjEe1iD+nhEERk7eoeHK9zyOpVJiGc54Z1MCgI96rN1tD7Ttub8XyPA==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
@@ -2419,9 +2419,9 @@ packages:
resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==}
engines: {node: '>= 0.4'}
- source-map-js@1.2.2:
- resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}
- engines: {node: '>=0.10.0'}
+ source-map-js@1.2.4:
+ resolution: {integrity: sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==}
+ engines: {node: '>=6.0.0'}
std-env@4.3.0:
resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==}
@@ -2493,8 +2493,8 @@ packages:
thenify@3.3.1:
resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}
- tinybench@6.2.3:
- resolution: {integrity: sha512-Al01C2JIBnO2CXCAPbpAl6sUiOZHeThGtHYNTa51JRw9PyWOCdr+9Ong05R4qg/Sk3+H645E8ov1h2c58ityNw==}
+ tinybench@6.2.5:
+ resolution: {integrity: sha512-b/8GRMdnY4cqkfCLyaFpTGIv1qwfi3oT0mWaepwT++6Z/ZrYehNfZZ2JDKVLKGhNoEkS3IIB1ELtCT0XS5DtOA==}
engines: {node: '>=20.0.0'}
tinyexec@1.3.1:
@@ -2505,11 +2505,11 @@ packages:
resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
engines: {node: '>=12.0.0'}
- tldts-core@7.5.4:
- resolution: {integrity: sha512-9+4zWtKEDZ3V3FoZ1B97rv+5z5oqp7yeXGVze3CxgQ+CJro9do9DCPD00wxstYZDXDMXsurkBerFfiB6GYtPbA==}
+ tldts-core@7.5.5:
+ resolution: {integrity: sha512-rEJz/8cJFY/bdF354gl14yxavbrIbvM+FcbkYVQ6CSCMQTJdUFUIm39TTWSiGPvcpQh7/F6qHrD3SkwwdgtDCw==}
- tldts@7.5.4:
- resolution: {integrity: sha512-Rn2ABgjHZrA+jzqom5zhxA0hLohzYrIgfCPyhpTUxqsUrcsBYuab49LseR9waB9Jr8/MxdodvMHA91oRiGLO3Q==}
+ tldts@7.5.5:
+ resolution: {integrity: sha512-Hy6IImaWALzJOgCIss4gIFi4G0M9lqk95pFKCUVxQPZw+biZ1Pv6f28JpYgahpJB+BufA0HYsIU/aP/WIx3KRg==}
hasBin: true
tough-cookie@6.1.0:
@@ -2575,8 +2575,8 @@ packages:
resolution: {integrity: sha512-phPGCwqr2+Qo0fwniCE8e4pKnGu/yFb5nD5Y8bf0EEeiI5GklnACYA9GFy/DrAeRrKHXvHn+1SUsOWgJp6RO+g==}
engines: {node: '>= 0.4'}
- typescript-eslint@8.72.2:
- resolution: {integrity: sha512-c/+AKMW1KB81r28Sp0AAdcyXj5dzNmAsZFcsrxKbZTKmcBK2xIwBR31dcSYSDu3bKmzXe8GKrSxO+eDQ401Uzg==}
+ typescript-eslint@8.74.0:
+ resolution: {integrity: sha512-OsWQlsedt1ZpZXfZZMNK3m4SoQONFFcy4h/uRznsCeRfVuEic3gh4KGUs2pJJ5o0Jj0Jr7keUHQGN1Ns9aDw7Q==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
@@ -2599,8 +2599,8 @@ packages:
resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==}
engines: {node: '>= 0.4'}
- undici@8.12.4:
- resolution: {integrity: sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==}
+ undici@8.13.1:
+ resolution: {integrity: sha512-Kt7EaPjh0s93lJH/PmW3d5rhkcpUa6fS3jqZ7+YGxNd9L7Xy/i827xe4C2uhhq+pJebM4tQOl5AgHmW11G5Skg==}
engines: {node: '>=22.19.0'}
union@0.5.0:
@@ -2660,20 +2660,20 @@ packages:
yaml:
optional: true
- vitest@5.1.0:
- resolution: {integrity: sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==}
+ vitest@5.1.1:
+ resolution: {integrity: sha512-trVmzUFOSraCZcI3uZIMD5FqBh4atFkC/XuJP/IU7qtyQay0FCs3Ia+0QiQ2JJwGyWG/xrcBoJNel2+O7kEZ0g==}
engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0}
hasBin: true
peerDependencies:
'@edge-runtime/vm': '*'
'@opentelemetry/api': ^1.9.0
'@types/node': ^22.0.0 || >=24.0.0
- '@vitest/browser-playwright': 5.1.0
- '@vitest/browser-preview': 5.1.0
+ '@vitest/browser-playwright': 5.1.1
+ '@vitest/browser-preview': 5.1.1
'@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0
- '@vitest/coverage-istanbul': 5.1.0
- '@vitest/coverage-v8': 5.1.0
- '@vitest/ui': 5.1.0
+ '@vitest/coverage-istanbul': 5.1.1
+ '@vitest/coverage-v8': 5.1.1
+ '@vitest/ui': 5.1.1
happy-dom: '*'
jsdom: '*'
vite: ^6.4.0 || ^7.0.0 || ^8.0.0
@@ -2796,7 +2796,7 @@ snapshots:
'@babel/helper-validator-identifier@7.29.7': {}
- '@babel/runtime@7.29.14': {}
+ '@babel/runtime@7.29.15': {}
'@cacheable/memory@2.2.0':
dependencies:
@@ -3034,7 +3034,7 @@ snapshots:
dependencies:
'@eslint/object-schema': 3.0.5
debug: 4.4.3(supports-color@7.2.0)
- minimatch: 11.0.8
+ minimatch: 11.0.9
transitivePeerDependencies:
- supports-color
@@ -3071,7 +3071,7 @@ snapshots:
'@humanwhocodes/retry@0.4.3': {}
- '@interactive-video-labs/core@0.2.0': {}
+ '@interactive-video-labs/core@0.3.1': {}
'@isaacs/nonrecursive-glob-match@1.1.0': {}
@@ -3162,82 +3162,82 @@ snapshots:
'@rolldown/pluginutils@1.1.1': {}
- '@rollup/rollup-android-arm-eabi@4.68.4':
+ '@rollup/rollup-android-arm-eabi@4.68.8':
optional: true
- '@rollup/rollup-android-arm64@4.68.4':
+ '@rollup/rollup-android-arm64@4.68.8':
optional: true
- '@rollup/rollup-android-x64@4.68.4':
+ '@rollup/rollup-android-x64@4.68.8':
optional: true
- '@rollup/rollup-darwin-arm64@4.68.4':
+ '@rollup/rollup-darwin-arm64@4.68.8':
optional: true
- '@rollup/rollup-darwin-x64@4.68.4':
+ '@rollup/rollup-darwin-x64@4.68.8':
optional: true
- '@rollup/rollup-freebsd-arm64@4.68.4':
+ '@rollup/rollup-freebsd-arm64@4.68.8':
optional: true
- '@rollup/rollup-freebsd-x64@4.68.4':
+ '@rollup/rollup-freebsd-x64@4.68.8':
optional: true
- '@rollup/rollup-linux-arm-gnueabihf@4.68.4':
+ '@rollup/rollup-linux-arm-gnueabihf@4.68.8':
optional: true
- '@rollup/rollup-linux-arm-musleabihf@4.68.4':
+ '@rollup/rollup-linux-arm-musleabihf@4.68.8':
optional: true
- '@rollup/rollup-linux-arm64-gnu@4.68.4':
+ '@rollup/rollup-linux-arm64-gnu@4.68.8':
optional: true
- '@rollup/rollup-linux-arm64-musl@4.68.4':
+ '@rollup/rollup-linux-arm64-musl@4.68.8':
optional: true
- '@rollup/rollup-linux-loong64-gnu@4.68.4':
+ '@rollup/rollup-linux-loong64-gnu@4.68.8':
optional: true
- '@rollup/rollup-linux-loong64-musl@4.68.4':
+ '@rollup/rollup-linux-loong64-musl@4.68.8':
optional: true
- '@rollup/rollup-linux-ppc64-gnu@4.68.4':
+ '@rollup/rollup-linux-ppc64-gnu@4.68.8':
optional: true
- '@rollup/rollup-linux-ppc64-musl@4.68.4':
+ '@rollup/rollup-linux-ppc64-musl@4.68.8':
optional: true
- '@rollup/rollup-linux-riscv64-gnu@4.68.4':
+ '@rollup/rollup-linux-riscv64-gnu@4.68.8':
optional: true
- '@rollup/rollup-linux-riscv64-musl@4.68.4':
+ '@rollup/rollup-linux-riscv64-musl@4.68.8':
optional: true
- '@rollup/rollup-linux-s390x-gnu@4.68.4':
+ '@rollup/rollup-linux-s390x-gnu@4.68.8':
optional: true
- '@rollup/rollup-linux-x64-gnu@4.68.4':
+ '@rollup/rollup-linux-x64-gnu@4.68.8':
optional: true
- '@rollup/rollup-linux-x64-musl@4.68.4':
+ '@rollup/rollup-linux-x64-musl@4.68.8':
optional: true
- '@rollup/rollup-openbsd-x64@4.68.4':
+ '@rollup/rollup-openbsd-x64@4.68.8':
optional: true
- '@rollup/rollup-openharmony-arm64@4.68.4':
+ '@rollup/rollup-openharmony-arm64@4.68.8':
optional: true
- '@rollup/rollup-win32-arm64-msvc@4.68.4':
+ '@rollup/rollup-win32-arm64-msvc@4.68.8':
optional: true
- '@rollup/rollup-win32-ia32-msvc@4.68.4':
+ '@rollup/rollup-win32-ia32-msvc@4.68.8':
optional: true
- '@rollup/rollup-win32-x64-gnu@4.68.4':
+ '@rollup/rollup-win32-x64-gnu@4.68.8':
optional: true
- '@rollup/rollup-win32-x64-msvc@4.68.4':
+ '@rollup/rollup-win32-x64-msvc@4.68.8':
optional: true
'@simple-libs/child-process-utils@2.0.0':
@@ -3249,7 +3249,7 @@ snapshots:
'@testing-library/dom@10.4.2':
dependencies:
'@babel/code-frame': 7.29.7
- '@babel/runtime': 7.29.14
+ '@babel/runtime': 7.29.15
'@types/aria-query': 5.0.4
aria-query: 5.3.0
dom-accessibility-api: 0.5.16
@@ -3257,7 +3257,7 @@ snapshots:
picocolors: 1.1.1
pretty-format: 27.5.1
- '@testing-library/jest-dom@7.0.1(@testing-library/dom@10.4.2)(vitest@5.1.0(jsdom@31.0.1)(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))':
+ '@testing-library/jest-dom@7.0.1(@testing-library/dom@10.4.2)(vitest@5.1.1(jsdom@31.0.1)(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)))':
dependencies:
'@adobe/css-tools': 4.5.0
'@testing-library/dom': 10.4.2
@@ -3267,11 +3267,11 @@ snapshots:
picocolors: 1.1.1
redent: 3.0.0
optionalDependencies:
- vitest: 5.1.0(jsdom@31.0.1)(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))
+ vitest: 5.1.1(jsdom@31.0.1)(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))
'@testing-library/react@16.3.3(@testing-library/dom@10.4.2)(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
dependencies:
- '@babel/runtime': 7.29.14
+ '@babel/runtime': 7.29.15
'@testing-library/dom': 10.4.2
react: 19.3.1
react-dom: 19.3.1(react@19.3.1)
@@ -3300,97 +3300,103 @@ snapshots:
'@types/react@19.3.0':
dependencies:
- csstype: 3.2.3
+ csstype: 3.2.4
- '@typescript-eslint/eslint-plugin@8.72.2(@typescript-eslint/parser@8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0))(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)':
+ '@typescript-eslint/eslint-plugin@8.74.0(@typescript-eslint/parser@8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2))(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)':
dependencies:
'@eslint-community/regexpp': 4.12.3
- '@typescript-eslint/parser': 8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)
- '@typescript-eslint/scope-manager': 8.72.2
- '@typescript-eslint/type-utils': 8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)
- '@typescript-eslint/utils': 8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)
- '@typescript-eslint/visitor-keys': 8.72.2
+ '@typescript-eslint/parser': 8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)
+ '@typescript-eslint/scope-manager': 8.74.0
+ '@typescript-eslint/type-utils': 8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)
+ '@typescript-eslint/utils': 8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)
+ '@typescript-eslint/visitor-keys': 8.74.0
eslint: 10.15.0(jiti@2.7.0)(supports-color@7.2.0)
- ignore: 7.0.14
+ ignore: 7.0.16
natural-compare: 1.4.0
ts-api-utils: 2.5.0(@typescript/typescript6@6.0.2)
typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
+ - '@typescript/native'
- supports-color
- '@typescript-eslint/parser@8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)':
+ '@typescript-eslint/parser@8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)':
dependencies:
- '@typescript-eslint/scope-manager': 8.72.2
- '@typescript-eslint/types': 8.72.2
- '@typescript-eslint/typescript-estree': 8.72.2(@typescript/typescript6@6.0.2)(supports-color@7.2.0)
- '@typescript-eslint/visitor-keys': 8.72.2
+ '@typescript-eslint/scope-manager': 8.74.0
+ '@typescript-eslint/types': 8.74.0
+ '@typescript-eslint/typescript-estree': 8.74.0(@typescript/typescript6@6.0.2)(supports-color@7.2.0)(typescript@7.0.2)
+ '@typescript-eslint/visitor-keys': 8.74.0
debug: 4.4.3(supports-color@7.2.0)
eslint: 10.15.0(jiti@2.7.0)(supports-color@7.2.0)
typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
+ - '@typescript/native'
- supports-color
- '@typescript-eslint/project-service@8.72.2(@typescript/typescript6@6.0.2)(supports-color@7.2.0)':
+ '@typescript-eslint/project-service@8.74.0(@typescript/typescript6@6.0.2)(supports-color@7.2.0)':
dependencies:
- '@typescript-eslint/tsconfig-utils': 8.72.2(@typescript/typescript6@6.0.2)
- '@typescript-eslint/types': 8.72.2
+ '@typescript-eslint/tsconfig-utils': 8.74.0(@typescript/typescript6@6.0.2)
+ '@typescript-eslint/types': 8.74.0
debug: 4.4.3(supports-color@7.2.0)
typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/scope-manager@8.72.2':
+ '@typescript-eslint/scope-manager@8.74.0':
dependencies:
- '@typescript-eslint/types': 8.72.2
- '@typescript-eslint/visitor-keys': 8.72.2
+ '@typescript-eslint/types': 8.74.0
+ '@typescript-eslint/visitor-keys': 8.74.0
- '@typescript-eslint/tsconfig-utils@8.72.2(@typescript/typescript6@6.0.2)':
+ '@typescript-eslint/tsconfig-utils@8.74.0(@typescript/typescript6@6.0.2)':
dependencies:
typescript: '@typescript/typescript6@6.0.2'
- '@typescript-eslint/type-utils@8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)':
+ '@typescript-eslint/type-utils@8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)':
dependencies:
- '@typescript-eslint/types': 8.72.2
- '@typescript-eslint/typescript-estree': 8.72.2(@typescript/typescript6@6.0.2)(supports-color@7.2.0)
- '@typescript-eslint/utils': 8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)
+ '@typescript-eslint/types': 8.74.0
+ '@typescript-eslint/typescript-estree': 8.74.0(@typescript/typescript6@6.0.2)(supports-color@7.2.0)(typescript@7.0.2)
+ '@typescript-eslint/utils': 8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)
debug: 4.4.3(supports-color@7.2.0)
eslint: 10.15.0(jiti@2.7.0)(supports-color@7.2.0)
ts-api-utils: 2.5.0(@typescript/typescript6@6.0.2)
typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
+ - '@typescript/native'
- supports-color
- '@typescript-eslint/types@8.72.2': {}
+ '@typescript-eslint/types@8.74.0': {}
- '@typescript-eslint/typescript-estree@8.72.2(@typescript/typescript6@6.0.2)(supports-color@7.2.0)':
+ '@typescript-eslint/typescript-estree@8.74.0(@typescript/typescript6@6.0.2)(supports-color@7.2.0)(typescript@7.0.2)':
dependencies:
- '@typescript-eslint/project-service': 8.72.2(@typescript/typescript6@6.0.2)(supports-color@7.2.0)
- '@typescript-eslint/tsconfig-utils': 8.72.2(@typescript/typescript6@6.0.2)
- '@typescript-eslint/types': 8.72.2
- '@typescript-eslint/visitor-keys': 8.72.2
+ '@typescript-eslint/project-service': 8.74.0(@typescript/typescript6@6.0.2)(supports-color@7.2.0)
+ '@typescript-eslint/tsconfig-utils': 8.74.0(@typescript/typescript6@6.0.2)
+ '@typescript-eslint/types': 8.74.0
+ '@typescript-eslint/visitor-keys': 8.74.0
debug: 4.4.3(supports-color@7.2.0)
- minimatch: 10.2.6
+ minimatch: 11.0.9
semver: 7.8.6
tinyglobby: 0.2.17
ts-api-utils: 2.5.0(@typescript/typescript6@6.0.2)
typescript: '@typescript/typescript6@6.0.2'
+ optionalDependencies:
+ '@typescript/native': typescript@7.0.2
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/utils@8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)':
+ '@typescript-eslint/utils@8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)':
dependencies:
'@eslint-community/eslint-utils': 4.10.1(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))
- '@typescript-eslint/scope-manager': 8.72.2
- '@typescript-eslint/types': 8.72.2
- '@typescript-eslint/typescript-estree': 8.72.2(@typescript/typescript6@6.0.2)(supports-color@7.2.0)
+ '@typescript-eslint/scope-manager': 8.74.0
+ '@typescript-eslint/types': 8.74.0
+ '@typescript-eslint/typescript-estree': 8.74.0(@typescript/typescript6@6.0.2)(supports-color@7.2.0)(typescript@7.0.2)
eslint: 10.15.0(jiti@2.7.0)(supports-color@7.2.0)
typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
+ - '@typescript/native'
- supports-color
- '@typescript-eslint/visitor-keys@8.72.2':
+ '@typescript-eslint/visitor-keys@8.74.0':
dependencies:
- '@typescript-eslint/types': 8.72.2
+ '@typescript-eslint/types': 8.74.0
eslint-visitor-keys: 5.0.1
'@typescript/typescript-aix-ppc64@7.0.2':
@@ -3462,16 +3468,16 @@ snapshots:
'@rolldown/pluginutils': 1.1.1
vite: 8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)
- '@vitest/mocker@5.1.0(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))':
+ '@vitest/mocker@5.1.1(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))':
dependencies:
'@jridgewell/trace-mapping': 0.3.31
- '@vitest/spy': 5.1.0
+ '@vitest/spy': 5.1.1
estree-walker: 3.0.3
magic-string: 1.4.5
optionalDependencies:
vite: 8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)
- '@vitest/spy@5.1.0': {}
+ '@vitest/spy@5.1.1': {}
acorn-jsx@5.3.2(acorn@8.19.0):
dependencies:
@@ -3509,7 +3515,7 @@ snapshots:
argparse@2.0.1: {}
- argue-cli@3.2.0: {}
+ argue-cli@3.2.1: {}
aria-query@5.3.0:
dependencies:
@@ -3605,7 +3611,7 @@ snapshots:
balanced-match: 1.0.2
concat-map: 0.0.1
- brace-expansion@5.0.13:
+ brace-expansion@5.1.0:
dependencies:
balanced-match: 4.0.4
@@ -3614,7 +3620,7 @@ snapshots:
esbuild: 0.28.2
load-tsconfig: 0.2.5
- cac@7.1.0: {}
+ cac@7.1.1: {}
cacheable@2.5.0:
dependencies:
@@ -3685,7 +3691,7 @@ snapshots:
conventional-commits-parser@7.1.4:
dependencies:
'@simple-libs/stream-utils': 2.0.0
- argue-cli: 3.2.0
+ argue-cli: 3.2.1
corser@2.0.1: {}
@@ -3706,7 +3712,7 @@ snapshots:
css.escape@1.5.1: {}
- csstype@3.2.3: {}
+ csstype@3.2.4: {}
data-urls@8.0.0:
dependencies:
@@ -3788,7 +3794,7 @@ snapshots:
es-errors: 1.3.0
es-object-atoms: 1.1.2
is-callable: 1.2.7
- object-inspect: 1.13.4
+ object-inspect: 1.14.0
es-abstract@1.24.2:
dependencies:
@@ -3827,7 +3833,7 @@ snapshots:
is-typed-array: 1.1.15
is-weakref: 1.1.1
math-intrinsics: 1.1.0
- object-inspect: 1.13.4
+ object-inspect: 1.14.0
object-keys: 1.1.1
object.assign: 4.1.7
own-keys: 1.0.2
@@ -4006,7 +4012,7 @@ snapshots:
imurmurhash: 0.1.4
is-glob: 4.0.3
json-stable-stringify-without-jsonify: 1.0.1
- minimatch: 11.0.8
+ minimatch: 11.0.9
natural-compare: 1.4.0
optionator: 0.9.4
optionalDependencies:
@@ -4067,7 +4073,7 @@ snapshots:
dependencies:
magic-string: 0.30.21
mlly: 1.8.2
- rollup: 4.68.4
+ rollup: 4.68.8
flat-cache@6.1.23:
dependencies:
@@ -4226,7 +4232,7 @@ snapshots:
ignore@5.3.2: {}
- ignore@7.0.14: {}
+ ignore@7.0.16: {}
import-fresh@3.3.1:
dependencies:
@@ -4407,7 +4413,7 @@ snapshots:
parse5-parser-stream: 8.1.1
saxes: 6.0.0
tough-cookie: 6.1.0
- undici: 8.12.4
+ undici: 8.13.1
w3c-xmlserializer: 6.0.0
webidl-conversions: 8.0.1
whatwg-mimetype: 5.0.0
@@ -4493,7 +4499,7 @@ snapshots:
lines-and-columns@1.2.4: {}
- lint-staged@17.6.1:
+ lint-staged@17.6.2:
dependencies:
picomatch: 4.0.7
string-argv: 0.4.0
@@ -4529,14 +4535,10 @@ snapshots:
min-indent@1.0.1: {}
- minimatch@10.2.6:
- dependencies:
- brace-expansion: 5.0.13
-
- minimatch@11.0.8:
+ minimatch@11.0.9:
dependencies:
'@isaacs/nonrecursive-glob-match': 1.1.0
- brace-expansion: 5.0.13
+ brace-expansion: 5.1.0
minimatch@3.1.5:
dependencies:
@@ -4572,7 +4574,7 @@ snapshots:
object-assign@4.1.1: {}
- object-inspect@1.13.4: {}
+ object-inspect@1.14.0: {}
object-keys@1.1.1: {}
@@ -4694,7 +4696,7 @@ snapshots:
dependencies:
nanoid: 3.3.20
picocolors: 1.1.1
- source-map-js: 1.2.2
+ source-map-js: 1.2.4
prelude-ls@1.2.1: {}
@@ -4804,36 +4806,36 @@ snapshots:
'@rolldown/binding-win32-arm64-msvc': 1.2.19
'@rolldown/binding-win32-x64-msvc': 1.2.19
- rollup@4.68.4:
+ rollup@4.68.8:
dependencies:
'@types/estree': 1.0.10
optionalDependencies:
- '@rollup/rollup-android-arm-eabi': 4.68.4
- '@rollup/rollup-android-arm64': 4.68.4
- '@rollup/rollup-android-x64': 4.68.4
- '@rollup/rollup-darwin-arm64': 4.68.4
- '@rollup/rollup-darwin-x64': 4.68.4
- '@rollup/rollup-freebsd-arm64': 4.68.4
- '@rollup/rollup-freebsd-x64': 4.68.4
- '@rollup/rollup-linux-arm-gnueabihf': 4.68.4
- '@rollup/rollup-linux-arm-musleabihf': 4.68.4
- '@rollup/rollup-linux-arm64-gnu': 4.68.4
- '@rollup/rollup-linux-arm64-musl': 4.68.4
- '@rollup/rollup-linux-loong64-gnu': 4.68.4
- '@rollup/rollup-linux-loong64-musl': 4.68.4
- '@rollup/rollup-linux-ppc64-gnu': 4.68.4
- '@rollup/rollup-linux-ppc64-musl': 4.68.4
- '@rollup/rollup-linux-riscv64-gnu': 4.68.4
- '@rollup/rollup-linux-riscv64-musl': 4.68.4
- '@rollup/rollup-linux-s390x-gnu': 4.68.4
- '@rollup/rollup-linux-x64-gnu': 4.68.4
- '@rollup/rollup-linux-x64-musl': 4.68.4
- '@rollup/rollup-openbsd-x64': 4.68.4
- '@rollup/rollup-openharmony-arm64': 4.68.4
- '@rollup/rollup-win32-arm64-msvc': 4.68.4
- '@rollup/rollup-win32-ia32-msvc': 4.68.4
- '@rollup/rollup-win32-x64-gnu': 4.68.4
- '@rollup/rollup-win32-x64-msvc': 4.68.4
+ '@rollup/rollup-android-arm-eabi': 4.68.8
+ '@rollup/rollup-android-arm64': 4.68.8
+ '@rollup/rollup-android-x64': 4.68.8
+ '@rollup/rollup-darwin-arm64': 4.68.8
+ '@rollup/rollup-darwin-x64': 4.68.8
+ '@rollup/rollup-freebsd-arm64': 4.68.8
+ '@rollup/rollup-freebsd-x64': 4.68.8
+ '@rollup/rollup-linux-arm-gnueabihf': 4.68.8
+ '@rollup/rollup-linux-arm-musleabihf': 4.68.8
+ '@rollup/rollup-linux-arm64-gnu': 4.68.8
+ '@rollup/rollup-linux-arm64-musl': 4.68.8
+ '@rollup/rollup-linux-loong64-gnu': 4.68.8
+ '@rollup/rollup-linux-loong64-musl': 4.68.8
+ '@rollup/rollup-linux-ppc64-gnu': 4.68.8
+ '@rollup/rollup-linux-ppc64-musl': 4.68.8
+ '@rollup/rollup-linux-riscv64-gnu': 4.68.8
+ '@rollup/rollup-linux-riscv64-musl': 4.68.8
+ '@rollup/rollup-linux-s390x-gnu': 4.68.8
+ '@rollup/rollup-linux-x64-gnu': 4.68.8
+ '@rollup/rollup-linux-x64-musl': 4.68.8
+ '@rollup/rollup-openbsd-x64': 4.68.8
+ '@rollup/rollup-openharmony-arm64': 4.68.8
+ '@rollup/rollup-win32-arm64-msvc': 4.68.8
+ '@rollup/rollup-win32-ia32-msvc': 4.68.8
+ '@rollup/rollup-win32-x64-gnu': 4.68.8
+ '@rollup/rollup-win32-x64-msvc': 4.68.8
fsevents: 2.3.3
safe-array-concat@1.1.4:
@@ -4902,32 +4904,32 @@ snapshots:
side-channel-list@1.0.1:
dependencies:
es-errors: 1.3.0
- object-inspect: 1.13.4
+ object-inspect: 1.14.0
side-channel-map@1.0.1:
dependencies:
call-bound: 1.0.4
es-errors: 1.3.0
get-intrinsic: 1.3.0
- object-inspect: 1.13.4
+ object-inspect: 1.14.0
side-channel-weakmap@1.0.2:
dependencies:
call-bound: 1.0.4
es-errors: 1.3.0
get-intrinsic: 1.3.0
- object-inspect: 1.13.4
+ object-inspect: 1.14.0
side-channel-map: 1.0.1
side-channel@1.1.1:
dependencies:
es-errors: 1.3.0
- object-inspect: 1.13.4
+ object-inspect: 1.14.0
side-channel-list: 1.0.1
side-channel-map: 1.0.1
side-channel-weakmap: 1.0.2
- source-map-js@1.2.2: {}
+ source-map-js@1.2.4: {}
std-env@4.3.0: {}
@@ -5031,7 +5033,7 @@ snapshots:
dependencies:
any-promise: 1.3.0
- tinybench@6.2.3: {}
+ tinybench@6.2.5: {}
tinyexec@1.3.1: {}
@@ -5040,15 +5042,15 @@ snapshots:
fdir: 6.5.0(picomatch@4.0.7)
picomatch: 4.0.7
- tldts-core@7.5.4: {}
+ tldts-core@7.5.5: {}
- tldts@7.5.4:
+ tldts@7.5.5:
dependencies:
- tldts-core: 7.5.4
+ tldts-core: 7.5.5
tough-cookie@6.1.0:
dependencies:
- tldts: 7.5.4
+ tldts: 7.5.5
tr46@7.0.0:
dependencies:
@@ -5068,7 +5070,7 @@ snapshots:
tsup@9.0.0(@typescript/typescript6@6.0.2)(jiti@2.7.0)(postcss@8.5.33)(yaml@2.9.1):
dependencies:
bundle-require: 5.1.0(esbuild@0.28.2)
- cac: 7.1.0
+ cac: 7.1.1
chokidar: 5.0.0
consola: 3.4.2
esbuild: 0.28.2
@@ -5078,8 +5080,8 @@ snapshots:
picocolors: 1.1.1
postcss-load-config: 6.0.1(jiti@2.7.0)(postcss@8.5.33)(yaml@2.9.1)
resolve-from: 5.0.0
- rollup: 4.68.4
- source-map-js: 1.2.2
+ rollup: 4.68.8
+ source-map-js: 1.2.4
sucrase: 3.35.1
tinyexec: 1.3.1
tinyglobby: 0.2.17
@@ -5128,15 +5130,16 @@ snapshots:
possible-typed-array-names: 1.1.0
reflect.getprototypeof: 1.0.10
- typescript-eslint@8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0):
+ typescript-eslint@8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2):
dependencies:
- '@typescript-eslint/eslint-plugin': 8.72.2(@typescript-eslint/parser@8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0))(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)
- '@typescript-eslint/parser': 8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)
- '@typescript-eslint/typescript-estree': 8.72.2(@typescript/typescript6@6.0.2)(supports-color@7.2.0)
- '@typescript-eslint/utils': 8.72.2(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)
+ '@typescript-eslint/eslint-plugin': 8.74.0(@typescript-eslint/parser@8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2))(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)
+ '@typescript-eslint/parser': 8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)
+ '@typescript-eslint/typescript-estree': 8.74.0(@typescript/typescript6@6.0.2)(supports-color@7.2.0)(typescript@7.0.2)
+ '@typescript-eslint/utils': 8.74.0(@typescript/typescript6@6.0.2)(eslint@10.15.0(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@7.0.2)
eslint: 10.15.0(jiti@2.7.0)(supports-color@7.2.0)
typescript: '@typescript/typescript6@6.0.2'
transitivePeerDependencies:
+ - '@typescript/native'
- supports-color
typescript@6.0.3: {}
@@ -5173,7 +5176,7 @@ snapshots:
has-symbols: 1.1.0
which-boxed-primitive: 1.1.1
- undici@8.12.4: {}
+ undici@8.13.1: {}
union@0.5.0:
dependencies:
@@ -5200,10 +5203,10 @@ snapshots:
jiti: 2.7.0
yaml: 2.9.1
- vitest@5.1.0(jsdom@31.0.1)(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)):
+ vitest@5.1.1(jsdom@31.0.1)(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)):
dependencies:
'@types/chai': 5.2.3
- '@vitest/mocker': 5.1.0(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))
+ '@vitest/mocker': 5.1.1(vite@8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1))
chai: 6.3.0
es-module-lexer: 2.3.2
expect-type: 1.4.0
@@ -5211,7 +5214,7 @@ snapshots:
obug: 3.0.0
picomatch: 4.0.7
std-env: 4.3.0
- tinybench: 6.2.3
+ tinybench: 6.2.5
tinyexec: 1.3.1
tinyglobby: 0.2.17
vite: 8.3.8(esbuild@0.28.2)(jiti@2.7.0)(yaml@2.9.1)
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 5ed0b5a..db76188 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -1,2 +1,4 @@
allowBuilds:
esbuild: true
+minimumReleaseAgeExclude:
+ - '@interactive-video-labs/core@0.3.0 || 0.3.1'
diff --git a/src/index.tsx b/src/index.tsx
index 8a82b35..4ec6402 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,22 +1,44 @@
-import React, { useEffect, useRef } from 'react';
-import {
- IVLabsPlayer,
- PlayerConfig,
- CuePoint,
- Translations,
+import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';
+import { IVLabsPlayer } from '@interactive-video-labs/core';
+import type {
AnalyticsEvent,
AnalyticsPayload,
+ CuePoint,
+ LiveSyncEvent,
+ LiveSyncStatusEvent,
+ LiveSyncClientMessage,
+ PlayerConfig,
+ PlayerState,
+ Translations,
} from '@interactive-video-labs/core';
-export interface InteractiveVideoProps
- extends Omit {
- videoUrl: string; // Make videoUrl mandatory
+export interface InteractiveVideoProps extends Omit<
+ PlayerConfig,
+ 'videoUrl' | 'cues' | 'translations'
+> {
+ videoUrl: string;
onAnalyticsEvent?: (
event: AnalyticsEvent,
payload?: AnalyticsPayload
) => void;
- cues?: CuePoint[]; // Explicitly use CuePoint
- translations?: Translations; // Explicitly use Translations
+ onLiveSyncEvent?: (event: LiveSyncEvent) => void;
+ onLiveSyncStatus?: (event: LiveSyncStatusEvent) => void;
+ cues?: CuePoint[];
+ translations?: Record;
+}
+
+export interface InteractiveVideoHandle {
+ getPlayer: () => IVLabsPlayer | null;
+ play: () => void;
+ pause: () => void;
+ syncToLive: () => void;
+ getState: () => PlayerState | undefined;
+ setLocale: (locale: string) => void;
+ loadCues: (cues: CuePoint[]) => void;
+ loadTranslations: (locale: string, translations: Translations) => void;
+ getDecisionHistory: () => ReturnType;
+ clearDecisionHistory: () => ReturnType;
+ sendLiveSyncMessage: (message: LiveSyncClientMessage) => Promise;
}
const generateUniqueId = () =>
@@ -33,7 +55,7 @@ const generateUniqueId = () =>
* @param {string} props.videoUrl - The URL of the video to be played. This is a mandatory prop.
* @param {(event: AnalyticsEvent, payload?: AnalyticsPayload) => void} [props.onAnalyticsEvent] - Optional callback for analytics events.
* @param {CuePoint[]} [props.cues] - Optional array of cue points to load into the player.
- * @param {Translations} [props.translations] - Optional translations object for player localization.
+ * @param {Record} [props.translations] - Optional locale-to-translations map.
* @param {Omit} [props.restOptions] - Any other valid PlayerConfig options
* that are not `videoUrl`, `cues`, or `translations`.
*
@@ -47,78 +69,149 @@ const generateUniqueId = () =>
* />
* ```
*/
-export const InteractiveVideo: React.FC = ({
- videoUrl,
- onAnalyticsEvent,
- cues,
- translations,
- ...restOptions
-}) => {
- const containerRef = useRef(null);
- const playerRef = useRef(null);
- const uniqueIdRef = useRef(generateUniqueId());
-
- useEffect(() => {
- if (!containerRef.current) return;
-
- const playerConfig: PlayerConfig = {
+export const InteractiveVideo = forwardRef<
+ InteractiveVideoHandle,
+ InteractiveVideoProps
+>(
+ (
+ {
videoUrl,
- ...restOptions,
- };
+ onAnalyticsEvent,
+ onLiveSyncEvent,
+ onLiveSyncStatus,
+ cues,
+ translations,
+ ...restOptions
+ },
+ ref
+ ) => {
+ const containerRef = useRef(null);
+ const playerRef = useRef(null);
+ const uniqueIdRef = useRef(generateUniqueId());
+ const analyticsCallbackRef = useRef(onAnalyticsEvent);
+ const liveSyncEventCallbackRef = useRef(onLiveSyncEvent);
+ const liveSyncStatusCallbackRef = useRef(onLiveSyncStatus);
+
+ analyticsCallbackRef.current = onAnalyticsEvent;
+ liveSyncEventCallbackRef.current = onLiveSyncEvent;
+ liveSyncStatusCallbackRef.current = onLiveSyncStatus;
+
+ useEffect(() => {
+ if (!containerRef.current) return;
+
+ const playerConfig: PlayerConfig = {
+ videoUrl,
+ cues,
+ translations,
+ ...restOptions,
+ };
- try {
- const player = new IVLabsPlayer(uniqueIdRef.current, playerConfig);
- playerRef.current = player;
+ try {
+ const player = new IVLabsPlayer(uniqueIdRef.current, playerConfig);
+ playerRef.current = player;
- if (onAnalyticsEvent) {
const events: AnalyticsEvent[] = [
'PLAYER_LOADED',
'VIDEO_STARTED',
'VIDEO_PAUSED',
- 'VIDEO_ENDED',
+ 'CUE_LOADED',
'CUE_TRIGGERED',
+ 'INTERACTION_SHOWN',
'INTERACTION_COMPLETED',
+ 'VIDEO_ENDED',
+ 'PLAYER_DESTROYED',
'ERROR',
+ 'onCueEnter',
+ 'onPromptShown',
+ 'onInteractionSelected',
+ 'onBranchJump',
+ 'onSessionEnd',
];
events.forEach((event) => {
player.on(event, (payload?: AnalyticsPayload) =>
- onAnalyticsEvent(event, payload)
+ analyticsCallbackRef.current?.(event, payload)
);
});
+
+ player.onLiveSyncEvent((event) =>
+ liveSyncEventCallbackRef.current?.(event)
+ );
+ player.onLiveSyncStatus((event) =>
+ liveSyncStatusCallbackRef.current?.(event)
+ );
+ } catch (error) {
+ console.error('Error initializing IVLabsPlayer:', error);
+ }
+
+ return () => {
+ if (playerRef.current) {
+ playerRef.current.destroy();
+ playerRef.current = null;
+ }
+ };
+ }, [
+ videoUrl,
+ cues,
+ translations,
+ restOptions.subtitlesUrl,
+ restOptions.locale,
+ restOptions.autoplay,
+ restOptions.loop,
+ restOptions.debugger,
+ restOptions.analyticsOptions,
+ restOptions.interactions,
+ restOptions.initialState,
+ restOptions.decisionAdapterType,
+ restOptions.decisionAdapter,
+ restOptions.liveSync,
+ ]);
+
+ useEffect(() => {
+ if (playerRef.current && cues) {
+ playerRef.current.loadCues(cues);
}
- } catch (error) {
- console.error('Error initializing IVLabsPlayer:', error);
- }
-
- return () => {
- if (playerRef.current) {
- playerRef.current.destroy();
- playerRef.current = null;
+ }, [cues]);
+
+ useEffect(() => {
+ if (playerRef.current && translations) {
+ Object.entries(translations).forEach(([locale, localeTranslations]) => {
+ playerRef.current?.loadTranslations(locale, localeTranslations);
+ });
}
- };
- }, [videoUrl, onAnalyticsEvent, restOptions]);
-
- useEffect(() => {
- if (playerRef.current && cues) {
- playerRef.current.loadCues(cues);
- }
- }, [cues]);
-
- useEffect(() => {
- if (playerRef.current && translations) {
- const locale = restOptions.locale || 'en';
- playerRef.current.loadTranslations(locale, translations);
- }
- }, [translations, restOptions.locale]);
-
- return (
-
- {/* The IVLabsPlayer will inject the video element here */}
-
- );
-};
+ }, [translations]);
+
+ useImperativeHandle(ref, () => ({
+ getPlayer: () => playerRef.current,
+ play: () => playerRef.current?.play(),
+ pause: () => playerRef.current?.pause(),
+ syncToLive: () => playerRef.current?.syncToLive(),
+ getState: () => playerRef.current?.getState(),
+ setLocale: (locale: string) => playerRef.current?.setLocale(locale),
+ loadCues: (nextCues: CuePoint[]) => playerRef.current?.loadCues(nextCues),
+ loadTranslations: (locale: string, localeTranslations: Translations) =>
+ playerRef.current?.loadTranslations(locale, localeTranslations),
+ getDecisionHistory: () =>
+ playerRef.current?.getDecisionHistory() ?? Promise.resolve([]),
+ clearDecisionHistory: () =>
+ playerRef.current?.clearDecisionHistory() ?? Promise.resolve(),
+ sendLiveSyncMessage: (message: LiveSyncClientMessage) =>
+ playerRef.current?.sendLiveSyncMessage(message) ??
+ Promise.reject(
+ new Error('Live sync is not configured for this player.')
+ ),
+ }));
+
+ return (
+
+ {/* The IVLabsPlayer will inject the video element here */}
+
+ );
+ }
+);
+
+InteractiveVideo.displayName = 'InteractiveVideo';
diff --git a/test/InteractiveVideo.test.tsx b/test/InteractiveVideo.test.tsx
index 41e3633..12f46ad 100644
--- a/test/InteractiveVideo.test.tsx
+++ b/test/InteractiveVideo.test.tsx
@@ -8,6 +8,8 @@ import { IVLabsPlayer } from '@interactive-video-labs/core';
const mockLoadCues = vi.fn();
const mockLoadTranslations = vi.fn();
const mockOn = vi.fn();
+const mockOnLiveSyncEvent = vi.fn();
+const mockOnLiveSyncStatus = vi.fn();
const mockDestroy = vi.fn();
vi.mock('@interactive-video-labs/core', () => ({
@@ -16,6 +18,8 @@ vi.mock('@interactive-video-labs/core', () => ({
loadCues: mockLoadCues,
loadTranslations: mockLoadTranslations,
on: mockOn,
+ onLiveSyncEvent: mockOnLiveSyncEvent,
+ onLiveSyncStatus: mockOnLiveSyncStatus,
destroy: mockDestroy,
};
}),
@@ -65,14 +69,19 @@ describe('InteractiveVideo', () => {
expect(playerCall).toBeDefined();
if (playerCall) {
expect(playerCall[0]).toMatch(/^ivlabs-player-/);
- expect(playerCall[1]).toEqual({ videoUrl: videoSrc, ...options });
+ expect(playerCall[1]).toEqual({
+ videoUrl: videoSrc,
+ cues,
+ translations,
+ ...options,
+ });
}
expect(mockLoadCues).toHaveBeenCalledTimes(1);
expect(mockLoadCues).toHaveBeenCalledWith(cues);
expect(mockLoadTranslations).toHaveBeenCalledTimes(1);
- expect(mockLoadTranslations).toHaveBeenCalledWith('en', translations);
+ expect(mockLoadTranslations).toHaveBeenCalledWith('en', translations.en);
expect(mockOn).toHaveBeenCalledWith('PLAYER_LOADED', expect.any(Function));
expect(mockOn).toHaveBeenCalledWith('VIDEO_STARTED', expect.any(Function));