@seamly/web-ui 21.0.2-beta.1 → 21.0.2-beta.4

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.
@@ -14422,6 +14422,7 @@ __webpack_require__.d(__webpack_exports__, {
14422
14422
  "SeamlyGeneralError": function() { return /* reexport */ SeamlyGeneralError; },
14423
14423
  "SeamlyLiveRegionContext": function() { return /* reexport */ SeamlyLiveRegionContext; },
14424
14424
  "SeamlyOfflineError": function() { return /* reexport */ SeamlyOfflineError; },
14425
+ "SeamlyStoreProvider": function() { return /* reexport */ components_Provider; },
14425
14426
  "Text": function() { return /* reexport */ event_text; },
14426
14427
  "View": function() { return /* reexport */ view; },
14427
14428
  "calculateVisibility": function() { return /* reexport */ calculateVisibility; },
@@ -14498,6 +14499,9 @@ var for_each_default = /*#__PURE__*/__webpack_require__.n(for_each);
14498
14499
  // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js
14499
14500
  var object_keys = __webpack_require__(8222);
14500
14501
  var keys_default = /*#__PURE__*/__webpack_require__.n(object_keys);
14502
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js
14503
+ var includes = __webpack_require__(8118);
14504
+ var includes_default = /*#__PURE__*/__webpack_require__.n(includes);
14501
14505
  // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/object/values.js
14502
14506
  var values = __webpack_require__(3665);
14503
14507
  var values_default = /*#__PURE__*/__webpack_require__.n(values);
@@ -14522,9 +14526,6 @@ var index_of_default = /*#__PURE__*/__webpack_require__.n(index_of);
14522
14526
  // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/object/assign.js
14523
14527
  var object_assign = __webpack_require__(6986);
14524
14528
  var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign);
14525
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js
14526
- var includes = __webpack_require__(8118);
14527
- var includes_default = /*#__PURE__*/__webpack_require__.n(includes);
14528
14529
  // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js
14529
14530
  var weak_map = __webpack_require__(8886);
14530
14531
  var weak_map_default = /*#__PURE__*/__webpack_require__.n(weak_map);
@@ -16560,7 +16561,7 @@ class API {
16560
16561
  (_a = this.conversation) === null || _a === void 0 ? void 0 : _a.onConnection(connectionState => {
16561
16562
  const connected = connectionState === 'join_channel_succeeded';
16562
16563
  const ready = connectionState === 'attach_channel_succeeded';
16563
- if (waitForReady ? ready : connected || ready) {
16564
+ if (connected || ready) {
16564
16565
  this.send(command, payload, waitForReady);
16565
16566
  }
16566
16567
  });
@@ -16664,7 +16665,7 @@ _API_ready = new (weak_map_default())(), _API_externalId = new (weak_map_default
16664
16665
  return {
16665
16666
  clientName: "@seamly/web-ui",
16666
16667
  clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
16667
- clientVersion: "21.0.2-beta.1",
16668
+ clientVersion: "21.0.2-beta.4",
16668
16669
  currentUrl: window.location.toString(),
16669
16670
  screenResolution: `${window.screen.width}x${window.screen.height}`,
16670
16671
  timezone: getTimeZone(),
@@ -32137,6 +32138,7 @@ class Engine {
32137
32138
 
32138
32139
 
32139
32140
 
32141
+
32140
32142
  function external_api_ownKeys(object, enumerableOnly) { var keys = keys_default()(object); if ((get_own_property_symbols_default())) { var symbols = get_own_property_symbols_default()(object); enumerableOnly && (symbols = filter_default()(symbols).call(symbols, function (sym) { return get_own_property_descriptor_default()(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32141
32143
  function external_api_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? for_each_default()(_context4 = external_api_ownKeys(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : (get_own_property_descriptors_default()) ? define_properties_default()(target, get_own_property_descriptors_default()(source)) : for_each_default()(_context5 = external_api_ownKeys(Object(source))).call(_context5, function (key) { define_property_default()(target, key, get_own_property_descriptor_default()(source, key)); }); } return target; }
32142
32144
 
@@ -32184,7 +32186,19 @@ class ExternalApi {
32184
32186
  }
32185
32187
  });
32186
32188
  }
32189
+ instanceInitializing(namespace) {
32190
+ const instances = keys_default()(this._instances);
32191
+ return !namespace && instances.length > 0 || includes_default()(instances).call(instances, namespace);
32192
+ }
32187
32193
  setContext(action, args) {
32194
+ const {
32195
+ instance: namespace
32196
+ } = args;
32197
+ // Do not set this action in context if we are already initializing.
32198
+ // If we do, it will not be sent to the server anymore (because it gets marked as 'handled').
32199
+ if (this.instanceInitializing(namespace)) {
32200
+ return false;
32201
+ }
32188
32202
  switch (action) {
32189
32203
  case 'setTopic':
32190
32204
  const {
@@ -32254,9 +32268,7 @@ class ExternalApi {
32254
32268
 
32255
32269
  // results will be an array containing the results of wether an instance has
32256
32270
  // handled the action or not
32257
- const results = map_default()(instances).call(instances, instance => {
32258
- return !namespace || instance.namespace === namespace ? instance.execFunction(action, ...args) : false;
32259
- });
32271
+ const results = map_default()(instances).call(instances, instance => !namespace || instance.namespace === namespace ? instance.execFunction(action, ...args) : false);
32260
32272
 
32261
32273
  // test if any of the instances has handled the action
32262
32274
  return some_default()(results).call(results, Boolean);
@@ -32926,6 +32938,7 @@ const useSeamlyActions = () => {
32926
32938
 
32927
32939
  // Used by: StyleGuide
32928
32940
 
32941
+
32929
32942
  // Used by: Client
32930
32943
 
32931
32944
  // Used by: Client