@bigbinary/neeto-molecules 1.0.99 → 1.0.101
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 +1 -0
- package/dist/Codeblock.cjs.js +302 -0
- package/dist/Codeblock.cjs.js.map +1 -0
- package/dist/Codeblock.js +296 -0
- package/dist/Codeblock.js.map +1 -0
- package/dist/CustomDomain.cjs.js +4 -0
- package/dist/CustomDomain.cjs.js.map +1 -1
- package/dist/CustomDomain.js +4 -0
- package/dist/CustomDomain.js.map +1 -1
- package/dist/CustomDomainDashboard.cjs.js +11 -5
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +11 -5
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/Header.cjs.js +4 -1
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +4 -1
- package/dist/Header.js.map +1 -1
- package/dist/MenuBar.cjs.js +19446 -16229
- package/dist/MenuBar.cjs.js.map +1 -1
- package/dist/MenuBar.js +19446 -16229
- package/dist/MenuBar.js.map +1 -1
- package/dist/Sidebar.cjs.js +19478 -16243
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +19478 -16243
- package/dist/Sidebar.js.map +1 -1
- package/package.json +16 -13
- package/types/Codeblock.d.ts +36 -0
- package/types/CopyToClipboardButton.d.ts +8 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.101",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"prepare": "husky install",
|
|
10
10
|
"sync_with_wheel": "./.scripts/sync_with_wheel.sh",
|
|
11
|
-
"test": "TZ=UTC jest",
|
|
11
|
+
"test": "TZ=UTC jest --runInBand",
|
|
12
12
|
"bundle": "NODE_ENV=production rollup -c rollup.config.js && yarn build:jsdoc",
|
|
13
13
|
"build": "NODE_ENV=production build-storybook",
|
|
14
14
|
"serve": "node .storybook/db",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@babel/runtime": "^7.19.0",
|
|
49
49
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
50
50
|
"@bigbinary/eslint-plugin-neeto": "^1.1.14",
|
|
51
|
-
"@bigbinary/neeto-commons-frontend": "2.0.
|
|
51
|
+
"@bigbinary/neeto-commons-frontend": "2.0.134",
|
|
52
52
|
"@bigbinary/neeto-editor": "1.27.0-beta.1",
|
|
53
53
|
"@bigbinary/neeto-filters-frontend": "^2.11.15",
|
|
54
54
|
"@bigbinary/neeto-icons": "^1.12.3",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"@svgr/webpack": "^6.5.1",
|
|
75
75
|
"@tailwindcss/line-clamp": "^0.4.4",
|
|
76
76
|
"@testing-library/jest-dom": "5.16.2",
|
|
77
|
-
"@testing-library/react": "
|
|
77
|
+
"@testing-library/react": "^14.0.0",
|
|
78
78
|
"@testing-library/react-hooks": "^8.0.0",
|
|
79
79
|
"@testing-library/user-event": "13.5.0",
|
|
80
|
-
"antd": "
|
|
80
|
+
"antd": "5.9.2",
|
|
81
81
|
"autoprefixer": "^10.4.13",
|
|
82
82
|
"axios": "^0.27.2",
|
|
83
83
|
"babel-jest": "27.0.6",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"eslint-plugin-react": "7.29.4",
|
|
105
105
|
"eslint-plugin-react-hooks": "4.5.0",
|
|
106
106
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
107
|
-
"formik": "
|
|
107
|
+
"formik": "2.4.5",
|
|
108
108
|
"framer-motion": "^4.1.17",
|
|
109
109
|
"husky": "^7.0.4",
|
|
110
110
|
"i18next": "^22.5.1",
|
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
"mixpanel-browser": "^2.45.0",
|
|
118
118
|
"mousetrap": "^1.6.5",
|
|
119
119
|
"mousetrap-global-bind": "^1.1.0",
|
|
120
|
+
"nock": "^13.3.3",
|
|
120
121
|
"papaparse": "^5.4.0",
|
|
121
122
|
"platform": "1.3.6",
|
|
122
123
|
"postcss": "^8.4.17",
|
|
@@ -130,14 +131,15 @@
|
|
|
130
131
|
"qs": "^6.11.0",
|
|
131
132
|
"ramda": "^0.29.0",
|
|
132
133
|
"raw-loader": "^4.0.2",
|
|
133
|
-
"react": "^
|
|
134
|
-
"react-dom": "
|
|
134
|
+
"react": "^18.2.0",
|
|
135
|
+
"react-dom": "^18.2.0",
|
|
135
136
|
"react-dropzone": "^11.2.4",
|
|
136
137
|
"react-helmet": "^6.1.0",
|
|
137
138
|
"react-hotkeys-hook": "3.3.2",
|
|
138
139
|
"react-i18next": "^12.3.1",
|
|
139
140
|
"react-query": "^3.39.2",
|
|
140
|
-
"react-router-dom": "^5.
|
|
141
|
+
"react-router-dom": "^5.3.3",
|
|
142
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
141
143
|
"react-toastify": "^9.0.8",
|
|
142
144
|
"react-transition-group": "^4.4.5",
|
|
143
145
|
"react-window": "^1.8.9",
|
|
@@ -163,21 +165,22 @@
|
|
|
163
165
|
"@honeybadger-io/react": "2.0.1",
|
|
164
166
|
"@neetohq/timezones": "latest",
|
|
165
167
|
"@svgr/webpack": "^6.5.1",
|
|
166
|
-
"antd": "
|
|
168
|
+
"antd": "5.9.2",
|
|
167
169
|
"axios": "^0.27.2",
|
|
168
170
|
"cypress": "11.2.0",
|
|
169
171
|
"dayjs": "1.11.1",
|
|
170
172
|
"dotenv-webpack": "^8.0.1",
|
|
171
|
-
"formik": "
|
|
173
|
+
"formik": "2.4.5",
|
|
172
174
|
"i18next": "^22.5.1",
|
|
173
175
|
"js-logger": "^1.6.1",
|
|
174
176
|
"mixpanel-browser": "^2.45.0",
|
|
175
177
|
"ramda": "^0.29.0",
|
|
176
|
-
"react": "^
|
|
178
|
+
"react": "^18.2.0",
|
|
177
179
|
"react-helmet": "^6.1.0",
|
|
178
180
|
"react-i18next": "^12.3.1",
|
|
179
181
|
"react-query": "^3.39.2",
|
|
180
|
-
"react-router-dom": "^5.
|
|
182
|
+
"react-router-dom": "^5.3.3",
|
|
183
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
181
184
|
"react-toastify": "^9.0.8",
|
|
182
185
|
"shakapacker": "^6.5.5",
|
|
183
186
|
"tailwindcss": "npm:@tailwindcss/postcss7-compat",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SyntaxHighlighterProps } from "react-syntax-highlighter";
|
|
3
|
+
import { CopyToClipboardButtonProps } from "./CopyToClipboardButton";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Codeblock can be used to render a block of code, with appropriate syntax
|
|
7
|
+
*
|
|
8
|
+
* highlighting, and a copy code button.
|
|
9
|
+
*
|
|
10
|
+
* Note: To use this component, you should install
|
|
11
|
+
*
|
|
12
|
+
* react-syntax-highlighter@^15.5.0 package.
|
|
13
|
+
*
|
|
14
|
+
* 
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
*
|
|
18
|
+
* import React from "react";
|
|
19
|
+
* import Codeblock from "@bigbinary/neeto-molecules/Codeblock";
|
|
20
|
+
* import { generateEmbedCode } from "./utils";
|
|
21
|
+
*
|
|
22
|
+
* const EmbedPage = () => (
|
|
23
|
+
* <Codeblock
|
|
24
|
+
* code={generateEmbedCode()}
|
|
25
|
+
* codeblockProps={{ showLineNumbers: true }}
|
|
26
|
+
* />
|
|
27
|
+
* );
|
|
28
|
+
* @endexample
|
|
29
|
+
*/
|
|
30
|
+
const Codeblock: React.FC<{
|
|
31
|
+
code: string;
|
|
32
|
+
showCopyButton?: boolean;
|
|
33
|
+
codeblockProps?: Partial<SyntaxHighlighterProps>;
|
|
34
|
+
copyButtonProps?: Partial<CopyToClipboardButtonProps>;
|
|
35
|
+
}>;
|
|
36
|
+
export default Codeblock;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
export interface CopyToClipboardButtonProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
icon?: string | any;
|
|
5
|
+
label?: string;
|
|
6
|
+
value: string;
|
|
7
|
+
style?: "primary" | "secondary" | "text";
|
|
8
|
+
}
|
|
2
9
|
/**
|
|
3
10
|
*
|
|
4
11
|
* A button that copies the given value to the clipboard.
|
|
@@ -12,11 +19,5 @@ import React from "react";
|
|
|
12
19
|
* );
|
|
13
20
|
* @endexample
|
|
14
21
|
*/
|
|
15
|
-
const CopyToClipboardButton: React.FC<
|
|
16
|
-
className?: string;
|
|
17
|
-
icon?: string | any;
|
|
18
|
-
label?: string;
|
|
19
|
-
value: string;
|
|
20
|
-
style?: 'primary' | 'secondary' | 'text';
|
|
21
|
-
}>;
|
|
22
|
+
const CopyToClipboardButton: React.FC<CopyToClipboardButtonProps>;
|
|
22
23
|
export default CopyToClipboardButton;
|