Skip to content

Commit

Permalink
Merge pull request #516 from vtexdocs/feat/sidebar-module
Browse files Browse the repository at this point in the history
Component library
  • Loading branch information
aliceoq authored Nov 20, 2023
2 parents 12e17c5 + b14d2c2 commit a3b563d
Show file tree
Hide file tree
Showing 61 changed files with 165 additions and 4,001 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"yarn": ">= 1.22.18"
},
"scripts": {
"predev": "./getPEM.sh && node src/utils/get-rapidoc.mjs",
"predev": "./getPEM.sh",
"dev": "next dev",
"prebuild": "./getPEM.sh && node src/utils/get-rapidoc.mjs",
"prebuild": "./getPEM.sh",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
Expand All @@ -32,6 +32,7 @@
"@types/react-svg-pan-zoom": "^3.3.5",
"@types/uuid": "^9.0.0",
"@vtex/brand-ui": "^0.46.1",
"@vtexdocs/components": "https://github.com/vtexdocs/components.git#v1.1.11",
"algoliasearch": "^4.14.2",
"chalk": "^5.2.0",
"copy-text-to-clipboard": "^3.0.1",
Expand Down Expand Up @@ -75,6 +76,7 @@
"sharp": "^0.32.0",
"swagger-parser": "^10.0.3",
"swr": "^1.3.0",
"tree-sitter": "^0.20.6",
"unist-builder": "^3.0.1",
"unist-util-visit": "^4.1.1",
"use-yarn": "^2.4.0",
Expand Down Expand Up @@ -124,9 +126,6 @@
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
},
"rapidoc": {
"version": "v1.2.4-vtex-2-gb13c2c8"
}
},
"resolutions": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/JsonEditorComponent/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import React, { useState, useContext, useEffect } from 'react'
import { SidebarContext } from 'utils/contexts/sidebar'
import navigation from '../../../public/navigation.json'
import styles from './styles'
import { Box, Button } from '@vtex/brand-ui'
import { ToastContainer, toast } from 'react-toastify'
const initialData = navigation.navbar
import { injectStyle } from 'react-toastify/dist/inject-style'
import { LibraryContext } from '@vtexdocs/components'
function JsonEditorComponent() {
useEffect(() => {
injectStyle()
})
const { setSidebarDataMaster } = useContext(SidebarContext)
const { setSidebarDataMaster } = useContext(LibraryContext)
const [isCopied, setIsCopied] = useState(false)

useEffect(() => {
Expand Down
65 changes: 0 additions & 65 deletions src/components/feedback-modal/functions.ts

This file was deleted.

122 changes: 0 additions & 122 deletions src/components/feedback-modal/index.tsx

This file was deleted.

78 changes: 0 additions & 78 deletions src/components/feedback-modal/styles.ts

This file was deleted.

22 changes: 0 additions & 22 deletions src/components/feedback-section/functions.ts

This file was deleted.

Loading

0 comments on commit a3b563d

Please sign in to comment.