@glomex/integration-react 1.1550.2 → 1.1551.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.
|
@@ -31,4 +31,9 @@ export declare const Integration: import("react").ForwardRefExoticComponent<Omit
|
|
|
31
31
|
* @example 'your-integration'
|
|
32
32
|
*/
|
|
33
33
|
tagName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* When `true`, the integration script is not loaded (no `moduleUrl` is passed).
|
|
36
|
+
* Use this to delay or suppress loading the integration bundle.
|
|
37
|
+
*/
|
|
38
|
+
preventLoadIntegration?: boolean;
|
|
34
39
|
} & import("react").RefAttributes<IntegrationElement>>;
|
|
@@ -20,6 +20,6 @@ const TAG_NAME = 'glomex-integration';
|
|
|
20
20
|
* @see {@link IntegrationElementEventMap} for all available events.
|
|
21
21
|
*/
|
|
22
22
|
export const Integration = forwardRef((props, ref) => {
|
|
23
|
-
const { tagName, stylesUrl, moduleUrl, ...rest } = props;
|
|
24
|
-
return (_jsx(TurboIntegration, { ref: ref, tagName: tagName ?? TAG_NAME, moduleUrl:
|
|
23
|
+
const { tagName, stylesUrl, moduleUrl, preventLoadIntegration, ...rest } = props;
|
|
24
|
+
return (_jsx(TurboIntegration, { ref: ref, tagName: tagName ?? TAG_NAME, moduleUrl: preventLoadIntegration ? undefined : (moduleUrl ?? MODULE_URL), stylesUrl: stylesUrl ?? STYLES_URL, ...rest }));
|
|
25
25
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1551.0",
|
|
4
4
|
"description": "React component to integrate the glomex player",
|
|
5
5
|
"documentation": "https://docs.glomex.com",
|
|
6
6
|
"homepage": "https://glomex.com",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"preact": "catalog:",
|
|
58
58
|
"typescript": "catalog:"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "f9fd1fcbf45eb55d6b12de09530ee61049bc859f"
|
|
61
61
|
}
|