@myop/sdk 0.3.11 → 0.3.13

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.
Files changed (34) hide show
  1. package/dist/bundled-declarations.d.ts +84 -0
  2. package/dist/cjs/{_IframeSDK.a1d01292.js → _IframeSDK.06523760.js} +2 -2
  3. package/dist/cjs/{_IframeSDK.a1d01292.js.map → _IframeSDK.06523760.js.map} +2 -2
  4. package/dist/cjs/{_IframeSDK.f860f582.min.js → _IframeSDK.5b34af50.min.js} +1 -1
  5. package/dist/cjs/{_MyopHelpers.414f44b4.js → _MyopHelpers.a39f420c.js} +1 -1
  6. package/dist/cjs/{_MyopHelpers.414f44b4.js.map → _MyopHelpers.a39f420c.js.map} +2 -2
  7. package/dist/cjs/{_MyopHelpers.982f48e2.min.js → _MyopHelpers.eb1728bc.min.js} +1 -1
  8. package/dist/cjs/{_WebComponentSDK.833b1ae4.js → _WebComponentSDK.4ed98c20.js} +2 -2
  9. package/dist/cjs/{_WebComponentSDK.833b1ae4.js.map → _WebComponentSDK.4ed98c20.js.map} +2 -2
  10. package/dist/cjs/{_WebComponentSDK.d32acfa7.min.js → _WebComponentSDK.acba38a4.min.js} +1 -1
  11. package/dist/cjs/{_hostSDK.726a5b50.min.js → _hostSDK.dc07390b.min.js} +1 -1
  12. package/dist/cjs/{_hostSDK.eb41becc.js → _hostSDK.f8d320df.js} +2 -2
  13. package/dist/cjs/{_hostSDK.eb41becc.js.map → _hostSDK.f8d320df.js.map} +2 -2
  14. package/dist/cjs/myop_sdk.js +14 -14
  15. package/dist/cjs/myop_sdk.js.map +1 -1
  16. package/dist/cjs/myop_sdk.min.js +1 -1
  17. package/dist/cjs-bundled/myop_sdk.bundled.js +3 -3
  18. package/dist/cjs-bundled/myop_sdk.bundled.js.map +2 -2
  19. package/dist/cjs-bundled/myop_sdk.bundled.min.js +1 -1
  20. package/dist/module/Iframe/index.js +3 -3
  21. package/dist/module/Iframe/index.js.map +2 -2
  22. package/dist/module/SDK.js +3 -3
  23. package/dist/module/SDK.js.map +2 -2
  24. package/dist/module/embeddedSDK.js +1 -1
  25. package/dist/module/helpers/index.js +2 -2
  26. package/dist/module/helpers/index.js.map +2 -2
  27. package/dist/module/host/embeddedSDK.js +1 -1
  28. package/dist/module/host/index.d.ts +2 -0
  29. package/dist/module/host/index.js +123 -3
  30. package/dist/module/host/index.js.map +3 -3
  31. package/dist/module/host/myopLoader.d.ts +84 -0
  32. package/dist/module/webcomponent/index.js +3 -3
  33. package/dist/module/webcomponent/index.js.map +2 -2
  34. package/package.json +1 -1
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Myop Loader - Shared loader/fallback UI for host frameworks
3
+ * Framework-agnostic implementation using pure DOM
4
+ */
5
+ export declare const LOADER_GRADIENT = "linear-gradient(135deg, #FF8651 0%, #FFBEA8 50%, #A397F5 100%)";
6
+ export declare const FALLBACK_GRADIENT = "linear-gradient(135deg, #9CA3AF 0%, #D1D5DB 50%, #E5E7EB 100%)";
7
+ /**
8
+ * Creates the Myop logo SVG element
9
+ */
10
+ export declare function createMyopLogoSvg(): SVGSVGElement;
11
+ /**
12
+ * Returns the inline HTML string for the Myop logo SVG
13
+ */
14
+ export declare function getMyopLogoHtml(): string;
15
+ /**
16
+ * Returns the inline styles for the loader container
17
+ */
18
+ export declare function getLoaderStyles(fadeDuration?: number): string;
19
+ /**
20
+ * Returns the inline styles for the fallback container
21
+ */
22
+ export declare function getFallbackStyles(): string;
23
+ /**
24
+ * Creates a loader DOM element with the Myop branding
25
+ */
26
+ export declare function createLoaderElement(fadeDuration?: number): HTMLDivElement;
27
+ /**
28
+ * Creates a fallback DOM element with the Myop branding
29
+ */
30
+ export declare function createFallbackElement(): HTMLDivElement;
31
+ /**
32
+ * Returns the complete loader HTML as a string (for use in templates)
33
+ */
34
+ export declare function getLoaderHtml(fadeDuration?: number): string;
35
+ /**
36
+ * Returns the complete fallback HTML as a string (for use in templates)
37
+ */
38
+ export declare function getFallbackHtml(): string;
39
+ /**
40
+ * Interface for loader options used by host frameworks
41
+ */
42
+ export interface MyopLoaderOptions {
43
+ /** Fade duration in milliseconds (default: 200) */
44
+ fadeDuration?: number;
45
+ /** Initial opacity (default: 1) */
46
+ opacity?: number;
47
+ }
48
+ /**
49
+ * CSS-in-JS style objects for frameworks that support them
50
+ */
51
+ export declare const loaderStyleObject: {
52
+ position: "absolute";
53
+ top: number;
54
+ left: number;
55
+ right: number;
56
+ bottom: number;
57
+ zIndex: number;
58
+ background: string;
59
+ display: string;
60
+ justifyContent: string;
61
+ alignItems: string;
62
+ };
63
+ export declare const fallbackStyleObject: {
64
+ position: "absolute";
65
+ top: number;
66
+ left: number;
67
+ right: number;
68
+ bottom: number;
69
+ background: string;
70
+ display: string;
71
+ justifyContent: string;
72
+ alignItems: string;
73
+ };
74
+ export declare const containerStyleObject: {
75
+ position: "absolute";
76
+ top: number;
77
+ left: number;
78
+ right: number;
79
+ bottom: number;
80
+ zIndex: number;
81
+ display: string;
82
+ justifyContent: string;
83
+ alignItems: string;
84
+ };