@nualang/nualang-ui-components 0.1.1127

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.
Files changed (2) hide show
  1. package/README.md +65 -0
  2. package/package.json +174 -0
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # Nualang ui-components
2
+ This is the ui-components repository for the Nualang product. The components
3
+ are developed, reviewed and tested with storybook and a library is then published
4
+ to `npm` and consumed from there by nualang web apps.
5
+
6
+ ## Getting Started
7
+ Clone this repository and then execute `npm install`. `npm start` will start
8
+ [stoybook](https://storybook.js.org) and allow you to brrowse the available components.
9
+
10
+ ## Develop
11
+ ```
12
+ npm start
13
+ ```
14
+
15
+ ## Create Local Package
16
+ Compile and pack (This will create a '.tgz' file):
17
+ ```
18
+ npm run localpack
19
+ ```
20
+
21
+ Install package (Inside webapp):
22
+ ```
23
+ npm i ../ui-components/fathomtech-nualang-ui-components-0.1.XXX.tgz
24
+ ```
25
+
26
+ If webapp is caching previous versions (Add a character to the end of the .tgz, e.g 'a') and install again:
27
+ ```
28
+ yarn add ../ui-components/fathomtech-nualang-ui-components-0.1.XXXa.tgz
29
+ ```
30
+
31
+ ## Publish to npm
32
+ Make sure that the version number has been updayed in package.json.
33
+ Ensure that you have committed the latest version to git.
34
+ Execute:-
35
+ ```bash
36
+ npm run postversion
37
+ ```
38
+ npm will complain if you try to re-publish a previously used version number.
39
+
40
+
41
+ ## Additional Scripts
42
+ In the project directory, you can run:
43
+
44
+ ### `npm run storybook`
45
+ Runs the app in the development mode.<br />
46
+ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
47
+
48
+ The page will reload if you make edits.<br />
49
+ You should also see any lint errors in the console.
50
+
51
+ ### `npm run test`
52
+ Launches the test runner in interactive watch mode.<br />
53
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
54
+
55
+ ### `npm run lint`
56
+ Check for any lint errors or warnings.
57
+
58
+ ### `npm run compile`
59
+ Run the babel compiler to compile es6 to js.
60
+
61
+ ### `npm run postversion`
62
+ Publish a new version of the pacakage to npm. npm will complain
63
+
64
+ ### `npm run chromatic`
65
+ Publish a new version of the pacakage to https://www.chromatic.com/
package/package.json ADDED
@@ -0,0 +1,174 @@
1
+ {
2
+ "name": "@nualang/nualang-ui-components",
3
+ "version": "0.1.1127",
4
+ "main": "dist/index.js",
5
+ "files": [
6
+ "dist",
7
+ "README.md"
8
+ ],
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "URL_OF_YOUR_REPOSITORY"
12
+ },
13
+ "dependencies": {
14
+ "@emoji-mart/data": "^1.1.2",
15
+ "@emoji-mart/react": "^1.1.1",
16
+ "@emotion/react": "^11.10.8",
17
+ "@emotion/styled": "^11.10.8",
18
+ "@fathomtech/videochat-ui-components": "^0.0.166",
19
+ "@hookform/resolvers": "^3.3.4",
20
+ "@json2csv/plainjs": "^7.0.1",
21
+ "@mui/icons-material": "^5.14.1",
22
+ "@mui/lab": "^5.0.0-alpha.137",
23
+ "@mui/material": "^5.14.2",
24
+ "@mui/system": "^5.14.1",
25
+ "@mui/x-date-pickers": "^6.10.1",
26
+ "@storybook/theming": "^7.6.17",
27
+ "@stripe/react-stripe-js": "^2.1.1",
28
+ "@stripe/stripe-js": "^1.54.2",
29
+ "ajv-keywords": "^3.5.2",
30
+ "avataaars": "^2.0.0",
31
+ "base64-arraybuffer": "^1.0.2",
32
+ "chart.js": "^4.3.2",
33
+ "chartjs-plugin-datalabels": "^2.2.0",
34
+ "classnames": "^2.3.1",
35
+ "codegen": "^0.1.0",
36
+ "codemirror": "^5.61.1",
37
+ "date-fns": "3.3.1",
38
+ "deep-equal": "^2.2.2",
39
+ "easymde": "2.18.0",
40
+ "emoji-mart": "5.5.2",
41
+ "export-to-csv": "^0.2.1",
42
+ "formik": "^2.2.9",
43
+ "fs": "^0.0.1-security",
44
+ "immutability-helper": "^3.0",
45
+ "jaro-winkler": "^0.2",
46
+ "json-2-csv": "^4.0.0",
47
+ "jsonlint": "^1.6.3",
48
+ "jsonrepair": "^3.6.0",
49
+ "luxon": "^3.3.0",
50
+ "moment": "^2.29.4",
51
+ "n2words": "^1.19.1",
52
+ "pixabay-api": "^1.0.4",
53
+ "pre-commit": "^1.2.2",
54
+ "rdndmb-html5-to-touch": "^8.0.0",
55
+ "react-beautiful-dnd": "^13.1.1",
56
+ "react-chartjs-2": "^5.2.0",
57
+ "react-codemirror2": "^7.2.1",
58
+ "react-copy-to-clipboard": "^5.0",
59
+ "react-countdown-circle-timer": "^3.2.1",
60
+ "react-csv": "^2.2.2",
61
+ "react-dnd": "^16.0.1",
62
+ "react-dnd-multi-backend": "^8.0.0",
63
+ "react-dropzone": "^14.2.3",
64
+ "react-easy-crop": "^5.0.0",
65
+ "react-feather": "^2.0",
66
+ "react-flip-move": "^3.0.5",
67
+ "react-flip-toolkit": "^7.1.0",
68
+ "react-hook-form": "^7.51.3",
69
+ "react-i18next": "^14.0.5",
70
+ "react-infinite-scroll-component": "^6.1.0",
71
+ "react-infinite-scroller": "^1.2.6",
72
+ "react-intersection-observer": "^9.5.2",
73
+ "react-joyride": "^2.5.5",
74
+ "react-markdown": "^8.0.7",
75
+ "react-modal-promise": "^1.0.2",
76
+ "react-papaparse": "^4.1.0",
77
+ "react-pdf": "^7.7.1",
78
+ "react-player": "^2.16.0",
79
+ "react-router-dom": "^6.22.1",
80
+ "react-simplemde-editor": "5.2.0",
81
+ "react-split-pane": "^0.1",
82
+ "react-spreadsheet-grid": "^2.0.0",
83
+ "react-swipeable-views": "^0.14.0",
84
+ "react-test-renderer": "^18.2.0",
85
+ "reactflow": "^11.10.4",
86
+ "rehype-raw": "^6.1.0",
87
+ "rivescript": "^2.0",
88
+ "socket.io-client": "^4.7.1",
89
+ "styled-components": "^6.1.0",
90
+ "tss-react": "^4.9.3",
91
+ "uifx": "^2.0",
92
+ "wavesurfer.js": "^7.7.3",
93
+ "xlsx": "^0.18.5",
94
+ "yup": "^1.4.0"
95
+ },
96
+ "_COMMENT_": "// Please note that peer dependencies are also included as dev dependencies to make development easier",
97
+ "devDependencies": {
98
+ "@babel/cli": "^7.22.9",
99
+ "@babel/plugin-proposal-private-property-in-object": "^7.18.6",
100
+ "@babel/preset-env": "^7.21.5",
101
+ "@babel/preset-react": "^7.14.5",
102
+ "@react-theming/storybook-addon": "^1.1.10",
103
+ "@storybook/addon-actions": "^7.6.17",
104
+ "@storybook/addon-essentials": "^7.6.17",
105
+ "@storybook/addon-links": "^7.6.17",
106
+ "@storybook/addon-mdx-gfm": "^7.6.17",
107
+ "@storybook/addon-storyshots": "^7.6.17",
108
+ "@storybook/addon-viewport": "^7.6.17",
109
+ "@storybook/addons": "^7.6.17",
110
+ "@storybook/node-logger": "^7.6.17",
111
+ "@storybook/preset-create-react-app": "^7.6.17",
112
+ "@storybook/react": "^7.6.17",
113
+ "@storybook/react-webpack5": "^7.6.17",
114
+ "@tanstack/react-query": "5.22.2",
115
+ "@tanstack/react-query-devtools": "5.24.0",
116
+ "@tanstack/react-query-persist-client": "5.22.2",
117
+ "babel-plugin-macros": "^3.1.0",
118
+ "chromatic": "^6.20.0",
119
+ "clsx": "^2.0.0",
120
+ "cross-env": "^7.0.3",
121
+ "eslint-plugin-jsx-a11y": "^6.8.0",
122
+ "intersection-observer": "^0.12.0",
123
+ "jest": "^29.6.2",
124
+ "msw": "^1.2.3",
125
+ "patch-package": "^8.0.0",
126
+ "prettier": "^3.2.5",
127
+ "react": "^18.2.0",
128
+ "react-dom": "^18.2.0",
129
+ "react-scripts": "^5.0.1",
130
+ "storybook": "^7.6.17"
131
+ },
132
+ "scripts": {
133
+ "postinstall": "patch-package",
134
+ "start": "npm run storybook",
135
+ "build": "react-scripts build",
136
+ "test": "react-scripts test --testPathIgnorePatterns=src/storybook.test.js --transformIgnorePatterns \"node_modules/(?!@codemirror)/\"",
137
+ "test:unit": "cross-env CI=true react-scripts test ./ --ci --testPathIgnorePatterns=src/storybook.test.js --transformIgnorePatterns \"node_modules/(?!@codemirror)/\"",
138
+ "storybook": "storybook dev -p 9009",
139
+ "build-storybook": "storybook build",
140
+ "clean": "rimraf dist",
141
+ "compile": "npm run clean && cross-env NODE_ENV=production babel src/components --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__",
142
+ "version": "npm run compile && git add -A",
143
+ "postversion": "npm publish && git push && git push --tags",
144
+ "localpack": "npm run compile && npm pack",
145
+ "lint": "eslint --ext .js,.jsx --ignore-pattern dist src",
146
+ "chromatic": "npx chromatic --project-token=a2273931692a --exit-zero-on-changes",
147
+ "prettier": "npx prettier ./src --write"
148
+ },
149
+ "pre-commit": [
150
+ "lint",
151
+ "prettier"
152
+ ],
153
+ "eslintConfig": {
154
+ "extends": [
155
+ "react-app",
156
+ "react-app/jest"
157
+ ]
158
+ },
159
+ "browserslist": {
160
+ "production": [
161
+ ">0.2%",
162
+ "not dead",
163
+ "not op_mini all"
164
+ ],
165
+ "development": [
166
+ "last 1 chrome version",
167
+ "last 1 firefox version",
168
+ "last 1 safari version"
169
+ ]
170
+ },
171
+ "msw": {
172
+ "workerDirectory": "public"
173
+ }
174
+ }