Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix: dashboard packages installed two copies of the rich text editor (#14846)

Damian Legawiecdca32dbbca0b
diff --git a/.changeset/dashboard-single-tiptap.md b/.changeset/dashboard-single-tiptap.md
new file mode 100644
index 0000000000..f3b9ca5b65
--- /dev/null
+++ b/.changeset/dashboard-single-tiptap.md
@@ -0,0 +1,6 @@
+---
+"@spree/dashboard": patch
+"@spree/dashboard-ui": patch
+---
+
+Projects that install the dashboard packages from npm now get a single copy of the rich text editor library. `@spree/dashboard` no longer declares its own, looser TipTap ranges next to the exact versions in `@spree/dashboard-ui`, so a newer TipTap release can no longer install beside the pinned one and break type checking.
diff --git a/packages/dashboard-ui/package.json b/packages/dashboard-ui/package.json
index e5fd23534d..be6ac28a1a 100644
--- a/packages/dashboard-ui/package.json
+++ b/packages/dashboard-ui/package.json
@@ -69,9 +69,11 @@
"@fontsource-variable/geist": "5.2.8",
"@fontsource-variable/geist-mono": "5.2.7",
"@tanstack/react-table": "8.21.3",
+ "@tiptap/core": "3.31.3",
"@tiptap/extension-image": "3.31.3",
"@tiptap/extension-link": "3.31.3",
"@tiptap/extension-placeholder": "3.31.3",
+ "@tiptap/pm": "3.31.3",
"@tiptap/react": "3.31.3",
"@tiptap/starter-kit": "3.31.3",
"@uiw/react-json-view": "1.12.2",
diff --git a/packages/dashboard/package.json b/packages/dashboard/package.json
index f7a92d9b94..53292564da 100644
--- a/packages/dashboard/package.json
+++ b/packages/dashboard/package.json
@@ -73,10 +73,6 @@
"@tanstack/react-table": "^8.21.3",
"@tanstack/router-plugin": "^1.167.35",
"@tanstack/virtual-file-routes": "^1.162.0",
- "@tiptap/extension-link": "^3.31.3",
- "@tiptap/extension-placeholder": "^3.31.3",
- "@tiptap/react": "^3.31.3",
- "@tiptap/starter-kit": "^3.31.3",
"@uiw/react-json-view": "^1.12",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index af0529db0f..4741df69cf 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -202,18 +202,6 @@ importers:
'@tanstack/virtual-file-routes':
specifier: ^1.162.0
version: 1.162.0
- '@tiptap/extension-link':
- specifier: 3.31.3
- version: 3.31.3(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
- '@tiptap/extension-placeholder':
- specifier: 3.31.3
- version: 3.31.3(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
- '@tiptap/react':
- specifier: 3.31.3
- '@tiptap/starter-kit':
- specifier: 3.31.3
- version: 3.31.3
'@uiw/react-json-view':
specifier: ^1.12
@@ -563,6 +551,9 @@ importers:
'@tanstack/react-table':
specifier: 8.21.3
+ '@tiptap/core':
+ specifier: 3.31.3
+ version: 3.31.3(@tiptap/[email protected])
'@tiptap/extension-image':
specifier: 3.31.3
version: 3.31.3(@tiptap/[email protected](@tiptap/[email protected]))
@@ -572,6 +563,9 @@ importers:
'@tiptap/extension-placeholder':
specifier: 3.31.3
version: 3.31.3(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
+ '@tiptap/pm':
+ specifier: 3.31.3
+ version: 3.31.3
'@tiptap/react':
specifier: 3.31.3