@bigbinary/neeto-templates-frontend 1.1.19 → 1.2.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/README.md CHANGED
@@ -8,6 +8,7 @@ The `neeto-templates-nano` facilitates the administration of templates and templ
8
8
  * [Usage](#usage)
9
9
  - [Frontend package](#frontend-package)
10
10
  * [Installation](#installation-1)
11
+ * [Instructions for development](#instructions-for-development)
11
12
  * [Components](#components)
12
13
  * [Other Functions](#other-functions)
13
14
 
@@ -75,6 +76,9 @@ Once installed add the plugin to your `tailwind.config.js` file:
75
76
  plugins: [require("@tailwindcss/line-clamp")]
76
77
  ```
77
78
 
79
+ ### Instructions for development
80
+ Check the [Frontend package development guide](https://neeto-engineering.neetokb.com/p/a-d34cb4b0) for step-by-step instructions to develop the
81
+
78
82
  ### Components
79
83
  #### `CreateTemplateModal` ([source code](https://github.com/bigbinary/neeto-templates-nano/blob/aec3368475c252284a25820c08ff151c1cdd254c/app/javascript/src/components/CreateTemplateModal/index.jsx))
80
84
  The CreateTemplateModal component is a React component used for creating and previewing templates within a web application. It provides a user interface for users to create templates and view their details.
package/dist/index.cjs.js CHANGED
@@ -2797,11 +2797,11 @@ var List = function List(_ref) {
2797
2797
  }, t("neetoTemplate.templates.description"))), /*#__PURE__*/React__default["default"].createElement(Search__default["default"], {
2798
2798
  autoFocus: true,
2799
2799
  disableTrimOnBlur: true,
2800
+ "data-cy": "template-search-input",
2800
2801
  placeholder: t("neetoTemplate.templates.search"),
2801
2802
  onSearch: function onSearch(value) {
2802
2803
  return setSearchTerm(value);
2803
- },
2804
- "data-cy": "template-search-input"
2804
+ }
2805
2805
  })), /*#__PURE__*/React__default["default"].createElement("div", {
2806
2806
  className: "space-y-3"
2807
2807
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
@@ -2841,10 +2841,10 @@ var List = function List(_ref) {
2841
2841
  onClick: onCreate
2842
2842
  }), templates.map(function (template, index) {
2843
2843
  return /*#__PURE__*/React__default["default"].createElement(Card, {
2844
- key: index,
2845
- template: template,
2846
2844
  afterCreate: afterCreate,
2847
2845
  refetchResource: refetchResource,
2846
+ template: template,
2847
+ key: index,
2848
2848
  onClick: function onClick() {
2849
2849
  return handleCardClick(template);
2850
2850
  }