smbls 2.10.6 → 2.10.9
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 +6 -3
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8449,6 +8449,7 @@ var define = {
|
|
|
8449
8449
|
// ../create/index.js
|
|
8450
8450
|
var { SYMBOLS_KEY } = process.env;
|
|
8451
8451
|
var defaultOptions = {
|
|
8452
|
+
endpoint: "localhost:13335",
|
|
8452
8453
|
state: {},
|
|
8453
8454
|
pages: {},
|
|
8454
8455
|
system: {
|
|
@@ -8465,10 +8466,11 @@ var create2 = async (App, options = defaultOptions) => {
|
|
|
8465
8466
|
App = {};
|
|
8466
8467
|
if (key) {
|
|
8467
8468
|
if (options.remote) {
|
|
8468
|
-
const data = await (0, import_fetch.fetchRemote)(key, {
|
|
8469
|
+
const data = await (0, import_fetch.fetchRemote)(key, { endpoint: options.endpoint });
|
|
8469
8470
|
overwriteDeep(data, options);
|
|
8470
8471
|
}
|
|
8471
8472
|
}
|
|
8473
|
+
const components = { ...src_exports, ...options.components };
|
|
8472
8474
|
const designSystem = init2(options.system);
|
|
8473
8475
|
src_default.define(options.define || define);
|
|
8474
8476
|
return src_default.create({
|
|
@@ -8480,11 +8482,12 @@ var create2 = async (App, options = defaultOptions) => {
|
|
|
8480
8482
|
extend: [Box],
|
|
8481
8483
|
context: {
|
|
8482
8484
|
key,
|
|
8483
|
-
components
|
|
8485
|
+
components,
|
|
8484
8486
|
state: options.state,
|
|
8485
8487
|
pages: options.pages,
|
|
8486
8488
|
system: designSystem
|
|
8487
|
-
}
|
|
8489
|
+
},
|
|
8490
|
+
components
|
|
8488
8491
|
// TODO: move define here,
|
|
8489
8492
|
});
|
|
8490
8493
|
};
|