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

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 (57) hide show
  1. package/build/dist/lib/components.js +174 -145
  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.LICENSE.txt +2 -2
  5. package/build/dist/lib/components.min.js.map +1 -1
  6. package/build/dist/lib/deprecated-view.css +1 -1
  7. package/build/dist/lib/deprecated-view.js +1 -1
  8. package/build/dist/lib/hooks.js +147 -137
  9. package/build/dist/lib/hooks.js.map +1 -1
  10. package/build/dist/lib/hooks.min.js +1 -1
  11. package/build/dist/lib/hooks.min.js.map +1 -1
  12. package/build/dist/lib/index.debug.js +74 -60
  13. package/build/dist/lib/index.debug.js.map +1 -1
  14. package/build/dist/lib/index.debug.min.js +1 -1
  15. package/build/dist/lib/index.debug.min.js.LICENSE.txt +13 -9
  16. package/build/dist/lib/index.debug.min.js.map +1 -1
  17. package/build/dist/lib/index.js +176 -147
  18. package/build/dist/lib/index.js.map +1 -1
  19. package/build/dist/lib/index.min.js +1 -1
  20. package/build/dist/lib/index.min.js.LICENSE.txt +2 -2
  21. package/build/dist/lib/index.min.js.map +1 -1
  22. package/build/dist/lib/standalone.js +398 -175
  23. package/build/dist/lib/standalone.js.map +1 -1
  24. package/build/dist/lib/standalone.min.js +1 -1
  25. package/build/dist/lib/standalone.min.js.LICENSE.txt +1 -1
  26. package/build/dist/lib/standalone.min.js.map +1 -1
  27. package/build/dist/lib/storage.js +17 -17
  28. package/build/dist/lib/storage.js.map +1 -1
  29. package/build/dist/lib/storage.min.js +1 -1
  30. package/build/dist/lib/storage.min.js.LICENSE.txt +1 -1
  31. package/build/dist/lib/storage.min.js.map +1 -1
  32. package/build/dist/lib/style-guide.js +201 -139
  33. package/build/dist/lib/style-guide.js.map +1 -1
  34. package/build/dist/lib/style-guide.min.js +1 -1
  35. package/build/dist/lib/style-guide.min.js.LICENSE.txt +2 -2
  36. package/build/dist/lib/style-guide.min.js.map +1 -1
  37. package/build/dist/lib/styles-default-implementation.js +1 -1
  38. package/build/dist/lib/styles.css +1 -1
  39. package/build/dist/lib/styles.js +1 -1
  40. package/build/dist/lib/utils.js +212 -192
  41. package/build/dist/lib/utils.js.map +1 -1
  42. package/build/dist/lib/utils.min.js +1 -1
  43. package/build/dist/lib/utils.min.js.LICENSE.txt +1 -1
  44. package/build/dist/lib/utils.min.js.map +1 -1
  45. package/package.json +30 -27
  46. package/src/javascripts/api/conversation-connector.ts +6 -4
  47. package/src/javascripts/domains/forms/provider.tsx +1 -1
  48. package/src/javascripts/domains/store/slice.ts +6 -0
  49. package/src/javascripts/domains/store/store.types.ts +6 -1
  50. package/src/javascripts/style-guide/states.js +44 -0
  51. package/src/javascripts/ui/components/conversation/conversation.tsx +3 -1
  52. package/src/javascripts/ui/components/core/seamly-event-subscriber.ts +38 -49
  53. package/src/javascripts/ui/components/core/seamly-live-region.js +1 -1
  54. package/src/javascripts/ui/hooks/{seamly-api-hooks.js → seamly-api-hooks.ts} +1 -1
  55. package/src/javascripts/ui/hooks/use-debounce.ts +18 -0
  56. package/src/javascripts/ui/hooks/use-seamly-chat.ts +3 -42
  57. package/src/.DS_Store +0 -0
