@rayburst/cli 0.1.16 → 0.1.18

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.
@@ -1,122 +0,0 @@
1
- import { i as init_1, r as rayburstCli__mf_v__runtimeInit__mf_v__ } from './rayburstCli__mf_v__runtimeInit__mf_v__-C_SVfzik.js';
2
- import exposesMap from './virtualExposes-DwA08f_D.js';
3
- import { _ as __vitePreload } from './preload-helper-Dea3Szod.js';
4
-
5
- const importMap = {
6
-
7
- "react": async () => {
8
- let pkg = await __vitePreload(() => import('./index-9R1akZrm.js').then(n => n.i),true ?[]:void 0);
9
- return pkg;
10
- }
11
- ,
12
- "react-dom": async () => {
13
- let pkg = await __vitePreload(() => import('./index-BW-RulSg.js').then(n => n.i),true ?[]:void 0);
14
- return pkg;
15
- }
16
-
17
- };
18
- const usedShared = {
19
-
20
- "react": {
21
- name: "react",
22
- version: "19.2.0",
23
- scope: ["default"],
24
- loaded: false,
25
- from: "rayburstCli",
26
- async get () {
27
- usedShared["react"].loaded = true;
28
- const {"react": pkgDynamicImport} = importMap;
29
- const res = await pkgDynamicImport();
30
- const exportModule = {...res};
31
- // All npm packages pre-built by vite will be converted to esm
32
- Object.defineProperty(exportModule, "__esModule", {
33
- value: true,
34
- enumerable: false
35
- });
36
- return function () {
37
- return exportModule
38
- }
39
- },
40
- shareConfig: {
41
- singleton: true,
42
- requiredVersion: "^19.0.0",
43
-
44
- }
45
- }
46
- ,
47
- "react-dom": {
48
- name: "react-dom",
49
- version: "19.2.0",
50
- scope: ["default"],
51
- loaded: false,
52
- from: "rayburstCli",
53
- async get () {
54
- usedShared["react-dom"].loaded = true;
55
- const {"react-dom": pkgDynamicImport} = importMap;
56
- const res = await pkgDynamicImport();
57
- const exportModule = {...res};
58
- // All npm packages pre-built by vite will be converted to esm
59
- Object.defineProperty(exportModule, "__esModule", {
60
- value: true,
61
- enumerable: false
62
- });
63
- return function () {
64
- return exportModule
65
- }
66
- },
67
- shareConfig: {
68
- singleton: true,
69
- requiredVersion: "^19.0.0",
70
-
71
- }
72
- }
73
-
74
- };
75
- const usedRemotes = [
76
- {
77
- entryGlobalName: "rayburstApp",
78
- name: "rayburstApp",
79
- type: "module",
80
- entry: "https://www.rayburst.app/remoteEntry.js?t=1763426104576",
81
- shareScope: "default",
82
- }
83
-
84
- ];
85
-
86
- const initTokens = {};
87
- const shareScopeName = "default";
88
- const mfName = "rayburstCli";
89
- async function init(shared = {}, initScope = []) {
90
- const initRes = init_1({
91
- name: mfName,
92
- remotes: usedRemotes,
93
- shared: usedShared,
94
- plugins: [],
95
- shareStrategy: 'version-first'
96
- });
97
- // handling circular init calls
98
- var initToken = initTokens[shareScopeName];
99
- if (!initToken)
100
- initToken = initTokens[shareScopeName] = { from: mfName };
101
- if (initScope.indexOf(initToken) >= 0) return;
102
- initScope.push(initToken);
103
- initRes.initShareScopeMap('default', shared);
104
- try {
105
- await Promise.all(await initRes.initializeSharing('default', {
106
- strategy: 'version-first',
107
- from: "build",
108
- initScope
109
- }));
110
- } catch (e) {
111
- console.error(e);
112
- }
113
- rayburstCli__mf_v__runtimeInit__mf_v__.initResolve(initRes);
114
- return initRes
115
- }
116
-
117
- function getExposes(moduleName) {
118
- if (!(moduleName in exposesMap)) throw new Error(`Module ${moduleName} does not exist in container.`)
119
- return (exposesMap[moduleName])().then(res => () => res)
120
- }
121
-
122
- export { getExposes as get, init };
@@ -1,5 +0,0 @@
1
- const exposesMap = {
2
-
3
- };
4
-
5
- export { exposesMap as default };
package/dist/index.html DELETED
@@ -1,56 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <script type="module" src="/assets/hostInit-CxHGTmfB.js"></script>
5
-
6
- <meta charset="UTF-8" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
- <title>Rayburst</title>
9
- <style>
10
- /* Scoped styles for loading screen only - do not interfere with remote app styles */
11
- .loading-container {
12
- display: flex;
13
- flex-direction: column;
14
- align-items: center;
15
- justify-content: center;
16
- height: 100vh;
17
- width: 100%;
18
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
19
- color: white;
20
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
21
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
22
- sans-serif;
23
- -webkit-font-smoothing: antialiased;
24
- -moz-osx-font-smoothing: grayscale;
25
- }
26
-
27
- .spinner {
28
- width: 50px;
29
- height: 50px;
30
- border: 4px solid rgba(255, 255, 255, 0.3);
31
- border-top-color: white;
32
- border-radius: 50%;
33
- animation: spin 1s linear infinite;
34
- margin-bottom: 20px;
35
- }
36
-
37
- @keyframes spin {
38
- to { transform: rotate(360deg); }
39
- }
40
-
41
- .loading-text {
42
- font-size: 18px;
43
- font-weight: 500;
44
- }
45
- </style>
46
- <script type="module" crossorigin src="/assets/index-VnAMn3JB.js"></script>
47
- </head>
48
- <body>
49
- <div id="app">
50
- <div class="loading-container">
51
- <div class="spinner"></div>
52
- <div class="loading-text">Loading Rayburst...</div>
53
- </div>
54
- </div>
55
- </body>
56
- </html>