@seamly/web-ui 22.0.0-beta.1 → 22.0.0

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.
Files changed (34) hide show
  1. package/build/dist/lib/components.js +46 -47
  2. package/build/dist/lib/components.js.map +1 -1
  3. package/build/dist/lib/components.min.js +1 -1
  4. package/build/dist/lib/components.min.js.map +1 -1
  5. package/build/dist/lib/hooks.js +43 -43
  6. package/build/dist/lib/hooks.js.map +1 -1
  7. package/build/dist/lib/hooks.min.js +1 -1
  8. package/build/dist/lib/hooks.min.js.map +1 -1
  9. package/build/dist/lib/index.debug.js +19 -19
  10. package/build/dist/lib/index.debug.min.js +1 -1
  11. package/build/dist/lib/index.debug.min.js.LICENSE.txt +1 -1
  12. package/build/dist/lib/index.debug.min.js.map +1 -1
  13. package/build/dist/lib/index.js +4 -5
  14. package/build/dist/lib/index.js.map +1 -1
  15. package/build/dist/lib/index.min.js +1 -1
  16. package/build/dist/lib/index.min.js.map +1 -1
  17. package/build/dist/lib/standalone.js +4 -5
  18. package/build/dist/lib/standalone.js.map +1 -1
  19. package/build/dist/lib/standalone.min.js +1 -1
  20. package/build/dist/lib/standalone.min.js.map +1 -1
  21. package/build/dist/lib/style-guide.js +43 -6
  22. package/build/dist/lib/style-guide.js.map +1 -1
  23. package/build/dist/lib/style-guide.min.js +1 -1
  24. package/build/dist/lib/style-guide.min.js.map +1 -1
  25. package/build/dist/lib/utils.js +48 -49
  26. package/build/dist/lib/utils.js.map +1 -1
  27. package/build/dist/lib/utils.min.js +1 -1
  28. package/build/dist/lib/utils.min.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/javascripts/domains/forms/provider.tsx +1 -1
  31. package/src/javascripts/domains/store/store.types.ts +2 -0
  32. package/src/javascripts/style-guide/states.js +44 -0
  33. package/src/javascripts/ui/hooks/{seamly-api-hooks.js → seamly-api-hooks.ts} +1 -1
  34. package/src/.DS_Store +0 -0
@@ -5872,6 +5872,45 @@ const SeamlyEventBusContext = (0,preact__WEBPACK_IMPORTED_MODULE_0__.createConte
5872
5872
 
5873
5873
  /***/ }),
5874
5874
 
5875
+ /***/ 8048:
5876
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5877
+
5878
+ "use strict";
5879
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5880
+ /* harmony export */ "Af": () => (/* binding */ useSeamlyConversationUrl),
5881
+ /* harmony export */ "eu": () => (/* binding */ useSeamlyObjectStore),
5882
+ /* harmony export */ "iW": () => (/* binding */ useSeamlyHasConversation),
5883
+ /* harmony export */ "jM": () => (/* binding */ useSeamlyApiContext)
5884
+ /* harmony export */ });
5885
+ /* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9207);
5886
+ /* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(preact_hooks__WEBPACK_IMPORTED_MODULE_0__);
5887
+ /* harmony import */ var ui_components_core_seamly_api_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2871);
5888
+
5889
+
5890
+ const useSeamlyApiContext = () => (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useContext)(ui_components_core_seamly_api_context__WEBPACK_IMPORTED_MODULE_1__/* .SeamlyApiContext */ .a);
5891
+ const useSeamlyObjectStore = () => {
5892
+ const api = useSeamlyApiContext();
5893
+ return api.store;
5894
+ };
5895
+ const useSeamlyConversationUrl = () => {
5896
+ const {
5897
+ get
5898
+ } = useSeamlyObjectStore();
5899
+ if (get) {
5900
+ return get('conversationUrl');
5901
+ }
5902
+ return null;
5903
+ };
5904
+ const useSeamlyHasConversation = () => {
5905
+ const api = useSeamlyApiContext();
5906
+ const hasConversation = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => {
5907
+ return api.hasConversation();
5908
+ }, [api]);
5909
+ return hasConversation;
5910
+ };
5911
+
5912
+ /***/ }),
5913
+
5875
5914
  /***/ 2140:
5876
5915
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5877
5916
 
@@ -6043,8 +6082,8 @@ var visibility_hooks = __webpack_require__(6082);
6043
6082
  var selectors = __webpack_require__(703);
6044
6083
  // EXTERNAL MODULE: ./src/javascripts/ui/hooks/live-region-hooks.js
6045
6084
  var live_region_hooks = __webpack_require__(5136);
6046
- // EXTERNAL MODULE: ./src/javascripts/ui/hooks/seamly-api-hooks.js
6047
- var seamly_api_hooks = __webpack_require__(7044);
6085
+ // EXTERNAL MODULE: ./src/javascripts/ui/hooks/seamly-api-hooks.ts
6086
+ var seamly_api_hooks = __webpack_require__(8048);
6048
6087
  // EXTERNAL MODULE: ./src/javascripts/ui/hooks/seamly-state-hooks.ts
6049
6088
  var seamly_state_hooks = __webpack_require__(2140);
6050
6089
  // EXTERNAL MODULE: ./src/javascripts/domains/interrupt/hooks.ts
@@ -7258,45 +7297,6 @@ const useLiveRegion = () => {
7258
7297
 
7259
7298
  /***/ }),
7260
7299
 