@@ -214,6 +214,10 @@
214
214
  !*** ./src/javascripts/ui/hooks/sounds/beep.mp3 ***!
215
215
  \**************************************************/
216
216
 
217
+ /*!**************************************************!*\
218
+ !*** ./src/javascripts/ui/hooks/use-debounce.ts ***!
219
+ \**************************************************/
220
+
217
221
  /*!**************************************************!*\
218
222
  !*** ./src/javascripts/ui/hooks/use-interval.js ***!
219
223
  \**************************************************/
@@ -371,7 +375,7 @@
371
375
  \******************************************************/
372
376
 
373
377
  /*!******************************************************!*\
374
- !*** ./src/javascripts/ui/hooks/seamly-api-hooks.js ***!
378
+ !*** ./src/javascripts/ui/hooks/seamly-api-hooks.ts ***!
375
379
  \******************************************************/
376
380
 
377
381
  /*!*******************************************************!*\
@@ -842,6 +846,10 @@
842
846
  !*** ./node_modules/react-redux/es/utils/bindActionCreators.js ***!
843
847
  \*****************************************************************/
844
848
 
849
+ /*!*****************************************************************!*\
850
+ !*** ./node_modules/react-redux/node_modules/react-is/index.js ***!
851
+ \*****************************************************************/
852
+
845
853
  /*!*****************************************************************!*\
846
854
  !*** ./src/javascripts/api/errors/seamly-unauthorized-error.js ***!
847
855
  \*****************************************************************/
@@ -1266,10 +1274,6 @@
1266
1274
  !*** ./src/javascripts/ui/components/entry/text-entry/text-entry-form.tsx ***!
1267
1275
  \****************************************************************************/
1268
1276
 
1269
- /*!*****************************************************************************!*\
1270
- !*** ./node_modules/hoist-non-react-statics/node_modules/react-is/index.js ***!
1271
- \*****************************************************************************/
1272
-
1273
1277
  /*!*****************************************************************************!*\
1274
1278
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/icons/icon_balloon-32.svg ***!
1275
1279
  \*****************************************************************************/
@@ -1374,6 +1378,10 @@
1374
1378
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/icons/icon_newtranslation-32.svg ***!
1375
1379
  \************************************************************************************/
1376
1380
 
1381
+ /*!************************************************************************************!*\
1382
+ !*** ./node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js ***!
1383
+ \************************************************************************************/
1384
+
1377
1385
  /*!************************************************************************************!*\
1378
1386
  !*** ./src/javascripts/ui/components/conversation/event/carousel-message/index.js ***!
1379
1387
  \************************************************************************************/
@@ -1422,10 +1430,6 @@
1422
1430
  !*** ./src/javascripts/ui/components/conversation/event/chat-scroll/chat-scroll-provider.tsx ***!
1423
1431
  \***********************************************************************************************/
1424
1432
 
1425
- /*!************************************************************************************************!*\
1426
- !*** ./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js ***!
1427
- \************************************************************************************************/
1428
-
1429
1433
  /*!************************************************************************************************!*\
1430
1434
  !*** ./src/javascripts/domains/translations/components/options-dialog/translation-options.tsx ***!
1431
1435
  \************************************************************************************************/
