@stoplight/elements 9.0.12-beta-0.1 → 9.0.13
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/__fixtures__/api-descriptions/Instagram.d.ts +1547 -0
- package/__fixtures__/api-descriptions/badgesForSchema.d.ts +1 -0
- package/__fixtures__/api-descriptions/simpleApiWithInternalOperations.d.ts +224 -0
- package/__fixtures__/api-descriptions/simpleApiWithoutDescription.d.ts +212 -0
- package/__fixtures__/api-descriptions/todosApiBundled.d.ts +1 -0
- package/__fixtures__/api-descriptions/zoomApiYaml.d.ts +1 -0
- package/components/API/APIWithResponsiveSidebarLayout.d.ts +25 -0
- package/components/API/APIWithSidebarLayout.d.ts +32 -0
- package/components/API/APIWithStackedLayout.d.ts +29 -0
- package/components/API/utils.d.ts +20 -0
- package/containers/API.d.ts +30 -0
- package/containers/API.spec.d.ts +1 -0
- package/containers/API.stories.d.ts +58 -0
- package/containers/story-helper.d.ts +2 -0
- package/hooks/useExportDocumentProps.d.ts +11 -0
- package/hooks/useExportDocumentProps.spec.d.ts +1 -0
- package/index.esm.js +657 -0
- package/index.js +681 -0
- package/index.mjs +657 -0
- package/package.json +16 -76
- package/styles.min.css +1 -0
- package/utils/oas/index.d.ts +3 -0
- package/utils/oas/oas2.d.ts +2 -0
- package/utils/oas/oas3.d.ts +2 -0
- package/utils/oas/types.d.ts +33 -0
- package/web-components/components.d.ts +1 -0
- package/web-components/index.d.ts +1 -0
- package/web-components.min.js +2 -0
- package/web-components.min.js.LICENSE.txt +176 -0
- package/.storybook/main.js +0 -6
- package/.storybook/manager.js +0 -1
- package/.storybook/preview.jsx +0 -3
- package/jest.config.js +0 -7
- package/src/__fixtures__/api-descriptions/Instagram.ts +0 -1859
- package/src/__fixtures__/api-descriptions/badgesForSchema.ts +0 -36
- package/src/__fixtures__/api-descriptions/simpleApiWithInternalOperations.ts +0 -253
- package/src/__fixtures__/api-descriptions/simpleApiWithoutDescription.ts +0 -243
- package/src/__fixtures__/api-descriptions/todosApiBundled.ts +0 -430
- package/src/__fixtures__/api-descriptions/zoomApiYaml.ts +0 -6083
- package/src/components/API/APIWithResponsiveSidebarLayout.tsx +0 -125
- package/src/components/API/APIWithSidebarLayout.tsx +0 -158
- package/src/components/API/APIWithStackedLayout.tsx +0 -286
- package/src/components/API/__tests__/utils.test.ts +0 -1323
- package/src/components/API/utils.ts +0 -206
- package/src/containers/API.spec.tsx +0 -122
- package/src/containers/API.stories.tsx +0 -117
- package/src/containers/API.tsx +0 -277
- package/src/containers/story-helper.tsx +0 -53
- package/src/hooks/useExportDocumentProps.spec.tsx +0 -68
- package/src/hooks/useExportDocumentProps.tsx +0 -48
- package/src/styles.css +0 -1
- package/src/utils/oas/__tests__/oas.spec.ts +0 -411
- package/src/utils/oas/index.ts +0 -192
- package/src/utils/oas/oas2.ts +0 -31
- package/src/utils/oas/oas3.ts +0 -54
- package/src/utils/oas/types.ts +0 -34
- package/src/web-components/__stories__/Api.stories.tsx +0 -63
- package/src/web-components/components.ts +0 -26
- package/src/web-components/index.ts +0 -3
- package/tsconfig.build.json +0 -18
- package/tsconfig.json +0 -7
- package/web-components.config.js +0 -1
- /package/{src/index.ts → index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,69 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoplight/elements",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.13",
|
|
4
4
|
"description": "UI components for composing beautiful developer documentation.",
|
|
5
5
|
"keywords": [],
|
|
6
|
+
"main": "./index.js",
|
|
6
7
|
"sideEffects": [
|
|
7
8
|
"web-components.min.js",
|
|
8
9
|
"src/web-components/**",
|
|
9
10
|
"**/*.css"
|
|
10
11
|
],
|
|
11
|
-
"
|
|
12
|
-
|
|
12
|
+
"files": [
|
|
13
|
+
"**/*"
|
|
14
|
+
],
|
|
13
15
|
"author": "Stoplight <support@stoplight.io>",
|
|
14
16
|
"repository": {
|
|
15
17
|
"type": "git",
|
|
16
18
|
"url": "https://github.com/stoplightio/elements"
|
|
17
19
|
},
|
|
18
20
|
"license": "Apache-2.0",
|
|
19
|
-
"type": "commonjs",
|
|
20
|
-
"main": "./dist/index.js",
|
|
21
|
-
"module": "./dist/index.esm.js",
|
|
22
|
-
"exports": {
|
|
23
|
-
"./styles.min.css": "./styles.min.css",
|
|
24
|
-
"./web-components.min.js": "./web-components.min.js",
|
|
25
|
-
".": {
|
|
26
|
-
"types": "./index.d.ts",
|
|
27
|
-
"require": "./dist/index.js",
|
|
28
|
-
"import": "./dist/index.mjs"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"files": [
|
|
32
|
-
"**/*"
|
|
33
|
-
],
|
|
34
21
|
"engines": {
|
|
35
22
|
"node": ">=16"
|
|
36
23
|
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"build": "yarn build.react && yarn build.webcomponents",
|
|
39
|
-
"postbuild": "yarn build.styles",
|
|
40
|
-
"build.react": "sl-scripts bundle",
|
|
41
|
-
"build.styles": "postcss src/styles.css -o dist/styles.min.css",
|
|
42
|
-
"build.webcomponents": "node --max-old-space-size=4096 ./../../node_modules/webpack/bin/webpack.js -c ./web-components.config.js",
|
|
43
|
-
"build.docs": "storybook build -c .storybook -o dist-storybook",
|
|
44
|
-
"commit": "git-cz",
|
|
45
|
-
"release": "sl-scripts release",
|
|
46
|
-
"release.docs": "sl-scripts release:docs",
|
|
47
|
-
"release.dryRun": "sl-scripts release --dry-run --debug",
|
|
48
|
-
"storybook": "storybook dev -p 9001",
|
|
49
|
-
"test": "jest",
|
|
50
|
-
"test.prod": "yarn test --coverage --maxWorkers=2",
|
|
51
|
-
"test.update": "yarn test --updateSnapshot",
|
|
52
|
-
"test.watch": "yarn test --watch",
|
|
53
|
-
"test.packaging": "node --input-type=commonjs -e \"require('./dist/index.js')\" && node --input-type=module -e \"import './dist/index.mjs'\"",
|
|
54
|
-
"type-check": "tsc --noEmit"
|
|
55
|
-
},
|
|
56
24
|
"peerDependencies": {
|
|
57
25
|
"react": ">=16.8",
|
|
58
26
|
"react-dom": ">=16.8"
|
|
59
27
|
},
|
|
60
|
-
"rollup": {
|
|
61
|
-
"bundleDeps": [
|
|
62
|
-
"@fortawesome/free-solid-svg-icons"
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
28
|
"dependencies": {
|
|
66
|
-
"@stoplight/elements-core": "~9.0.
|
|
29
|
+
"@stoplight/elements-core": "~9.0.13",
|
|
67
30
|
"@stoplight/http-spec": "^7.1.0",
|
|
68
31
|
"@stoplight/json": "^3.18.1",
|
|
69
32
|
"@stoplight/mosaic": "^1.53.5",
|
|
@@ -75,38 +38,15 @@
|
|
|
75
38
|
"react-query": "^3.34.19",
|
|
76
39
|
"react-router-dom": "^6.28.0"
|
|
77
40
|
},
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"@types/enzyme": "3.x.x",
|
|
87
|
-
"@types/enzyme-adapter-react-16": "1.x.x",
|
|
88
|
-
"@types/file-saver": "^2.0.5",
|
|
89
|
-
"@types/json-schema": "^7.0.11",
|
|
90
|
-
"@types/lodash": "^4.14.181",
|
|
91
|
-
"@types/react": "16.9.56",
|
|
92
|
-
"@types/react-dom": "16.9.12",
|
|
93
|
-
"@types/react-router-dom": "^5.3.3",
|
|
94
|
-
"enzyme": "3.x.x",
|
|
95
|
-
"enzyme-adapter-react-16": "1.x.x",
|
|
96
|
-
"enzyme-to-json": "3.x.x",
|
|
97
|
-
"jest-fetch-mock": "^3.0.3",
|
|
98
|
-
"react": "16.14.0",
|
|
99
|
-
"react-dom": "16.14.0",
|
|
100
|
-
"react-test-renderer": "^16.8.0",
|
|
101
|
-
"resolve-url-loader": "^5.0.0",
|
|
102
|
-
"storybook": "next",
|
|
103
|
-
"style-loader": "^3.3.3",
|
|
104
|
-
"ts-loader": "^9.2.8"
|
|
105
|
-
},
|
|
106
|
-
"publishConfig": {
|
|
107
|
-
"directory": "dist"
|
|
41
|
+
"type": "commonjs",
|
|
42
|
+
"exports": {
|
|
43
|
+
"./styles.min.css": "./styles.min.css",
|
|
44
|
+
"./web-components.min.js": "./web-components.min.js",
|
|
45
|
+
".": {
|
|
46
|
+
"require": "./index.js",
|
|
47
|
+
"import": "./index.mjs"
|
|
48
|
+
}
|
|
108
49
|
},
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
}
|
|
50
|
+
"typings": "index.d.ts",
|
|
51
|
+
"module": "./index.esm.js"
|
|
112
52
|
}
|