@bigbinary/neeto-tags-frontend 2.2.11 → 2.2.13

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.
Files changed (2) hide show
  1. package/README.md +80 -41
  2. package/package.json +12 -12
package/README.md CHANGED
@@ -1,82 +1,111 @@
1
-
2
1
  # neeto-tags-nano
3
- The `neeto-tags-nano` manages tags across neeto applications. The nano exports the `@bigbinary/neeto-tags-frontend` NPM package and `neeto-tags-engine` Rails engine for development.
2
+
3
+ The `neeto-tags-nano` manages tags across neeto applications. The nano exports
4
+ the `@bigbinary/neeto-tags-frontend` NPM package and `neeto-tags-engine` Rails
5
+ engine for development.
4
6
 
5
7
  # Contents
8
+
6
9
  1. [Development with Host Application](#development-with-host-application)
7
- - [Engine](#engine)
8
- - [Installation](#installation)
9
- - [Usage](#usage)
10
- - [Frontend package](#frontend-package)
11
- - [Installation](#installation-1)
12
- - [Instructions for development](#instructions-for-development)
13
- - [Components](#components)
10
+ - [Engine](#engine)
11
+ - [Installation](#installation)
12
+ - [Usage](#usage)
13
+ - [Frontend package](#frontend-package)
14
+ - [Installation](#installation-1)
15
+ - [Instructions for development](#instructions-for-development)
16
+ - [Components](#components)
14
17
  2. [Instructions for Publishing](#instructions-for-publishing)
15
18
 
16
19
  # Development with Host Application
20
+
17
21
  ## Engine
22
+
18
23
  The engine is used to manage tags for any entity across neeto products.
19
24
 
20
25
  ### Installation
26
+
21
27
  1. Add this line to your application's Gemfile:
22
- ```ruby
23
- source "NEETO_GEM_SERVER_URL" do
24
- # ..existing gems
25
28
 
26
- gem 'neeto-tags-engine'
27
- end
28
- ```
29
+ ```ruby
30
+ source "NEETO_GEM_SERVER_URL" do
31
+ # ..existing gems
32
+
33
+ gem 'neeto-tags-engine'
34
+ end
35
+ ```
36
+
29
37
  2. And then execute:
30
- ```ruby
31
- bundle install
32
- ```
38
+ ```ruby
39
+ bundle install
40
+ ```
33
41
  3. Add this line to your application's `config/routes.rb` file:
34
- ```ruby
35
- mount NeetoTagsEngine::Engine => "/neeto_tags_engine"
36
- ```
37
- 4. Run the following command to copy the migrations from the engine to the host application:
38
- ```ruby
39
- bundle exec rails neeto_tags_engine:install:migrations
40
- ```
42
+ ```ruby
43
+ mount NeetoTagsEngine::Engine, at: "/neeto_tags"
44
+ ```
45
+ **NOTE: The mount point must be `/neeto_tags` and cannot be changed to any
46
+ other path.**
47
+ 4. Run the following command to copy the migrations from the engine to the host
48
+ application:
49
+ ```ruby
50
+ bundle exec rails neeto_tags_engine:install:migrations
51
+ ```
41
52
  5. Add the migrations to the database:
42
- ```ruby
43
- bundle exec rails db:migrate
44
- ```
53
+ ```ruby
54
+ bundle exec rails db:migrate
55
+ ```
56
+
45
57
  ### Usage
58
+
46
59
  You can learn more about the setup and usage here:
60
+
47
61
  1. [Models](/docs/engine/models.md)
48
62
  2. [Controllers](/docs/engine/controllers.md)
49
63
 
50
64
  ## Frontend package
65
+
51
66
  The package exports two components: `NeetoTags` and `Tags`.
52
67
 
53
68
  The package also exports one hook: `refetchTags`.
54
69
 
55
70
  ### Installation
56
- 1. `neeto-tags-nano` has a few peer dependencies that are required for the proper functioning of the package. Install all the peer dependencies using the below command:
57
- ```zsh
58
- yarn add @bigbinary/neeto-commons-frontend@2.0.35 @bigbinary/neeto-icons@1.9.10 @bigbinary/neetoui@4.3.3 @honeybadger-io/js@5.1.1 @honeybadger-io/react@5.1.2 axios@1.3.3 classnames@2.3.2 formik@2.2.9 js-logger@1.6.1 ramda@0.28.0 react-helmet@6.1.0 react-query@3.39.3 react-router-dom@5.3.4 react-toastify@8.2.0 yup@1.0.0
59
- ```
71
+
72
+ 1. `neeto-tags-nano` has a few peer dependencies that are required for the
73
+ proper functioning of the package. Install all the peer dependencies using
74
+ the below command:
75
+
76
+ ```zsh
77
+ yarn add @bigbinary/neeto-commons-frontend@2.0.35 @bigbinary/neeto-icons@1.9.10 @bigbinary/neetoui@4.3.3 @honeybadger-io/js@5.1.1 @honeybadger-io/react@5.1.2 axios@1.3.3 classnames@2.3.2 formik@2.2.9 js-logger@1.6.1 ramda@0.28.0 react-helmet@6.1.0 react-query@3.39.3 react-router-dom@5.3.4 react-toastify@8.2.0 yup@1.0.0
78
+ ```
60
79
 
61
80
  2. Now install the latest `neeto-tags-nano` package using the below command:
62
- ```zsh
63
- yarn add @bigbinary/neeto-tags-frontend
64
- ```
81
+ ```zsh
82
+ yarn add @bigbinary/neeto-tags-frontend
83
+ ```
65
84
 
66
85
  ### Instructions for development
67
- Check the [Frontend package development guide](https://neeto-engineering.neetokb.com/p/a-d34cb4b0) for step-by-step instructions to develop the frontend package.
86
+
87
+ Check the
88
+ [Frontend package development guide](https://neeto-engineering.neetokb.com/p/a-d34cb4b0)
89
+ for step-by-step instructions to develop the frontend package.
68
90
 
69
91
  ### Components
92
+
70
93
  #### `NeetoTags` ([source code](https://github.com/bigbinary/neeto-tags-nano/blob/e61f7bd2b9cab9fbf29fcfecf57e66131c86e6ef/app/javascript/src/index.jsx))
94
+
71
95
  This component provides a dashboard to manage tags for an application.
72
96
 
73
97
  ##### Props
74
- - `config`: Configuration object that includes specifications for tags, display menu, and breadcrumbs.
98
+
99
+ - `config`: Configuration object that includes specifications for tags, display
100
+ menu, and breadcrumbs.
75
101
 
76
102
  ##### Configuration
77
- Refer to the [NeetoTags](/docs/frontend/neeto_tags.md) section for detailed information on the available configurations for the `NeetoTags` component.
103
+
104
+ Refer to the [NeetoTags](/docs/frontend/neeto_tags.md) section for detailed
105
+ information on the available configurations for the `NeetoTags` component.
78
106
 
79
107
  ##### Usage
108
+
80
109
  ```jsx
81
110
  import React from "react";
82
111
 
@@ -93,9 +122,12 @@ export default App;
93
122
  This component provides functionality to assign tags to an entity.
94
123
 
95
124
  ##### Configuration
96
- Refer to the [Tags](/docs/frontend/tags.md) section for detailed information on the available configurations for the `Tags` component.
125
+
126
+ Refer to the [Tags](/docs/frontend/tags.md) section for detailed information on
127
+ the available configurations for the `Tags` component.
97
128
 
98
129
  ##### Usage
130
+
99
131
  ```jsx
100
132
  import React from "react";
101
133
 
@@ -127,10 +159,13 @@ export default App;
127
159
  ```
128
160
 
129
161
  ### Hooks
162
+
130
163
  #### `refetchTags` ([source code](https://github.com/bigbinary/neeto-tags-nano/blob/e61f7bd2b9cab9fbf29fcfecf57e66131c86e6ef/app/javascript/src/hooks/useTagsApi.js#L39))
164
+
131
165
  This function refetches the tags list.
132
166
 
133
167
  ##### Usage
168
+
134
169
  Below is an example usage of the `refetchTags` hook:
135
170
 
136
171
  ```js
@@ -150,8 +185,12 @@ const useBulkUpdateTickets = () =>
150
185
  }
151
186
  );
152
187
  ```
153
- Used by [neetoDesk](https://github.com/bigbinary/neeto-desk-web/blob/5ba3471deae047bc9d08dca6bf26537194b9a209/app/javascript/src/hooks/reactQuery/tickets/useTicketsApi.js#L83)
154
188
 
189
+ Used by
190
+ [neetoDesk](https://github.com/bigbinary/neeto-desk-web/blob/5ba3471deae047bc9d08dca6bf26537194b9a209/app/javascript/src/hooks/reactQuery/tickets/useTicketsApi.js#L83)
155
191
 
156
192
  # Instructions for Publishing
157
- Consult the [building and releasing packages](https://neeto-engineering.neetokb.com/articles/building-and-releasing-packages) guide for details on how to publish.
193
+
194
+ Consult the
195
+ [building and releasing packages](https://neeto-engineering.neetokb.com/articles/building-and-releasing-packages)
196
+ guide for details on how to publish.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-tags-frontend",
3
- "version": "2.2.11",
3
+ "version": "2.2.13",
4
4
  "description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-tags-nano",
@@ -60,14 +60,14 @@
60
60
  "@babel/preset-typescript": "7.26.0",
61
61
  "@babel/runtime": "7.26.10",
62
62
  "@bigbinary/babel-preset-neeto": "^1.0.3",
63
- "@bigbinary/eslint-plugin-neeto": "1.7.6",
63
+ "@bigbinary/eslint-plugin-neeto": "1.8.0",
64
64
  "@bigbinary/neeto-cist": "1.0.17",
65
- "@bigbinary/neeto-commons-frontend": "4.13.75",
65
+ "@bigbinary/neeto-commons-frontend": "4.13.85",
66
66
  "@bigbinary/neeto-filters-frontend": "4.3.24",
67
67
  "@bigbinary/neeto-hotkeys": "1.0.9",
68
- "@bigbinary/neeto-icons": "1.20.60",
69
- "@bigbinary/neeto-molecules": "4.0.70",
70
- "@bigbinary/neetoui": "8.3.37",
68
+ "@bigbinary/neeto-icons": "1.20.64",
69
+ "@bigbinary/neeto-molecules": "4.0.96",
70
+ "@bigbinary/neetoui": "8.3.45",
71
71
  "@emotion/is-prop-valid": "1.2.0",
72
72
  "@faker-js/faker": "8.2.0",
73
73
  "@honeybadger-io/js": "6.10.1",
@@ -85,7 +85,7 @@
85
85
  "@tanstack/react-query-devtools": "5.59.20",
86
86
  "antd": "5.22.0",
87
87
  "autoprefixer": "^10.4.5",
88
- "axios": "1.8.2",
88
+ "axios": "1.12.0",
89
89
  "babel-loader": "^8.2.5",
90
90
  "babel-plugin-istanbul": "^6.1.1",
91
91
  "babel-plugin-js-logger": "1.0.17",
@@ -175,19 +175,19 @@
175
175
  "peerDependencies": {
176
176
  "@babel/runtime": "7.26.10",
177
177
  "@bigbinary/neeto-cist": "1.0.17",
178
- "@bigbinary/neeto-commons-frontend": "4.13.75",
178
+ "@bigbinary/neeto-commons-frontend": "4.13.85",
179
179
  "@bigbinary/neeto-filters-frontend": "4.3.24",
180
180
  "@bigbinary/neeto-hotkeys": "1.0.9",
181
- "@bigbinary/neeto-icons": "1.20.60",
182
- "@bigbinary/neeto-molecules": "4.0.70",
183
- "@bigbinary/neetoui": "8.3.37",
181
+ "@bigbinary/neeto-icons": "1.20.64",
182
+ "@bigbinary/neeto-molecules": "4.0.96",
183
+ "@bigbinary/neetoui": "8.3.45",
184
184
  "@honeybadger-io/js": "6.10.1",
185
185
  "@honeybadger-io/react": "6.1.25",
186
186
  "@tailwindcss/container-queries": "^0.1.1",
187
187
  "@tanstack/react-query": "5.59.20",
188
188
  "@tanstack/react-query-devtools": "5.59.20",
189
189
  "antd": "5.22.0",
190
- "axios": "1.8.2",
190
+ "axios": "1.12.0",
191
191
  "buffer": "^6.0.3",
192
192
  "classnames": "2.5.1",
193
193
  "crypto-browserify": "3.12.1",