@bigbinary/neeto-templates-frontend 1.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/package.json ADDED
@@ -0,0 +1,188 @@
1
+ {
2
+ "name": "@bigbinary/neeto-templates-frontend",
3
+ "version": "1.1.2",
4
+ "description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
5
+ "license": "UNLICENSED",
6
+ "homepage": "https://github.com/bigbinary/neeto-templates-nano",
7
+ "bugs": {
8
+ "url": "https://github.com/bigbinary/neeto-templates-nano/issues"
9
+ },
10
+ "repository": "neeto-templates-nano",
11
+ "author": "BigBinary",
12
+ "files": [
13
+ "dist",
14
+ "types.d.ts",
15
+ "app/javascript/src/translations"
16
+ ],
17
+ "main": "dist/index.cjs.js",
18
+ "module": "dist/index.js",
19
+ "types": "types.d.ts",
20
+ "scripts": {
21
+ "build": "NODE_ENV=production rollup -c --environment production",
22
+ "prepare": "husky install",
23
+ "release": "yarn build && yalc push --sig",
24
+ "build-preview": "NODE_ENV=production webpack"
25
+ },
26
+ "lint-staged": {
27
+ "./**/app/javascript/**/*.{js,jsx,json}": [
28
+ "prettier --write",
29
+ "eslint --fix"
30
+ ],
31
+ "./test/dummy/**/app/javascript/**/*.{js,jsx,json}": [
32
+ "prettier --write",
33
+ "eslint --fix"
34
+ ],
35
+ "./**/*.rb": [
36
+ "bundle exec rubocop -a --force-exclusion"
37
+ ],
38
+ "{Gemfile,Rakefile,config.ru}": [
39
+ "bundle exec rubocop -a --force-exclusion"
40
+ ]
41
+ },
42
+ "devDependencies": {
43
+ "@babel/core": "7.22.6",
44
+ "@babel/eslint-parser": "7.22.6",
45
+ "@babel/plugin-transform-runtime": "7.22.6",
46
+ "@babel/preset-env": "7.22.6",
47
+ "@babel/preset-react": "7.22.5",
48
+ "@babel/preset-typescript": "7.22.5",
49
+ "@babel/runtime": "7.22.6",
50
+ "@bigbinary/babel-preset-neeto": "1.0.3",
51
+ "@bigbinary/eslint-plugin-neeto": "1.0.64",
52
+ "@bigbinary/neeto-audit-frontend": "1.0.8",
53
+ "@bigbinary/neeto-cist": "^1.0.3",
54
+ "@bigbinary/neeto-commons-frontend": "2.1.29",
55
+ "@bigbinary/neeto-icons": "1.12.3",
56
+ "@bigbinary/neeto-molecules": "^1.0.92",
57
+ "@bigbinary/neeto-tags-frontend": "^1.5.0",
58
+ "@bigbinary/neetoui": "5.0.13",
59
+ "@emotion/is-prop-valid": "1.2.0",
60
+ "@faker-js/faker": "8.0.2",
61
+ "@honeybadger-io/react": "2.0.1",
62
+ "@rollup/plugin-alias": "5.0.0",
63
+ "@rollup/plugin-babel": "6.0.3",
64
+ "@rollup/plugin-commonjs": "25.0.2",
65
+ "@rollup/plugin-json": "6.0.0",
66
+ "@rollup/plugin-node-resolve": "15.1.0",
67
+ "@rollup/plugin-replace": "5.0.2",
68
+ "@svgr/rollup": "8.0.1",
69
+ "antd": "4.24.12",
70
+ "autoprefixer": "10.4.14",
71
+ "axios": "1.4.0",
72
+ "babel-loader": "9.1.2",
73
+ "babel-plugin-istanbul": "6.1.1",
74
+ "babel-plugin-js-logger": "1.0.17",
75
+ "babel-plugin-macros": "3.1.0",
76
+ "babel-plugin-preval": "^5.1.0",
77
+ "babel-plugin-transform-react-remove-prop-types": "0.4.24",
78
+ "babel-preset-react": "6.24.1",
79
+ "babel-preset-typescript": "7.0.0-alpha.19",
80
+ "browserify-zlib": "0.2.0",
81
+ "buffer": "6.0.3",
82
+ "classnames": "2.3.2",
83
+ "crypto-browserify": "3.12.0",
84
+ "css-loader": "6.8.1",
85
+ "dompurify": "3.0.2",
86
+ "dotenv-webpack": "^8.0.1",
87
+ "eslint": "8.44.0",
88
+ "eslint-config-prettier": "8.8.0",
89
+ "eslint-plugin-cypress": "2.13.3",
90
+ "eslint-plugin-import": "2.27.5",
91
+ "eslint-plugin-jam3": "0.2.3",
92
+ "eslint-plugin-json": "3.1.0",
93
+ "eslint-plugin-prettier": "4.2.1",
94
+ "eslint-plugin-promise": "6.1.1",
95
+ "eslint-plugin-react": "7.32.2",
96
+ "eslint-plugin-react-hooks": "4.6.0",
97
+ "eslint-plugin-unused-imports": "2.0.0",
98
+ "formik": "2.4.2",
99
+ "framer-motion": "^4.1.17",
100
+ "html-webpack-plugin": "5.5.3",
101
+ "https-browserify": "1.0.0",
102
+ "husky": "8.0.3",
103
+ "i18next": "23.2.7",
104
+ "i18next-browser-languagedetector": "7.0.1",
105
+ "js-logger": "1.6.1",
106
+ "lint-staged": "13.2.3",
107
+ "mini-css-extract-plugin": "2.7.6",
108
+ "mixpanel-browser": "2.47.0",
109
+ "os-browserify": "0.3.0",
110
+ "path-browserify": "1.0.1",
111
+ "postcss": "8.4.31",
112
+ "postcss-import": "15.1.0",
113
+ "postcss-loader": "7.3.3",
114
+ "postcss-preset-env": "9.0.0",
115
+ "prettier": "2.8.8",
116
+ "prettier-plugin-tailwindcss": "0.3.0",
117
+ "process": "0.11.10",
118
+ "ramda": "0.29.0",
119
+ "react": "^18.2.0",
120
+ "react-dom": "^18.2.0",
121
+ "react-helmet": "6.1.0",
122
+ "react-i18next": "13.0.1",
123
+ "react-infinite-scroll-hook": "^4.1.1",
124
+ "react-query": "3.39.3",
125
+ "react-router-dom": "5.3.3",
126
+ "react-toastify": "8.0.2",
127
+ "react_ujs": "^3.1.1",
128
+ "rollup": "2.79.1",
129
+ "rollup-plugin-analyzer": "4.0.0",
130
+ "rollup-plugin-cleaner": "1.0.0",
131
+ "rollup-plugin-peer-deps-external": "2.2.4",
132
+ "rollup-plugin-styles": "4.0.0",
133
+ "sass": "1.63.6",
134
+ "sass-loader": "13.3.2",
135
+ "shakapacker": "6.6.0",
136
+ "stream-browserify": "3.0.0",
137
+ "stream-http": "3.2.0",
138
+ "style-loader": "3.3.3",
139
+ "tailwindcss": "npm:@tailwindcss/postcss7-compat",
140
+ "tty-browserify": "0.0.1",
141
+ "url": "0.11.1",
142
+ "util": "0.12.5",
143
+ "vm-browserify": "1.1.2",
144
+ "webpack": "5.88.1",
145
+ "webpack-assets-manifest": "5.1.0",
146
+ "webpack-cli": "5.1.4",
147
+ "webpack-dev-server": "4.15.1",
148
+ "yup": "0.32.11"
149
+ },
150
+ "peerDependencies": {
151
+ "@bigbinary/neeto-cist": "latest",
152
+ "@bigbinary/neeto-commons-frontend": "^2.1.29",
153
+ "@bigbinary/neeto-editor": "^1.26.3",
154
+ "@bigbinary/neeto-icons": "^1.9.22",
155
+ "@bigbinary/neeto-molecules": "^1.0.9",
156
+ "@bigbinary/neetoui": "^4.4.10",
157
+ "@honeybadger-io/react": "^2.0.1",
158
+ "axios": "^0.27.2",
159
+ "classnames": "^2.3.2",
160
+ "formik": "^2.2.9",
161
+ "i18next": "23.2.7",
162
+ "js-logger": "^1.6.1",
163
+ "mixpanel-browser": "^2.45.0",
164
+ "ramda": "^0.29.0",
165
+ "react": "18.2.0",
166
+ "react-dom": "18.2.0",
167
+ "react-helmet": "^6.1.0",
168
+ "react-i18next": "13.0.1",
169
+ "react-query": "3.39.2",
170
+ "react-router-dom": "5.3.3",
171
+ "react-toastify": "8.2.0",
172
+ "yup": "^0.32.11",
173
+ "zustand": "4.3.2"
174
+ },
175
+ "resolutions": {
176
+ "postcss": "^8"
177
+ },
178
+ "engines": {
179
+ "node": ">=18.12",
180
+ "npm": ">=9",
181
+ "yarn": ">=1.22"
182
+ },
183
+ "dependencies": {
184
+ "react-router-nav-prompt": "0.4.1",
185
+ "source-map-loader": "^4.0.1",
186
+ "zustand": "4.3.2"
187
+ }
188
+ }
package/types.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+
3
+ interface CreateTemplateModalProps {
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ isCreating: boolean;
7
+ entity: string;
8
+ resourceQueryKey: string;
9
+ onCreate?: () => void;
10
+ afterCreate?: () => void;
11
+ url: string;
12
+ }
13
+
14
+ interface TemplateSettingsProps {
15
+ onCancelTemplatePreview?: () => void;
16
+ breadcrumbs?: any[];
17
+ resourceType: string;
18
+ url: string;
19
+ }
20
+
21
+ export const CreateTemplateModal: React.FC<CreateTemplateModalProps>;
22
+ export const TemplateSettings: React.FC<TemplateSettingsProps>;