diff --git a/.github/workflows/bundle_analysis.yml b/.github/workflows/bundle_analysis.yml new file mode 100644 index 00000000..07b81767 --- /dev/null +++ b/.github/workflows/bundle_analysis.yml @@ -0,0 +1,127 @@ +name: 'Bundle Analysis' + +on: + pull_request: + push: + branches: + - next # change this if your default branch is named differently + workflow_dispatch: + +defaults: + run: + # change this if your nextjs app does not live at the root of the repo + working-directory: . + +jobs: + analyze: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js 14.x + uses: actions/setup-node@v1 + with: + node-version: 14.x + + - name: Cache node modules + uses: actions/cache@v1 + with: + path: node_modules + key: yarn-deps-${{ hashFiles('yarn.lock') }} + restore-keys: | + yarn-deps-${{ hashFiles('yarn.lock') }} + + - name: Build library + run: | + yarn install --frozen-lockfile 2>&1 | grep -v '^[warning|info]' + yarn build:lib + + - name: Restore next build + uses: actions/cache@v2 + id: restore-build-cache + env: + cache-name: cache-next-build + with: + # if you use a custom build directory, replace all instances of `.next` in this file with your build directory + # ex: if your app builds to `dist`, replace `.next` with `dist` + path: ./examples/bundle-test/.next/cache + # change this if you prefer a more strict cache + key: ${{ runner.os }}-build-${{ env.cache-name }} + + - name: Build next.js app + working-directory: ./examples/bundle-test + # change this if your site requires a custom build command + run: yarn build + + # Here's the first place where next-bundle-analysis' own script is used + # This step pulls the raw bundle stats for the current bundle + - name: Analyze bundle + working-directory: ./examples/bundle-test + run: npx -p nextjs-bundle-analysis report + + - name: Upload bundle + uses: actions/upload-artifact@v2 + with: + name: bundle + path: ./examples/bundle-test/.next/analyze/__bundle_analysis.json + + - name: Download base branch bundle stats + uses: dawidd6/action-download-artifact@v2 + if: success() && github.event.number + with: + workflow: bundle_analysis.yml + branch: ${{ github.event.pull_request.base.ref }} + path: ./examples/bundle-test/.next/analyze/base + + # And here's the second place - this runs after we have both the current and + # base branch bundle stats, and will compare them to determine what changed. + # There are two configurable arguments that come from package.json: + # + # - budget: optional, set a budget (bytes) against which size changes are measured + # it's set to 350kb here by default, as informed by the following piece: + # https://infrequently.org/2021/03/the-performance-inequality-gap/ + # + # - red-status-percentage: sets the percent size increase where you get a red + # status indicator, defaults to 20% + # + # Either of these arguments can be changed or removed by editing the `nextBundleAnalysis` + # entry in your package.json file. + - name: Compare with base branch bundle + working-directory: ./examples/bundle-test + if: success() && github.event.number + run: ls -laR .next/analyze/base && npx -p nextjs-bundle-analysis compare + + - name: Get comment body + working-directory: ./examples/bundle-test + id: get-comment-body + if: success() && github.event.number + run: | + body=$(cat .next/analyze/__bundle_analysis_comment.txt) + body="${body//'%'/'%25'}" + body="${body//$'\n'/'%0A'}" + body="${body//$'\r'/'%0D'}" + echo ::set-output name=body::$body + + - name: Find Comment + uses: peter-evans/find-comment@v1 + if: success() && github.event.number + id: fc + with: + issue-number: ${{ github.event.number }} + body-includes: '' + + - name: Create Comment + uses: peter-evans/create-or-update-comment@v1.4.4 + if: success() && github.event.number && steps.fc.outputs.comment-id == 0 + with: + issue-number: ${{ github.event.number }} + body: ${{ steps.get-comment-body.outputs.body }} + + - name: Update Comment + uses: peter-evans/create-or-update-comment@v1.4.4 + if: success() && github.event.number && steps.fc.outputs.comment-id != 0 + with: + issue-number: ${{ github.event.number }} + body: ${{ steps.get-comment-body.outputs.body }} + comment-id: ${{ steps.fc.outputs.comment-id }} + edit-mode: replace diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c38ed571..07a6a624 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,6 @@ jobs: if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" steps: - uses: actions/checkout@v2 - with: - fetch-depth: 10 # 👈 Required to retrieve git history - name: Prepare repository run: git fetch --unshallow --tags @@ -35,6 +33,7 @@ jobs: run: | yarn install --frozen-lockfile 2>&1 | grep -v '^[warning|info]' yarn build + yarn test yarn release # - name: Publish to Chromatic # uses: chromaui/action@v1 diff --git a/.gitignore b/.gitignore index 2f96e3e6..bc208f33 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,7 @@ yarn-error.log .vscode storybook-static packages/playground/out -packages/starter \ No newline at end of file +packages/starter + +# Contentlayer +.contentlayer diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index 95ac4cb2..00000000 --- a/.gitpod.yml +++ /dev/null @@ -1,9 +0,0 @@ -# This configuration file was automatically generated by Gitpod. -# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) -# and commit this file to your remote git repository to share the goodness with others. - -tasks: - - init: yarn install && yarn run build - command: yarn run playground - - diff --git a/examples/.prettierrc b/examples/.prettierrc new file mode 100644 index 00000000..ea70d3d1 --- /dev/null +++ b/examples/.prettierrc @@ -0,0 +1,11 @@ +{ + "semi": false, + "overrides": [ + { + "files": "*.md", + "options": { + "parser": "mdx" + } + } + ] +} diff --git a/examples/browser/index.html b/examples/browser/index.html new file mode 100644 index 00000000..ef3ff610 --- /dev/null +++ b/examples/browser/index.html @@ -0,0 +1,42 @@ + + +
+This is a React page
+docs directory.
+ >
+ ),
+ },
+ {
+ title: 'Powered by React',
+ Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
+ description: (
+ <>
+ Extend or customize your website layout by reusing React. Docusaurus can
+ be extended while reusing the same header and footer.
+ >
+ ),
+ },
+];
+
+function Feature({Svg, title, description}) {
+ return (
+ {description}
+{siteConfig.tagline}
+World
-World
-
-
- {lines.map((line, i) => (
-
- {lineNumbers ? (
-
- _{lineCount}
-
- ) : undefined}
-
- {line}
+ const { prevLongestLine, nextLongestLine, element } =
+ React.useMemo(() => {
+ const prevLongestLine = getLongestLine(
+ code.prev,
+ focus.prev
+ )
+ const nextLongestLine = getLongestLine(
+ code.next,
+ focus.next
+ )
+ const lines = (code.prev || code.next!)
+ .trimEnd()
+ .split(newlineRe)
+
+ const lineCount = lines.length
+
+ const element = (
+
+
+ {lines.map((line, i) => (
+
+ {lineNumbers ? (
+
+ _{lineCount}
+
+ ) : undefined}
+
+ {line}
+
-
- ))}
-
-
- )
- return { prevLongestLine, nextLongestLine, element }
- }, [code])
+ ))}
+
+
+ )
+ return { prevLongestLine, nextLongestLine, element }
+ }, [code])
const allDeps = [
...deps,
diff --git a/packages/mdx/src/utils/__snapshots__/color.test.ts.snap b/packages/mdx/src/utils/__snapshots__/color.test.ts.snap
new file mode 100644
index 00000000..b8aa21e7
--- /dev/null
+++ b/packages/mdx/src/utils/__snapshots__/color.test.ts.snap
@@ -0,0 +1,39 @@
+// Vitest Snapshot v1
+
+exports[`hexToObject > works with eight chars 1`] = `
+{
+ "a": 0.5333333333333333,
+ "b": 255,
+ "g": 136,
+ "r": 255,
+}
+`;
+
+exports[`hexToObject > works with four chars 1`] = `
+{
+ "a": 0.5333333333333333,
+ "b": 255,
+ "g": 136,
+ "r": 255,
+}
+`;
+
+exports[`hexToObject > works with six chars 1`] = `
+{
+ "a": 1,
+ "b": 255,
+ "g": 136,
+ "r": 255,
+}
+`;
+
+exports[`hexToObject > works with three chars 1`] = `
+{
+ "a": 1,
+ "b": 255,
+ "g": 136,
+ "r": 255,
+}
+`;
+
+exports[`hexToObject > works with undefined 1`] = `undefined`;
diff --git a/packages/utils/src/__snapshots__/focus.test.ts.snap b/packages/mdx/src/utils/__snapshots__/focus.test.ts.snap
similarity index 63%
rename from packages/utils/src/__snapshots__/focus.test.ts.snap
rename to packages/mdx/src/utils/__snapshots__/focus.test.ts.snap
index f3f9b42b..daef2322 100644
--- a/packages/utils/src/__snapshots__/focus.test.ts.snap
+++ b/packages/mdx/src/utils/__snapshots__/focus.test.ts.snap
@@ -1,15 +1,15 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
+// Vitest Snapshot v1
exports[`map focus to line numbers 1`] = `
-Object {
+{
"1": true,
"2": true,
- "3": Array [
- Object {
+ "3": [
+ {
"end": 5,
"start": 1,
},
- Object {
+ {
"end": 7,
"start": 7,
},
diff --git a/packages/utils/src/code.ts b/packages/mdx/src/utils/code.ts
similarity index 100%
rename from packages/utils/src/code.ts
rename to packages/mdx/src/utils/code.ts
diff --git a/packages/mdx/src/utils/color.test.ts b/packages/mdx/src/utils/color.test.ts
new file mode 100644
index 00000000..23571c76
--- /dev/null
+++ b/packages/mdx/src/utils/color.test.ts
@@ -0,0 +1,37 @@
+import { describe, it, expect, test } from "vitest"
+
+import { hexToObject, objectToHex } from "./color"
+
+describe("hexToObject", () => {
+ it("works with three chars", () => {
+ expect(hexToObject("#f8f")).toMatchSnapshot()
+ })
+ it("works with four chars", () => {
+ expect(hexToObject("#f8f8")).toMatchSnapshot()
+ })
+ it("works with six chars", () => {
+ expect(hexToObject("#ff88ff")).toMatchSnapshot()
+ })
+ it("works with eight chars", () => {
+ expect(hexToObject("#ff88ff88")).toMatchSnapshot()
+ })
+ it("works with undefined", () => {
+ expect(hexToObject(undefined)).toMatchSnapshot()
+ })
+ it("throws with wrong hex", () => {
+ expect(() => hexToObject("foo")).toThrow()
+ expect(() => hexToObject("#2")).toThrow()
+ expect(() => hexToObject("rgb(1,2,3)")).toThrow()
+ })
+})
+
+describe("objectToHex", () => {
+ it("works", () => {
+ expect(
+ objectToHex({ r: 255, g: 136, b: 255, a: 0.5 })
+ ).toBe("#ff88ff80")
+ })
+ it("works with undefined", () => {
+ expect(objectToHex(undefined)).toBe(undefined)
+ })
+})
diff --git a/packages/mdx/src/utils/color.ts b/packages/mdx/src/utils/color.ts
new file mode 100644
index 00000000..6731fa76
--- /dev/null
+++ b/packages/mdx/src/utils/color.ts
@@ -0,0 +1,77 @@
+type Color = string | undefined
+type ColorObject =
+ | {
+ r: number
+ g: number
+ b: number
+ a: number
+ }
+ | undefined
+
+// from https://stackoverflow.com/a/53936623/1325646
+const isValidHex = (hex: string) =>
+ /^#([A-Fa-f0-9]{3,4}){1,2}$/.test(hex)
+const getChunksFromString = (
+ st: string,
+ chunkSize: number
+) => st.match(new RegExp(`.{${chunkSize}}`, "g"))
+const convertHexUnitTo256 = (hex: string) =>
+ parseInt(hex.repeat(2 / hex.length), 16)
+function getAlphaFloat(a, alpha) {
+ if (typeof a !== "undefined") {
+ return a / 255
+ }
+ if (typeof alpha != "number" || alpha < 0 || alpha > 1) {
+ return 1
+ }
+ return alpha
+}
+
+export function hexToObject(hex: Color) {
+ if (!hex) {
+ return undefined
+ }
+ if (!isValidHex(hex)) {
+ throw new Error(
+ "Invalid color string, must be a valid hex color"
+ )
+ }
+ const chunkSize = Math.floor((hex.length - 1) / 3)
+ const hexArr = getChunksFromString(
+ hex.slice(1),
+ chunkSize
+ )
+ const [r, g, b, a] = hexArr.map(convertHexUnitTo256)
+ return {
+ r,
+ g,
+ b,
+ a: getAlphaFloat(a, 1),
+ }
+}
+
+export function objectToHex(object: ColorObject) {
+ if (!object) {
+ return undefined
+ }
+ const { r, g, b, a } = object
+ const alpha = Math.round(a * 255)
+ return `#${r.toString(16).padStart(2, "0")}${g
+ .toString(16)
+ .padStart(2, "0")}${b
+ .toString(16)
+ .padStart(2, "0")}${alpha
+ .toString(16)
+ .padStart(2, "0")}`
+}
+
+export function transparent(
+ color: Color,
+ opacity: number
+): Color {
+ if (!color) {
+ return color
+ }
+ const { r, g, b, a } = hexToObject(color)
+ return objectToHex({ r, g, b, a: a * opacity })
+}
diff --git a/packages/utils/src/focus.test.ts b/packages/mdx/src/utils/focus.test.ts
similarity index 94%
rename from packages/utils/src/focus.test.ts
rename to packages/mdx/src/utils/focus.test.ts
index f50744a2..6f676905 100644
--- a/packages/utils/src/focus.test.ts
+++ b/packages/mdx/src/utils/focus.test.ts
@@ -1,3 +1,5 @@
+import { describe, it, expect, test } from "vitest"
+
import {
mapFocusToLineNumbers,
relativeToAbsolute,
diff --git a/packages/utils/src/focus.ts b/packages/mdx/src/utils/focus.ts
similarity index 100%
rename from packages/utils/src/focus.ts
rename to packages/mdx/src/utils/focus.ts
diff --git a/packages/utils/src/hooks.ts b/packages/mdx/src/utils/hooks.ts
similarity index 100%
rename from packages/utils/src/hooks.ts
rename to packages/mdx/src/utils/hooks.ts
diff --git a/packages/utils/src/index.tsx b/packages/mdx/src/utils/index.tsx
similarity index 75%
rename from packages/utils/src/index.tsx
rename to packages/mdx/src/utils/index.tsx
index e96bd902..a7ec1132 100644
--- a/packages/utils/src/index.tsx
+++ b/packages/mdx/src/utils/index.tsx
@@ -1,3 +1,4 @@
+export { transparent } from "./color"
export * from "./tween"
export * from "./code"
export * from "./focus"
diff --git a/packages/mdx/src/utils/theme.test.ts b/packages/mdx/src/utils/theme.test.ts
new file mode 100644
index 00000000..210b3c2c
--- /dev/null
+++ b/packages/mdx/src/utils/theme.test.ts
@@ -0,0 +1,9 @@
+import { describe, it, expect, test } from "vitest"
+
+import { transparent } from "./color"
+
+describe("transparent", () => {
+ it("works without alpha", () => {
+ expect(transparent("#ffffff", 0.5)).toBe("#ffffff80")
+ })
+})
diff --git a/packages/utils/src/theme.ts b/packages/mdx/src/utils/theme.ts
similarity index 92%
rename from packages/utils/src/theme.ts
rename to packages/mdx/src/utils/theme.ts
index a6bd7527..94c6d5de 100644
--- a/packages/utils/src/theme.ts
+++ b/packages/mdx/src/utils/theme.ts
@@ -1,3 +1,5 @@
+import { transparent } from "./color"
+
/**
* A single theme setting.
*/
@@ -203,7 +205,9 @@ export function getColor(
}
}
-export function getColorScheme(theme: EditorTheme): string | undefined {
+export function getColorScheme(
+ theme: EditorTheme
+): string | undefined {
const themeType = getThemeType(theme)
if (themeType === "dark") {
return "dark"
@@ -213,18 +217,6 @@ export function getColorScheme(theme: EditorTheme): string | undefined {
return undefined
}
-export function transparent(
- color: Color,
- opacity: number
-): Color {
- const _opacity = Math.round(
- Math.min(Math.max(opacity || 1, 0), 1) * 255
- )
- return !color
- ? color
- : color + _opacity.toString(16).toUpperCase()
-}
-
function getDefault(
theme: EditorTheme,
defaults: { dark: Color; light: Color; hc: Color }
@@ -235,16 +227,19 @@ function getDefault(
function getThemeType(
theme: EditorTheme
): "dark" | "light" | "hc" {
- return (theme.type
- ? theme.type
- : theme.name?.toLowerCase().includes("light")
- ? "light"
- : "dark") as "dark" | "light" | "hc"
+ return (
+ theme.type
+ ? theme.type
+ : theme.name?.toLowerCase().includes("light")
+ ? "light"
+ : "dark"
+ ) as "dark" | "light" | "hc"
}
-export function getCodeColors(
- theme: EditorTheme
-): { fg: string; bg: string } {
+export function getCodeColors(theme: EditorTheme): {
+ fg: string
+ bg: string
+} {
return {
fg: getColor(theme, ColorName.CodeForeground)!,
bg: getColor(theme, ColorName.CodeBackground)!,
diff --git a/packages/utils/src/tween.ts b/packages/mdx/src/utils/tween.ts
similarity index 100%
rename from packages/utils/src/tween.ts
rename to packages/mdx/src/utils/tween.ts
diff --git a/packages/mdx/tsconfig.json b/packages/mdx/tsconfig.json
index 8b1dd15e..865fecfa 100644
--- a/packages/mdx/tsconfig.json
+++ b/packages/mdx/tsconfig.json
@@ -1,12 +1,47 @@
{
- "extends": "../tsconfig.json",
- "include": ["src", "types"],
+ "include": [
+ "src",
+ "types"
+ ],
"compilerOptions": {
"rootDir": "./src",
"baseUrl": "./",
+ "module": "esnext",
+ "lib": [
+ "dom",
+ "esnext"
+ ],
+ "importHelpers": true,
+ "declaration": true,
+ "sourceMap": true,
+ "strict": false,
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noImplicitReturns": true,
+ "noFallthroughCasesInSwitch": true,
+ "moduleResolution": "node",
+ "jsx": "preserve",
+ "esModuleInterop": true,
"paths": {
- "@": ["./"],
- "*": ["src/*", "node_modules/*"]
- }
- }
+ "@": [
+ "./"
+ ],
+ "*": [
+ "src/*",
+ "node_modules/*"
+ ]
+ },
+ "downlevelIteration": true,
+ "resolveJsonModule": true,
+ "target": "es6",
+ "allowJs": true,
+ "skipLibCheck": true,
+ "forceConsistentCasingInFileNames": true,
+ "noEmit": true,
+ "isolatedModules": true,
+ "incremental": true
+ },
+ "exclude": [
+ "node_modules"
+ ]
}
diff --git a/packages/mdx/vite.config.ts b/packages/mdx/vite.config.ts
new file mode 100644
index 00000000..8c31ae08
--- /dev/null
+++ b/packages/mdx/vite.config.ts
@@ -0,0 +1,41 @@
+import path from "path"
+import { defineConfig } from "vite"
+
+/* eslint-disable spaced-comment */
+///
+///
+
+// see https://github.com/vuejs/petite-vue/blob/main/vite.config.ts
+export default defineConfig({
+ build: {
+ lib: {
+ entry: path.resolve(__dirname, "src/index.tsx"),
+ name: "ch-core",
+ formats: ["es"],
+ // fileName: (format: string) => `ch-core.${format}.js`,
+ },
+ rollupOptions: {
+ // https://github.com/vitejs/vite/discussions/1736#discussioncomment-413068
+ input: {
+ plugin: path.resolve(__dirname, "src/index.tsx"),
+ components: path.resolve(
+ __dirname,
+ "src/components.tsx"
+ ),
+ styles: path.resolve(__dirname, "src/index.scss"),
+ },
+ // make sure to externalize deps that shouldn't be bundled
+ // into your library
+ external: ["react", "react-dom"],
+ output: {
+ entryFileNames: "[name].[format].js",
+ // Provide global variables to use in the UMD build
+ // for externalized deps
+ globals: {
+ react: "React",
+ "react-dom": "ReactDOM",
+ },
+ },
+ },
+ },
+})
diff --git a/packages/mini-browser/CHANGELOG.md b/packages/mini-browser/CHANGELOG.md
deleted file mode 100644
index b687c22f..00000000
--- a/packages/mini-browser/CHANGELOG.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# v0.3.0 (Thu Mar 03 2022)
-
-#### 🚀 Enhancement
-
-- Slideshow component [#99](https://github.com/code-hike/codehike/pull/99) ([@pomber](https://github.com/pomber))
-- Use shiki [#77](https://github.com/code-hike/codehike/pull/77) ([@pomber](https://github.com/pomber))
-
-#### 🐛 Bug Fix
-
-- merge ([@pomber](https://github.com/pomber))
-- Better default styles [#116](https://github.com/code-hike/codehike/pull/116) ([@pomber](https://github.com/pomber))
-- Set mini browser colors ([@pomber](https://github.com/pomber))
-- Pass theme to mini-browser ([@pomber](https://github.com/pomber))
-- Better small mini-browser ([@pomber](https://github.com/pomber))
-- Merge branch 'next' into shiki ([@pomber](https://github.com/pomber))
-- Change react dep ([@pomber](https://github.com/pomber))
-- Change react peer dep ([@pomber](https://github.com/pomber))
-- Add spring config [#75](https://github.com/code-hike/codehike/pull/75) ([@pomber](https://github.com/pomber))
-- Add access public to all packages ([@pomber](https://github.com/pomber))
-- New mini browser docs ([@pomber](https://github.com/pomber))
-- Optional browser transition [#59](https://github.com/code-hike/codehike/pull/59) ([@pomber](https://github.com/pomber))
-- Add classes to browser buttons ([@pomber](https://github.com/pomber))
-- Add transition prop ([@pomber](https://github.com/pomber))
-- Make rollup warnings silent ([@pomber](https://github.com/pomber))
-- v0.3.0-next.0 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add lerna [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-4333a8b [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6a4ea1c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-e48fa74 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-1f0ad83 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Use link instead of hash to avoid double updates [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-cde697c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add classer [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-aa6efee [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-b57b267 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-33f17eb [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change focus style [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add back mini browser [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add browser transition [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add url tests [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Extract mini browser [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-211ab01 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6dfbe3d [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-133ab88 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Browser props [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-4adbd70 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Use sass [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-8cbbd89 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add scrollycoding package [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change styles [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-a3f5be4 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Fix component types [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6a7ffe8 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0+6aadf0c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Fix browser default url [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Remove site [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Rename build to script [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Refactor scripts [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change canary version [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Remove warnings [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Refactor all the things [#13](https://github.com/code-hike/codehike/pull/13) ([@pomber](https://github.com/pomber))
-- Merge ([@pomber](https://github.com/pomber))
-
-#### 🏠 Internal
-
-- Better release log [#41](https://github.com/code-hike/codehike/pull/41) ([@pomber](https://github.com/pomber))
-
-#### 📝 Documentation
-
-- Add storybook docs [#71](https://github.com/code-hike/codehike/pull/71) ([@pomber](https://github.com/pomber))
-
-#### Authors: 2
-
-- Nirmalya Ghosh ([@ghoshnirmalya](https://github.com/ghoshnirmalya))
-- Rodrigo Pombo ([@pomber](https://github.com/pomber))
diff --git a/packages/mini-browser/jest.config.js b/packages/mini-browser/jest.config.js
deleted file mode 100644
index f2c133f2..00000000
--- a/packages/mini-browser/jest.config.js
+++ /dev/null
@@ -1,4 +0,0 @@
-module.exports = {
- preset: "ts-jest",
- testEnvironment: "node",
-}
diff --git a/packages/mini-browser/package.json b/packages/mini-browser/package.json
deleted file mode 100644
index 62255ef6..00000000
--- a/packages/mini-browser/package.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "name": "@code-hike/mini-browser",
- "version": "0.3.0",
- "main": "dist/index.cjs.js",
- "typings": "dist/index.d.ts",
- "module": "dist/index.esm.js",
- "style": "dist/index.css",
- "files": [
- "dist"
- ],
- "scripts": {
- "x": "x",
- "test": "jest",
- "test-watch": "jest --watch --updateSnapshot"
- },
- "devDependencies": {
- "@code-hike/script": "^0.3.0",
- "@types/jest": "^24.0.15",
- "@types/react": "^17.0.2",
- "jest": "^26.5.3",
- "react": "^17.0.2",
- "ts-jest": "^26.4.1"
- },
- "dependencies": {
- "@code-hike/classer": "^0.3.0",
- "@code-hike/mini-frame": "^0.3.0",
- "@code-hike/utils": "^0.3.0",
- "use-spring": "^0.2.3"
- },
- "peerDependencies": {
- "react": "^16.8.3 || ^17 || ^18"
- },
- "keywords": [
- "react"
- ],
- "homepage": "https://codehike.org",
- "repository": "code-hike/codehike",
- "publishConfig": {
- "access": "public"
- },
- "author": "Rodrigo Pombo",
- "license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/codehike"
- }
-}
diff --git a/packages/mini-browser/readme.md b/packages/mini-browser/readme.md
deleted file mode 100644
index 2a3bd5f6..00000000
--- a/packages/mini-browser/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-See [codehike.org](https://codehike.org)
diff --git a/packages/mini-browser/src/dom.test.ts b/packages/mini-browser/src/dom.test.ts
deleted file mode 100644
index 84224205..00000000
--- a/packages/mini-browser/src/dom.test.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * @jest-environment jsdom
- */
-
-import runFixture from "./url.fixture"
-
-runFixture()
diff --git a/packages/mini-browser/src/node.test.ts b/packages/mini-browser/src/node.test.ts
deleted file mode 100644
index 9c7fea3a..00000000
--- a/packages/mini-browser/src/node.test.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * @jest-environment node
- */
-
-import runFixture from "./url.fixture"
-
-runFixture()
diff --git a/packages/mini-browser/tsconfig.json b/packages/mini-browser/tsconfig.json
deleted file mode 100644
index 8b1dd15e..00000000
--- a/packages/mini-browser/tsconfig.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": "../tsconfig.json",
- "include": ["src", "types"],
- "compilerOptions": {
- "rootDir": "./src",
- "baseUrl": "./",
- "paths": {
- "@": ["./"],
- "*": ["src/*", "node_modules/*"]
- }
- }
-}
diff --git a/packages/mini-editor/CHANGELOG.md b/packages/mini-editor/CHANGELOG.md
deleted file mode 100644
index 6954a2c0..00000000
--- a/packages/mini-editor/CHANGELOG.md
+++ /dev/null
@@ -1,161 +0,0 @@
-# v0.3.0 (Thu Mar 03 2022)
-
-#### 🚀 Enhancement
-
-- Better sections [#139](https://github.com/code-hike/codehike/pull/139) ([@pomber](https://github.com/pomber))
-- Line numbers [#111](https://github.com/code-hike/codehike/pull/111) ([@pomber](https://github.com/pomber))
-- Use shiki [#77](https://github.com/code-hike/codehike/pull/77) ([@pomber](https://github.com/pomber))
-- Split editor [#67](https://github.com/code-hike/codehike/pull/67) ([@pomber](https://github.com/pomber))
-
-#### 🐛 Bug Fix
-
-- merge ([@pomber](https://github.com/pomber))
-- Fix transitions ([@pomber](https://github.com/pomber))
-- Better errors [#135](https://github.com/code-hike/codehike/pull/135) ([@pomber](https://github.com/pomber))
-- Change tab styles ([@pomber](https://github.com/pomber))
-- Add some css vars ([@pomber](https://github.com/pomber))
-- Better default styles [#116](https://github.com/code-hike/codehike/pull/116) ([@pomber](https://github.com/pomber))
-- Wrap codeblocks and codegroups ([@pomber](https://github.com/pomber))
-- Move styles to css ([@pomber](https://github.com/pomber))
-- Move theme to utils ([@pomber](https://github.com/pomber))
-- Smarter editor height [#98](https://github.com/code-hike/codehike/pull/98) ([@pomber](https://github.com/pomber))
-- Better height for next file ([@pomber](https://github.com/pomber))
-- Change editor frame ([@pomber](https://github.com/pomber))
-- Make tabs clickable [#86](https://github.com/code-hike/codehike/pull/86) ([@pomber](https://github.com/pomber))
-- Make tabs clickable ([@pomber](https://github.com/pomber))
-- Merge branch 'next' into shiki ([@pomber](https://github.com/pomber))
-- Remove default colors from editor ([@pomber](https://github.com/pomber))
-- Change react dep ([@pomber](https://github.com/pomber))
-- Move focus to utils package ([@pomber](https://github.com/pomber))
-- Change spotlight styles ([@pomber](https://github.com/pomber))
-- Add default editor height ([@pomber](https://github.com/pomber))
-- Delete old files ([@pomber](https://github.com/pomber))
-- Change dimensions ([@pomber](https://github.com/pomber))
-- Use line count for auto height ([@pomber](https://github.com/pomber))
-- Fix heights ([@pomber](https://github.com/pomber))
-- No more serialized props ([@pomber](https://github.com/pomber))
-- Change react peer dep ([@pomber](https://github.com/pomber))
-- Fix editor ([@pomber](https://github.com/pomber))
-- Add focus to mdx ([@pomber](https://github.com/pomber))
-- Add editor spring story ([@pomber](https://github.com/pomber))
-- Editor default height ([@pomber](https://github.com/pomber))
-- Add editor-spring and editor-tween ([@pomber](https://github.com/pomber))
-- Try treeshaking ([@pomber](https://github.com/pomber))
-- Use themes in mini-editor ([@pomber](https://github.com/pomber))
-- Add annotation prop to MiniEditor ([@pomber](https://github.com/pomber))
-- Fix line padding ([@pomber](https://github.com/pomber))
-- Add annotations to editor ([@pomber](https://github.com/pomber))
-- Avoid unnecesary recalculations ([@pomber](https://github.com/pomber))
-- Refactor smooth code ([@pomber](https://github.com/pomber))
-- Add spring config [#75](https://github.com/code-hike/codehike/pull/75) ([@pomber](https://github.com/pomber))
-- Add access public to all packages ([@pomber](https://github.com/pomber))
-- Change default spring ([@pomber](https://github.com/pomber))
-- Add springConfig prop to editor spring ([@pomber](https://github.com/pomber))
-- Extract smooth-code package ([@pomber](https://github.com/pomber))
-- Fix last frame again ([@pomber](https://github.com/pomber))
-- Fix wrong ending frame in 2to1South ([@pomber](https://github.com/pomber))
-- Remove SSR warning ([@pomber](https://github.com/pomber))
-- Refactor scrollycoding ([@pomber](https://github.com/pomber))
-- Rename editor tween ([@pomber](https://github.com/pomber))
-- Add mini editor spring ([@pomber](https://github.com/pomber))
-- Tween tab width ([@pomber](https://github.com/pomber))
-- Fix terminal panel ([@pomber](https://github.com/pomber))
-- Better defaults ([@pomber](https://github.com/pomber))
-- Add react steps story ([@pomber](https://github.com/pomber))
-- Add files from prev steps ([@pomber](https://github.com/pomber))
-- Fix accidental className override ([@pomber](https://github.com/pomber))
-- Add settings param ([@pomber](https://github.com/pomber))
-- Fix step starting frame ([@pomber](https://github.com/pomber))
-- Remember tabs from prev step ([@pomber](https://github.com/pomber))
-- Add codeProps ([@pomber](https://github.com/pomber))
-- Add mdx steps story ([@pomber](https://github.com/pomber))
-- Fix code transitions ([@pomber](https://github.com/pomber))
-- Fix background and south panel height ([@pomber](https://github.com/pomber))
-- Add tab transitions ([@pomber](https://github.com/pomber))
-- Add editor-transition ([@pomber](https://github.com/pomber))
-- Extract tabs ([@pomber](https://github.com/pomber))
-- Fix copy paste [#63](https://github.com/code-hike/codehike/pull/63) ([@pomber](https://github.com/pomber))
-- Fix copy paste ([@pomber](https://github.com/pomber))
-- Fix line jumps [#61](https://github.com/code-hike/codehike/pull/61) ([@pomber](https://github.com/pomber))
-- Fix line jumps ([@pomber](https://github.com/pomber))
-- Add horizontal center prop [#58](https://github.com/code-hike/codehike/pull/58) ([@pomber](https://github.com/pomber))
-- Add horizontal center prop ([@pomber](https://github.com/pomber))
-- Rename editor components ([@pomber](https://github.com/pomber))
-- Add scrollbars [#49](https://github.com/code-hike/codehike/pull/49) ([@pomber](https://github.com/pomber))
-- Add overflow scrollbars to mini-editor ([@pomber](https://github.com/pomber))
-- Make rollup warnings silent ([@pomber](https://github.com/pomber))
-- Improve editor tab styles [#38](https://github.com/code-hike/codehike/pull/38) ([@pomber](https://github.com/pomber))
-- Better mini-editor tabs ([@pomber](https://github.com/pomber))
-- v0.3.0-next.0 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add lerna [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-4333a8b [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6a4ea1c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-e48fa74 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-1f0ad83 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-cde697c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add scrollycoding mdx [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add classer [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-aa6efee [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-b57b267 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-33f17eb [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add file name to focus component [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-211ab01 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- New smooshpack version [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6dfbe3d [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Auto resize [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Cascade code and preview props [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-133ab88 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add scrollycoding slots [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-4adbd70 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Full width lines for easier text selection [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Use sass [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-8cbbd89 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add scrollycoding package [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change styles [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Start code-walk refactor [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-a3f5be4 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Fix component types [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Remove console logs [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add button property to mini-editor [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add stateful editor stories [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add stateful editor [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add focus by column story [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Focus by column [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add mini-editor stories [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6a7ffe8 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0+6aadf0c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Remove site [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Remove code-surfer [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Rename build to script [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Refactor scripts [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change canary version [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change editor padding [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add minColumns prop [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Use vscode theme [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add min col width [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Use line height [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change line padding [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Remove line outline [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Fix null code [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Measure longest line for each step [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add useMemo [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Recalculate code height [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Tween item height [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Fix transition index [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Focus extremes [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add focus to transtion [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add useDimensions [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Start removing code-surfer [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Refactor all the things [#13](https://github.com/code-hike/codehike/pull/13) ([@pomber](https://github.com/pomber))
-- Merge ([@pomber](https://github.com/pomber))
-
-#### 🏠 Internal
-
-- Extract smooth-code package [#69](https://github.com/code-hike/codehike/pull/69) ([@pomber](https://github.com/pomber))
-- Rename editor components [#56](https://github.com/code-hike/codehike/pull/56) ([@pomber](https://github.com/pomber))
-- Better release log [#41](https://github.com/code-hike/codehike/pull/41) ([@pomber](https://github.com/pomber))
-
-#### Authors: 2
-
-- Nirmalya Ghosh ([@ghoshnirmalya](https://github.com/ghoshnirmalya))
-- Rodrigo Pombo ([@pomber](https://github.com/pomber))
diff --git a/packages/mini-editor/package.json b/packages/mini-editor/package.json
deleted file mode 100644
index cec1432f..00000000
--- a/packages/mini-editor/package.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "@code-hike/mini-editor",
- "version": "0.3.0",
- "main": "dist/index.cjs.js",
- "typings": "dist/index.d.ts",
- "module": "dist/index.esm.js",
- "style": "dist/index.css",
- "files": [
- "dist"
- ],
- "scripts": {
- "x": "x"
- },
- "devDependencies": {
- "@code-hike/script": "^0.3.0",
- "@types/react": "^17.0.2",
- "react": "^17.0.2"
- },
- "dependencies": {
- "@code-hike/classer": "^0.3.0",
- "@code-hike/mini-frame": "^0.3.0",
- "@code-hike/mini-terminal": "^0.3.0",
- "@code-hike/smooth-code": "^0.3.0",
- "use-spring": "^0.2.3"
- },
- "peerDependencies": {
- "react": "^16.8.3 || ^17 || ^18"
- },
- "keywords": [
- "react"
- ],
- "homepage": "https://codehike.org",
- "repository": "code-hike/codehike",
- "publishConfig": {
- "access": "public"
- },
- "author": "Rodrigo Pombo",
- "license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/codehike"
- }
-}
diff --git a/packages/mini-editor/readme.md b/packages/mini-editor/readme.md
deleted file mode 100644
index 2a3bd5f6..00000000
--- a/packages/mini-editor/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-See [codehike.org](https://codehike.org)
diff --git a/packages/mini-editor/tsconfig.json b/packages/mini-editor/tsconfig.json
deleted file mode 100644
index 8b1dd15e..00000000
--- a/packages/mini-editor/tsconfig.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": "../tsconfig.json",
- "include": ["src", "types"],
- "compilerOptions": {
- "rootDir": "./src",
- "baseUrl": "./",
- "paths": {
- "@": ["./"],
- "*": ["src/*", "node_modules/*"]
- }
- }
-}
diff --git a/packages/mini-frame/CHANGELOG.md b/packages/mini-frame/CHANGELOG.md
deleted file mode 100644
index 22b6cc34..00000000
--- a/packages/mini-frame/CHANGELOG.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# v0.3.0 (Thu Mar 03 2022)
-
-#### 🚀 Enhancement
-
-- Use shiki [#77](https://github.com/code-hike/codehike/pull/77) ([@pomber](https://github.com/pomber))
-- Split editor [#67](https://github.com/code-hike/codehike/pull/67) ([@pomber](https://github.com/pomber))
-
-#### 🐛 Bug Fix
-
-- merge ([@pomber](https://github.com/pomber))
-- Better default styles [#116](https://github.com/code-hike/codehike/pull/116) ([@pomber](https://github.com/pomber))
-- Pass theme to mini-browser ([@pomber](https://github.com/pomber))
-- Expose preview component ([@pomber](https://github.com/pomber))
-- Merge branch 'next' into shiki ([@pomber](https://github.com/pomber))
-- Change react dep ([@pomber](https://github.com/pomber))
-- Add SimpleFrame ([@pomber](https://github.com/pomber))
-- Change react peer dep ([@pomber](https://github.com/pomber))
-- Add focus to mdx ([@pomber](https://github.com/pomber))
-- Use themes in mini-editor ([@pomber](https://github.com/pomber))
-- Add spring config [#75](https://github.com/code-hike/codehike/pull/75) ([@pomber](https://github.com/pomber))
-- Add access public to all packages ([@pomber](https://github.com/pomber))
-- Add tab transitions ([@pomber](https://github.com/pomber))
-- Add editor-transition ([@pomber](https://github.com/pomber))
-- Add ref and overflow props ([@pomber](https://github.com/pomber))
-- Make rollup warnings silent ([@pomber](https://github.com/pomber))
-- v0.3.0-next.0 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add lerna [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-4333a8b [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6a4ea1c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-e48fa74 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-1f0ad83 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-cde697c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add classer [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-aa6efee [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-b57b267 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-33f17eb [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-211ab01 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6dfbe3d [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-133ab88 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-4adbd70 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Full width lines for easier text selection [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Use sass [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-8cbbd89 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add scrollycoding package [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change styles [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-a3f5be4 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Make height required for mini-frames [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Run prettier [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6a7ffe8 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0+6aadf0c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Remove site [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Rename build to script [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Refactor scripts [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change canary version [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Refactor all the things [#13](https://github.com/code-hike/codehike/pull/13) ([@pomber](https://github.com/pomber))
-- Merge ([@pomber](https://github.com/pomber))
-
-#### 🏠 Internal
-
-- Better release log [#41](https://github.com/code-hike/codehike/pull/41) ([@pomber](https://github.com/pomber))
-
-#### Authors: 2
-
-- Nirmalya Ghosh ([@ghoshnirmalya](https://github.com/ghoshnirmalya))
-- Rodrigo Pombo ([@pomber](https://github.com/pomber))
diff --git a/packages/mini-frame/package.json b/packages/mini-frame/package.json
deleted file mode 100644
index 6b7e9ea8..00000000
--- a/packages/mini-frame/package.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "name": "@code-hike/mini-frame",
- "version": "0.3.0",
- "main": "dist/index.cjs.js",
- "typings": "dist/index.d.ts",
- "module": "dist/index.esm.js",
- "style": "dist/index.css",
- "files": [
- "dist"
- ],
- "scripts": {
- "x": "x"
- },
- "devDependencies": {
- "@code-hike/script": "^0.3.0",
- "@types/react": "^17.0.2",
- "react": "^17.0.2"
- },
- "peerDependencies": {
- "react": "^16.8.3 || ^17 || ^18"
- },
- "keywords": [
- "react"
- ],
- "homepage": "https://codehike.org",
- "repository": "code-hike/codehike",
- "publishConfig": {
- "access": "public"
- },
- "author": "Rodrigo Pombo",
- "license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/codehike"
- },
- "dependencies": {
- "@code-hike/classer": "^0.3.0",
- "@code-hike/utils": "^0.3.0"
- }
-}
diff --git a/packages/mini-frame/readme.md b/packages/mini-frame/readme.md
deleted file mode 100644
index 2a3bd5f6..00000000
--- a/packages/mini-frame/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-See [codehike.org](https://codehike.org)
diff --git a/packages/mini-frame/tsconfig.json b/packages/mini-frame/tsconfig.json
deleted file mode 100644
index 8b1dd15e..00000000
--- a/packages/mini-frame/tsconfig.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": "../tsconfig.json",
- "include": ["src", "types"],
- "compilerOptions": {
- "rootDir": "./src",
- "baseUrl": "./",
- "paths": {
- "@": ["./"],
- "*": ["src/*", "node_modules/*"]
- }
- }
-}
diff --git a/packages/mini-terminal/CHANGELOG.md b/packages/mini-terminal/CHANGELOG.md
deleted file mode 100644
index d1a2a130..00000000
--- a/packages/mini-terminal/CHANGELOG.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# v0.3.0 (Thu Mar 03 2022)
-
-#### 🚀 Enhancement
-
-- Use shiki [#77](https://github.com/code-hike/codehike/pull/77) ([@pomber](https://github.com/pomber))
-
-#### 🐛 Bug Fix
-
-- merge ([@pomber](https://github.com/pomber))
-- Better default styles [#116](https://github.com/code-hike/codehike/pull/116) ([@pomber](https://github.com/pomber))
-- Patch mini-terminal ([@pomber](https://github.com/pomber))
-- Merge branch 'next' into shiki ([@pomber](https://github.com/pomber))
-- Change react dep ([@pomber](https://github.com/pomber))
-- Change react peer dep ([@pomber](https://github.com/pomber))
-- Add spring config [#75](https://github.com/code-hike/codehike/pull/75) ([@pomber](https://github.com/pomber))
-- Add access public to all packages ([@pomber](https://github.com/pomber))
-- Make rollup warnings silent ([@pomber](https://github.com/pomber))
-- v0.3.0-next.0 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add lerna [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-4333a8b [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6a4ea1c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-e48fa74 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-1f0ad83 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-cde697c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-aa6efee [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-b57b267 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-33f17eb [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-211ab01 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6dfbe3d [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-133ab88 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-4adbd70 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Use sass [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-8cbbd89 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add scrollycoding package [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-a3f5be4 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6a7ffe8 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0+6aadf0c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Remove site [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Rename build to script [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Refactor scripts [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change canary version [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Refactor all the things [#13](https://github.com/code-hike/codehike/pull/13) ([@pomber](https://github.com/pomber))
-- Merge ([@pomber](https://github.com/pomber))
-
-#### 🏠 Internal
-
-- Better release log [#41](https://github.com/code-hike/codehike/pull/41) ([@pomber](https://github.com/pomber))
-
-#### Authors: 2
-
-- Nirmalya Ghosh ([@ghoshnirmalya](https://github.com/ghoshnirmalya))
-- Rodrigo Pombo ([@pomber](https://github.com/pomber))
diff --git a/packages/mini-terminal/package.json b/packages/mini-terminal/package.json
deleted file mode 100644
index d0b72163..00000000
--- a/packages/mini-terminal/package.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "name": "@code-hike/mini-terminal",
- "version": "0.3.0",
- "main": "dist/index.cjs.js",
- "typings": "dist/index.d.ts",
- "module": "dist/index.esm.js",
- "files": [
- "dist"
- ],
- "scripts": {
- "x": "x"
- },
- "devDependencies": {
- "@code-hike/script": "^0.3.0",
- "@types/react": "^17.0.2",
- "react": "^17.0.2"
- },
- "dependencies": {
- "@code-hike/mini-frame": "^0.3.0"
- },
- "peerDependencies": {
- "react": "^16.8.3 || ^17 || ^18"
- },
- "keywords": [
- "react"
- ],
- "homepage": "https://codehike.org",
- "repository": "code-hike/codehike",
- "publishConfig": {
- "access": "public"
- },
- "author": "Rodrigo Pombo",
- "license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/codehike"
- }
-}
diff --git a/packages/mini-terminal/readme.md b/packages/mini-terminal/readme.md
deleted file mode 100644
index 2a3bd5f6..00000000
--- a/packages/mini-terminal/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-See [codehike.org](https://codehike.org)
diff --git a/packages/mini-terminal/tsconfig.json b/packages/mini-terminal/tsconfig.json
deleted file mode 100644
index 8b1dd15e..00000000
--- a/packages/mini-terminal/tsconfig.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": "../tsconfig.json",
- "include": ["src", "types"],
- "compilerOptions": {
- "rootDir": "./src",
- "baseUrl": "./",
- "paths": {
- "@": ["./"],
- "*": ["src/*", "node_modules/*"]
- }
- }
-}
diff --git a/packages/playground/content/custom-annotations.mdx b/packages/playground/content/custom-annotations.mdx
deleted file mode 100644
index 8ab385c5..00000000
--- a/packages/playground/content/custom-annotations.mdx
+++ /dev/null
@@ -1,18 +0,0 @@
-import { MyTooltipAnnotation } from "./MyTooltipAnnotation"
-
-# JSX Annotations
-
-```js
-function lorem(ipsum, dolor = 1) {
- const sit = ipsum == null && 0
- dolor = sit - amet(dolor)
- return sit ? consectetur(ipsum) : []
-}
-
-function adipiscing(...elit) {
- console.log("hover me")
- return elit.map(ipsum => ipsum.sit)
-}
-```
-
-
diff --git a/packages/playground/content/custom-annotations/MyTooltipAnnotation.jsx b/packages/playground/content/custom-annotations/MyTooltipAnnotation.jsx
deleted file mode 100644
index abe98467..00000000
--- a/packages/playground/content/custom-annotations/MyTooltipAnnotation.jsx
+++ /dev/null
@@ -1,17 +0,0 @@
-export function MyTooltipAnnotation({
- children,
- data,
- theme,
-}) {
- const border =
- typeof data === "string"
- ? data
- : theme.tokenColors.find(tc =>
- tc.scope?.includes("string")
- )?.settings?.foreground || "yellow"
- return (
-
- {children}
-
- )
-}
diff --git a/packages/playground/content/show-references.mdx b/packages/playground/content/show-references.mdx
deleted file mode 100644
index b6b90005..00000000
--- a/packages/playground/content/show-references.mdx
+++ /dev/null
@@ -1,36 +0,0 @@
-import { CH } from "@code-hike/mdx"
-
-Click on any token an it should show every usage of that token
-
-```js
-import { useRouter } from "next/router"
-
-function ActiveLink({ children, href }) {
- const router = useRouter()
- const style = {
- marginRight: 10,
- color: router.asPath === href ? "red" : "black",
- }
-
- const handleClick = e => {
- e.preventDefault()
- router.push(href)
- }
-
- return (
-
- {children}
-
- )
-}
-
-export default ActiveLink
-```
-
----
-
-TODO:
-
-- fix code-spring height
-- add onTokenHover and onTokenClick
-- maybe onLineHover and onLineClick too
diff --git a/packages/playground/content/with-links.mdx b/packages/playground/content/with-links.mdx
deleted file mode 100644
index 5b866ef6..00000000
--- a/packages/playground/content/with-links.mdx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { CH } from "@code-hike/mdx"
-
-Visit [Daring Fireball][] for more information. Or [Google][] it.
-
-[daring fireball]: http://daringfireball.net/projects/markdown
-[google]: https://google.com
-
----
-
-```clj fizzbuzz.clj
-(take 100 (map #(let [s (str %2 %3) ] (if (seq s) s (inc %)) )
- (range)
- (cycle [ "" "" "Fizz" ])
- (cycle [ "" "" "" "" "Buzz" ])))
-```
-
-[take]: https://clojuredocs.org/clojure.core/take "Take Docs"
-[map]: https://clojuredocs.org/clojure.core/map "Map Docs"
-[range]: https://clojuredocs.org/clojure.core/range "Range Docs"
-[cycle]: https://clojuredocs.org/clojure.core/cycle "Cycle Docs"
-
----
-
-TODO
-
-- fix underline color (maybe add .sass and use token's color)
diff --git a/packages/playground/next.config.js b/packages/playground/next.config.js
deleted file mode 100644
index f9c82fb3..00000000
--- a/packages/playground/next.config.js
+++ /dev/null
@@ -1,29 +0,0 @@
-const { remarkCodeHike } = require("@code-hike/mdx")
-const theme = require("shiki/themes/monokai.json")
-const withBundleAnalyzer = require("@next/bundle-analyzer")(
- {
- enabled: process.env.ANALYZE === "true",
- // enabled: true,
- }
-)
-module.exports = withBundleAnalyzer({
- experimental: { esmExternals: true },
- pageExtensions: ["md", "mdx", "tsx", "ts", "jsx", "js"],
- webpack(config, options) {
- config.module.rules.push({
- test: /\.mdx?$/,
- use: [
- // The default `babel-loader` used by Next:
- options.defaultLoaders.babel,
- {
- loader: "@mdx-js/loader",
- /** @type {import('@mdx-js/loader').Options} */
- options: {
- remarkPlugins: [[remarkCodeHike, { theme }]],
- },
- },
- ],
- })
- return config
- },
-})
diff --git a/packages/playground/package.json b/packages/playground/package.json
deleted file mode 100644
index e81d599d..00000000
--- a/packages/playground/package.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "@code-hike/playground",
- "version": "0.3.0",
- "private": "true",
- "scripts": {
- "dev": "next",
- "build": "next build"
- },
- "dependencies": {
- "@code-hike/mdx": "^0.3.0",
- "@mdx-js/loader": "^2.0.0-rc.2",
- "@mdx-js/react": "^2.0.0-rc.2",
- "@next/bundle-analyzer": "^12.0.7",
- "esbuild": "^0.13.2",
- "mdx-bundler": "^6.0.1",
- "next": "^11.1.2",
- "react": "^17.0.2",
- "react-dom": "^17.0.2",
- "react-json-view": "^1.21.3"
- },
- "devDependencies": {
- "critters": "^0.0.10"
- }
-}
diff --git a/packages/playground/pages/[demo]/[theme].js b/packages/playground/pages/[demo]/[theme].js
deleted file mode 100644
index 425251c2..00000000
--- a/packages/playground/pages/[demo]/[theme].js
+++ /dev/null
@@ -1,306 +0,0 @@
-import { getMDXComponent } from "mdx-bundler/client"
-import React from "react"
-import dynamic from "next/dynamic"
-import { useRouter } from "next/router"
-import Head from "next/head"
-import Link from "next/link"
-import { toProps } from "../../src/page-data"
-
-export async function getServerSideProps({ params }) {
- try {
- const { demo, theme } = params
- const props = await toProps({ theme, demo })
- return { props }
- } catch (e) {
- console.error(
- "getServerSideProps error",
- JSON.stringify(e, null, 2)
- )
- }
- return { props: { error: true } }
-}
-
-export default function Page({
- error,
- source,
- preCodeHike,
- postCodeHike,
- result,
- demos,
- themes,
- currentTheme,
- currentDemo,
-}) {
- if (error) {
- return Compilation Error
- }
- return (
-
-
- Code Hike Playground
-
-
-
-
-
-
- )
-}
-
-const Main = React.memo(function Main({
- source,
- preCodeHike,
- postCodeHike,
- result,
-}) {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- )
-})
-
-function Nav({ currentDemo, currentTheme, demos, themes }) {
- const router = useRouter()
- return (
-
- )
-}
-const COLUMNS = {
- mdx: {
- label: "MDX",
- },
- "pre-ch": {
- title: "MDAST before CH",
- label: "Pre Code Hike",
- },
- "post-ch": {
- title: "MDAST after CH",
- label: "Post Code Hike",
- },
- result: {
- label: "Result",
- },
-}
-const DEFAULT_COLUMNS = ["mdx", "result"]
-
-function useColumns() {
- const { query } = useRouter()
- return query.columns
- ? query.columns.split(",")
- : DEFAULT_COLUMNS
-}
-
-function Column({ children, column, className }) {
- const showColumns = useColumns()
- return COLUMNS[column] ? (
-
-
- {COLUMNS[column].title || COLUMNS[column].label}
-
- {children}
-
- ) : null
-}
-
-function Toggle({ column }) {
- const showColumns = useColumns()
- const router = useRouter()
- return (
-
- )
-}
-
-function MDXComponent({ code }) {
- const Component = React.useMemo(
- () => getMDXComponent(code, { react: React }),
- [code]
- )
- return
-}
-
-const BrowserReactJsonView = dynamic(
- () => import("react-json-view"),
- {
- ssr: false,
- }
-)
-function JSONView({ src }) {
- return (
-
- )
-}
-
-class ErrorBoundary extends React.Component {
- constructor(props) {
- super(props)
- this.state = { show: false, hasError: false }
- }
-
- static getDerivedStateFromError(error) {
- // Update state so the next render will show the fallback UI.
- // console.log("getDerivedStateFromError", error)
- return {
- hasError: true,
- error: JSON.stringify(error, null, 2),
- }
- }
-
- componentDidCatch(error, errorInfo) {
- // You can also log the error to an error reporting service
- // logErrorToMyService(error, errorInfo)
- }
-
- componentDidMount() {
- this.setState({ show: true })
- }
-
- render() {
- // ErrorBoundary doesn't work with SSR
- if (!this.state.show) {
- return ""
- }
-
- if (this.state.hasError) {
- return (
-
- Something went wrong.
- {this.state.error}
-
- )
- }
-
- return this.props.children
- }
-}
diff --git a/packages/playground/pages/_app.js b/packages/playground/pages/_app.js
deleted file mode 100644
index d214d8be..00000000
--- a/packages/playground/pages/_app.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import "@code-hike/mdx/dist/index.css"
-import "../styles.css"
-
-export default function MyApp({ Component, pageProps }) {
- return
-}
diff --git a/packages/playground/pages/index.js b/packages/playground/pages/index.js
deleted file mode 100644
index 3215c2fc..00000000
--- a/packages/playground/pages/index.js
+++ /dev/null
@@ -1,60 +0,0 @@
-import React from "react"
-import fs from "fs"
-import Link from "next/link"
-import Head from "next/head"
-
-export async function getStaticProps() {
- const files = await fs.promises.readdir("./content/")
- const filenames = files
- .filter(filename => filename.endsWith(".mdx"))
- .map(filename => filename.slice(0, -4))
- filenames.sort((a, b) => a.length - b.length)
- return {
- props: {
- files: filenames,
- },
- }
-}
-
-export default function Page({ files }) {
- return (
-
-
- Code Hike Playground
-
-
-
- Code Hike Demos
-
- {files.map(file => (
-
-
- {file}
-
-
- ))}
-
-
- )
-}
diff --git a/packages/playground/pages/size-test.mdx b/packages/playground/pages/size-test.mdx
deleted file mode 100644
index d35c3c8e..00000000
--- a/packages/playground/pages/size-test.mdx
+++ /dev/null
@@ -1,9 +0,0 @@
-# Hello
-
-```js
-function lorem(ipsum) {}
-```
-
-```js
-function lorem(ipsum) {}
-```
diff --git a/packages/playground/src/page-data.js b/packages/playground/src/page-data.js
deleted file mode 100644
index c5d37b7e..00000000
--- a/packages/playground/src/page-data.js
+++ /dev/null
@@ -1,123 +0,0 @@
-import fs from "fs"
-import { bundleMDX } from "mdx-bundler"
-import { remarkShowTree } from "./plugin"
-import { remarkCodeHike } from "@code-hike/mdx"
-
-async function getDemoList() {
- const files = await fs.promises.readdir("./content/")
-
- return files
- .filter(filename => filename.endsWith(".mdx"))
- .map(filename => filename.slice(0, -4))
-}
-
-async function getFiles(demo) {
- let filenames = []
- try {
- filenames = await fs.promises.readdir(
- `./content/${demo}/`
- )
- } catch (e) {
- return undefined
- }
-
- const files = {}
- for (const filename of filenames) {
- files[filename] = await fs.promises.readFile(
- `./content/${demo}/${filename}`,
- "utf8"
- )
- }
-
- return files
-}
-
-export async function toProps({ demo, theme }) {
- const mdxSource = await fs.promises.readFile(
- `./content/${demo}.mdx`,
- "utf8"
- )
-
- const files = await getFiles(demo)
-
- const preCodeHike = await bundle(mdxSource, files, [
- remarkShowTree,
- ])
-
- let postCodeHike, result
- try {
- const loadedTheme = await import(
- `shiki/themes/${theme}.json`
- ).then(module => module.default)
-
- postCodeHike = await bundle(mdxSource, files, [
- [
- remarkCodeHike,
- { theme: loadedTheme, lineNumbers: true },
- ],
- remarkShowTree,
- ])
-
- result = await bundle(mdxSource, files, [
- [
- remarkCodeHike,
- { theme: loadedTheme, lineNumbers: true },
- ],
- ])
- } catch (e) {
- console.error("remark-code-hike error", e)
- const errorBundle = await bundle(
- `### remark-code-hike error \n ~~~\n${e.toString()}\n~~~`,
- undefined,
- []
- )
-
- postCodeHike = errorBundle
- result = errorBundle
- }
-
- const shiki = await import("shiki")
- const highlighter = await shiki.getHighlighter({
- theme: "github-light",
- })
-
- const demos = await getDemoList()
-
- const source = highlighter.codeToHtml(
- mdxSource,
- "markdown"
- )
-
- return {
- source,
- preCodeHike,
- postCodeHike,
- result,
- demos,
- themes: shiki.BUNDLED_THEMES,
- currentTheme: theme,
- currentDemo: demo,
- }
-}
-
-async function bundle(source, files, plugins) {
- const { code } = await bundleMDX(source, {
- files,
- esbuildOptions(options) {
- options.minify = false
- options.platform = "node"
- return options
- },
- xdmOptions(options) {
- options.remarkPlugins = [
- ...(options.remarkPlugins ?? []),
- ...plugins,
- ]
- return options
- },
- globals: {
- react: "react",
- },
- })
- return code
-}
diff --git a/packages/playground/src/plugin.js b/packages/playground/src/plugin.js
deleted file mode 100644
index 7ad845ec..00000000
--- a/packages/playground/src/plugin.js
+++ /dev/null
@@ -1,42 +0,0 @@
-export function remarkShowTree() {
- return function transformer(tree) {
- const value = JSON.stringify(tree, replacer, 2)
- tree.children = [
- {
- type: "mdxJsxFlowElement",
- name: "JSONView",
- attributes: [
- {
- type: "mdxJsxAttribute",
- name: "src",
- value: value,
- },
- ],
- position: {
- start: {
- line: 1,
- column: 1,
- offset: 0,
- },
- end: {
- line: 1,
- column: 1,
- offset: 0,
- },
- },
- },
- ]
- }
-}
-
-function replacer(key, value) {
- if (
- [
- "position",
- // "estree"
- ].includes(key)
- ) {
- return
- }
- return value
-}
diff --git a/packages/script/build.js b/packages/script/build.js
deleted file mode 100755
index 084fa3dc..00000000
--- a/packages/script/build.js
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env node
-
-const path = require("path")
-const { spawnSync } = require("child_process")
-
-function build(args) {
- const configPath = path.resolve(
- __dirname,
- "rollup.config.js"
- )
-
- const p = spawnSync(
- "yarn",
- ["rollup", "--silent", "-c", configPath, ...args],
- { stdio: "inherit" }
- )
-
- process.exitCode = p.status
-}
-
-module.exports = {
- build,
-}
diff --git a/packages/script/package.json b/packages/script/package.json
deleted file mode 100644
index 59fa312b..00000000
--- a/packages/script/package.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "name": "@code-hike/script",
- "private": "true",
- "version": "0.3.0",
- "bin": {
- "x": "./script.js"
- },
- "devDependencies": {
- "@rollup/plugin-json": "^4.1.0",
- "autoprefixer": "^9.8.2",
- "cssnano": "^4.1.10",
- "edit-json-file": "^1.5.0",
- "node-sass": "^6.0.0",
- "rollup": "^2.41.2",
- "rollup-plugin-copy": "^3.3.0",
- "rollup-plugin-postcss": "^4.0.0",
- "rollup-plugin-scss": "^2.6.1",
- "rollup-plugin-styles": "^3.8.2",
- "rollup-plugin-typescript2": "^0.27.1",
- "typescript": "^3.9.5"
- }
-}
diff --git a/packages/script/rollup.config.js b/packages/script/rollup.config.js
deleted file mode 100644
index 179f1934..00000000
--- a/packages/script/rollup.config.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import autoprefixer from "autoprefixer"
-import postcss from "rollup-plugin-postcss"
-
-import cssnano from "cssnano"
-import typescript from "rollup-plugin-typescript2"
-import copy from "rollup-plugin-copy"
-import path from "path"
-import json from "@rollup/plugin-json"
-import fs from "fs"
-
-const createConfig = filename => ({
- input: `src/${filename}.tsx`,
- output: [
- // {
- // file: `./dist/${filename}.js`,
- // format: "umd",
- // name: "ch", //todo get by parameter
- // },
- {
- file: `./dist/${filename}.cjs.js`,
- format: "cjs",
- },
- {
- file: `./dist/${filename}.esm.js`,
- format: "es",
- },
- ],
- // external: ["react"],
- plugins: [
- json({ compact: true }),
- typescript(),
- postcss({
- extract: path.resolve("dist/index.css"),
- plugins: [autoprefixer(), cssnano()],
- }),
- copy({
- targets: [{ src: "src/index.scss", dest: "dist" }],
- }),
- ],
-})
-
-export default function makeConfig(commandOptions) {
- const { inputs = ["index"] } = JSON.parse(
- fs.readFileSync("package.json", "utf8")
- )
- return inputs.map(createConfig)
-}
diff --git a/packages/script/script.js b/packages/script/script.js
deleted file mode 100755
index aa362f18..00000000
--- a/packages/script/script.js
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env node
-
-const [command, ...args] = process.argv.slice(2)
-
-// console.log({ command, args })
-
-switch (command) {
- case "build": {
- const { build } = require("./build")
- build(args)
- break
- }
- case "watch": {
- const { build } = require("./build")
- build(["--watch"])
- break
- }
- case "version": {
- const { changeVersion } = require("./version")
- changeVersion(args)
- break
- }
-}
diff --git a/packages/script/version.js b/packages/script/version.js
deleted file mode 100644
index 3374abb1..00000000
--- a/packages/script/version.js
+++ /dev/null
@@ -1,49 +0,0 @@
-const editJsonFile = require("edit-json-file")
-
-function changeVersion([argVersion]) {
- const version = argVersion || getShaVersion()
-
- let file = editJsonFile(`./package.json`, {
- stringify_eol: true,
- })
-
- console.log(`Update ${file.get("version")} to ${version}`)
- file.set("version", version)
-
- changeDependencies(file, "dependencies", version)
- changeDependencies(file, "devDependencies", version)
- changeDependencies(file, "peerDependencies", version)
-
- file.save()
-}
-
-function changeDependencies(file, depType, version) {
- const deps = file.get(depType)
- if (!deps) return
-
- const names = Object.keys(deps).filter(
- name =>
- name.startsWith("@code-hike/") &&
- name !== "@code-hike/script"
- )
-
- names.forEach(name => {
- const path = `${depType}.${name}`
- console.log(
- `Update ${name} dep ${file.get(path)} to ${version}`
- )
- file.set(path, version)
- })
-}
-
-function getShaVersion() {
- const revision = require("child_process")
- .execSync("git rev-parse --short HEAD")
- .toString()
- .trim()
- return `0.0.0-${revision}`
-}
-
-module.exports = {
- changeVersion,
-}
diff --git a/packages/scroller/CHANGELOG.md b/packages/scroller/CHANGELOG.md
deleted file mode 100644
index c880deea..00000000
--- a/packages/scroller/CHANGELOG.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# v0.3.0 (Thu Mar 03 2022)
-
-#### 🚀 Enhancement
-
-- Use shiki [#77](https://github.com/code-hike/codehike/pull/77) ([@pomber](https://github.com/pomber))
-
-#### 🐛 Bug Fix
-
-- merge ([@pomber](https://github.com/pomber))
-- Merge branch 'next' into shiki ([@pomber](https://github.com/pomber))
-- Change react dep ([@pomber](https://github.com/pomber))
-- Change react peer dep ([@pomber](https://github.com/pomber))
-- Add spring config [#75](https://github.com/code-hike/codehike/pull/75) ([@pomber](https://github.com/pomber))
-- Add access public to all packages ([@pomber](https://github.com/pomber))
-- Make rollup warnings silent ([@pomber](https://github.com/pomber))
-- v0.3.0-next.0 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add lerna [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-4333a8b [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6a4ea1c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-e48fa74 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-1f0ad83 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-cde697c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Fix intersection observer in Safari [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-aa6efee [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-b57b267 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-33f17eb [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-211ab01 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6dfbe3d [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-133ab88 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-4adbd70 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-8cbbd89 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Add scrollycoding package [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-a3f5be4 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Fix component types [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0-6a7ffe8 [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- v0.0.0+6aadf0c [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Remove site [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Fix intersection observer on Firefox [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Rename build to script [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Refactor scripts [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Change canary version [#145](https://github.com/code-hike/codehike/pull/145) ([@pomber](https://github.com/pomber))
-- Refactor all the things [#13](https://github.com/code-hike/codehike/pull/13) ([@pomber](https://github.com/pomber))
-- Merge ([@pomber](https://github.com/pomber))
-
-#### 🏠 Internal
-
-- Better release log [#41](https://github.com/code-hike/codehike/pull/41) ([@pomber](https://github.com/pomber))
-
-#### Authors: 2
-
-- Nirmalya Ghosh ([@ghoshnirmalya](https://github.com/ghoshnirmalya))
-- Rodrigo Pombo ([@pomber](https://github.com/pomber))
diff --git a/packages/scroller/package.json b/packages/scroller/package.json
deleted file mode 100644
index be3c4830..00000000
--- a/packages/scroller/package.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "@code-hike/scroller",
- "version": "0.3.0",
- "main": "dist/index.cjs.js",
- "typings": "dist/index.d.ts",
- "module": "dist/index.esm.js",
- "files": [
- "dist"
- ],
- "scripts": {
- "x": "x"
- },
- "devDependencies": {
- "@code-hike/script": "^0.3.0",
- "@types/react": "^17.0.2",
- "react": "^17.0.2"
- },
- "peerDependencies": {
- "react": "^16.8.3 || ^17 || ^18"
- },
- "keywords": [
- "react"
- ],
- "homepage": "https://codehike.org",
- "repository": "code-hike/codehike",
- "publishConfig": {
- "access": "public"
- },
- "author": "Rodrigo Pombo",
- "license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/codehike"
- }
-}
diff --git a/packages/scroller/readme.md b/packages/scroller/readme.md
deleted file mode 100644
index 2a3bd5f6..00000000
--- a/packages/scroller/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-See [codehike.org](https://codehike.org)
diff --git a/packages/scroller/tsconfig.json b/packages/scroller/tsconfig.json
deleted file mode 100644
index 8b1dd15e..00000000
--- a/packages/scroller/tsconfig.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": "../tsconfig.json",
- "include": ["src", "types"],
- "compilerOptions": {
- "rootDir": "./src",
- "baseUrl": "./",
- "paths": {
- "@": ["./"],
- "*": ["src/*", "node_modules/*"]
- }
- }
-}
diff --git a/packages/sim-user/package.json b/packages/sim-user/package.json
deleted file mode 100644
index be7a10c1..00000000
--- a/packages/sim-user/package.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "@code-hike/sim-user",
- "version": "0.3.0",
- "private": "true",
- "main": "dist/index.cjs.js",
- "typings": "dist/index.d.ts",
- "module": "dist/index.esm.js",
- "files": [
- "dist"
- ],
- "scripts": {
- "x": "x"
- },
- "devDependencies": {
- "@code-hike/script": "^0.3.0"
- },
- "dependencies": {
- "@testing-library/dom": "^7.5.7",
- "@testing-library/user-event": "^10.3.1"
- },
- "keywords": [
- "react"
- ],
- "homepage": "https://codehike.org",
- "repository": "code-hike/codehike",
- "publishConfig": {
- "access": "public"
- },
- "author": "Rodrigo Pombo",
- "license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/codehike"
- }
-}
diff --git a/packages/sim-user/readme.md b/packages/sim-user/readme.md
deleted file mode 100644
index 2a3bd5f6..00000000
--- a/packages/sim-user/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-See [codehike.org](https://codehike.org)
diff --git a/packages/sim-user/src/index.tsx b/packages/sim-user/src/index.tsx
deleted file mode 100644
index ada7c8b0..00000000
--- a/packages/sim-user/src/index.tsx
+++ /dev/null
@@ -1,120 +0,0 @@
-import userEvent from "@testing-library/user-event"
-
-export { sim }
-
-type ClickAction = {
- type: "click"
- selector: string
- offset?: number
-}
-type ScrollAction = {
- type: "scroll"
- selector: string
-}
-type SimAction = ClickAction | ScrollAction
-
-function scroll(action: ScrollAction, document: Document) {
- const element = document.querySelector(action.selector)!
- element.scrollIntoView({
- behavior: "smooth",
- block: "center",
- })
-}
-
-function click(action: ClickAction, document: Document) {
- const { selector, offset = 100 } = action
- const element = document.querySelector(selector)!
- // userEvent.click(element)
-
- const elemRect = element.getBoundingClientRect()
- const offsetTop =
- elemRect.top + window.pageYOffset + elemRect.height / 2
- const offsetLeft =
- elemRect.left +
- window.pageXOffset +
- (2 * elemRect.width) / 3
-
- const startTop = offsetTop + offset
- const startLeft = offsetLeft + offset
- const cursor = createCursor()
- cursor.style.position = "absolute"
- cursor.style.top = startTop + "px"
- cursor.style.left = startLeft + "px"
- cursor.style.opacity = "0.2"
- cursor.style.transform = "scale(3)"
- cursor.style.transition =
- "transform 600ms ease-in-out, opacity 500ms"
- document.body.appendChild(cursor)
-
- requestAnimationFrame(() =>
- requestAnimationFrame(() => {
- // console.log(element.offsetLeft)
- cursor.style.transform = `translate(${-offset}px, ${-offset}px) scale(1)`
- cursor.style.opacity = "1"
- })
- )
-
- cursor.addEventListener(
- "transitionend",
- async () => {
- userEvent.click(element)
-
- const circle = document.createElementNS(
- "http://www.w3.org/2000/svg",
- "circle"
- )
- circle.setAttribute("cx", "8")
- circle.setAttribute("cy", "5")
- circle.setAttribute("fill", "currentColor")
- circle.setAttribute("r", "3")
- circle.style.opacity = "0.99"
- circle.style.transformOrigin = "8px 5px"
- circle.style.transition =
- "transform 300ms, opacity 300ms"
-
- const svg = cursor.firstChild as SVGElement
-
- svg.innerHTML = ""
- svg.appendChild(circle)
-
- requestAnimationFrame(() =>
- requestAnimationFrame(() => {
- circle.style.opacity = "0"
- circle.style.transform = `scale(10)`
- })
- )
-
- circle.addEventListener("transitionend", () => {
- if (cursor.parentElement)
- cursor.parentElement.removeChild(cursor)
- })
- },
- { once: true }
- )
-}
-
-function sim(action: SimAction, document?: Document) {
- const doc = document || window.document
- switch (action.type) {
- case "click":
- click(action, doc)
- return
- case "scroll":
- scroll(action, doc)
- return
- }
-}
-
-function createCursor() {
- const div = document.createElement("div")
- div.style.color = "#7387c4"
- div.innerHTML = ``
- return div
-}
diff --git a/packages/sim-user/tsconfig.json b/packages/sim-user/tsconfig.json
deleted file mode 100644
index 8b1dd15e..00000000
--- a/packages/sim-user/tsconfig.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": "../tsconfig.json",
- "include": ["src", "types"],
- "compilerOptions": {
- "rootDir": "./src",
- "baseUrl": "./",
- "paths": {
- "@": ["./"],
- "*": ["src/*", "node_modules/*"]
- }
- }
-}
diff --git a/packages/smooth-code/CHANGELOG.md b/packages/smooth-code/CHANGELOG.md
deleted file mode 100644
index c072e74f..00000000
--- a/packages/smooth-code/CHANGELOG.md
+++ /dev/null
@@ -1,88 +0,0 @@
-# v0.3.0 (Thu Mar 03 2022)
-
-#### 🚀 Enhancement
-
-- Better sections [#139](https://github.com/code-hike/codehike/pull/139) ([@pomber](https://github.com/pomber))
-- Line numbers [#111](https://github.com/code-hike/codehike/pull/111) ([@pomber](https://github.com/pomber))
-- Slideshow component [#99](https://github.com/code-hike/codehike/pull/99) ([@pomber](https://github.com/pomber))
-- Use shiki [#77](https://github.com/code-hike/codehike/pull/77) ([@pomber](https://github.com/pomber))
-
-#### 🐛 Bug Fix
-
-- merge ([@pomber](https://github.com/pomber))
-- Fix transitions ([@pomber](https://github.com/pomber))
-- Reset some code styles [#136](https://github.com/code-hike/codehike/pull/136) ([@pomber](https://github.com/pomber))
-- Reset some code styles ([@pomber](https://github.com/pomber))
-- Better errors [#135](https://github.com/code-hike/codehike/pull/135) ([@pomber](https://github.com/pomber))
-- Add some css vars ([@pomber](https://github.com/pomber))
-- Changes style property to fix 'Unsupported style property color-scheme' [#134](https://github.com/code-hike/codehike/pull/134) ([@ghoshnirmalya](https://github.com/ghoshnirmalya))
-- fix: changes style property ([@ghoshnirmalya](https://github.com/ghoshnirmalya))
-- Fix color-scheme warning ([@pomber](https://github.com/pomber))
-- Add color scheme ([@pomber](https://github.com/pomber))
-- Selection color from theme [#125](https://github.com/code-hike/codehike/pull/125) ([@pomber](https://github.com/pomber))
-- Selection color from theme ([@pomber](https://github.com/pomber))
-- Fix firefox copypasting [#124](https://github.com/code-hike/codehike/pull/124) ([@pomber](https://github.com/pomber))
-- Fix firefox copypasting ([@pomber](https://github.com/pomber))
-- Better default styles [#116](https://github.com/code-hike/codehike/pull/116) ([@pomber](https://github.com/pomber))
-- Wrap codeblocks and codegroups ([@pomber](https://github.com/pomber))
-- Force zero padding on pre ([@pomber](https://github.com/pomber))
-- Add code css ([@pomber](https://github.com/pomber))
-- Move styles to css ([@pomber](https://github.com/pomber))
-- Add line number option ([@pomber](https://github.com/pomber))
-- Move theme to utils ([@pomber](https://github.com/pomber))
-- Add fragment key ([@pomber](https://github.com/pomber))
-- Change code left pad ([@pomber](https://github.com/pomber))
-- Remove unnecesary div ([@pomber](https://github.com/pomber))
-- Fix zoom ([@pomber](https://github.com/pomber))
-- Fix multi-annotation focus string [#94](https://github.com/code-hike/codehike/pull/94) ([@pomber](https://github.com/pomber))
-- Split annotation focus string ([@pomber](https://github.com/pomber))
-- Remove dead code ([@pomber](https://github.com/pomber))
-- Merge branch 'next' into shiki ([@pomber](https://github.com/pomber))
-- Add useMemo to useDimensions ([@pomber](https://github.com/pomber))
-- Change react dep ([@pomber](https://github.com/pomber))
-- Move focus to utils package ([@pomber](https://github.com/pomber))
-- Add metastring annotations ([@pomber](https://github.com/pomber))
-- Add default editor height ([@pomber](https://github.com/pomber))
-- Delete old files ([@pomber](https://github.com/pomber))
-- Change dimensions ([@pomber](https://github.com/pomber))
-- Use line count for auto height ([@pomber](https://github.com/pomber))
-- Fix heights ([@pomber](https://github.com/pomber))
-- Spotlight component ([@pomber](https://github.com/pomber))
-- Change react peer dep ([@pomber](https://github.com/pomber))
-- Add link annotations ([@pomber](https://github.com/pomber))
-- Test overflows ([@pomber](https://github.com/pomber))
-- Editor default height ([@pomber](https://github.com/pomber))
-- Add editor-spring and editor-tween ([@pomber](https://github.com/pomber))
-- Add code-tween and code-spring ([@pomber](https://github.com/pomber))
-- Remove old packages ([@pomber](https://github.com/pomber))
-- Try treeshaking ([@pomber](https://github.com/pomber))
-- Add data prop ([@pomber](https://github.com/pomber))
-- Fix line padding ([@pomber](https://github.com/pomber))
-- Add annotations to editor ([@pomber](https://github.com/pomber))
-- Add multiline annotations ([@pomber](https://github.com/pomber))
-- Avoid unnecesary recalculations ([@pomber](https://github.com/pomber))
-- Inline annotations ([@pomber](https://github.com/pomber))
-- Add token groups ([@pomber](https://github.com/pomber))
-- Create step parser ([@pomber](https://github.com/pomber))
-- Refactor CodeMap ([@pomber](https://github.com/pomber))
-- Add annotations ([@pomber](https://github.com/pomber))
-- Another refactor ([@pomber](https://github.com/pomber))
-- Refactor smooth code ([@pomber](https://github.com/pomber))
-- Separate dimensions ([@pomber](https://github.com/pomber))
-- Use shiki ([@pomber](https://github.com/pomber))
-- Add spring config [#75](https://github.com/code-hike/codehike/pull/75) ([@pomber](https://github.com/pomber))
-- Add access public to all packages ([@pomber](https://github.com/pomber))
-- Extract smooth-code package ([@pomber](https://github.com/pomber))
-
-#### 🏠 Internal
-
-- Extract smooth-code package [#69](https://github.com/code-hike/codehike/pull/69) ([@pomber](https://github.com/pomber))
-
-#### 🔩 Dependency Updates
-
-- Add `color-scheme` CSS [#129](https://github.com/code-hike/codehike/pull/129) ([@pomber](https://github.com/pomber))
-
-#### Authors: 2
-
-- Nirmalya Ghosh ([@ghoshnirmalya](https://github.com/ghoshnirmalya))
-- Rodrigo Pombo ([@pomber](https://github.com/pomber))
diff --git a/packages/smooth-code/jest.config.js b/packages/smooth-code/jest.config.js
deleted file mode 100644
index 91a2d2c0..00000000
--- a/packages/smooth-code/jest.config.js
+++ /dev/null
@@ -1,4 +0,0 @@
-module.exports = {
- preset: 'ts-jest',
- testEnvironment: 'node',
-};
\ No newline at end of file
diff --git a/packages/smooth-code/package.json b/packages/smooth-code/package.json
deleted file mode 100644
index ddf039b7..00000000
--- a/packages/smooth-code/package.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "name": "@code-hike/smooth-code",
- "version": "0.3.0",
- "main": "dist/index.cjs.js",
- "typings": "dist/index.d.ts",
- "module": "dist/index.esm.js",
- "sideEffects": false,
- "style": "dist/index.css",
- "files": [
- "dist"
- ],
- "scripts": {
- "x": "x",
- "test": "jest",
- "test-watch": "jest --watch --updateSnapshot"
- },
- "devDependencies": {
- "@code-hike/script": "^0.3.0",
- "@types/diff": "^4.0.2",
- "@types/jest": "^24.0.15",
- "@types/react": "^17.0.2",
- "jest": "^26.5.3",
- "react": "^17.0.2",
- "ts-jest": "^26.4.1"
- },
- "dependencies": {
- "@code-hike/highlighter": "^0.3.0",
- "@code-hike/utils": "^0.3.0",
- "diff": "^4.0.2",
- "use-spring": "^0.2.3"
- },
- "peerDependencies": {
- "react": "^16.8.3 || ^17 || ^18"
- },
- "keywords": [
- "react"
- ],
- "homepage": "https://codehike.org",
- "repository": "code-hike/codehike",
- "publishConfig": {
- "access": "public"
- },
- "author": "Rodrigo Pombo",
- "license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/codehike"
- }
-}
diff --git a/packages/smooth-code/readme.md b/packages/smooth-code/readme.md
deleted file mode 100644
index 2a3bd5f6..00000000
--- a/packages/smooth-code/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-See [codehike.org](https://codehike.org)
diff --git a/packages/smooth-code/src/__snapshots__/splitter.test.ts.snap b/packages/smooth-code/src/__snapshots__/splitter.test.ts.snap
deleted file mode 100644
index af66f0e6..00000000
--- a/packages/smooth-code/src/__snapshots__/splitter.test.ts.snap
+++ /dev/null
@@ -1,35 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`split tokens with extremes 1`] = `
-Array [
- Object {
- "content": "fo",
- "props": Object {},
- },
- Object {
- "content": "o",
- "props": Object {},
- },
- Object {
- "content": "ba",
- "props": Object {},
- },
- Object {
- "content": "r",
- "props": Object {},
- },
-]
-`;
-
-exports[`split tokens with no extremes 1`] = `
-Array [
- Object {
- "content": "foo",
- "props": Object {},
- },
- Object {
- "content": "bar",
- "props": Object {},
- },
-]
-`;
diff --git a/packages/smooth-code/tsconfig.json b/packages/smooth-code/tsconfig.json
deleted file mode 100644
index 8b1dd15e..00000000
--- a/packages/smooth-code/tsconfig.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": "../tsconfig.json",
- "include": ["src", "types"],
- "compilerOptions": {
- "rootDir": "./src",
- "baseUrl": "./",
- "paths": {
- "@": ["./"],
- "*": ["src/*", "node_modules/*"]
- }
- }
-}
diff --git a/packages/storybook/build-storybook.log b/packages/storybook/build-storybook.log
deleted file mode 100644
index 3380e8ee..00000000
--- a/packages/storybook/build-storybook.log
+++ /dev/null
@@ -1,4554 +0,0 @@
-info @storybook/react v6.1.21
-info
-info => Cleaning outputDir /tmp/chromatic--18488-KKJUkfpsVeyJ
-info => Building manager..
-info => Loading manager config..
-info => Loading presets
-info => Compiling manager..
-info => Manager built (21 s)
-info => Building preview..
-info => Loading preview config..
-info => Loading presets
-info => Loading 4 other files in "./src"
-info => Adding stories defined in "src/main.js"
-info => Using default Webpack setup
-info => Compiling preview..
- [webpack.Progress] 0% compiling
- [webpack.Progress] 10% building 0/0 modules 0 active
- [webpack.Progress] 10% building 0/1 modules 1 active multi /home/pomber/p/dev/codehike/node_modules/@storybook/core/dist/server/common/polyfills.js /home/pomber/p/dev/codehike/node_modules/@storybook/core/dist/server/preview/globals.js /home/pomber/p/dev/codehike/packages/storybook/src/storybook-init-framework-entry.js /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/common/config.js-generated-other-entry.js /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/config.js-generated-other-entry.js /home/pomber/p/dev/codehike/node_modules/@storybook/addon-actions/dist/preset/addDecorator.js-generated-other-entry.js /home/pomber/p/dev/codehike/node_modules/@storybook/addon-actions/dist/preset/addArgs.js-generated-other-entry.js /home/pomber/p/dev/codehike/packages/storybook/src/generated-stories-entry.js
- [webpack.Progress] 10% building 1/1 modules 0 active
- [webpack.Progress] 10% building 1/2 modules 1 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/packages/storybook/src/storybook-init-framework-entry.js
- [webpack.Progress] 10% building 1/3 modules 2 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/packages/storybook/src/generated-stories-entry.js
- [webpack.Progress] 10% building 1/4 modules 3 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-actions/dist/preset/addDecorator.js-generated-other-entry.js
- [webpack.Progress] 10% building 1/5 modules 4 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-actions/dist/preset/addArgs.js-generated-other-entry.js
- [webpack.Progress] 10% building 1/6 modules 5 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/common/config.js-generated-other-entry.js
- [webpack.Progress] 10% building 1/7 modules 6 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/config.js-generated-other-entry.js
- [webpack.Progress] 10% building 1/8 modules 7 active /home/pomber/p/dev/codehike/node_modules/@storybook/core/dist/server/common/polyfills.js
- [webpack.Progress] 10% building 1/9 modules 8 active /home/pomber/p/dev/codehike/node_modules/@storybook/core/dist/server/preview/globals.js
- [webpack.Progress] 10% building 2/9 modules 7 active /home/pomber/p/dev/codehike/node_modules/@storybook/core/dist/server/preview/globals.js
- [webpack.Progress] 10% building 3/9 modules 6 active /home/pomber/p/dev/codehike/node_modules/@storybook/core/dist/server/preview/globals.js
- [webpack.Progress] 10% building 4/9 modules 5 active /home/pomber/p/dev/codehike/node_modules/@storybook/core/dist/server/preview/globals.js
- [webpack.Progress] 10% building 5/9 modules 4 active /home/pomber/p/dev/codehike/node_modules/@storybook/core/dist/server/preview/globals.js
- [webpack.Progress] 10% building 6/9 modules 3 active /home/pomber/p/dev/codehike/node_modules/@storybook/core/dist/server/preview/globals.js
- [webpack.Progress] 10% building 7/9 modules 2 active /home/pomber/p/dev/codehike/node_modules/@storybook/core/dist/server/preview/globals.js
- [webpack.Progress] 10% building 7/10 modules 3 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-actions/dist/preset/addDecorator.js
- [webpack.Progress] 10% building 7/11 modules 4 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-actions/dist/preset/addArgs.js
- [webpack.Progress] 10% building 7/12 modules 5 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/common/config.js
- [webpack.Progress] 10% building 7/13 modules 6 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/config.js
- [webpack.Progress] 10% building 8/13 modules 5 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/config.js
- [webpack.Progress] 11% building 9/13 modules 4 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/config.js
- [webpack.Progress] 11% building 9/14 modules 5 active /home/pomber/p/dev/codehike/packages/storybook/src sync nonrecursive /^\.\/(?:(?!\.)(?=.)[^/]*?\.story\.js)$/
- [webpack.Progress] 11% building 10/14 modules 4 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/config.js
- [webpack.Progress] 11% building 11/14 modules 3 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/config.js
- [webpack.Progress] 11% building 12/14 modules 2 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/config.js
- [webpack.Progress] 11% building 13/14 modules 1 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/config.js
- [webpack.Progress] 11% building 14/14 modules 0 active
- [webpack.Progress] 11% building 14/15 modules 1 active /home/pomber/p/dev/codehike/node_modules/webpack/buildin/module.js
- [webpack.Progress] 11% building 14/16 modules 2 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-actions/dist/index.js
- [webpack.Progress] 11% building 14/17 modules 3 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/extractArgTypes.js
- [webpack.Progress] 11% building 14/18 modules 4 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/common/enhanceArgTypes.js
- [webpack.Progress] 11% building 14/19 modules 5 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/jsxDecorator.js
- [webpack.Progress] 11% building 14/20 modules 6 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/code.story.js
- [webpack.Progress] 11% building 14/21 modules 7 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/column.story.js
- [webpack.Progress] 11% building 14/22 modules 8 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/mini-browser-hike.story.js
- [webpack.Progress] 11% building 14/23 modules 9 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/mini-browser.story.js
- [webpack.Progress] 11% building 14/24 modules 10 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/mini-editor-hike.story.js
- [webpack.Progress] 11% building 14/25 modules 11 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/mini-editor-tween.story.js
- [webpack.Progress] 11% building 14/26 modules 12 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/mini-editor.story.js
- [webpack.Progress] 11% building 14/27 modules 13 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/mini-frame.story.js
- [webpack.Progress] 11% building 14/28 modules 14 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/mini-terminal.story.js
- [webpack.Progress] 11% building 14/29 modules 15 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/player.story.js
- [webpack.Progress] 11% building 14/30 modules 16 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/scroller.story.js
- [webpack.Progress] 11% building 14/31 modules 17 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/scrollycoding.story.js
- [webpack.Progress] 11% building 14/32 modules 18 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/sim-user.story.js
- [webpack.Progress] 11% building 14/33 modules 19 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/smooth-lines.story.js
- [webpack.Progress] 11% building 14/34 modules 20 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/steps.story.js
- [webpack.Progress] 11% building 15/34 modules 19 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/steps.story.js
- [webpack.Progress] 11% building 16/34 modules 18 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/steps.story.js
- [webpack.Progress] 12% building 17/34 modules 17 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/steps.story.js
- [webpack.Progress] 12% building 18/34 modules 16 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/steps.story.js
- [webpack.Progress] 12% building 19/34 modules 15 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/node_modules/@storybook/source-loader/dist/index.js??ref--10!/home/pomber/p/dev/codehike/packages/storybook/src/steps.story.js
- [webpack.Progress] 12% building 19/35 modules 16 active /home/pomber/p/dev/codehike/node_modules/regenerator-runtime/runtime.js
- [webpack.Progress] 12% building 19/36 modules 17 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-actions/dist/constants.js
- [webpack.Progress] 12% building 19/37 modules 18 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/extractProps.js
- [webpack.Progress] 12% building 19/38 modules 19 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/common/normalizeArgTypes.js
- [webpack.Progress] 12% building 19/39 modules 20 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/shared.js
- [webpack.Progress] 12% building 19/40 modules 21 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-api/dist/index.js
- [webpack.Progress] 12% building 19/41 modules 22 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 12% building 20/41 modules 21 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 12% building 21/41 modules 20 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 12% building 22/41 modules 19 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 12% building 23/41 modules 18 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 12% building 24/41 modules 17 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 13% building 25/41 modules 16 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 13% building 26/41 modules 15 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 13% building 27/41 modules 14 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 13% building 28/41 modules 13 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 13% building 29/41 modules 12 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 13% building 30/41 modules 11 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 13% building 31/41 modules 10 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 13% building 32/41 modules 9 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 13% building 33/41 modules 8 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 14% building 34/41 modules 7 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-logger/dist/index.js
- [webpack.Progress] 14% building 34/42 modules 8 active /home/pomber/p/dev/codehike/node_modules/lodash/mapValues.js
- [webpack.Progress] 14% building 35/42 modules 7 active /home/pomber/p/dev/codehike/node_modules/lodash/mapValues.js
- [webpack.Progress] 14% building 36/42 modules 6 active /home/pomber/p/dev/codehike/node_modules/lodash/mapValues.js
- [webpack.Progress] 14% building 37/42 modules 5 active /home/pomber/p/dev/codehike/node_modules/lodash/mapValues.js
- [webpack.Progress] 14% building 38/42 modules 4 active /home/pomber/p/dev/codehike/node_modules/lodash/mapValues.js
- [webpack.Progress] 14% building 39/42 modules 3 active /home/pomber/p/dev/codehike/node_modules/lodash/mapValues.js
- [webpack.Progress] 14% building 40/42 modules 2 active /home/pomber/p/dev/codehike/node_modules/lodash/mapValues.js
- [webpack.Progress] 14% building 41/42 modules 1 active /home/pomber/p/dev/codehike/node_modules/lodash/mapValues.js
- [webpack.Progress] 14% building 41/43 modules 2 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.assign.js
- [webpack.Progress] 14% building 41/44 modules 3 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.regexp.constructor.js
- [webpack.Progress] 14% building 41/45 modules 4 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.regexp.exec.js
- [webpack.Progress] 14% building 41/46 modules 5 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.regexp.to-string.js
- [webpack.Progress] 15% building 42/46 modules 4 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.regexp.to-string.js
- [webpack.Progress] 15% building 42/47 modules 5 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/index.js
- [webpack.Progress] 15% building 42/48 modules 6 active /home/pomber/p/dev/codehike/node_modules/airbnb-js-shims/index.js
- [webpack.Progress] 15% building 42/49 modules 7 active /home/pomber/p/dev/codehike/node_modules/babel-loader/lib/index.js??ref--4-0!/home/pomber/p/dev/codehike/packages/storybook/src/utils.js
- [webpack.Progress] 15% building 42/50 modules 8 active /home/pomber/p/dev/codehike/node_modules/global/window.js
- [webpack.Progress] 15% building 43/50 modules 7 active /home/pomber/p/dev/codehike/node_modules/global/window.js
- [webpack.Progress] 15% building 44/50 modules 6 active /home/pomber/p/dev/codehike/node_modules/global/window.js
- [webpack.Progress] 15% building 45/50 modules 5 active /home/pomber/p/dev/codehike/node_modules/global/window.js
- [webpack.Progress] 15% building 46/50 modules 4 active /home/pomber/p/dev/codehike/node_modules/global/window.js
- [webpack.Progress] 15% building 46/51 modules 5 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/lib/docgen/index.js
- [webpack.Progress] 15% building 46/52 modules 6 active /home/pomber/p/dev/codehike/node_modules/react/jsx-runtime.js
- [webpack.Progress] 15% building 47/52 modules 5 active /home/pomber/p/dev/codehike/node_modules/react/jsx-runtime.js
- [webpack.Progress] 15% building 47/53 modules 6 active /home/pomber/p/dev/codehike/node_modules/@storybook/react/dist/client/index.js
- [webpack.Progress] 15% building 48/53 modules 5 active /home/pomber/p/dev/codehike/node_modules/@storybook/react/dist/client/index.js
- [webpack.Progress] 15% building 49/53 modules 4 active /home/pomber/p/dev/codehike/node_modules/@storybook/react/dist/client/index.js
- [webpack.Progress] 15% building 49/54 modules 5 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-api/dist/client_api.js
- [webpack.Progress] 15% building 49/55 modules 6 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.concat.js
- [webpack.Progress] 16% building 50/55 modules 5 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.concat.js
- [webpack.Progress] 16% building 51/55 modules 4 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.concat.js
- [webpack.Progress] 16% building 51/56 modules 5 active /home/pomber/p/dev/codehike/node_modules/lodash/_baseAssignValue.js
- [webpack.Progress] 16% building 51/57 modules 6 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.reduce.js
- [webpack.Progress] 16% building 51/58 modules 7 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.function.name.js
- [webpack.Progress] 16% building 51/59 modules 8 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.for-each.js
- [webpack.Progress] 16% building 51/60 modules 9 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.join.js
- [webpack.Progress] 16% building 51/61 modules 10 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.map.js
- [webpack.Progress] 16% building 51/62 modules 11 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.slice.js
- [webpack.Progress] 16% building 51/63 modules 12 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.date.to-string.js
- [webpack.Progress] 16% building 51/64 modules 13 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.define-properties.js
- [webpack.Progress] 16% building 51/65 modules 14 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.freeze.js
- [webpack.Progress] 16% building 51/66 modules 15 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.to-string.js
- [webpack.Progress] 16% building 51/67 modules 16 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.string.match.js
- [webpack.Progress] 16% building 51/68 modules 17 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.string.replace.js
- [webpack.Progress] 16% building 51/69 modules 18 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/web.dom-collections.for-each.js
- [webpack.Progress] 16% building 51/70 modules 19 active /home/pomber/p/dev/codehike/node_modules/lodash/_baseForOwn.js
- [webpack.Progress] 16% building 51/71 modules 20 active /home/pomber/p/dev/codehike/node_modules/core-js/features/symbol/index.js
- [webpack.Progress] 16% building 51/72 modules 21 active /home/pomber/p/dev/codehike/node_modules/lodash/_baseIteratee.js
- [webpack.Progress] 16% building 51/73 modules 22 active /home/pomber/p/dev/codehike/node_modules/webpack/buildin/global.js
- [webpack.Progress] 16% building 52/73 modules 21 active /home/pomber/p/dev/codehike/node_modules/webpack/buildin/global.js
- [webpack.Progress] 16% building 53/73 modules 20 active /home/pomber/p/dev/codehike/node_modules/webpack/buildin/global.js
- [webpack.Progress] 16% building 54/73 modules 19 active /home/pomber/p/dev/codehike/node_modules/webpack/buildin/global.js
- [webpack.Progress] 16% building 54/74 modules 20 active /home/pomber/p/dev/codehike/node_modules/react/index.js
- [webpack.Progress] 16% building 54/75 modules 21 active /home/pomber/p/dev/codehike/node_modules/util-deprecate/browser.js
- [webpack.Progress] 16% building 54/76 modules 22 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-actions/dist/models/index.js
- [webpack.Progress] 16% building 54/77 modules 23 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-actions/dist/preview/index.js
- [webpack.Progress] 16% building 54/78 modules 24 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/export.js
- [webpack.Progress] 16% building 54/79 modules 25 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/redefine.js
- [webpack.Progress] 16% building 54/80 modules 26 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/descriptors.js
- [webpack.Progress] 16% building 54/81 modules 27 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/regexp-exec.js
- [webpack.Progress] 16% building 54/82 modules 28 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/regexp-flags.js
- [webpack.Progress] 16% building 54/83 modules 29 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 16% building 55/83 modules 28 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 16% building 56/83 modules 27 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 16% building 57/83 modules 26 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 16% building 58/83 modules 25 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 17% building 59/83 modules 24 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 17% building 60/83 modules 23 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 17% building 61/83 modules 22 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 17% building 62/83 modules 21 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 17% building 63/83 modules 20 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 17% building 64/83 modules 19 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 17% building 65/83 modules 18 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 17% building 66/83 modules 17 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 18% building 67/83 modules 16 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 18% building 68/83 modules 15 active /home/pomber/p/dev/codehike/node_modules/core-js/internals/fails.js
- [webpack.Progress] 18% building 68/84 modules 16 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/frameworks/react/lib/index.js
- [webpack.Progress] 18% building 68/85 modules 17 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/mdx.js
- [webpack.Progress] 18% building 69/85 modules 16 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/mdx.js
- [webpack.Progress] 18% building 70/85 modules 15 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/mdx.js
- [webpack.Progress] 18% building 71/85 modules 14 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/mdx.js
- [webpack.Progress] 18% building 72/85 modules 13 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/mdx.js
- [webpack.Progress] 18% building 72/86 modules 14 active /home/pomber/p/dev/codehike/node_modules/react/cjs/react-jsx-runtime.production.min.js
- [webpack.Progress] 18% building 72/87 modules 15 active /home/pomber/p/dev/codehike/node_modules/ts-dedent/dist/index.js
- [webpack.Progress] 18% building 72/88 modules 16 active /home/pomber/p/dev/codehike/node_modules/@storybook/addons/dist/public_api.js
- [webpack.Progress] 18% building 73/88 modules 15 active /home/pomber/p/dev/codehike/node_modules/@storybook/addons/dist/public_api.js
- [webpack.Progress] 18% building 73/89 modules 16 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/types.js
- [webpack.Progress] 18% building 73/90 modules 17 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/Wrapper.js
- [webpack.Progress] 18% building 73/91 modules 18 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/lib/docgen/types.js
- [webpack.Progress] 18% building 74/91 modules 17 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/lib/docgen/types.js
- [webpack.Progress] 18% building 74/92 modules 18 active /home/pomber/p/dev/codehike/node_modules/airbnb-js-shims/target/es5.js
- [webpack.Progress] 18% building 74/93 modules 19 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.string.trim.js
- [webpack.Progress] 18% building 74/94 modules 20 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.is-array.js
- [webpack.Progress] 18% building 74/95 modules 21 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.symbol.description.js
- [webpack.Progress] 18% building 74/96 modules 22 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.symbol.js
- [webpack.Progress] 18% building 74/97 modules 23 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.string.iterator.js
- [webpack.Progress] 18% building 74/98 modules 24 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.symbol.iterator.js
- [webpack.Progress] 18% building 74/99 modules 25 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.iterator.js
- [webpack.Progress] 18% building 74/100 modules 26 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/web.dom-collections.iterator.js
- [webpack.Progress] 18% building 74/101 modules 27 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.filter.js
- [webpack.Progress] 18% building 74/102 modules 28 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.array.from.js
- [webpack.Progress] 18% building 74/103 modules 29 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/lib/docgen/extractDocgenProps.js
- [webpack.Progress] 18% building 74/104 modules 30 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/Title.js
- [webpack.Progress] 18% building 74/105 modules 31 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/Subtitle.js
- [webpack.Progress] 18% building 74/106 modules 32 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/Subheading.js
- [webpack.Progress] 18% building 74/107 modules 33 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/Story.js
- [webpack.Progress] 18% building 74/108 modules 34 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/Stories.js
- [webpack.Progress] 18% building 74/109 modules 35 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/SourceContainer.js
- [webpack.Progress] 19% building 75/109 modules 34 active /home/pomber/p/dev/codehike/node_modules/@storybook/addon-docs/dist/blocks/SourceContainer.js
- [webpack.Progress] 19% building 75/110 modules 35 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 19% building 76/110 modules 34 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 19% building 77/110 modules 33 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 19% building 78/110 modules 32 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 19% building 79/110 modules 31 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 19% building 80/110 modules 30 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 19% building 81/110 modules 29 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 19% building 82/110 modules 28 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 19% building 83/110 modules 27 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 20% building 84/110 modules 26 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 20% building 85/110 modules 25 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 20% building 86/110 modules 24 active /home/pomber/p/dev/codehike/node_modules/react-element-to-jsx-string/dist/cjs/index.js
- [webpack.Progress] 20% building 86/111 modules 25 active /home/pomber/p/dev/codehike/node_modules/react/cjs/react.production.min.js
- [webpack.Progress] 20% building 87/111 modules 24 active /home/pomber/p/dev/codehike/node_modules/react/cjs/react.production.min.js
- [webpack.Progress] 20% building 87/112 modules 25 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-api/dist/decorators.js
- [webpack.Progress] 20% building 87/113 modules 26 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-api/dist/hooks.js
- [webpack.Progress] 20% building 88/113 modules 25 active /home/pomber/p/dev/codehike/node_modules/@storybook/client-api/dist/hooks.js
- [webpack.Progress] 20% building 88/114 modules 26 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
- [webpack.Progress] 20% building 89/114 modules 25 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
- [webpack.Progress] 20% building 90/114 modules 24 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
- [webpack.Progress] 20% building 91/114 modules 23 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
- [webpack.Progress] 21% building 92/114 modules 22 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
- [webpack.Progress] 21% building 93/114 modules 21 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
- [webpack.Progress] 21% building 94/114 modules 20 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
- [webpack.Progress] 21% building 95/114 modules 19 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
- [webpack.Progress] 21% building 96/114 modules 18 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
- [webpack.Progress] 21% building 97/114 modules 17 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
- [webpack.Progress] 21% building 98/114 modules 16 active /home/pomber/p/dev/codehike/node_modules/core-js/modules/es.object.keys.js
-