@equinor/subsurface-app-management 1.0.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.
Files changed (3) hide show
  1. package/LICENSE.md +7 -0
  2. package/README.md +16 -0
  3. package/package.json +127 -0
package/LICENSE.md ADDED
@@ -0,0 +1,7 @@
1
+ ISC License
2
+
3
+ Copyright 2023 equinor
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+
2
+ <img alt="intro-logo" src="https://raw.githubusercontent.com/equinor/amplify-components/main/static/amplify_logo.png" width="300px" />
3
+
4
+ This package contains components, utils, providers and hooks that are used to communicate with `equinor/sam` developed and used by the amplify team.
5
+
6
+
7
+ // TODO: Setup storybook
8
+ # Quick links
9
+ - [Storybook](https://storybook-subsurface-app-management.app.radix.equinor.com/)
10
+
11
+ # Building and publishing
12
+
13
+ Build and publish is done automatically when code is merged into `main` branch, if the package.json version number is higher.
14
+
15
+ # Latest version
16
+ [![main](https://img.shields.io/npm/v/@equinor/amplify-components?color=%23c3f3d2&label=%40equinor%2Famplify-components&logo=npm&)](https://www.npmjs.com/package/@equinor/amplify-components)
package/package.json ADDED
@@ -0,0 +1,127 @@
1
+ {
2
+ "name": "@equinor/subsurface-app-management",
3
+ "version": "1.0.0",
4
+ "description": "React Typescript components/hooks to communicate with equinor/sam",
5
+ "main": "dist/esm/index.js",
6
+ "types": "dist/types/index.d.ts",
7
+ "author": "Amplify Team",
8
+ "license": "ISC",
9
+ "homepage": "https://github.com/equinor/subsurface-app-management#readme",
10
+ "bugs": {
11
+ "url": "https://github.com/equinor/subsurface-app-management/issues"
12
+ },
13
+ "files": [
14
+ "dist/*"
15
+ ],
16
+ "sideEffects": false,
17
+ "scripts": {
18
+ "start": "NODE_OPTIONS=--openssl-legacy-provider && storybook dev -p 6006",
19
+ "build-storybook": "NODE_OPTIONS='--openssl-legacy-provider --max-old-space-size=2048' storybook build",
20
+ "setup": "npm install",
21
+ "pretty": "prettier --check ./config ./src",
22
+ "pretty:fix": "prettier --write ./config ./src",
23
+ "lint": "eslint ./src --ext .ts,.tsx",
24
+ "lint:fix": "eslint ./src --ext .ts,.tsx --fix",
25
+ "test": "vitest watch",
26
+ "test:ci": "vitest run",
27
+ "test:coverage": "vitest run --coverage",
28
+ "setup-husky": "husky install",
29
+ "precommit": "npx lint-staged",
30
+ "build": "rollup -c && tsc --outDir dist --declarationDir dist/types --declaration true --emitDeclarationOnly --project tsconfig.build.json",
31
+ "build:ci": "rm -rf lib dist && npm run build-components",
32
+ "build-and-use": "node tooling/build-and-use.mjs",
33
+ "brute-coverage": "node tooling/brute-coverage.mjs"
34
+ },
35
+ "browserslist": {
36
+ "production": [
37
+ ">0.2%",
38
+ "not dead",
39
+ "not op_mini all"
40
+ ],
41
+ "development": [
42
+ "last 1 chrome version",
43
+ "last 1 firefox version",
44
+ "last 1 safari version"
45
+ ]
46
+ },
47
+ "dependencies": {
48
+ "@azure/msal-browser": "3.10.0",
49
+ "@azure/msal-react": "2.0.12",
50
+ "@microsoft/signalr": "^8.0.0",
51
+ "jwt-decode": "^4.0.0"
52
+ },
53
+ "devDependencies": {
54
+ "@equinor/amplify-components": "^7.10.5",
55
+ "@equinor/eds-icons": "^0.21.0",
56
+ "@faker-js/faker": "^8.4.1",
57
+ "@rollup/plugin-commonjs": "^25.0.7",
58
+ "@rollup/plugin-node-resolve": "^15.2.3",
59
+ "@rollup/plugin-terser": "^0.4.4",
60
+ "@rollup/plugin-typescript": "^11.1.6",
61
+ "@storybook/addon-actions": "^8.0.8",
62
+ "@storybook/addon-designs": "^8.0.0",
63
+ "@storybook/addon-docs": "^8.0.8",
64
+ "@storybook/addon-essentials": "^8.0.8",
65
+ "@storybook/addon-links": "^8.0.8",
66
+ "@storybook/components": "^8.0.8",
67
+ "@storybook/manager-api": "^8.0.8",
68
+ "@storybook/preview-api": "^8.0.8",
69
+ "@storybook/react": "^8.0.8",
70
+ "@storybook/react-vite": "^8.0.8",
71
+ "@tanstack/react-query": "^5.20.5",
72
+ "@testing-library/dom": "^9.3.4",
73
+ "@testing-library/jest-dom": "^6.4.2",
74
+ "@testing-library/react": "^14.2.1",
75
+ "@testing-library/user-event": "^14.5.2",
76
+ "@types/lodash-es": "^4.17.12",
77
+ "@types/mocha": "^10.0.6",
78
+ "@types/node": "^20.11.19",
79
+ "@types/react": "^18.2.55",
80
+ "@types/react-dom": "^18.2.19",
81
+ "@types/react-router-dom": "^5.3.3",
82
+ "@types/styled-components": "^5.1.34",
83
+ "@typescript-eslint/eslint-plugin": "^7.0.1",
84
+ "@typescript-eslint/parser": "^7.0.1",
85
+ "@vitejs/plugin-react": "^4.2.1",
86
+ "@vitest/coverage-v8": "^1.2.2",
87
+ "eslint": "^8.56.0",
88
+ "eslint-plugin-react": "^7.33.2",
89
+ "eslint-plugin-react-hooks": "^4.6.0",
90
+ "eslint-plugin-simple-import-sort": "^12.0.0",
91
+ "eslint-plugin-storybook": "^0.8.0",
92
+ "jest-styled-components": "^7.2.0",
93
+ "jsdom": "^24.0.0",
94
+ "lint-staged": "^15.2.2",
95
+ "ora": "^8.0.1",
96
+ "prettier": "^3.2.5",
97
+ "react": "^18.2.0",
98
+ "react-dom": "^18.2.0",
99
+ "react-router": "^6.22.3",
100
+ "react-router-dom": "^6.22.3",
101
+ "rollup": "^4.11.0",
102
+ "rollup-plugin-delete": "^2.0.0",
103
+ "rollup-plugin-import-css": "^3.4.0",
104
+ "semantic-release": "^22.0.12",
105
+ "semantic-release-gitmoji": "^1.6.5",
106
+ "storybook": "^8.0.8",
107
+ "storybook-addon-react-docgen": "^1.2.44",
108
+ "storybook-addon-remix-react-router": "^3.0.0",
109
+ "typescript": "^5.3.3",
110
+ "vite": "^5.1.3",
111
+ "vite-plugin-svgr": "^4.2.0",
112
+ "vite-tsconfig-paths": "^4.3.1",
113
+ "vitest": "^1.2.2"
114
+ },
115
+ "peerDependencies": {
116
+ "@equinor/amplify-components": "*",
117
+ "@equinor/eds-core-react": "*",
118
+ "@equinor/eds-icons": "*",
119
+ "@tanstack/react-query": "*",
120
+ "framer-motion": "*",
121
+ "react": "^18.2.0",
122
+ "react-dom": "^18.2.0",
123
+ "react-router": "^6.11.1",
124
+ "react-router-dom": "^6.11.1",
125
+ "styled-components": "^6.1.8"
126
+ }
127
+ }