smbls 2.10.8 → 2.10.10
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/index.js +8 -3
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3020,7 +3020,7 @@ var require_dist3 = __commonJS({
|
|
|
3020
3020
|
};
|
|
3021
3021
|
var fetchRemote2 = async (key, options = defaultOptions2) => {
|
|
3022
3022
|
let data = {};
|
|
3023
|
-
await window.fetch(`https://${options.endpoint}/${options.route || ""}`, {
|
|
3023
|
+
await window.fetch(`https://${options.endpoint || SERVER_URL}/${options.route || ""}`, {
|
|
3024
3024
|
method: "GET",
|
|
3025
3025
|
headers: { "Content-Type": "application/json", "X-AppKey": key }
|
|
3026
3026
|
}).then((response) => {
|
|
@@ -8470,8 +8470,12 @@ var create2 = async (App, options = defaultOptions) => {
|
|
|
8470
8470
|
overwriteDeep(data, options);
|
|
8471
8471
|
}
|
|
8472
8472
|
}
|
|
8473
|
+
const components = { ...src_exports, ...options.components };
|
|
8473
8474
|
const designSystem = init2(options.system);
|
|
8474
8475
|
src_default.define(options.define || define);
|
|
8476
|
+
console.group(key);
|
|
8477
|
+
console.dir(options);
|
|
8478
|
+
console.groupEnd(key);
|
|
8475
8479
|
return src_default.create({
|
|
8476
8480
|
extend: [App, {
|
|
8477
8481
|
routes: options.pages,
|
|
@@ -8481,11 +8485,12 @@ var create2 = async (App, options = defaultOptions) => {
|
|
|
8481
8485
|
extend: [Box],
|
|
8482
8486
|
context: {
|
|
8483
8487
|
key,
|
|
8484
|
-
components
|
|
8488
|
+
components,
|
|
8485
8489
|
state: options.state,
|
|
8486
8490
|
pages: options.pages,
|
|
8487
8491
|
system: designSystem
|
|
8488
|
-
}
|
|
8492
|
+
},
|
|
8493
|
+
components
|
|
8489
8494
|
// TODO: move define here,
|
|
8490
8495
|
});
|
|
8491
8496
|
};
|