@bigbinary/neeto-tags-frontend 2.2.24 → 2.2.26
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/README.md +49 -1
- package/dist/.ready +1 -1
- package/dist/cjs/v2/NeetoTags.js +776 -24
- package/dist/cjs/v2/NeetoTags.js.map +1 -1
- package/dist/cjs/v2/index.js +3 -4
- package/dist/cjs/v2/index.js.map +1 -1
- package/dist/cjs/v2/utils.js +6 -778
- package/dist/cjs/v2/utils.js.map +1 -1
- package/dist/v2/NeetoTags.js +777 -25
- package/dist/v2/NeetoTags.js.map +1 -1
- package/dist/v2/index.js +3 -4
- package/dist/v2/index.js.map +1 -1
- package/dist/v2/utils.js +5 -780
- package/dist/v2/utils.js.map +1 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ You can learn more about the setup and usage here:
|
|
|
61
61
|
|
|
62
62
|
## Frontend package
|
|
63
63
|
|
|
64
|
-
The package exports
|
|
64
|
+
The package exports three components: `NeetoTags`, `Tags`, and `TagsDropdown`.
|
|
65
65
|
|
|
66
66
|
The package also exports one hook: `refetchTags`.
|
|
67
67
|
|
|
@@ -156,6 +156,54 @@ const App = ({
|
|
|
156
156
|
export default App;
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
+
#### `TagsDropdown` ([source code](https://github.com/bigbinary/neeto-tags-nano/blob/7dc828ba1d264f5ea694068c2acefdf50e0ab3a8/app/javascript/src/components/TagsDropdown/index.jsx))
|
|
160
|
+
|
|
161
|
+
This component provides a dropdown panel to assign tags to an entity.
|
|
162
|
+
|
|
163
|
+
##### Configuration
|
|
164
|
+
|
|
165
|
+
Refer to the [TagsDropdown](/docs/frontend/tags_dropdown.md) section for
|
|
166
|
+
detailed information on the available configurations for the `TagsDropdown`
|
|
167
|
+
component.
|
|
168
|
+
|
|
169
|
+
##### Usage
|
|
170
|
+
|
|
171
|
+
```jsx
|
|
172
|
+
import React from "react";
|
|
173
|
+
|
|
174
|
+
import { TagsDropdown } from "@bigbinary/neeto-tags-frontend";
|
|
175
|
+
|
|
176
|
+
const App = ({
|
|
177
|
+
isOpen,
|
|
178
|
+
containerRef,
|
|
179
|
+
allTags,
|
|
180
|
+
selectedTags,
|
|
181
|
+
tagType,
|
|
182
|
+
manageAllTagsHref,
|
|
183
|
+
handleRequestClose,
|
|
184
|
+
handleTagCreate,
|
|
185
|
+
handleTagDelete,
|
|
186
|
+
handleTagSelect,
|
|
187
|
+
}) => {
|
|
188
|
+
return (
|
|
189
|
+
<TagsDropdown
|
|
190
|
+
allTags={allTags}
|
|
191
|
+
containerRef={containerRef}
|
|
192
|
+
isOpen={isOpen}
|
|
193
|
+
manageAllTagsHref={manageAllTagsHref}
|
|
194
|
+
selectedTags={selectedTags}
|
|
195
|
+
tagType={tagType}
|
|
196
|
+
onRequestClose={handleRequestClose}
|
|
197
|
+
onTagCreate={handleTagCreate}
|
|
198
|
+
onTagDelete={handleTagDelete}
|
|
199
|
+
onTagSelect={handleTagSelect}
|
|
200
|
+
/>
|
|
201
|
+
);
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export default App;
|
|
205
|
+
```
|
|
206
|
+
|
|
159
207
|
### Hooks
|
|
160
208
|
|
|
161
209
|
#### `refetchTags` ([source code](https://github.com/bigbinary/neeto-tags-nano/blob/e61f7bd2b9cab9fbf29fcfecf57e66131c86e6ef/app/javascript/src/hooks/useTagsApi.js#L39))
|
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-05-
|
|
1
|
+
Built at 2026-05-15T02:44:34.280Z
|