Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component library #516

Merged
merged 28 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b03aeb3
chore: delete all sidebar related components
aliceoq Sep 22, 2023
30eb652
refactor: use librarycontext
aliceoq Sep 22, 2023
538f7c6
refactor: use header from library
aliceoq Sep 22, 2023
f737c39
fix: use announcements as header props
aliceoq Sep 25, 2023
09dc196
fix: use router to check if it is preview
aliceoq Sep 25, 2023
b2baaea
refactor: use was this helpful component from lib
aliceoq Sep 26, 2023
d2300d3
refactor: using search components from lib
aliceoq Sep 27, 2023
39c1a76
chore: delete all search related components
aliceoq Sep 27, 2023
102bed3
fix: use library config
aliceoq Oct 2, 2023
42fd828
fix: restore header
aliceoq Oct 5, 2023
d0cc0a3
feat: add component lib build file
aliceoq Oct 26, 2023
b483d7b
feat: create alias for component lib filepath
aliceoq Oct 26, 2023
97f6ba3
chore: delete unused files
aliceoq Oct 26, 2023
6a4923d
chore: delete unused file
aliceoq Oct 26, 2023
204aaab
feat: use MarkdownRenderer and toc from library
aliceoq Oct 26, 2023
c32ba10
feat: get all build files
aliceoq Oct 26, 2023
4ceecea
fix: add headingList as prop
aliceoq Oct 30, 2023
398ffd1
chore: update components lib version
aliceoq Nov 6, 2023
6fdcd4b
revert: remove lib build files from public
RobsonOlv Nov 7, 2023
e3114cf
feat: add @vtexdocs/library dependency and update imports
RobsonOlv Nov 7, 2023
4706ede
fix: update prebuild script
aliceoq Nov 8, 2023
d76dd55
chore: update component lib version
aliceoq Nov 9, 2023
91af2c1
chore: update yarn.lock
aliceoq Nov 9, 2023
491657e
style: add components lib css
aliceoq Nov 14, 2023
2213fab
chore: delete mermaidInit file
aliceoq Nov 14, 2023
1ea5959
build: update components version
aliceoq Nov 14, 2023
a3168d6
chore: update lock file
aliceoq Nov 16, 2023
b14d2c2
chore: update components lib version
aliceoq Nov 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading