@stoplight/elements-dev-portal 3.0.11 → 3.0.12-beta-0.2
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/.storybook/main.js +6 -0
- package/.storybook/manager.js +1 -0
- package/.storybook/preview.jsx +46 -0
- package/dist/LICENSE +190 -0
- package/dist/README.md +22 -0
- package/{index.esm.js → dist/index.esm.js} +8 -2
- package/{index.js → dist/index.js} +8 -2
- package/{index.mjs → dist/index.mjs} +8 -2
- package/dist/package.json +51 -0
- package/dist/version.d.ts +1 -0
- package/{web-components.min.js → dist/web-components.min.js} +1 -1
- package/jest.config.js +10 -0
- package/package.json +71 -17
- package/src/__fixtures__/branches.json +28 -0
- package/src/__fixtures__/node-content.json +257 -0
- package/src/__fixtures__/table-of-contents.json +144 -0
- package/src/components/BranchSelector/BranchSelector.spec.tsx +61 -0
- package/src/components/BranchSelector/BranchSelector.stories.tsx +41 -0
- package/src/components/BranchSelector/BranchSelector.tsx +50 -0
- package/src/components/BranchSelector/index.tsx +1 -0
- package/src/components/DevPortalProvider/index.tsx +25 -0
- package/src/components/Forbidden.tsx +11 -0
- package/src/components/Loading.tsx +9 -0
- package/src/components/NodeContent/NodeContent.spec.tsx +128 -0
- package/src/components/NodeContent/NodeContent.stories.tsx +60 -0
- package/src/components/NodeContent/NodeContent.tsx +235 -0
- package/src/components/NodeContent/index.tsx +1 -0
- package/src/components/NotFound.tsx +11 -0
- package/src/components/Search/Search.stories.tsx +151 -0
- package/src/components/Search/Search.tsx +161 -0
- package/src/components/Search/SearchOverlay.tsx +88 -0
- package/src/components/Search/index.tsx +1 -0
- package/src/components/TableOfContents/TableOfContents.stories.tsx +68 -0
- package/src/components/TableOfContents/TableOfContents.tsx +54 -0
- package/src/components/TableOfContents/index.tsx +1 -0
- package/src/components/UpgradeToStarter.tsx +22 -0
- package/src/consts.ts +32 -0
- package/src/containers/StoplightProject.spec.tsx +78 -0
- package/src/containers/StoplightProject.stories.tsx +28 -0
- package/src/containers/StoplightProject.tsx +269 -0
- package/src/handlers/__tests__/getBranches.test.ts +30 -0
- package/src/handlers/__tests__/getNodeContent.test.ts +35 -0
- package/src/handlers/__tests__/getNodes.test.ts +38 -0
- package/src/handlers/__tests__/getTableOfContents.test.ts +34 -0
- package/src/handlers/__tests__/getWorkspace.test.ts +30 -0
- package/src/handlers/getBranches.ts +27 -0
- package/src/handlers/getNodeContent.ts +53 -0
- package/src/handlers/getNodes.ts +69 -0
- package/src/handlers/getTableOfContents.ts +30 -0
- package/src/handlers/getWorkspace.ts +27 -0
- package/src/hooks/__tests__/dataFetching.spec.tsx +42 -0
- package/src/hooks/useGetBranches.ts +17 -0
- package/src/hooks/useGetNodeContent.ts +24 -0
- package/src/hooks/useGetNodes.ts +34 -0
- package/src/hooks/useGetTableOfContents.ts +17 -0
- package/src/hooks/useGetWorkspace.tsx +13 -0
- package/src/index.ts +25 -0
- package/src/styles.css +1 -0
- package/src/types.ts +85 -0
- package/src/version.ts +2 -0
- package/src/web-components/__stories__/StoplightProject.stories.tsx +33 -0
- package/src/web-components/components.ts +19 -0
- package/src/web-components/index.ts +3 -0
- package/tsconfig.build.json +18 -0
- package/tsconfig.json +7 -0
- package/web-components.config.js +1 -0
- package/version.d.ts +0 -1
- /package/{components → dist/components}/BranchSelector/BranchSelector.d.ts +0 -0
- /package/{components → dist/components}/BranchSelector/BranchSelector.spec.d.ts +0 -0
- /package/{components → dist/components}/BranchSelector/BranchSelector.stories.d.ts +0 -0
- /package/{components → dist/components}/BranchSelector/index.d.ts +0 -0
- /package/{components → dist/components}/DevPortalProvider/index.d.ts +0 -0
- /package/{components → dist/components}/Forbidden.d.ts +0 -0
- /package/{components → dist/components}/Loading.d.ts +0 -0
- /package/{components → dist/components}/NodeContent/NodeContent.d.ts +0 -0
- /package/{components → dist/components}/NodeContent/NodeContent.spec.d.ts +0 -0
- /package/{components → dist/components}/NodeContent/NodeContent.stories.d.ts +0 -0
- /package/{components → dist/components}/NodeContent/index.d.ts +0 -0
- /package/{components → dist/components}/NotFound.d.ts +0 -0
- /package/{components → dist/components}/Search/Search.d.ts +0 -0
- /package/{components → dist/components}/Search/Search.stories.d.ts +0 -0
- /package/{components → dist/components}/Search/SearchOverlay.d.ts +0 -0
- /package/{components → dist/components}/Search/index.d.ts +0 -0
- /package/{components → dist/components}/TableOfContents/TableOfContents.d.ts +0 -0
- /package/{components → dist/components}/TableOfContents/TableOfContents.stories.d.ts +0 -0
- /package/{components → dist/components}/TableOfContents/index.d.ts +0 -0
- /package/{components → dist/components}/UpgradeToStarter.d.ts +0 -0
- /package/{consts.d.ts → dist/consts.d.ts} +0 -0
- /package/{containers → dist/containers}/StoplightProject.d.ts +0 -0
- /package/{containers → dist/containers}/StoplightProject.spec.d.ts +0 -0
- /package/{containers → dist/containers}/StoplightProject.stories.d.ts +0 -0
- /package/{handlers → dist/handlers}/getBranches.d.ts +0 -0
- /package/{handlers → dist/handlers}/getNodeContent.d.ts +0 -0
- /package/{handlers → dist/handlers}/getNodes.d.ts +0 -0
- /package/{handlers → dist/handlers}/getTableOfContents.d.ts +0 -0
- /package/{handlers → dist/handlers}/getWorkspace.d.ts +0 -0
- /package/{hooks → dist/hooks}/useGetBranches.d.ts +0 -0
- /package/{hooks → dist/hooks}/useGetNodeContent.d.ts +0 -0
- /package/{hooks → dist/hooks}/useGetNodes.d.ts +0 -0
- /package/{hooks → dist/hooks}/useGetTableOfContents.d.ts +0 -0
- /package/{hooks → dist/hooks}/useGetWorkspace.d.ts +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{styles.min.css → dist/styles.min.css} +0 -0
- /package/{types.d.ts → dist/types.d.ts} +0 -0
- /package/{web-components → dist/web-components}/components.d.ts +0 -0
- /package/{web-components → dist/web-components}/index.d.ts +0 -0
- /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.