@glomex/integration-react 1.1494.0 → 1.1496.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,7 +40,9 @@ export const Integration = forwardRef((props, ref) => {
40
40
  // patch ready when integration element was not upgraded yet
41
41
  element.ready =
42
42
  elementRef.current?.ready ||
43
- new Promise((resolve) => window.customElements.whenDefined(ComponentName.INTEGRATION).then(() => resolve()));
43
+ new Promise((resolve) => window.customElements
44
+ .whenDefined(ComponentName.INTEGRATION)
45
+ .then(() => elementRef.current?.ready.then(() => resolve())));
44
46
  return element;
45
47
  }, [extraContext]);
46
48
  return (_jsxs(_Fragment, { children: [integrationId && _jsx("link", { rel: "stylesheet", href: getIntegrationCssUrl(integrationId) }), _jsxs("glomex-integration", { ref: elementRef, "integration-id": integrationId, "playlist-id": playlistId, index: index, hidden: hidden, "top-level-iframe": topLevelIframe, placement: placement, "user-language": userLanguage, ...rest, children: [mediaItemComponents, children, configs && (_jsx("script", { type: ScriptType.INTEGRATION_CONFIGS, children: JSON.stringify(configs) }))] })] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-react",
3
- "version": "1.1494.0",
3
+ "version": "1.1496.0",
4
4
  "description": "React component to integrate the glomex player",
5
5
  "documentation": "https://docs.glomex.com",
6
6
  "homepage": "https://glomex.com",
@@ -28,13 +28,24 @@
28
28
  "watch": "tsc --build --watch"
29
29
  },
30
30
  "dependencies": {
31
- "@glomex/integration-web-component": "1.1494.0"
31
+ "@glomex/integration-web-component": "1.1496.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "preact": ">=10",
35
35
  "react": ">=16.8.0",
36
36
  "react-dom": ">=16.8.0"
37
37
  },
38
+ "peerDependenciesMeta": {
39
+ "preact": {
40
+ "optional": true
41
+ },
42
+ "react": {
43
+ "optional": true
44
+ },
45
+ "react-dom": {
46
+ "optional": true
47
+ }
48
+ },
38
49
  "publishConfig": {
39
50
  "access": "public"
40
51
  },
@@ -43,7 +54,8 @@
43
54
  "@biomejs/biome": "catalog:",
44
55
  "@types/react": "^19.2.2",
45
56
  "@types/react-dom": "^19.2.2",
57
+ "preact": "catalog:",
46
58
  "typescript": "catalog:"
47
59
  },
48
- "gitHead": "d99f046f561314b48edf455643674afee4cf19e2"
60
+ "gitHead": "3f3392a585874a118283838aaa6a6fb641537095"
49
61
  }