@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.
Files changed (63) hide show
  1. package/__fixtures__/api-descriptions/Instagram.d.ts +1547 -0
  2. package/__fixtures__/api-descriptions/badgesForSchema.d.ts +1 -0
  3. package/__fixtures__/api-descriptions/simpleApiWithInternalOperations.d.ts +224 -0
  4. package/__fixtures__/api-descriptions/simpleApiWithoutDescription.d.ts +212 -0
  5. package/__fixtures__/api-descriptions/todosApiBundled.d.ts +1 -0
  6. package/__fixtures__/api-descriptions/zoomApiYaml.d.ts +1 -0
  7. package/components/API/APIWithResponsiveSidebarLayout.d.ts +25 -0
  8. package/components/API/APIWithSidebarLayout.d.ts +32 -0
  9. package/components/API/APIWithStackedLayout.d.ts +29 -0
  10. package/components/API/utils.d.ts +20 -0
  11. package/containers/API.d.ts +30 -0
  12. package/containers/API.spec.d.ts +1 -0
  13. package/containers/API.stories.d.ts +58 -0
  14. package/containers/story-helper.d.ts +2 -0
  15. package/hooks/useExportDocumentProps.d.ts +11 -0
  16. package/hooks/useExportDocumentProps.spec.d.ts +1 -0
  17. package/index.esm.js +657 -0
  18. package/index.js +681 -0
  19. package/index.mjs +657 -0
  20. package/package.json +16 -76
  21. package/styles.min.css +1 -0
  22. package/utils/oas/index.d.ts +3 -0
  23. package/utils/oas/oas2.d.ts +2 -0
  24. package/utils/oas/oas3.d.ts +2 -0
  25. package/utils/oas/types.d.ts +33 -0
  26. package/web-components/components.d.ts +1 -0
  27. package/web-components/index.d.ts +1 -0
  28. package/web-components.min.js +2 -0
  29. package/web-components.min.js.LICENSE.txt +176 -0
  30. package/.storybook/main.js +0 -6
  31. package/.storybook/manager.js +0 -1
  32. package/.storybook/preview.jsx +0 -3
  33. package/jest.config.js +0 -7
  34. package/src/__fixtures__/api-descriptions/Instagram.ts +0 -1859
  35. package/src/__fixtures__/api-descriptions/badgesForSchema.ts +0 -36
  36. package/src/__fixtures__/api-descriptions/simpleApiWithInternalOperations.ts +0 -253
  37. package/src/__fixtures__/api-descriptions/simpleApiWithoutDescription.ts +0 -243
  38. package/src/__fixtures__/api-descriptions/todosApiBundled.ts +0 -430
  39. package/src/__fixtures__/api-descriptions/zoomApiYaml.ts +0 -6083
  40. package/src/components/API/APIWithResponsiveSidebarLayout.tsx +0 -125
  41. package/src/components/API/APIWithSidebarLayout.tsx +0 -158
  42. package/src/components/API/APIWithStackedLayout.tsx +0 -286
  43. package/src/components/API/__tests__/utils.test.ts +0 -1323
  44. package/src/components/API/utils.ts +0 -206
  45. package/src/containers/API.spec.tsx +0 -122
  46. package/src/containers/API.stories.tsx +0 -117
  47. package/src/containers/API.tsx +0 -277
  48. package/src/containers/story-helper.tsx +0 -53
  49. package/src/hooks/useExportDocumentProps.spec.tsx +0 -68
  50. package/src/hooks/useExportDocumentProps.tsx +0 -48
  51. package/src/styles.css +0 -1
  52. package/src/utils/oas/__tests__/oas.spec.ts +0 -411
  53. package/src/utils/oas/index.ts +0 -192
  54. package/src/utils/oas/oas2.ts +0 -31
  55. package/src/utils/oas/oas3.ts +0 -54
  56. package/src/utils/oas/types.ts +0 -34
  57. package/src/web-components/__stories__/Api.stories.tsx +0 -63
  58. package/src/web-components/components.ts +0 -26
  59. package/src/web-components/index.ts +0 -3
  60. package/tsconfig.build.json +0 -18
  61. package/tsconfig.json +0 -7
  62. package/web-components.config.js +0 -1
  63. /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.12-beta-0.1",
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
- "homepage": "https://github.com/stoplightio/elements",
12
- "bugs": "https://github.com/stoplightio/elements/issues",
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.12-beta-0.1",
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
- "devDependencies": {
79
- "@fortawesome/free-solid-svg-icons": "^6.1.1",
80
- "@stoplight/scripts": "10.0.0",
81
- "@testing-library/dom": "^7.26.5",
82
- "@testing-library/jest-dom": "^5.16.4",
83
- "@testing-library/react": "^11.1.1",
84
- "@testing-library/react-hooks": "^8.0.1",
85
- "@testing-library/user-event": "^12.2.0",
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
- "release": {
110
- "extends": "@stoplight/scripts/release"
111
- }
50
+ "typings": "index.d.ts",
51
+ "module": "./index.esm.js"
112
52
  }