@@ -1 +1 @@
1
- {"version":3,"file":"index.debug.min.js","mappings":";gq1vCAAAA,EAAOC,QAAUC,QAAQ,4CCAzBF,EAAOC,QAAUC,QAAQ,kDCAzBF,EAAOC,QAAUC,QAAQ,uDCAzBF,EAAOC,QAAUC,QAAQ,w+tECCrBC,yBAA2B,CAAC,EAGhC,SAASC,oBAAoBC,GAE5B,IAAIC,EAAeH,yBAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaL,QAGrB,IAAID,EAASG,yBAAyBE,GAAY,CAGjDJ,QAAS,CAAC,GAOX,OAHAO,oBAAoBH,GAAUL,EAAQA,EAAOC,QAASG,qBAG/CJ,EAAOC,OACf,CCrBAG,oBAAoBK,EAAKT,IACxB,IAAIU,EAASV,GAAUA,EAAOW,WAC7B,IAAOX,EAAiB,QACxB,IAAM,EAEP,OADAI,oBAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdN,oBAAoBQ,EAAI,CAACX,EAASa,KACjC,IAAI,IAAIC,KAAOD,EACXV,oBAAoBY,EAAEF,EAAYC,KAASX,oBAAoBY,EAAEf,EAASc,IAC5EE,OAAOC,eAAejB,EAASc,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDX,oBAAoBiB,EAAI,WACvB,GAA0B,iBAAfC,WAAyB,OAAOA,WAC3C,IACC,OAAOC,MAAQ,IAAIC,SAAS,cAAb,EAChB,CAAE,MAAOC,GACR,GAAsB,iBAAXC,OAAqB,OAAOA,MACxC,CACA,CAPuB,GCAxBtB,oBAAoBY,EAAI,CAACW,EAAKC,IAAUX,OAAOY,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFxB,oBAAoB4B,EAAK/B,IACH,oBAAXgC,QAA0BA,OAAOC,aAC1CjB,OAAOC,eAAejB,EAASgC,OAAOC,YAAa,CAAEC,MAAO,WAE7DlB,OAAOC,eAAejB,EAAS,aAAc,CAAEkC,OAAO,GAAO,QCL9D,IAAIC,EACAhC,oBAAoBiB,EAAEgB,gBAAeD,EAAYhC,oBAAoBiB,EAAEiB,SAAW,IACtF,IAAIC,EAAWnC,oBAAoBiB,EAAEkB,SACrC,IAAKH,GAAaG,IACbA,EAASC,gBACZJ,EAAYG,EAASC,cAAcC,MAC/BL,GAAW,CACf,IAAIM,EAAUH,EAASI,qBAAqB,UACzCD,EAAQE,SAAQR,EAAYM,EAAQA,EAAQE,OAAS,GAAGH,IAC5D,CAID,IAAKL,EAAW,MAAM,IAAIS,MAAM,yDAChCT,EAAYA,EAAUU,QAAQ,OAAQ,IAAIA,QAAQ,QAAS,IAAIA,QAAQ,YAAa,KACpF1C,oBAAoB2C,EAAIX,MCZxB,IAAIY,oBAAsB5C,oBAAoB","sources":["webpack:///external commonjs2 \"preact\"","webpack:///external commonjs2 \"preact/compat\"","webpack:///external commonjs2 \"preact/hooks\"","webpack:///external commonjs2 \"preact/jsx-runtime\"","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/publicPath","webpack:///webpack/startup"],"sourcesContent":["module.exports = require(\"preact\");","module.exports = require(\"preact/compat\");","module.exports = require(\"preact/hooks\");","module.exports = require(\"preact/jsx-runtime\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// startup\n// Load entry module and return exports\n// This entry module can't be inlined because the eval devtool is used.\nvar __webpack_exports__ = __webpack_require__(\"./src/javascripts/index.ts\");\n"],"names":["module","exports","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","g","globalThis","this","Function","e","window","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","scriptUrl","importScripts","location","document","currentScript","src","scripts","getElementsByTagName","length","Error","replace","p","__webpack_exports__"],"sourceRoot":""}
1
+ {"version":3,"file":"index.debug.min.js","mappings":";ym5vCAAAA,EAAOC,QAAUC,QAAQ,4CCAzBF,EAAOC,QAAUC,QAAQ,kDCAzBF,EAAOC,QAAUC,QAAQ,uDCAzBF,EAAOC,QAAUC,QAAQ,shuECCrBC,yBAA2B,CAAC,EAGhC,SAASC,oBAAoBC,GAE5B,IAAIC,EAAeH,yBAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaL,QAGrB,IAAID,EAASG,yBAAyBE,GAAY,CAGjDJ,QAAS,CAAC,GAOX,OAHAO,oBAAoBH,GAAUI,KAAKT,EAAOC,QAASD,EAAQA,EAAOC,QAASG,qBAGpEJ,EAAOC,OACf,CCrBAG,oBAAoBM,EAAKV,IACxB,IAAIW,EAASX,GAAUA,EAAOY,WAC7B,IAAOZ,EAAiB,QACxB,IAAM,EAEP,OADAI,oBAAoBS,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdP,oBAAoBS,EAAI,CAACZ,EAASc,KACjC,IAAI,IAAIC,KAAOD,EACXX,oBAAoBa,EAAEF,EAAYC,KAASZ,oBAAoBa,EAAEhB,EAASe,IAC5EE,OAAOC,eAAelB,EAASe,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDZ,oBAAoBkB,EAAI,WACvB,GAA0B,iBAAfC,WAAyB,OAAOA,WAC3C,IACC,OAAOC,MAAQ,IAAIC,SAAS,cAAb,EAChB,CAAE,MAAOC,GACR,GAAsB,iBAAXC,OAAqB,OAAOA,MACxC,CACA,CAPuB,GCAxBvB,oBAAoBa,EAAI,CAACW,EAAKC,IAAUX,OAAOY,UAAUC,eAAetB,KAAKmB,EAAKC,GCClFzB,oBAAoB4B,EAAK/B,IACH,oBAAXgC,QAA0BA,OAAOC,aAC1ChB,OAAOC,eAAelB,EAASgC,OAAOC,YAAa,CAAEC,MAAO,WAE7DjB,OAAOC,eAAelB,EAAS,aAAc,CAAEkC,OAAO,GAAO,QCL9D,IAAIC,EACAhC,oBAAoBkB,EAAEe,gBAAeD,EAAYhC,oBAAoBkB,EAAEgB,SAAW,IACtF,IAAIC,EAAWnC,oBAAoBkB,EAAEiB,SACrC,IAAKH,GAAaG,IACbA,EAASC,gBACZJ,EAAYG,EAASC,cAAcC,MAC/BL,GAAW,CACf,IAAIM,EAAUH,EAASI,qBAAqB,UAC5C,GAAGD,EAAQE,OAEV,IADA,IAAIC,EAAIH,EAAQE,OAAS,EAClBC,GAAK,IAAMT,GAAWA,EAAYM,EAAQG,KAAKJ,GAExD,CAID,IAAKL,EAAW,MAAM,IAAIU,MAAM,yDAChCV,EAAYA,EAAUW,QAAQ,OAAQ,IAAIA,QAAQ,QAAS,IAAIA,QAAQ,YAAa,KACpF3C,oBAAoB4C,EAAIZ,MCfxB,IAAIa,oBAAsB7C,oBAAoB","sources":["webpack:///external commonjs2 \"preact\"","webpack:///external commonjs2 \"preact/compat\"","webpack:///external commonjs2 \"preact/hooks\"","webpack:///external commonjs2 \"preact/jsx-runtime\"","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/publicPath","webpack:///webpack/startup"],"sourcesContent":["module.exports = require(\"preact\");","module.exports = require(\"preact/compat\");","module.exports = require(\"preact/hooks\");","module.exports = require(\"preact/jsx-runtime\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// startup\n// Load entry module and return exports\n// This entry module can't be inlined because the eval devtool is used.\nvar __webpack_exports__ = __webpack_require__(\"./src/javascripts/index.ts\");\n"],"names":["module","exports","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","g","globalThis","this","Function","e","window","obj","prop","prototype","hasOwnProperty","r","Symbol","toStringTag","value","scriptUrl","importScripts","location","document","currentScript","src","scripts","getElementsByTagName","length","i","Error","replace","p","__webpack_exports__"],"sourceRoot":""}