7261
- /***/ 7044:
7262
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7263
-
7264
- "use strict";
7265
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7266
- /* harmony export */ "Af": () => (/* binding */ useSeamlyConversationUrl),
7267
- /* harmony export */ "eu": () => (/* binding */ useSeamlyObjectStore),
7268
- /* harmony export */ "iW": () => (/* binding */ useSeamlyHasConversation),
7269
- /* harmony export */ "jM": () => (/* binding */ useSeamlyApiContext)
7270
- /* harmony export */ });
7271
- /* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9207);
7272
- /* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(preact_hooks__WEBPACK_IMPORTED_MODULE_0__);
7273
- /* harmony import */ var ui_components_core_seamly_api_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2871);
7274
-
7275
-
7276
- const useSeamlyApiContext = () => (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useContext)(ui_components_core_seamly_api_context__WEBPACK_IMPORTED_MODULE_1__/* .SeamlyApiContext */ .a);
7277
- const useSeamlyObjectStore = () => {
7278
- const api = useSeamlyApiContext();
7279
- return api.store || {};
7280
- };
7281
- const useSeamlyConversationUrl = () => {
7282
- const {
7283
- get
7284
- } = useSeamlyObjectStore();
7285
- if (get) {
7286
- return get('conversationUrl');
7287
- }
7288
- return null;
7289
- };
7290
- const useSeamlyHasConversation = () => {
7291
- const api = useSeamlyApiContext();
7292
- const hasConversation = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => {
7293
- return api.hasConversation();
7294
- }, [api]);
7295
- return hasConversation;
7296
- };
7297
-
7298
- /***/ }),
7299
-
7300
7300
  /***/ 9470:
7301
7301
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7302
7302
 
@@ -7337,8 +7337,8 @@ __webpack_require__.d(__webpack_exports__, {
7337
7337
 
7338
7338
  // EXTERNAL MODULE: external "preact/hooks"
7339
7339
  var hooks_ = __webpack_require__(9207);
7340
- // EXTERNAL MODULE: ./src/javascripts/ui/hooks/seamly-api-hooks.js
7341
- var seamly_api_hooks = __webpack_require__(7044);
7340
+ // EXTERNAL MODULE: ./src/javascripts/ui/hooks/seamly-api-hooks.ts
7341
+ var seamly_api_hooks = __webpack_require__(8048);
7342
7342
  // EXTERNAL MODULE: ./src/javascripts/ui/hooks/focus-helper-hooks.js
7343
7343
  var focus_helper_hooks = __webpack_require__(764);
7344
7344
  // EXTERNAL MODULE: ./src/javascripts/ui/hooks/component-helper-hooks.js
@@ -7627,7 +7627,7 @@ const useSeamlyActivityEventHandler = () => (0,preact_hooks__WEBPACK_IMPORTED_MO
7627
7627
  /* harmony import */ var domains_visibility_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(1878);
7628
7628
  /* harmony import */ var domains_visibility_hooks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(6082);
7629
7629
  /* harmony import */ var lib_id__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(8527);
7630
- /* harmony import */ var _seamly_api_hooks__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(7044);
7630
+ /* harmony import */ var _seamly_api_hooks__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(8048);
7631
7631
  /* harmony import */ var _seamly_state_hooks__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2140);
7632
7632
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7633
7633
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -11886,7 +11886,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_conversationAu
11886
11886
  return {
11887
11887
  clientName: "@seamly/web-ui",
11888
11888
  clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
11889
- clientVersion: "21.0.8",
11889
+ clientVersion: "22.0.0",
11890
11890
  currentUrl: window.location.toString(),
11891
11891
  screenResolution: `${window.screen.width}x${window.screen.height}`,
11892
11892
  timezone: getTimeZone(),
@@ -15673,8 +15673,8 @@ const PrivacyDisclaimer = () => {
15673
15673
  });
15674
15674
  };
15675
15675
  /* harmony default export */ const privacy_disclaimer = (PrivacyDisclaimer);
15676
- // EXTERNAL MODULE: ./src/javascripts/ui/hooks/seamly-api-hooks.js
15677
- var seamly_api_hooks = __webpack_require__(7044);
15676
+ // EXTERNAL MODULE: ./src/javascripts/ui/hooks/seamly-api-hooks.ts
15677
+ var seamly_api_hooks = __webpack_require__(8048);
15678
15678
  // EXTERNAL MODULE: ./src/javascripts/ui/hooks/live-region-hooks.js
15679
15679
  var live_region_hooks = __webpack_require__(5136);
15680
15680
  // EXTERNAL MODULE: ./node_modules/reselect/es/index.js + 1 modules
@@ -16608,10 +16608,9 @@ function FormProvider(_a) {
16608
16608
  });
16609
16609
  }, [setExternalErrors]);
16610
16610
  const handleSubmit = (0,hooks_.useCallback)((e) => {
16611
- var _a;
16612
16611
  e.preventDefault();
16613
16612
  // If the submitter is set to being aria-disabled, block the submit action
16614
- const ariaDisabled = ((_a = e.submitter) === null || _a === void 0 ? void 0 : _a.ariaDisabled) === 'true';
16613
+ const ariaDisabled = e.submitter.getAttribute('aria-disabled') === 'true';
16615
16614
  setIsSubmitted(!ariaDisabled);
16616
16615
  if (!ariaDisabled && validationIsValid) {
16617
16616
  dispatch((0,slice/* setHasResponded */.oT)(true));