@bigbinary/neeto-templates-frontend 1.2.0 → 2.0.1

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 CHANGED
@@ -65,17 +65,6 @@ Install the latest `NeetoTemplatesNano` package using the below command:
65
65
  yarn add @bigbinary/neeto-templates-frontend
66
66
  ```
67
67
 
68
- Install the dependency package:
69
-
70
- ```shell
71
- yarn add @tailwindcss/line-clamp
72
- ```
73
- Once installed add the plugin to your `tailwind.config.js` file:
74
-
75
- ```js
76
- plugins: [require("@tailwindcss/line-clamp")]
77
- ```
78
-
79
68
  ### Instructions for development
80
69
  Check the [Frontend package development guide](https://neeto-engineering.neetokb.com/p/a-d34cb4b0) for step-by-step instructions to develop the
81
70
 
@@ -143,6 +132,36 @@ const App = () => {
143
132
 
144
133
  Use the `PrivateRoute` component to conditionally render this component only for the `templates` subdomain.
145
134
 
135
+ #### `TemplateTags` ([source code](https://github.com/bigbinary/neeto-templates-nano/blob/aec3368475c252284a25820c08ff151c1cdd254c/app/javascript/src/components/TemplateTags/index.jsx))
136
+ The TemplateTags component is a React component used for displaying and managing tags within a web application. It provides a user interface for users to add, remove, edit and merge tags.
137
+
138
+ ##### Props
139
+ - `breadcrumbs`: An array of breadcrumb items for navigation.
140
+ - `tagsPath`: A string representing the path to the frontend route for tags page.
141
+ - `otherProps`: Additional props to be passed to the component.
142
+
143
+ ##### Usage
144
+ ```jsx
145
+ import React from "react";
146
+ import { TemplateTags } from "@bigbinary/neeto-templates-frontend";
147
+
148
+ const App = () => {
149
+ const breadcrumbs = [
150
+ {
151
+ link: "/forms",
152
+ text: "Forms",
153
+ },
154
+ ];
155
+ return (
156
+ <TemplateTags
157
+ breadcrumbs={breadcrumbs}
158
+ tagsPath="/settings/templates/tags"
159
+ />
160
+ );
161
+ };
162
+ ```
163
+ Use the `PrivateRoute` component (no need to add exact) to conditionally render this component only for the `templates` subdomain.
164
+
146
165
  # Instructions for Publishing
147
166
 
148
167
  Consult the [building and releasing packages](https://neeto-engineering.neetokb.com/articles/building-and-releasing-packages) guide for details on how to publish.
@@ -14,6 +14,8 @@
14
14
  "description": "A blank slate"
15
15
  },
16
16
  "editTemplate": "Use this template",
17
+ "backToTemplates": "Back to templates",
18
+ "back": "Back",
17
19
  "preview": "Preview",
18
20
  "quiz": "Quiz",
19
21
  "marketing": "Marketing",
@@ -33,6 +35,10 @@
33
35
  "saveChanges": "Save changes",
34
36
  "cancel": "Cancel"
35
37
  }
38
+ },
39
+ "templatesTags": {
40
+ "template": "Template",
41
+ "numberOfActiveTemplates": "Number of active {{taxonomies.entity.plural}}"
36
42
  }
37
43
  }
38
44
  }