@seamly/web-ui 23.0.6-alpha.2 → 23.0.6
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/build/dist/lib/index.debug.js +14 -6
- package/build/dist/lib/index.debug.js.map +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +14 -6
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/standalone.js +14 -6
- package/build/dist/lib/standalone.js.map +1 -1
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/standalone.min.js.map +1 -1
- package/build/dist/lib/style-guide.js +14 -6
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/build/dist/lib/utils.js +14 -6
- package/build/dist/lib/utils.js.map +1 -1
- package/build/dist/lib/utils.min.js +1 -1
- package/build/dist/lib/utils.min.js.map +1 -1
- package/package.json +2 -3
- package/src/javascripts/lib/external-api/index.js +13 -5
|
@@ -914,7 +914,7 @@ class API {
|
|
|
914
914
|
return {
|
|
915
915
|
clientName: "@seamly/web-ui",
|
|
916
916
|
clientVariant: this.#layoutMode,
|
|
917
|
-
clientVersion: "23.0.6
|
|
917
|
+
clientVersion: "23.0.6",
|
|
918
918
|
currentUrl: window.location.toString(),
|
|
919
919
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
920
920
|
timezone: getTimeZone(),
|
|
@@ -4822,7 +4822,7 @@ class ExternalApi {
|
|
|
4822
4822
|
constructor(appConfig) {
|
|
4823
4823
|
this._waitingActions = [];
|
|
4824
4824
|
this._instances = {};
|
|
4825
|
-
this.
|
|
4825
|
+
this.timeouts = {};
|
|
4826
4826
|
this.appConfig = appConfig;
|
|
4827
4827
|
this.context = {};
|
|
4828
4828
|
}
|
|
@@ -4932,10 +4932,7 @@ class ExternalApi {
|
|
|
4932
4932
|
this._instances[config.namespace] = instance;
|
|
4933
4933
|
// Clear the context after creating the instance, so we do not reuse it for the next
|
|
4934
4934
|
this.context = {};
|
|
4935
|
-
|
|
4936
|
-
this.timeoutId = window.setTimeout(() => {
|
|
4937
|
-
instance.render();
|
|
4938
|
-
}, 60);
|
|
4935
|
+
this.debouncedRender(instance, config.namespace);
|
|
4939
4936
|
}
|
|
4940
4937
|
}
|
|
4941
4938
|
handleDestroy(actionObj) {
|
|
@@ -4962,6 +4959,17 @@ class ExternalApi {
|
|
|
4962
4959
|
createInstance(config) {
|
|
4963
4960
|
return new lib_engine__WEBPACK_IMPORTED_MODULE_1__["default"](config, this);
|
|
4964
4961
|
}
|
|
4962
|
+
|
|
4963
|
+
/**
|
|
4964
|
+
* @param {Engine} instance
|
|
4965
|
+
* @param {string} namespace
|
|
4966
|
+
*/
|
|
4967
|
+
debouncedRender(instance, namespace) {
|
|
4968
|
+
window.clearTimeout(this.timeouts[namespace]);
|
|
4969
|
+
this.timeouts[namespace] = window.setTimeout(() => {
|
|
4970
|
+
instance.render();
|
|
4971
|
+
}, 100);
|
|
4972
|
+
}
|
|
4965
4973
|
destroy(instance) {
|
|
4966
4974
|
if (!instance) {
|
|
4967
4975
|
Object.entries(this._instances).forEach(([namespace, _instance]) => {
|