@bigbinary/neeto-message-templates-frontend 0.0.4

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,182 @@
1
+ {
2
+ "name": "@bigbinary/neeto-message-templates-frontend",
3
+ "version": "0.0.4",
4
+ "description": "To manage message templates across neeto products.",
5
+ "license": "UNLICENSED",
6
+ "homepage": "https://github.com/bigbinary/neeto-message-templates-nano",
7
+ "bugs": {
8
+ "url": "https://github.com/bigbinary/neeto-message-templates-nano/issues"
9
+ },
10
+ "repository": "neeto-message-templates-nano",
11
+ "author": "BigBinary",
12
+ "files": [
13
+ "dist",
14
+ "types.d.ts"
15
+ ],
16
+ "main": "dist/index.cjs.js",
17
+ "module": "dist/index.js",
18
+ "types": "types.d.ts",
19
+ "scripts": {
20
+ "build": "NODE_ENV=production rollup -c --environment production",
21
+ "prepare": "husky install",
22
+ "release": "yarn build && yalc push --sig",
23
+ "build-preview": "NODE_ENV=production webpack"
24
+ },
25
+ "lint-staged": {
26
+ "./**/app/javascript/**/*.{js,jsx,json}": [
27
+ "prettier --write",
28
+ "eslint --fix"
29
+ ],
30
+ "./test/dummy/**/app/javascript/**/*.{js,jsx,json}": [
31
+ "prettier --write",
32
+ "eslint --fix"
33
+ ],
34
+ "./**/*.rb": [
35
+ "bundle exec rubocop -a --force-exclusion"
36
+ ],
37
+ "{Gemfile,Rakefile,config.ru}": [
38
+ "bundle exec rubocop -a --force-exclusion"
39
+ ]
40
+ },
41
+ "devDependencies": {
42
+ "@babel/core": "7.21.5",
43
+ "@babel/eslint-parser": "7.21.3",
44
+ "@babel/plugin-transform-runtime": "7.21.4",
45
+ "@babel/preset-env": "7.21.5",
46
+ "@babel/preset-react": "7.18.6",
47
+ "@babel/preset-typescript": "7.21.5",
48
+ "@babel/runtime": "7.21.5",
49
+ "@bigbinary/babel-preset-neeto": "1.0.3",
50
+ "@bigbinary/eslint-plugin-neeto": "1.0.41",
51
+ "@bigbinary/neeto-commons-frontend": "^2.0.73",
52
+ "@bigbinary/neeto-editor": "^1.26.3",
53
+ "@bigbinary/neeto-filters-frontend": "2.10.1",
54
+ "@bigbinary/neeto-icons": "^1.11.0",
55
+ "@bigbinary/neeto-molecules": "^1.0.30",
56
+ "@bigbinary/neeto-team-members-frontend": "2.7.2",
57
+ "@bigbinary/neetoui": "4.4.27",
58
+ "@emotion/is-prop-valid": "1.2.0",
59
+ "@faker-js/faker": "7.6.0",
60
+ "@honeybadger-io/react": "2.0.1",
61
+ "@rollup/plugin-alias": "5.0.0",
62
+ "@rollup/plugin-babel": "6.0.3",
63
+ "@rollup/plugin-commonjs": "24.1.0",
64
+ "@rollup/plugin-json": "6.0.0",
65
+ "@rollup/plugin-node-resolve": "^15.0.2",
66
+ "@rollup/plugin-replace": "5.0.2",
67
+ "@svgr/rollup": "7.0.0",
68
+ "antd": "4.18.7",
69
+ "autoprefixer": "10.4.14",
70
+ "axios": "0.27.2",
71
+ "babel-loader": "9.1.2",
72
+ "babel-plugin-istanbul": "6.1.1",
73
+ "babel-plugin-js-logger": "1.0.17",
74
+ "babel-plugin-macros": "3.1.0",
75
+ "babel-plugin-transform-react-remove-prop-types": "0.4.24",
76
+ "babel-preset-react": "6.24.1",
77
+ "babel-preset-typescript": "7.0.0-alpha.19",
78
+ "browserify-zlib": "^0.2.0",
79
+ "buffer": "^6.0.3",
80
+ "classnames": "2.3.2",
81
+ "crypto-browserify": "^3.12.0",
82
+ "css-loader": "^6.7.1",
83
+ "dompurify": "3.0.2",
84
+ "dotenv-webpack": "^8.0.1",
85
+ "eslint": "8.39.0",
86
+ "eslint-config-prettier": "8.8.0",
87
+ "eslint-plugin-cypress": "2.13.3",
88
+ "eslint-plugin-import": "2.27.5",
89
+ "eslint-plugin-jam3": "0.2.3",
90
+ "eslint-plugin-json": "3.1.0",
91
+ "eslint-plugin-prettier": "4.2.1",
92
+ "eslint-plugin-promise": "6.1.1",
93
+ "eslint-plugin-react": "7.32.2",
94
+ "eslint-plugin-react-hooks": "4.6.0",
95
+ "eslint-plugin-unused-imports": "2.0.0",
96
+ "formik": "2.2.9",
97
+ "html-webpack-plugin": "5.5.0",
98
+ "https-browserify": "^1.0.0",
99
+ "husky": "8.0.3",
100
+ "i18next": "22.4.10",
101
+ "i18next-browser-languagedetector": "7.0.1",
102
+ "js-logger": "1.6.1",
103
+ "lint-staged": "13.2.2",
104
+ "mini-css-extract-plugin": "^2.6.1",
105
+ "mixpanel-browser": "2.46.0",
106
+ "os-browserify": "^0.3.0",
107
+ "path-browserify": "^1.0.1",
108
+ "postcss": "8.4.23",
109
+ "postcss-import": "15.1.0",
110
+ "postcss-loader": "7.3.0",
111
+ "postcss-preset-env": "8.3.2",
112
+ "prettier": "2.8.8",
113
+ "prettier-plugin-tailwindcss": "0.2.8",
114
+ "process": "^0.11.10",
115
+ "ramda": "0.28.0",
116
+ "react": "17.0.2",
117
+ "react-dom": "17.0.2",
118
+ "react-helmet": "6.1.0",
119
+ "react-i18next": "11.16.8",
120
+ "react-query": "3.39.3",
121
+ "react-router-dom": "5.2.0",
122
+ "react-toastify": "8.0.2",
123
+ "react_ujs": "2.6.2",
124
+ "rollup": "2.79.1",
125
+ "rollup-plugin-analyzer": "4.0.0",
126
+ "rollup-plugin-cleaner": "1.0.0",
127
+ "rollup-plugin-peer-deps-external": "2.2.4",
128
+ "rollup-plugin-styles": "4.0.0",
129
+ "sass": "1.62.1",
130
+ "sass-loader": "^13.0.2",
131
+ "shakapacker": "^6.6.0",
132
+ "stream-browserify": "^3.0.0",
133
+ "stream-http": "^3.2.0",
134
+ "style-loader": "^3.3.1",
135
+ "tailwindcss": "npm:@tailwindcss/postcss7-compat",
136
+ "tty-browserify": "^0.0.1",
137
+ "url": "^0.11.0",
138
+ "util": "0.12.5",
139
+ "vm-browserify": "^1.1.2",
140
+ "webpack": "5.76.0",
141
+ "webpack-assets-manifest": "^5.1.0",
142
+ "webpack-cli": "4.10.0",
143
+ "webpack-dev-server": "^4.15.0",
144
+ "yup": "0.32.11"
145
+ },
146
+ "peerDependencies": {
147
+ "@bigbinary/neeto-commons-frontend": "^2.0.54",
148
+ "@bigbinary/neeto-editor": "^1.26.3",
149
+ "@bigbinary/neeto-filters-frontend": "^2.8.1",
150
+ "@bigbinary/neeto-icons": "^1.9.22",
151
+ "@bigbinary/neeto-molecules": "^1.0.9",
152
+ "@bigbinary/neetoui": "^4.4.10",
153
+ "@honeybadger-io/react": "^2.0.1",
154
+ "axios": "^0.27.2",
155
+ "classnames": "^2.3.2",
156
+ "formik": "^2.2.9",
157
+ "js-logger": "^1.6.1",
158
+ "mixpanel-browser": "^2.45.0",
159
+ "ramda": "^0.28.0",
160
+ "react": "17.0.2",
161
+ "react-dom": "17.0.2",
162
+ "react-helmet": "^6.1.0",
163
+ "react-query": "3.39.2",
164
+ "react-router-dom": "5.3.0",
165
+ "react-toastify": "8.2.0",
166
+ "yup": "^0.32.11",
167
+ "zustand": "4.3.2"
168
+ },
169
+ "resolutions": {
170
+ "postcss": "^8"
171
+ },
172
+ "engines": {
173
+ "node": ">=18.12",
174
+ "npm": ">=9",
175
+ "yarn": ">=1.22"
176
+ },
177
+ "dependencies": {
178
+ "react-router-nav-prompt": "0.4.1",
179
+ "source-map-loader": "^4.0.1",
180
+ "zustand": "4.3.2"
181
+ }
182
+ }
package/types.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+
3
+ type Breadcrumb = {
4
+ text: string;
5
+ link: string;
6
+ };
7
+
8
+ interface MessageTemplatesProps {
9
+ breadcrumbs?: Breadcrumb[];
10
+ type?: string;
11
+ handleSubmitTestTemplate?: (values: { [key: string]: any }) => void;
12
+ isTestMessageLoading?: boolean;
13
+ }
14
+
15
+ interface SendMessagePaneProps {
16
+ isOpen?: boolean;
17
+ type?: string;
18
+ onClose?: () => void;
19
+ handleSubmit?: (values: { [key: string]: any }) => void;
20
+ }
21
+
22
+ export const MessageTemplates = React.FC<MessageTemplatesProps>;
23
+ export const SendMessagePane = React.FC<SendMessagePaneProps>;