@stoplight/elements-dev-portal 3.0.10 → 3.0.12-beta-0.1

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 (107) hide show
  1. package/.storybook/main.js +6 -0
  2. package/.storybook/manager.js +1 -0
  3. package/.storybook/preview.jsx +46 -0
  4. package/dist/LICENSE +190 -0
  5. package/dist/README.md +22 -0
  6. package/{index.esm.js → dist/index.esm.js} +8 -2
  7. package/{index.js → dist/index.js} +8 -2
  8. package/{index.mjs → dist/index.mjs} +8 -2
  9. package/dist/package.json +51 -0
  10. package/dist/version.d.ts +1 -0
  11. package/{web-components.min.js → dist/web-components.min.js} +1 -1
  12. package/jest.config.js +10 -0
  13. package/package.json +71 -17
  14. package/src/__fixtures__/branches.json +28 -0
  15. package/src/__fixtures__/node-content.json +257 -0
  16. package/src/__fixtures__/table-of-contents.json +144 -0
  17. package/src/components/BranchSelector/BranchSelector.spec.tsx +61 -0
  18. package/src/components/BranchSelector/BranchSelector.stories.tsx +41 -0
  19. package/src/components/BranchSelector/BranchSelector.tsx +50 -0
  20. package/src/components/BranchSelector/index.tsx +1 -0
  21. package/src/components/DevPortalProvider/index.tsx +25 -0
  22. package/src/components/Forbidden.tsx +11 -0
  23. package/src/components/Loading.tsx +9 -0
  24. package/src/components/NodeContent/NodeContent.spec.tsx +128 -0
  25. package/src/components/NodeContent/NodeContent.stories.tsx +60 -0
  26. package/src/components/NodeContent/NodeContent.tsx +235 -0
  27. package/src/components/NodeContent/index.tsx +1 -0
  28. package/src/components/NotFound.tsx +11 -0
  29. package/src/components/Search/Search.stories.tsx +151 -0
  30. package/src/components/Search/Search.tsx +161 -0
  31. package/src/components/Search/SearchOverlay.tsx +88 -0
  32. package/src/components/Search/index.tsx +1 -0
  33. package/src/components/TableOfContents/TableOfContents.stories.tsx +68 -0
  34. package/src/components/TableOfContents/TableOfContents.tsx +54 -0
  35. package/src/components/TableOfContents/index.tsx +1 -0
  36. package/src/components/UpgradeToStarter.tsx +22 -0
  37. package/src/consts.ts +32 -0
  38. package/src/containers/StoplightProject.spec.tsx +78 -0
  39. package/src/containers/StoplightProject.stories.tsx +28 -0
  40. package/src/containers/StoplightProject.tsx +269 -0
  41. package/src/handlers/__tests__/getBranches.test.ts +30 -0
  42. package/src/handlers/__tests__/getNodeContent.test.ts +35 -0
  43. package/src/handlers/__tests__/getNodes.test.ts +38 -0
  44. package/src/handlers/__tests__/getTableOfContents.test.ts +34 -0
  45. package/src/handlers/__tests__/getWorkspace.test.ts +30 -0
  46. package/src/handlers/getBranches.ts +27 -0
  47. package/src/handlers/getNodeContent.ts +53 -0
  48. package/src/handlers/getNodes.ts +69 -0
  49. package/src/handlers/getTableOfContents.ts +30 -0
  50. package/src/handlers/getWorkspace.ts +27 -0
  51. package/src/hooks/__tests__/dataFetching.spec.tsx +42 -0
  52. package/src/hooks/useGetBranches.ts +17 -0
  53. package/src/hooks/useGetNodeContent.ts +24 -0
  54. package/src/hooks/useGetNodes.ts +34 -0
  55. package/src/hooks/useGetTableOfContents.ts +17 -0
  56. package/src/hooks/useGetWorkspace.tsx +13 -0
  57. package/src/index.ts +25 -0
  58. package/src/styles.css +1 -0
  59. package/src/types.ts +85 -0
  60. package/src/version.ts +2 -0
  61. package/src/web-components/__stories__/StoplightProject.stories.tsx +33 -0
  62. package/src/web-components/components.ts +19 -0
  63. package/src/web-components/index.ts +3 -0
  64. package/tsconfig.build.json +18 -0
  65. package/tsconfig.json +7 -0
  66. package/web-components.config.js +1 -0
  67. package/version.d.ts +0 -1
  68. /package/{components → dist/components}/BranchSelector/BranchSelector.d.ts +0 -0
  69. /package/{components → dist/components}/BranchSelector/BranchSelector.spec.d.ts +0 -0
  70. /package/{components → dist/components}/BranchSelector/BranchSelector.stories.d.ts +0 -0
  71. /package/{components → dist/components}/BranchSelector/index.d.ts +0 -0
  72. /package/{components → dist/components}/DevPortalProvider/index.d.ts +0 -0
  73. /package/{components → dist/components}/Forbidden.d.ts +0 -0
  74. /package/{components → dist/components}/Loading.d.ts +0 -0
  75. /package/{components → dist/components}/NodeContent/NodeContent.d.ts +0 -0
  76. /package/{components → dist/components}/NodeContent/NodeContent.spec.d.ts +0 -0
  77. /package/{components → dist/components}/NodeContent/NodeContent.stories.d.ts +0 -0
  78. /package/{components → dist/components}/NodeContent/index.d.ts +0 -0
  79. /package/{components → dist/components}/NotFound.d.ts +0 -0
  80. /package/{components → dist/components}/Search/Search.d.ts +0 -0
  81. /package/{components → dist/components}/Search/Search.stories.d.ts +0 -0
  82. /package/{components → dist/components}/Search/SearchOverlay.d.ts +0 -0
  83. /package/{components → dist/components}/Search/index.d.ts +0 -0
  84. /package/{components → dist/components}/TableOfContents/TableOfContents.d.ts +0 -0
  85. /package/{components → dist/components}/TableOfContents/TableOfContents.stories.d.ts +0 -0
  86. /package/{components → dist/components}/TableOfContents/index.d.ts +0 -0
  87. /package/{components → dist/components}/UpgradeToStarter.d.ts +0 -0
  88. /package/{consts.d.ts → dist/consts.d.ts} +0 -0
  89. /package/{containers → dist/containers}/StoplightProject.d.ts +0 -0
  90. /package/{containers → dist/containers}/StoplightProject.spec.d.ts +0 -0
  91. /package/{containers → dist/containers}/StoplightProject.stories.d.ts +0 -0
  92. /package/{handlers → dist/handlers}/getBranches.d.ts +0 -0
  93. /package/{handlers → dist/handlers}/getNodeContent.d.ts +0 -0
  94. /package/{handlers → dist/handlers}/getNodes.d.ts +0 -0
  95. /package/{handlers → dist/handlers}/getTableOfContents.d.ts +0 -0
  96. /package/{handlers → dist/handlers}/getWorkspace.d.ts +0 -0
  97. /package/{hooks → dist/hooks}/useGetBranches.d.ts +0 -0
  98. /package/{hooks → dist/hooks}/useGetNodeContent.d.ts +0 -0
  99. /package/{hooks → dist/hooks}/useGetNodes.d.ts +0 -0
  100. /package/{hooks → dist/hooks}/useGetTableOfContents.d.ts +0 -0
  101. /package/{hooks → dist/hooks}/useGetWorkspace.d.ts +0 -0
  102. /package/{index.d.ts → dist/index.d.ts} +0 -0
  103. /package/{styles.min.css → dist/styles.min.css} +0 -0
  104. /package/{types.d.ts → dist/types.d.ts} +0 -0
  105. /package/{web-components → dist/web-components}/components.d.ts +0 -0
  106. /package/{web-components → dist/web-components}/index.d.ts +0 -0
  107. /package/{web-components.min.js.LICENSE.txt → dist/web-components.min.js.LICENSE.txt} +0 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.