@getsoren/shared-module 2.49.0 → 2.50.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.
- package/dist/main.js +11 -11
- package/package.json +5 -6
package/dist/main.js
CHANGED
|
@@ -501,25 +501,25 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
501
501
|
let r = `${n}${ye(e)}`, i = r.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
|
|
502
502
|
return typeof t == "number" && i ? `${r.replace("/files", `/thumbs/${t}`)}` : r;
|
|
503
503
|
}, xe = (e) => {
|
|
504
|
-
let { apiURL: t, libraries: n } = a(y), r = e?.dayjs || n?.dayjs
|
|
504
|
+
let { apiURL: t, libraries: n } = a(y), r = e?.dayjs || n?.dayjs, o = i((e, n) => {
|
|
505
|
+
if (!t) throw Error("API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter.");
|
|
506
|
+
return typeof e == "string" && /^https?:\/\//.test(e) ? e : be({
|
|
507
|
+
apiURL: t,
|
|
508
|
+
path: e,
|
|
509
|
+
size: n
|
|
510
|
+
});
|
|
511
|
+
}, [t]);
|
|
505
512
|
return {
|
|
506
|
-
dateAdapter: (e, t) => {
|
|
513
|
+
dateAdapter: i((e, t) => {
|
|
507
514
|
if (!r) throw Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
508
515
|
return G({
|
|
509
516
|
date: e,
|
|
510
517
|
format: t,
|
|
511
518
|
library: r
|
|
512
519
|
});
|
|
513
|
-
},
|
|
520
|
+
}, [r]),
|
|
514
521
|
distanceAdapter: K,
|
|
515
|
-
filePathAdapter:
|
|
516
|
-
if (!t) throw Error("API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter.");
|
|
517
|
-
return typeof e == "string" && /^https?:\/\//.test(e) ? e : be({
|
|
518
|
-
apiURL: t,
|
|
519
|
-
path: e,
|
|
520
|
-
size: n
|
|
521
|
-
});
|
|
522
|
-
},
|
|
522
|
+
filePathAdapter: o,
|
|
523
523
|
worksiteNameAdapter: q
|
|
524
524
|
};
|
|
525
525
|
}, Se = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getsoren/shared-module",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.50.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "./dist/main.d.ts",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@amplitude/analytics-browser": "^2.11.0",
|
|
44
44
|
"@amplitude/plugin-session-replay-browser": "^1.8.0",
|
|
45
|
+
"@getsoren/biome-config-react": "^1.4.0",
|
|
46
|
+
"@getsoren/react-google-tag-manager": "^1.4.6",
|
|
45
47
|
"@sentry/react": "^10.49.0",
|
|
46
48
|
"@tanstack/react-query": "^5.99.2",
|
|
47
49
|
"@testing-library/jest-dom": "^5.17.0",
|
|
48
50
|
"@testing-library/react": "^14.0.0",
|
|
49
|
-
"@testing-library/user-event": "^14.5.1",
|
|
50
|
-
"@getsoren/biome-config-react": "^1.4.0",
|
|
51
|
-
"@getsoren/react-google-tag-manager": "^1.4.6",
|
|
52
51
|
"@types/react": "^19.0.0",
|
|
53
52
|
"@types/react-dom": "^19.0.0",
|
|
54
53
|
"@vitejs/plugin-react": "^6.0.1",
|
|
55
54
|
"axios": "^1.15.1",
|
|
55
|
+
"commit-and-tag-version": "^12.6.0",
|
|
56
56
|
"dayjs": "^1.11.20",
|
|
57
57
|
"husky": "^8.0.3",
|
|
58
58
|
"i18next": "^26.0.6",
|
|
@@ -65,8 +65,7 @@
|
|
|
65
65
|
"typescript": "^5.8.3",
|
|
66
66
|
"unplugin-dts": "1.0.0-beta.6",
|
|
67
67
|
"vite": "8.0.9",
|
|
68
|
-
"vitest": "^1.6.1"
|
|
69
|
-
"commit-and-tag-version": "^12.6.0"
|
|
68
|
+
"vitest": "^1.6.1"
|
|
70
69
|
},
|
|
71
70
|
"peerDependencies": {
|
|
72
71
|
"axios": "*",
|