@purpurds/autocomplete 6.9.0 → 6.10.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/LICENSE.txt +3 -3
- package/dist/autocomplete.cjs.js.map +1 -1
- package/dist/autocomplete.es.js.map +1 -1
- package/eslint.config.mjs +2 -0
- package/package.json +16 -19
- package/src/autocomplete.stories.tsx +1 -1
- package/src/utils.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/autocomplete",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.0",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "./dist/autocomplete.cjs.js",
|
|
6
6
|
"types": "./dist/autocomplete.d.ts",
|
|
@@ -16,43 +16,40 @@
|
|
|
16
16
|
"source": "src/autocomplete.tsx",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"classnames": "~2.5.0",
|
|
19
|
-
"
|
|
20
|
-
"@purpurds/
|
|
21
|
-
"@purpurds/
|
|
22
|
-
"@purpurds/
|
|
23
|
-
"@purpurds/
|
|
24
|
-
"@purpurds/
|
|
25
|
-
"@purpurds/tokens": "6.
|
|
19
|
+
"eslint": "9.24.0",
|
|
20
|
+
"@purpurds/heading": "6.10.0",
|
|
21
|
+
"@purpurds/listbox": "6.10.0",
|
|
22
|
+
"@purpurds/icon": "6.10.0",
|
|
23
|
+
"@purpurds/notification": "6.10.0",
|
|
24
|
+
"@purpurds/paragraph": "6.10.0",
|
|
25
|
+
"@purpurds/tokens": "6.10.0",
|
|
26
|
+
"@purpurds/text-field": "6.10.0"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
|
-
"@rushstack/eslint-patch": "~1.10.0",
|
|
29
29
|
"@storybook/blocks": "^8.6.4",
|
|
30
30
|
"@storybook/preview-api": "^8.6.4",
|
|
31
31
|
"@storybook/react": "^8.6.4",
|
|
32
|
-
"@telia/base-rig": "~8.2.0",
|
|
33
|
-
"@telia/react-rig": "~3.2.0",
|
|
34
32
|
"@testing-library/dom": "~10.4.0",
|
|
35
33
|
"@testing-library/jest-dom": "~6.4.0",
|
|
36
34
|
"@testing-library/react": "~16.2.0",
|
|
37
35
|
"@types/node": "20.12.12",
|
|
38
36
|
"@types/react-dom": "^19.0.4",
|
|
39
37
|
"@types/react": "^19.0.10",
|
|
40
|
-
"eslint
|
|
41
|
-
"eslint": "^8.57.0",
|
|
38
|
+
"eslint": "9.24.0",
|
|
42
39
|
"jsdom": "~22.1.0",
|
|
43
|
-
"lint-staged": "
|
|
40
|
+
"lint-staged": "15.5.0",
|
|
44
41
|
"prettier": "~2.8.8",
|
|
45
42
|
"react-dom": "^19.0.0",
|
|
46
43
|
"react": "^19.0.0",
|
|
47
44
|
"storybook": "^8.6.4",
|
|
48
45
|
"typescript": "^5.6.3",
|
|
49
46
|
"vite": "^6.2.1",
|
|
50
|
-
"vitest": "^
|
|
47
|
+
"vitest": "^3.1.2",
|
|
48
|
+
"@purpurds/button": "6.10.0",
|
|
51
49
|
"@purpurds/component-rig": "1.0.0",
|
|
52
|
-
"@purpurds/
|
|
53
|
-
"@purpurds/
|
|
54
|
-
"@purpurds/
|
|
55
|
-
"@purpurds/label": "6.9.0"
|
|
50
|
+
"@purpurds/icon": "6.10.0",
|
|
51
|
+
"@purpurds/label": "6.10.0",
|
|
52
|
+
"@purpurds/search-field": "6.10.0"
|
|
56
53
|
},
|
|
57
54
|
"peerDependencies": {
|
|
58
55
|
"@types/react": "^18 || ^19",
|
|
@@ -297,7 +297,7 @@ export const WithRenderOption: Story = {
|
|
|
297
297
|
{parts
|
|
298
298
|
.filter((part) => part)
|
|
299
299
|
.map((part, i) =>
|
|
300
|
-
|
|
300
|
+
|
|
301
301
|
regex.test(part) ? <strong key={i}>{part}</strong> : <span key={i}>{part}</span>
|
|
302
302
|
)}
|
|
303
303
|
</Paragraph>
|
package/src/utils.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { MutableRefObject, useCallback, useEffect, useRef } from "react";
|
|
|
3
3
|
// Used to "merge" "intersection types". Used to get comments on the props to the docs.
|
|
4
4
|
export type Prettify<T> = {
|
|
5
5
|
[K in keyof T]: T[K];
|
|
6
|
-
} & {};
|
|
6
|
+
} & {};
|
|
7
7
|
|
|
8
8
|
export const useMutableRefObject = <T>(value: T): MutableRefObject<T> => {
|
|
9
9
|
return useRef<T>(value) as MutableRefObject<T>;
|