@synerise/ds-icon-picker 2.1.0 → 2.1.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/CHANGELOG.md +16 -0
- package/CLAUDE.md +2 -2
- package/dist/hooks/useIconSourceLoader.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.1.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-icon-picker@2.1.1...@synerise/ds-icon-picker@2.1.2) (2026-11-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-icon-picker
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-icon-picker@2.1.0...@synerise/ds-icon-picker@2.1.1) (2026-11-03)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-icon-picker
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-icon-picker@2.0.12...@synerise/ds-icon-picker@2.1.0) (2026-10-29)
|
|
7
23
|
|
|
8
24
|
|
package/CLAUDE.md
CHANGED
|
@@ -125,7 +125,7 @@ const myIcons: DataSource[] = [
|
|
|
125
125
|
### `useIconSourceLoader`
|
|
126
126
|
|
|
127
127
|
Loads icons based on the `data` prop and returns `FilterElement[]`.
|
|
128
|
-
- `'design-system'` → synchronously imports `@synerise/ds-icon/dist/icons/M` (deep import) and sets state
|
|
128
|
+
- `'design-system'` → synchronously imports `@synerise/ds-icon/dist/icons/M/index` (deep import) and sets state
|
|
129
129
|
- `'font-awesome'` → dynamically imports all FA packs via `Promise.all` (async, icons appear after load)
|
|
130
130
|
- `DataSource[]` → runs `prepareItems()` synchronously
|
|
131
131
|
|
|
@@ -150,6 +150,6 @@ Flattens `FilterElement[]` into `GroupedFilterElement[]` for react-window. Each
|
|
|
150
150
|
- **Selection state is fully controlled** — the component has no internal selection state. Pass `selectedIcon` and handle `onClear` to control the selected-state UI.
|
|
151
151
|
- **`selectedIcon` toggles the trigger entirely** — when truthy, the default trigger button is replaced with `ButtonGroup` (selected icon + clear button). The `button` prop is ignored in this state.
|
|
152
152
|
- **`ListItem` has a fragile Avatar check** — `(element.item as any).type.name === 'Avatar'` detects Avatar items by component name. Minification or renaming will break this.
|
|
153
|
-
- **Deep import for DS icons** — `import * as medium from '@synerise/ds-icon/dist/icons/M'` is a fragile path that may break if `@synerise/ds-icon` restructures its dist output.
|
|
153
|
+
- **Deep import for DS icons** — `import * as medium from '@synerise/ds-icon/dist/icons/M/index'` is a fragile path that may break if `@synerise/ds-icon` restructures its dist output. Keep the `/index`: ds-icon's `exports` map turns `dist/icons/M` into `dist/icons/M.js`, which does not exist, so TypeScript's `bundler` resolution and any bundler that honours `exports` fail without it.
|
|
154
154
|
- **Uses Vitest** — `package.json` has `"test": "jest"`. Spec also uses `vi.fn()`. Not yet migrated.
|
|
155
155
|
- **`react-intl` is required** — `IntlProvider` must be present for the default `noResultMsg`. Tests use `renderWithProvider` from `@synerise/ds-core/testing`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback } from "react";
|
|
3
3
|
import Icon from "@synerise/ds-icon";
|
|
4
|
-
import * as medium from "@synerise/ds-icon/dist/icons/M";
|
|
4
|
+
import * as medium from "@synerise/ds-icon/dist/icons/M/index";
|
|
5
5
|
import { loadFontAwesome } from "../utils/loadFontAwesome.js";
|
|
6
6
|
import { prepareItems } from "../utils/prepareItems.js";
|
|
7
7
|
import { isDSSourceType, isFASourceType } from "../utils/typeguards.utils.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-icon-picker",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "IconPicker UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"types": "dist/index.d.ts",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@synerise/ds-button": "^2.2.
|
|
43
|
-
"@synerise/ds-button-group": "^2.1.
|
|
44
|
-
"@synerise/ds-dropdown": "^2.2.
|
|
45
|
-
"@synerise/ds-icon": "^2.3.
|
|
46
|
-
"@synerise/ds-popover": "^2.
|
|
47
|
-
"@synerise/ds-scrollbar": "^2.1.
|
|
48
|
-
"@synerise/ds-tooltip": "^2.1.
|
|
49
|
-
"@synerise/ds-utils": "^2.3.
|
|
42
|
+
"@synerise/ds-button": "^2.2.2",
|
|
43
|
+
"@synerise/ds-button-group": "^2.1.2",
|
|
44
|
+
"@synerise/ds-dropdown": "^2.2.2",
|
|
45
|
+
"@synerise/ds-icon": "^2.3.1",
|
|
46
|
+
"@synerise/ds-popover": "^2.3.0",
|
|
47
|
+
"@synerise/ds-scrollbar": "^2.1.1",
|
|
48
|
+
"@synerise/ds-tooltip": "^2.1.1",
|
|
49
|
+
"@synerise/ds-utils": "^2.3.1",
|
|
50
50
|
"memoize-one": "^5.1.1",
|
|
51
51
|
"react-window": "^1.8.11"
|
|
52
52
|
},
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
65
65
|
"styled-components": "^5.3.3"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "4547f33b8c9317ccc697f89a2b2c62bcf97fbec3"
|
|
68
68
|
}
|