@memobit/libs 3.4.3 → 3.6.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/components/AngleSlider/AngleSlider2.js +27 -27
- package/dist/components/AppHeader/AppHeader2.js +39 -36
- package/dist/components/Auth/ChangePasswordModal/ChangePasswordModal2.js +48 -52
- package/dist/components/Auth/MfaSetupModal/MfaSetupModal2.js +64 -65
- package/dist/components/Blockquote/Blockquote2.js +14 -14
- package/dist/components/BulkActionBar/BulkActionBar2.js +34 -30
- package/dist/components/Calendar/Calendar2.js +10 -8
- package/dist/components/Card/Card.css +1 -1
- package/dist/components/Confetti/Confetti2.js +2 -3
- package/dist/components/ControlPanel/ControlPanelFilter.js +26 -26
- package/dist/components/DataView/DataView.CardView.js +8 -4
- package/dist/components/DataView/DataView.ColumnSelector.js +24 -21
- package/dist/components/DataView/DataView.MiniSort.js +18 -16
- package/dist/components/DataView/DataView2.js +90 -86
- package/dist/components/DiffViewer/DiffViewer2.js +124 -118
- package/dist/components/Dropdown/Dropdown2.js +0 -3
- package/dist/components/EventCalendar/EventCalendar.Chip.js +21 -21
- package/dist/components/EventCalendar/EventCalendar.Month.js +19 -19
- package/dist/components/FloatingWindow/FloatingWindow2.js +60 -60
- package/dist/components/Grid/Grid2.js +18 -18
- package/dist/components/InputPIN/InputPIN2.js +42 -42
- package/dist/components/MiniSort/MiniSort2.js +47 -43
- package/dist/components/MiniStatsCard/MiniStatsCard2.js +20 -20
- package/dist/components/Pagination/Pagination2.js +18 -18
- package/dist/components/Popover/Popover2.js +23 -21
- package/dist/components/ProtectedRoute/ProtectedRoute.css +1 -0
- package/dist/components/ProtectedRoute/ProtectedRoute2.js +19 -0
- package/dist/components/RangeSlider/RangeSlider2.js +25 -25
- package/dist/components/Rating/RatingIcon.js +9 -9
- package/dist/components/RichTextEditor/hooks/useLinkPrompt.js +7 -6
- package/dist/components/RollingNumber/RollingNumber2.js +33 -31
- package/dist/components/Separator/Separator2.js +27 -23
- package/dist/components/Skeleton/Skeleton2.js +6 -8
- package/dist/components/Slider/Slider2.js +32 -32
- package/dist/components/Splitter/Splitter2.js +34 -34
- package/dist/components/StackedBar/StackedBar2.js +36 -34
- package/dist/components/Stats/Stats2.js +20 -16
- package/dist/components/StickyBar/StickyBar2.js +26 -22
- package/dist/components/Timeline/Timeline2.js +53 -47
- package/dist/components/Tooltip/Tooltip2.js +7 -8
- package/dist/components/TourHud/TourHud2.js +20 -20
- package/dist/components/Transition/Transition2.js +20 -20
- package/dist/components/Tree/Tree2.js +23 -23
- package/dist/contexts/AuthContext/AuthContext.js +33 -32
- package/dist/helpers/Charts.js +18 -0
- package/dist/helpers/Http.js +102 -0
- package/dist/helpers/Images.js +19 -0
- package/dist/helpers/Numbers.js +5 -4
- package/dist/helpers/VersionInfo.js +1 -1
- package/dist/hooks/useAccountMenu.js +58 -0
- package/dist/http.d.ts +97 -0
- package/dist/http.js +14 -0
- package/dist/index.d.ts +152 -5
- package/dist/index.js +334 -309
- package/dist/node_modules/qrcode.react/lib/esm/index.js +2 -2
- package/dist/router.d.ts +18 -0
- package/dist/router.js +4 -0
- package/dist/version.js +2 -2
- package/dist/version.json +4 -4
- package/package.json +38 -23
|
@@ -667,8 +667,8 @@ var ie = Object.defineProperty, D = Object.getOwnPropertySymbols, Y = Object.pro
|
|
|
667
667
|
}
|
|
668
668
|
static makeAlphanumeric(e) {
|
|
669
669
|
if (!M.isAlphanumeric(e)) throw new RangeError("String contains unencodable characters in alphanumeric mode");
|
|
670
|
-
let n = [], t;
|
|
671
|
-
for (
|
|
670
|
+
let n = [], t = 0;
|
|
671
|
+
for (; t + 2 <= e.length; t += 2) {
|
|
672
672
|
let r = M.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)) * 45;
|
|
673
673
|
r += M.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t + 1)), s(r, 11, n);
|
|
674
674
|
}
|
package/dist/router.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare function ProtectedRoute({ children, loginPath }: ProtectedRouteProps): ReactElement;
|
|
5
|
+
|
|
6
|
+
export declare interface ProtectedRouteProps {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
loginPath?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { }
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
declare global {
|
|
15
|
+
interface Window {
|
|
16
|
+
__VERSIONS__: FullVersionInfo;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/dist/router.js
ADDED
package/dist/version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var I = "3.
|
|
1
|
+
var I = "3.6.0", B = 484, L = "40a4ef2", _ = "2026-10-10T06:47:22.564Z", a = "484";
|
|
2
2
|
export {
|
|
3
3
|
_ as LIB_BUILD_DATE,
|
|
4
|
-
|
|
4
|
+
a as LIB_BUILD_ID,
|
|
5
5
|
B as LIB_BUILD_NUMBER,
|
|
6
6
|
L as LIB_COMMIT,
|
|
7
7
|
I as LIB_VERSION
|
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memobit/libs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "React component library powering the Memobit apps — 100+ components, helpers and hooks. Icons ship as @memobit/icons and themes as @memobit/themes. TypeScript-first, ESM-only, React 19.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -44,6 +44,14 @@
|
|
|
44
44
|
"types": "./dist/mfa.d.ts",
|
|
45
45
|
"import": "./dist/mfa.js"
|
|
46
46
|
},
|
|
47
|
+
"./http": {
|
|
48
|
+
"types": "./dist/http.d.ts",
|
|
49
|
+
"import": "./dist/http.js"
|
|
50
|
+
},
|
|
51
|
+
"./router": {
|
|
52
|
+
"types": "./dist/router.d.ts",
|
|
53
|
+
"import": "./dist/router.js"
|
|
54
|
+
},
|
|
47
55
|
"./dist/styles/variables.scss": "./dist/styles/variables.scss",
|
|
48
56
|
"./dist/styles/base.scss": "./dist/styles/base.scss",
|
|
49
57
|
"./dist/styles/effects.scss": "./dist/styles/effects.scss",
|
|
@@ -74,48 +82,55 @@
|
|
|
74
82
|
"peerDependencies": {
|
|
75
83
|
"@memobit/icons": "^1.0.0",
|
|
76
84
|
"@memobit/themes": "^1.0.0",
|
|
77
|
-
"react": "19.
|
|
78
|
-
"react-dom": "19.
|
|
85
|
+
"react": "19.3.0",
|
|
86
|
+
"react-dom": "19.3.0",
|
|
87
|
+
"react-router": "8.4.0"
|
|
88
|
+
},
|
|
89
|
+
"peerDependenciesMeta": {
|
|
90
|
+
"react-router": {
|
|
91
|
+
"optional": true
|
|
92
|
+
}
|
|
79
93
|
},
|
|
80
94
|
"devDependencies": {
|
|
81
95
|
"@eslint/js": "9.39.4",
|
|
82
96
|
"@memobit/icons": "file:../memobit-react-icons",
|
|
83
97
|
"@memobit/themes": "file:../memobit-react-themes",
|
|
84
|
-
"@microsoft/api-extractor": "7.
|
|
85
|
-
"@types/react": "19.
|
|
86
|
-
"@types/react-dom": "19.
|
|
87
|
-
"@vitejs/plugin-react": "6.
|
|
88
|
-
"esbuild": "0.28.
|
|
98
|
+
"@microsoft/api-extractor": "7.59.2",
|
|
99
|
+
"@types/react": "19.3.0",
|
|
100
|
+
"@types/react-dom": "19.3.0",
|
|
101
|
+
"@vitejs/plugin-react": "6.1.1",
|
|
102
|
+
"esbuild": "0.28.2",
|
|
89
103
|
"eslint": "9.39.4",
|
|
90
104
|
"eslint-config-prettier": "10.1.8",
|
|
91
105
|
"eslint-plugin-import-x": "4.17.1",
|
|
92
|
-
"eslint-plugin-prettier": "5.5.
|
|
106
|
+
"eslint-plugin-prettier": "5.5.6",
|
|
93
107
|
"eslint-plugin-react": "7.37.5",
|
|
94
|
-
"eslint-plugin-simple-import-sort": "
|
|
95
|
-
"globals": "17.
|
|
96
|
-
"prettier": "3.
|
|
108
|
+
"eslint-plugin-simple-import-sort": "14.0.0",
|
|
109
|
+
"globals": "17.12.0",
|
|
110
|
+
"prettier": "3.9.9",
|
|
97
111
|
"qrcode.react": "4.2.0",
|
|
98
|
-
"react": "19.
|
|
99
|
-
"react-dom": "19.
|
|
100
|
-
"react-router": "8.
|
|
101
|
-
"sass": "1.
|
|
102
|
-
"terser": "5.
|
|
112
|
+
"react": "19.3.0",
|
|
113
|
+
"react-dom": "19.3.0",
|
|
114
|
+
"react-router": "8.4.0",
|
|
115
|
+
"sass": "1.105.0",
|
|
116
|
+
"terser": "5.51.2",
|
|
103
117
|
"typescript": "6.0.3",
|
|
104
|
-
"typescript-eslint": "8.
|
|
105
|
-
"vite": "8.1
|
|
106
|
-
"vite-plugin-dts": "5.
|
|
107
|
-
"vite-plugin-static-copy": "
|
|
118
|
+
"typescript-eslint": "8.70.1",
|
|
119
|
+
"vite": "8.3.1",
|
|
120
|
+
"vite-plugin-dts": "5.1.1",
|
|
121
|
+
"vite-plugin-static-copy": "4.1.1"
|
|
108
122
|
},
|
|
109
123
|
"overrides": {
|
|
110
124
|
"brace-expansion@1": "1.1.21",
|
|
111
125
|
"brace-expansion@5": "5.0.12",
|
|
126
|
+
"esbuild": "0.28.2",
|
|
112
127
|
"fast-uri@3": "3.1.8",
|
|
113
128
|
"immutable": "5.1.9",
|
|
114
129
|
"js-yaml": "4.3.2",
|
|
115
130
|
"minimatch@10": "10.2.6",
|
|
116
131
|
"nanoid@3": "3.3.18",
|
|
117
132
|
"picomatch@2": "2.3.2",
|
|
118
|
-
"postcss": "8.5.
|
|
119
|
-
"
|
|
133
|
+
"postcss": "8.5.28",
|
|
134
|
+
"source-map-js": "1.2.2"
|
|
120
135
|
}
|
|
121
136
|
}
|