From 97f8d76997f22512b6df07558df0478782cdbfbc Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Tue, 14 May 2024 08:30:09 +0200 Subject: [PATCH 01/11] chore(ci): added test action --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b7b75ad --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Run Tests +on: [push] + +env: + PNPM_CACHE_FOLDER: .pnpm-store + HUSKY: 0 # Bypass husky commit hook for CI + +jobs: + test: + name: Unit Test + runs-on: ubuntu-22.04 + strategy: + matrix: + node-version: [20] + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: pnpm + - name: Install dependencies + run: pnpm install + - name: Run Unit Tests + run: pnpm run test From df4852f3e6c2ac47f87865114d0a4e16b80f8df1 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Tue, 14 May 2024 08:43:33 +0200 Subject: [PATCH 02/11] chore(ci): dependabot and release workflows --- .github/dependabot.yml | 29 +++++++++++++++++ .github/workflows/actions/pnpm/action.yml | 32 +++++++++++++++++++ .github/workflows/dependabot-automerge.yml | 28 +++++++++++++++++ .github/workflows/release.yml | 36 ++++++++++++++++++++++ .github/workflows/test.yml | 2 +- 5 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/actions/pnpm/action.yml create mode 100644 .github/workflows/dependabot-automerge.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..dde947e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,29 @@ +version: 2 +updates: + - package-ecosystem: "pnpm" + directory: "/" + schedule: + interval: "daily" + time: "04:00" + commit-message: + prefix: fix + prefix-development: chore + include: scope + groups: + linting-dx-tools: + patterns: + - "*lint*" # eslint, eslint-*, vue-eslint-parser, lint-staged, @commitlint/*, @typescript-eslint/* + - "prettier" + - "husky" + - "@vue/tsconfig" + - "*babel*" # babel-*, @vue/babel-preset-app, @babel/* + update-types: + - "minor" + - "patch" + testing-tools: + patterns: + - "@vue/test-utils" + - "vitest" + update-types: + - "minor" + - "patch" \ No newline at end of file diff --git a/.github/workflows/actions/pnpm/action.yml b/.github/workflows/actions/pnpm/action.yml new file mode 100644 index 0000000..e870bec --- /dev/null +++ b/.github/workflows/actions/pnpm/action.yml @@ -0,0 +1,32 @@ +# From https://github.com/remirror/template/blob/4f8c5f5629a081217672a8cce1df085510f43913/.github/actions/pnpm/action.yml +name: pnpm installation +description: Install and audit dependencies for pnpm +inputs: + cache: # id of input + description: The location of the pnpm cache + required: true + default: .pnpm-store + version: # id of input + description: The version to use + required: false + default: 6.10.0 + +runs: + using: composite + steps: + - name: install pnpm + run: npm install pnpm@${{ inputs.version }} -g + shell: bash + + - name: setup pnpm config + run: pnpm config set store-dir ${{ inputs.cache }} + shell: bash + + - name: install dependencies + run: pnpm install --shamefully-hoist + shell: bash + +# Avoid running husky hooks on Github +# http://typicode.github.io/husky/how-to.html +env: + HUSKY: 0 \ No newline at end of file diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml new file mode 100644 index 0000000..bf2d164 --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,28 @@ +# **** AUTOMERGE **** +# Merge automatically the PR that contain a minor or patch update on the dependency you define in env.DEPENDENCY +# - Inspiration: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request + +name: Dependabot auto-merge +on: pull_request + +permissions: + pull-requests: write + contents: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1.1.1 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Enable auto-merge for Dependabot PRs + if: ${{contains(steps.metadata.outputs.dependency-names, env.DEPENDENCY) && (steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor')}} + run: gh pr merge --auto --merge "$PR_URL" + env: + DEPENDENCY: "vue" + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.DEPENDABOT_TOKEN}} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ad925d8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: Release CI + +on: + push: + branches: [main, next, beta] + pull_request: + branches: [main, next, beta] + +env: + PNPM_CACHE_FOLDER: .pnpm-store + HUSKY: 0 # Bypass husky commit hook for CI + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: pnpm + - name: Build lib + run: npm run build + - name: Test run + run: npm run test + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release@18 \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b7b75ad..24683f2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ env: jobs: test: name: Unit Test - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: matrix: node-version: [20] From 58a9fce1149815ee1ac80b976cd6da12204a3364 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Tue, 14 May 2024 08:52:39 +0200 Subject: [PATCH 03/11] chore(ci): issue templates --- .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/issue.bug.yml | 68 ++++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/issue.fr.yml | 40 ++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/issue.bug.yml create mode 100644 .github/ISSUE_TEMPLATE/issue.fr.yml diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..ec4bb38 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/issue.bug.yml b/.github/ISSUE_TEMPLATE/issue.bug.yml new file mode 100644 index 0000000..5160195 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/issue.bug.yml @@ -0,0 +1,68 @@ +name: "\U0001F41E Bug Report" +description: Report an issue using Storyblok richtext resolver +labels: [pending-triage, pending-author] +body: + - type: markdown + attributes: + value: | + You're now going to fill out a bug report at the Storyblok richtext resolver. Thanks a lot for taking the time and let's make Storyblok open source projects better together! + - type: textarea + id: bug-description + attributes: + label: Describe the issue you're facing + description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description so we can review it. Thanks in advance! + placeholder: My Storyblok richtext resolver configuration is ... ## Expected behavior ... ## Current Behavior ... + validations: + required: true + - type: input + id: reproduction + attributes: + label: Reproduction + description: Please provide a link to a repo or Stackblitz that can reproduce the issue you ran into. A minimal reproduction is required, if a report is vague or has no reproduction, it will receive a "need reproduction" label. + placeholder: Reproduction URL + validations: + required: true + - type: textarea + id: reproduction-steps + attributes: + label: Steps to reproduce + description: Please provide any reproduction steps that may need to be described. + placeholder: List the commands or configuration you set when you faced the error, and describe with process you follow to get the error. + - type: textarea + id: system-info + attributes: + label: System Info + description: Output of `npx envinfo --system --npmPackages '{ vue, @storyblok/*}' --binaries --browsers` + render: shell + placeholder: System, Binaries, Browsers, Vue 3 & Storyblok SDK version + validations: + required: true + - type: dropdown + id: package-manager + attributes: + label: Used Package Manager + description: Select the used package manager + options: + - npm + - yarn + - pnpm + validations: + required: true + - type: textarea + id: logs + attributes: + label: Error logs (Optional) + description: | + Optional if provided reproduction. Please copy and paste the log text. + - type: checkboxes + id: checkboxes + attributes: + label: Validations + description: Before submitting the issue, please make sure you do the following + options: + - label: Follow our [Code of Conduct](https://www.storyblok.com/trust-center#code-of-conduct?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client) + required: true + - type: markdown + attributes: + value: | + > This template was inspired by the [Vite issue template](https://github.com/vitejs/vite/blob/main/.github/ISSUE_TEMPLATE/bug_report.yml) \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/issue.fr.yml b/.github/ISSUE_TEMPLATE/issue.fr.yml new file mode 100644 index 0000000..1ce3ad8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/issue.fr.yml @@ -0,0 +1,40 @@ +name: "\U0001F58C Feature Request" +description: Propose a feature or improvement that the Storyblok Rictext resolver should have +labels: [enhancement, pending-triage, pending-author] +body: + - type: markdown + attributes: + value: | + Thanks for helping us improve the Storyblok open source project, you rock! + - type: textarea + id: feature-description + attributes: + label: Description + description: "Clear and concise description of what you want to include or enhance from the package. Please make the reason and usecases as detailed as possible. If you intend to submit a PR for this feature request, tell us in the description so we can review and be aware of it. Thanks in advance!" + placeholder: As a developer using Storyblok richtext I want [wish] so that [benefit]. + validations: + required: true + - type: textarea + id: suggested-solution + attributes: + label: Suggested solution or improvement + description: "Link to the PR or what implementation you will expect from us (links to external examples if needed)." + validations: + required: true + - type: textarea + id: additional-context + attributes: + label: Additional context + description: Any other context or screenshots about the feature request here. + - type: checkboxes + id: checkboxes + attributes: + label: Validations + description: Before submitting the feature request, please make sure you do the following + options: + - label: Follow our [Code of Conduct](https://www.storyblok.com/trust-center#code-of-conduct?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client) + required: true + - type: markdown + attributes: + value: | + > This template was inspired by the [Vite FR template](https://github.com/vitejs/vite/blob/main/.github/ISSUE_TEMPLATE/feature_request.yml) \ No newline at end of file From f76070b87b9fbc12d4ca920d0a1d803afa4695d6 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Tue, 14 May 2024 08:54:06 +0200 Subject: [PATCH 04/11] chore(ci): correct scripts for release --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad925d8..0b17bb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,9 +26,9 @@ jobs: node-version: ${{ matrix.node-version }} cache: pnpm - name: Build lib - run: npm run build + run: pnpm run build - name: Test run - run: npm run test + run: pnpm run test - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 90ebc0223f19806d26c09e8f5256d7e93e17aa78 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Tue, 14 May 2024 08:58:12 +0200 Subject: [PATCH 05/11] chore(ci): move pnpm install to release action --- .github/workflows/actions/pnpm/action.yml | 32 ----------------------- .github/workflows/release.yml | 2 ++ 2 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/actions/pnpm/action.yml diff --git a/.github/workflows/actions/pnpm/action.yml b/.github/workflows/actions/pnpm/action.yml deleted file mode 100644 index e870bec..0000000 --- a/.github/workflows/actions/pnpm/action.yml +++ /dev/null @@ -1,32 +0,0 @@ -# From https://github.com/remirror/template/blob/4f8c5f5629a081217672a8cce1df085510f43913/.github/actions/pnpm/action.yml -name: pnpm installation -description: Install and audit dependencies for pnpm -inputs: - cache: # id of input - description: The location of the pnpm cache - required: true - default: .pnpm-store - version: # id of input - description: The version to use - required: false - default: 6.10.0 - -runs: - using: composite - steps: - - name: install pnpm - run: npm install pnpm@${{ inputs.version }} -g - shell: bash - - - name: setup pnpm config - run: pnpm config set store-dir ${{ inputs.cache }} - shell: bash - - - name: install dependencies - run: pnpm install --shamefully-hoist - shell: bash - -# Avoid running husky hooks on Github -# http://typicode.github.io/husky/how-to.html -env: - HUSKY: 0 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b17bb9..c7d9456 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,8 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: pnpm + - name: Install dependencies + run: pnpm install - name: Build lib run: pnpm run build - name: Test run From d6a3c8e40176715ba27cd28f5c38602c098422cf Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Wed, 15 May 2024 13:40:41 +0200 Subject: [PATCH 06/11] chore(ci): delete automerge action --- .github/workflows/dependabot-automerge.yml | 28 ---------------------- 1 file changed, 28 deletions(-) delete mode 100644 .github/workflows/dependabot-automerge.yml diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml deleted file mode 100644 index bf2d164..0000000 --- a/.github/workflows/dependabot-automerge.yml +++ /dev/null @@ -1,28 +0,0 @@ -# **** AUTOMERGE **** -# Merge automatically the PR that contain a minor or patch update on the dependency you define in env.DEPENDENCY -# - Inspiration: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request - -name: Dependabot auto-merge -on: pull_request - -permissions: - pull-requests: write - contents: write - -jobs: - dependabot: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v1.1.1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - name: Enable auto-merge for Dependabot PRs - if: ${{contains(steps.metadata.outputs.dependency-names, env.DEPENDENCY) && (steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor')}} - run: gh pr merge --auto --merge "$PR_URL" - env: - DEPENDENCY: "vue" - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.DEPENDABOT_TOKEN}} \ No newline at end of file From 9a67d4b386de37361d02b135016cf2d854119ea1 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Wed, 15 May 2024 16:11:52 +0200 Subject: [PATCH 07/11] chore: rename to `@storyblok/richtext` and add semantic release config --- README.md | 6 +++--- package.json | 15 ++++++++++++++- packages/react/package.json | 2 +- packages/react/src/index.ts | 4 ++-- packages/vue/package.json | 2 +- packages/vue/src/index.ts | 4 ++-- playground/react/src/App.tsx | 2 +- playground/react/vite.config.ts | 2 +- playground/vanilla/package.json | 2 +- playground/vanilla/src/main.ts | 2 +- playground/vanilla/vite.config.ts | 2 +- playground/vue/package.json | 2 +- playground/vue/src/components/HomeView.vue | 2 +- playground/vue/vite.config.ts | 2 +- pnpm-lock.yaml | 8 ++++---- 15 files changed, 35 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 3c961d5..0e080bd 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This is a proof of concept for a custom resolver for the Storyblok Richtext fiel ### Basic ```ts -import { RichTextResolver } from '@storyblok/richtext-resolver' +import { RichTextResolver } from '@storyblok/richtext' const { render } = RichTextResolver() @@ -28,7 +28,7 @@ document.querySelector('#app')!.innerHTML = ` To overwrite an existing resolver, you can pass a property called resolvers available on the `RichTextResolver` options. ```ts -import { MarkTypes, RichTextResolver } from '@storyblok/richtext-resolver' +import { MarkTypes, RichTextResolver } from '@storyblok/richtext' const html = RichTextResolver({ resolvers: { @@ -47,7 +47,7 @@ It is possible to ensure correct typing support in a framework-agnostic way by u - Vue `VNode` - React `React.ReactElement` -This way the `@storyblok/richtext-resolver` is ignorant of framework specific types, avoiding having to import them and having `vue` `react` etc as dependencies. +This way the `@storyblok/richtext` is ignorant of framework specific types, avoiding having to import them and having `vue` `react` etc as dependencies. ```ts // Vanilla diff --git a/package.json b/package.json index eaba34d..a58ccc7 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@storyblok/richtext-resolver", + "name": "@storyblok/richtext", "type": "module", "version": "0.0.0", "packageManager": "pnpm@8.10.2", @@ -109,6 +109,19 @@ "semi": true, "singleQuote": false }, + "release": { + "branches": [ + "main", + { + "name": "next", + "prerelease": true + }, + { + "name": "beta", + "prerelease": true + } + ] + }, "dependencies": { "consola": "^3.2.3" } diff --git a/packages/react/package.json b/packages/react/package.json index 8e32d25..06ebadf 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -35,7 +35,7 @@ }, "dependencies": { "@storyblok/react": "^3.0.9", - "@storyblok/richtext-resolver": "workspace:^", + "@storyblok/richtext": "workspace:^", "@vitejs/plugin-react": "^4.2.1", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index 332bc73..ac8bbc2 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -1,7 +1,7 @@ import React from 'react' import { StoryblokComponent } from '@storyblok/react' -import type { Node, SbRichtextOptions } from '@storyblok/richtext-resolver' -import { BlockTypes, RichTextResolver } from '@storyblok/richtext-resolver' +import type { Node, SbRichtextOptions } from '@storyblok/richtext' +import { BlockTypes, RichTextResolver } from '@storyblok/richtext' import SbRichText from './SbRichText' function componentResolver(node: Node) { diff --git a/packages/vue/package.json b/packages/vue/package.json index af84af8..10e2d86 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -34,7 +34,7 @@ "lint:fix": "eslint . --fix" }, "dependencies": { - "@storyblok/richtext-resolver": "workspace:^", + "@storyblok/richtext": "workspace:^", "@storyblok/vue": "^8.0.7", "vue": "^3.4.21", "vue-router": "^4.3.0" diff --git a/packages/vue/src/index.ts b/packages/vue/src/index.ts index f96d16a..fc8e588 100644 --- a/packages/vue/src/index.ts +++ b/packages/vue/src/index.ts @@ -2,8 +2,8 @@ import type { VNode } from 'vue' import { createTextVNode, h } from 'vue' import { RouterLink } from 'vue-router' -import type { Node, NodeResolver, SbRichtextOptions } from '@storyblok/richtext-resolver' -import { BlockTypes, MarkTypes, RichTextResolver } from '@storyblok/richtext-resolver' +import type { Node, NodeResolver, SbRichtextOptions } from '@storyblok/richtext' +import { BlockTypes, MarkTypes, RichTextResolver } from '@storyblok/richtext' import { StoryblokComponent } from '@storyblok/vue' import SbRichText from './components/SbRichText.vue' diff --git a/playground/react/src/App.tsx b/playground/react/src/App.tsx index 62f2b6e..c62af98 100644 --- a/playground/react/src/App.tsx +++ b/playground/react/src/App.tsx @@ -1,4 +1,4 @@ -import { RichTextResolver } from '@storyblok/richtext-resolver' +import { RichTextResolver } from '@storyblok/richtext' import { StoryblokComponent, useStoryblok } from '@storyblok/react' import { SbRichText } from '@storyblok/react-richtext' import './App.css' diff --git a/playground/react/vite.config.ts b/playground/react/vite.config.ts index 4b9db57..6de920e 100644 --- a/playground/react/vite.config.ts +++ b/playground/react/vite.config.ts @@ -11,7 +11,7 @@ export default defineConfig({ ], resolve: { alias: { - '@storyblok/richtext-resolver': resolve(__dirname, '../../src/index.ts'), + '@storyblok/richtext': resolve(__dirname, '../../src/index.ts'), '@storyblok/react-richtext': resolve(__dirname, '../../packages/react/src/index.ts'), }, }, diff --git a/playground/vanilla/package.json b/playground/vanilla/package.json index 70b4a72..698d812 100644 --- a/playground/vanilla/package.json +++ b/playground/vanilla/package.json @@ -14,7 +14,7 @@ "vite-plugin-qrcode": "^0.2.3" }, "dependencies": { - "@storyblok/richtext-resolver": "workspace:^", + "@storyblok/richtext": "workspace:^", "storyblok-js-client": "^6.7.1" } } diff --git a/playground/vanilla/src/main.ts b/playground/vanilla/src/main.ts index aa8dba7..190e7e8 100644 --- a/playground/vanilla/src/main.ts +++ b/playground/vanilla/src/main.ts @@ -1,5 +1,5 @@ import './style.css' -import { MarkTypes, type Node, RichTextResolver, type SbRichtextOptions } from '@storyblok/richtext-resolver' +import { MarkTypes, type Node, RichTextResolver, type SbRichtextOptions } from '@storyblok/richtext' import StoryblokClient from 'storyblok-js-client' /* const doc: Node = { diff --git a/playground/vanilla/vite.config.ts b/playground/vanilla/vite.config.ts index e06e8cd..a6e31dd 100644 --- a/playground/vanilla/vite.config.ts +++ b/playground/vanilla/vite.config.ts @@ -16,7 +16,7 @@ export default defineConfig({ }, resolve: { alias: { - '@storyblok/richtext-resolver': resolve(__dirname, '../../src/index.ts'), + '@storyblok/richtext': resolve(__dirname, '../../src/index.ts'), }, }, }) diff --git a/playground/vue/package.json b/playground/vue/package.json index 8f3cc3c..d553875 100644 --- a/playground/vue/package.json +++ b/playground/vue/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@storyblok/richtext-resolver": "workspace:^", + "@storyblok/richtext": "workspace:^", "@storyblok/vue": "^8.0.7", "@storyblok/vue-richtext": "workspace:^", "vue": "^3.4.21", diff --git a/playground/vue/src/components/HomeView.vue b/playground/vue/src/components/HomeView.vue index 7989164..74b9580 100644 --- a/playground/vue/src/components/HomeView.vue +++ b/playground/vue/src/components/HomeView.vue @@ -1,6 +1,6 @@