@eka-care/medassist-widget-embed 0.1.0 → 0.1.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/dist/iframe-helper.js +1 -1
- package/dist/iframe.js +1 -2
- package/iframe-helper.ts +1 -1
- package/iframe.ts +1 -1
- package/package.json +1 -1
package/dist/iframe-helper.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Helper function to create and open MedAssist widget in fullscreen iframe
|
|
2
2
|
// This eliminates the need for Sebenza app to add custom styles
|
|
3
|
-
const DEFAULT_IFRAME_BASE =
|
|
3
|
+
const DEFAULT_IFRAME_BASE = "https://unpkg.com/@eka-care/medassist-widget-embed@latest/dist/";
|
|
4
4
|
// Get current script to determine base URL
|
|
5
5
|
const getCurrentScript = () => {
|
|
6
6
|
if (typeof document === "undefined") {
|
package/dist/iframe.js
CHANGED
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
return undefined;
|
|
22
22
|
};
|
|
23
|
-
const DEFAULT_WIDGET_ASSET_BASE =
|
|
24
|
-
"https://unpkg.com/@eka-care/medassist-widget@latest/dist/";
|
|
23
|
+
const DEFAULT_WIDGET_ASSET_BASE = "https://unpkg.com/@eka-care/medassist-widget@latest/dist/";
|
|
25
24
|
const scriptEl = getCurrentScript();
|
|
26
25
|
const scriptBaseUrl = (() => {
|
|
27
26
|
if (!scriptEl) {
|
package/iframe-helper.ts
CHANGED
|
@@ -26,7 +26,7 @@ interface OpenIframeOptions {
|
|
|
26
26
|
context?: TContext;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const DEFAULT_IFRAME_BASE =
|
|
29
|
+
const DEFAULT_IFRAME_BASE = "https://unpkg.com/@eka-care/medassist-widget-embed@latest/dist/";
|
|
30
30
|
|
|
31
31
|
// Get current script to determine base URL
|
|
32
32
|
const getCurrentScript = (): HTMLScriptElement | null => {
|
package/iframe.ts
CHANGED