@ssa-ui-kit/templates 2.2.0 → 2.2.2

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 SSA Group
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 SSA Group
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1 +1 @@
1
- {"version":3,"file":"991.index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAA8D;AAE9D,MAAMG,QAAQ,GAAGA,CAAA,KAAM;EACrB,IAAID,iCAAO,CAAC,CAAC,CAACE,MAAM,GAAG,CAAC,EAAE;IACxB,OAAOH,gCAAM,CAAC,CAAC;EACjB;EACA,OAAOD,uCAAa,CAAC;IACnBK,MAAM,EAAEC,yCAAsC;IAC9CG,UAAU,EAAEH,8BAA0C;IACtDK,SAAS,EAAEL,cAAyC;IACpDO,aAAa,EAAEP,0BAA6C;IAC5DS,iBAAiB,EAAET,cAAiD;IACpEW,KAAK,EAAEX,2CAAqCY;EAC9C,CAAC,CAAC;AACJ,CAAC;AAEM,MAAMC,GAAG,GAAGhB,QAAQ,CAAC,CAAC;;AChBqB;AACtB;AASA;AAErB,MAAMwB,EAAE,GAAGP,kCAAY,CAACD,GAAG,CAAC","sources":["webpack://SSATemplates/./src/projects/fitness/apis/sources/firebase/init/app.ts","webpack://SSATemplates/./src/projects/fitness/apis/sources/firebase/init/firestore.ts"],"sourcesContent":["import { initializeApp, getApp, getApps } from 'firebase/app';\r\n\r\nconst setupApp = () => {\r\n if (getApps().length > 0) {\r\n return getApp();\r\n }\r\n return initializeApp({\r\n apiKey: process.env.STORYBOOK_FIREBASE_API_KEY,\r\n authDomain: process.env.STORYBOOK_FIREBASE_AUTH_DOMAIN,\r\n projectId: process.env.STORYBOOK_FIREBASE_PROJECT_ID,\r\n storageBucket: process.env.STORYBOOK_FIREBASE_STORAGE_BUCKET,\r\n messagingSenderId: process.env.STORYBOOK_FIREBASE_MESSAGING_SENDERID,\r\n appId: process.env.STORYBOOK_FIREBASE_APP_ID,\r\n });\r\n};\r\n\r\nexport const app = setupApp();\r\n","import { getFirestore } from 'firebase/firestore';\r\nimport { app } from './app';\r\n\r\nexport {\r\n query,\r\n collection,\r\n getDocs,\r\n orderBy,\r\n doc,\r\n getDoc,\r\n} from 'firebase/firestore';\r\n\r\nexport const db = getFirestore(app);\r\n"],"names":["initializeApp","getApp","getApps","setupApp","length","apiKey","process","env","STORYBOOK_FIREBASE_API_KEY","authDomain","STORYBOOK_FIREBASE_AUTH_DOMAIN","projectId","STORYBOOK_FIREBASE_PROJECT_ID","storageBucket","STORYBOOK_FIREBASE_STORAGE_BUCKET","messagingSenderId","STORYBOOK_FIREBASE_MESSAGING_SENDERID","appId","STORYBOOK_FIREBASE_APP_ID","app","getFirestore","query","collection","getDocs","orderBy","doc","getDoc","db"],"sourceRoot":""}
1
+ {"version":3,"file":"991.index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAA8D;AAE9D,MAAMG,QAAQ,GAAGA,CAAA,KAAM;EACrB,IAAID,iCAAO,CAAC,CAAC,CAACE,MAAM,GAAG,CAAC,EAAE;IACxB,OAAOH,gCAAM,CAAC,CAAC;EACjB;EACA,OAAOD,uCAAa,CAAC;IACnBK,MAAM,EAAEC,yCAAsC;IAC9CG,UAAU,EAAEH,8BAA0C;IACtDK,SAAS,EAAEL,cAAyC;IACpDO,aAAa,EAAEP,0BAA6C;IAC5DS,iBAAiB,EAAET,cAAiD;IACpEW,KAAK,EAAEX,2CAAqCY;EAC9C,CAAC,CAAC;AACJ,CAAC;AAEM,MAAMC,GAAG,GAAGhB,QAAQ,CAAC,CAAC;;AChBqB;AACtB;AASA;AAErB,MAAMwB,EAAE,GAAGP,kCAAY,CAACD,GAAG,CAAC","sources":["webpack://SSATemplates/./src/projects/fitness/apis/sources/firebase/init/app.ts","webpack://SSATemplates/./src/projects/fitness/apis/sources/firebase/init/firestore.ts"],"sourcesContent":["import { initializeApp, getApp, getApps } from 'firebase/app';\n\nconst setupApp = () => {\n if (getApps().length > 0) {\n return getApp();\n }\n return initializeApp({\n apiKey: process.env.STORYBOOK_FIREBASE_API_KEY,\n authDomain: process.env.STORYBOOK_FIREBASE_AUTH_DOMAIN,\n projectId: process.env.STORYBOOK_FIREBASE_PROJECT_ID,\n storageBucket: process.env.STORYBOOK_FIREBASE_STORAGE_BUCKET,\n messagingSenderId: process.env.STORYBOOK_FIREBASE_MESSAGING_SENDERID,\n appId: process.env.STORYBOOK_FIREBASE_APP_ID,\n });\n};\n\nexport const app = setupApp();\n","import { getFirestore } from 'firebase/firestore';\nimport { app } from './app';\n\nexport {\n query,\n collection,\n getDocs,\n orderBy,\n doc,\n getDoc,\n} from 'firebase/firestore';\n\nexport const db = getFirestore(app);\n"],"names":["initializeApp","getApp","getApps","setupApp","length","apiKey","process","env","STORYBOOK_FIREBASE_API_KEY","authDomain","STORYBOOK_FIREBASE_AUTH_DOMAIN","projectId","STORYBOOK_FIREBASE_PROJECT_ID","storageBucket","STORYBOOK_FIREBASE_STORAGE_BUCKET","messagingSenderId","STORYBOOK_FIREBASE_MESSAGING_SENDERID","appId","STORYBOOK_FIREBASE_APP_ID","app","getFirestore","query","collection","getDocs","orderBy","doc","getDoc","db"],"sourceRoot":""}
package/dist/index.js CHANGED
@@ -3312,11 +3312,11 @@ const useGraphs = () => (0,external_react_namespaceObject.useContext)(GraphsCont
3312
3312
  const MAX_X_AXIS_LABELS = 8;
3313
3313
  const MAX_X_AXIS_LENGTH_VALUE = 30;
3314
3314
  const getFilterFn = data => {
3315
- /*
3316
- * When we have up to 16 items in the data array, using a "2" as the
3317
- * divider will give us up to 8 labels on the X axis, which is
3318
- * <= MAX_X_AXIS_LABELS and, therefore, can be displayed without labels
3319
- * overlapping each other.
3315
+ /*
3316
+ * When we have up to 16 items in the data array, using a "2" as the
3317
+ * divider will give us up to 8 labels on the X axis, which is
3318
+ * <= MAX_X_AXIS_LABELS and, therefore, can be displayed without labels
3319
+ * overlapping each other.
3320
3320
  * */
3321
3321
  const divider = data.length > MAX_X_AXIS_LABELS * 2 ? data.length > MAX_X_AXIS_LENGTH_VALUE ? 6 : 5 : 3;
3322
3322
  return (_, i) => i === 0 || i === data.length - 1 || i % divider === 0;
@@ -8217,8 +8217,8 @@ const FinTechDashboard = () => {
8217
8217
  },
8218
8218
  itemsPerRow: 6,
8219
8219
  onClick: () => {
8220
- /**
8221
- * It was decided to skip clicks handling / redirects temporarily.
8220
+ /**
8221
+ * It was decided to skip clicks handling / redirects temporarily.
8222
8222
  * */
8223
8223
  },
8224
8224
  css: FinTechDashboard_ref2
@@ -12154,17 +12154,17 @@ const BotsPage = (0,core_namespaceObject.WithPagination)(BotsPageComponent);
12154
12154
  ;// external "@ssa-ui-kit/hooks"
12155
12155
  const hooks_namespaceObject = require("@ssa-ui-kit/hooks");
12156
12156
  ;// ./src/projects/fitness/apis/sources/firebase/initFirebase.ts
12157
- /**
12158
- * Firebase packages are pretty heavy:
12159
- * https://github.com/firebase/firebase-js-sdk/issues/332
12160
- *
12161
- * Even though declared as tree-shakeable, it seems like the
12162
- * whole packages are included to the production bundle.
12157
+ /**
12158
+ * Firebase packages are pretty heavy:
12159
+ * https://github.com/firebase/firebase-js-sdk/issues/332
12160
+ *
12161
+ * Even though declared as tree-shakeable, it seems like the
12162
+ * whole packages are included to the production bundle.
12163
12163
  * */
12164
12164
 
12165
- /**
12166
- * The following lazy-load implementation was inspired by
12167
- * this: https://gist.github.com/dyaa/8f8d1f8964160630f2475fe26a2e6150?permalink_comment_id=4065558#gistcomment-4065558
12165
+ /**
12166
+ * The following lazy-load implementation was inspired by
12167
+ * this: https://gist.github.com/dyaa/8f8d1f8964160630f2475fe26a2e6150?permalink_comment_id=4065558#gistcomment-4065558
12168
12168
  * */
12169
12169
  const getFirebase = async () => {
12170
12170
  const [firestore] = await Promise.all([Promise.all(/* import() */[__webpack_require__.e(211), __webpack_require__.e(991)]).then(__webpack_require__.bind(__webpack_require__, 991))]);
@@ -12329,10 +12329,10 @@ const progress = {
12329
12329
 
12330
12330
 
12331
12331
 
12332
- /**
12333
- * Inspired by https://usehooks.com/useAuth/
12334
- *
12335
- * Authentication to be implemented in the subsequent releases.
12332
+ /**
12333
+ * Inspired by https://usehooks.com/useAuth/
12334
+ *
12335
+ * Authentication to be implemented in the subsequent releases.
12336
12336
  * */
12337
12337
 
12338
12338
  const AuthContext = /*#__PURE__*/(0,external_react_namespaceObject.createContext)({