Skip to content

开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.

chore: bump plait into 0.85.0 (#282)

pubuzhixing8fb293df4efab
diff --git a/apps/web/src/app/initialize-data.ts b/apps/web/src/app/initialize-data.ts
index 2dff725..3a47ec8 100644
--- a/apps/web/src/app/initialize-data.ts
+++ b/apps/web/src/app/initialize-data.ts
@@ -243,7 +243,7 @@ export const initializeData: PlaitElement[] = [
strokeWidth: 2,
},
{
- type: 'mindmap',
+ type: 'mind',
id: 'rzdDJ',
rightNodeCount: 4,
data: {
@@ -258,6 +258,7 @@ export const initializeData: PlaitElement[] = [
children: [
{
id: 'WKQyj',
+ type: 'mind_child',
data: {
topic: {
children: [
@@ -270,6 +271,7 @@ export const initializeData: PlaitElement[] = [
children: [
{
id: 'RYSRd',
+ type: 'mind_child',
data: {
topic: {
children: [
@@ -282,6 +284,7 @@ export const initializeData: PlaitElement[] = [
children: [
{
id: 'nDBRj',
+ type: 'mind_child',
data: {
topic: {
children: [
@@ -292,19 +295,14 @@ export const initializeData: PlaitElement[] = [
},
},
children: [],
- width: 14,
- height: 20,
},
],
- width: 14,
- height: 20,
},
],
- width: 42,
- height: 20,
},
{
id: 'PWzAD',
+ type: 'mind_child',
data: {
topic: {
children: [
@@ -317,6 +315,7 @@ export const initializeData: PlaitElement[] = [
children: [
{
id: 'bTRmh',
+ type: 'mind_child',
data: {
topic: {
children: [
@@ -329,6 +328,7 @@ export const initializeData: PlaitElement[] = [
children: [
{
id: 'bnZEJ',
+ type: 'mind_child',
data: {
topic: {
children: [
@@ -339,19 +339,14 @@ export const initializeData: PlaitElement[] = [
},
},
children: [],
- width: 14,
- height: 20,
},
],
- width: 14,
- height: 20,
},
],
- width: 42,
- height: 20,
},
{
id: 'nJTYp',
+ type: 'mind_child',
data: {
topic: {
children: [
@@ -364,6 +359,7 @@ export const initializeData: PlaitElement[] = [
children: [
{
id: 'GtyaH',
+ type: 'mind_child',
data: {
topic: {
children: [
@@ -376,6 +372,7 @@ export const initializeData: PlaitElement[] = [
children: [
{
id: 'JsPEN',
+ type: 'mind_child',
data: {
topic: {
children: [
@@ -386,19 +383,14 @@ export const initializeData: PlaitElement[] = [
},
},
children: [],
- width: 14,
- height: 20,
},
],
- width: 14,
- height: 20,
},
],
- width: 42,
- height: 20,
},
{
id: 'aCpyY',
+ type: 'mind_child',
data: {
topic: {
children: [
@@ -441,12 +433,8 @@ export const initializeData: PlaitElement[] = [
height: 20,
},
],
- width: 42,
- height: 20,
},
],
- width: 72,
- height: 25,
isRoot: true,
points: [[248.24308817248368, 470.83369157012714]],
},
diff --git a/package-lock.json b/package-lock.json
index 1403632..7b4834d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,14 +10,14 @@
"license": "MIT",
"dependencies": {
"@floating-ui/react": "^0.26.24",
- "@plait-board/markdown-to-drawnix": "^0.0.6",
+ "@plait-board/markdown-to-drawnix": "^0.0.7",
"@plait-board/mermaid-to-drawnix": "^0.0.7",
- "@plait/common": "^0.84.0",
- "@plait/core": "^0.84.0",
- "@plait/draw": "^0.84.0",
- "@plait/layouts": "^0.84.0",
- "@plait/mind": "^0.84.0",
- "@plait/text-plugins": "^0.84.0",
+ "@plait/common": "^0.85.0",
+ "@plait/core": "^0.85.0",
+ "@plait/draw": "^0.85.0",
+ "@plait/layouts": "^0.85.0",
+ "@plait/mind": "^0.85.0",
+ "@plait/text-plugins": "^0.85.0",
"ahooks": "^3.8.0",
"browser-fs-access": "^0.35.0",
"classnames": "^2.5.1",
@@ -4831,9 +4831,9 @@
}
},
"node_modules/@plait-board/markdown-to-drawnix": {
- "version": "0.0.6",
- "resolved": "https://registry.npmjs.org/@plait-board/markdown-to-drawnix/-/markdown-to-drawnix-0.0.6.tgz",
- "integrity": "sha512-X1ddiIza0KDOU8BAwPDCuTucE4UhEiD7ASGtQTq2ZY/H73fkyw5mo5EWr9++PqdYFmBLlio8IoRbZj7jH2BbZg==",
+ "version": "0.0.7",
+ "resolved": "https://registry.npmjs.org/@plait-board/markdown-to-drawnix/-/markdown-to-drawnix-0.0.7.tgz",
+ "integrity": "sha512-Q7LMEUYNRU3wnvTHIelo8oDFwkRL7JJ6JDpIQyNV492BNMSKrGrokdx6CIKmMM/kyZ3bBWB59Rn9mVcfPimluA==",
"dependencies": {
"remark-parse": "^11.0.0",
"unified": "^11.0.5"
@@ -4848,17 +4848,17 @@
}
},
"node_modules/@plait/common": {
- "version": "0.84.0",
- "resolved": "https://registry.npmjs.org/@plait/common/-/common-0.84.0.tgz",
- "integrity": "sha512-qXYzYPeodro87ycjcF8naUS9t5EHOuJAbSUjxxSwQZmSeFMiBiUYy/Jw1x26fpUjhNNM0riDvqA4/TJ/3NePYw==",
+ "version": "0.85.0",
+ "resolved": "https://registry.npmjs.org/@plait/common/-/common-0.85.0.tgz",
+ "integrity": "sha512-KBc7ZqEtHQWX28oxV6Phy59i58Xlj5w7qXXYXO40fFRR2wC2VG8zZ8EXnMXOBUHMiuGearxEoR/lyQvKZnMGDA==",
"dependencies": {
"tslib": "^2.3.0"
}
},
"node_modules/@plait/core": {
- "version": "0.84.0",
- "resolved": "https://registry.npmjs.org/@plait/core/-/core-0.84.0.tgz",
- "integrity": "sha512-sh9dRQZdrfn5lTxdhQ5IG/aD3tuiaLCVPcRc5GYugjjXcArpVH4sCI/yscvb1Tzo2XYaRB6QLdS7Ib3CtaKREQ==",
+ "version": "0.85.0",
+ "resolved": "https://registry.npmjs.org/@plait/core/-/core-0.85.0.tgz",
+ "integrity": "sha512-WJLlA65Mp126x21ic1SAINlqs1lYt6h3/ZiKKZUKpV/kFerRtInqz9qPmoUXe/+WvBwnRl2yBA2JZwfj/C/zEg==",
"dependencies": {
"points-on-curve": "^1.0.0",
"roughjs": "^4.5.2",
@@ -4871,33 +4871,33 @@
}
},
"node_modules/@plait/draw": {
- "version": "0.84.0",
- "resolved": "https://registry.npmjs.org/@plait/draw/-/draw-0.84.0.tgz",
- "integrity": "sha512-EUn3nePuiTbMCp8hpUO3draOGfNGjtfNWH+e9tPPLRmACIpg7SK1AZQn2RFP1YbS8G9kdbEOonhVIM7AZnxc+A==",
+ "version": "0.85.0",
+ "resolved": "https://registry.npmjs.org/@plait/draw/-/draw-0.85.0.tgz",
+ "integrity": "sha512-EdcN3KUR7w/IYTkh0lNNDfo+BETRxiWspIey3MNXUtrWEeqdOIjbHXu/d28sPd+Dv6D4DeD5e5AU2W9rlOYeBQ==",
"dependencies": {
"tslib": "^2.3.0"
}
},
"node_modules/@plait/layouts": {
- "version": "0.84.0",
- "resolved": "https://registry.npmjs.org/@plait/layouts/-/layouts-0.84.0.tgz",
- "integrity": "sha512-2w+vjvYdpCMQ1A+6+Izt/aj++St8KVqruNB6uXFqgDrjj6KE05EXVuHXAfDN3mKyatQWpzgos8oHy54gagy8rw==",
+ "version": "0.85.0",
+ "resolved": "https://registry.npmjs.org/@plait/layouts/-/layouts-0.85.0.tgz",
+ "integrity": "sha512-HRk5lt4YxN9kVMoKtmajxZrg3D0CctKovMXkmPSv85Fs46Sl3IPaP4OpBsA+pwa+ywfNqXtDeHmaOXu0JdUhWA==",
"dependencies": {
"tslib": "^2.3.0"
}
},
"node_modules/@plait/mind": {
- "version": "0.84.0",
- "resolved": "https://registry.npmjs.org/@plait/mind/-/mind-0.84.0.tgz",
- "integrity": "sha512-NCW4r7pSq+6q4yYNNJt45Oa+YM1UN8Wvf8OpFjkVFE6PuHu265+VMKduBujerUHZQ3dJ0XxxDv+04i0oJPPwDQ==",
+ "version": "0.85.0",
+ "resolved": "https://registry.npmjs.org/@plait/mind/-/mind-0.85.0.tgz",
+ "integrity": "sha512-9CEu7jVhCYO84/dwAX9dAungeAekPFPnQPBtaLBniJaIzJc3zNYe8giifU9VdMiUVdAdG+xJO+Z9npipbAmqww==",
"dependencies": {
"tslib": "^2.3.0"
}
},
"node_modules/@plait/text-plugins": {
- "version": "0.84.0",
- "resolved": "https://registry.npmjs.org/@plait/text-plugins/-/text-plugins-0.84.0.tgz",
- "integrity": "sha512-uly51Px71jQYjFagmsqRTaeEDUNinL+iI7lflmTzn48WGx82TUh5Iw7Q0SD5/yY2Fn0wHEkp7/yElKwp4sN/hw==",
+ "version": "0.85.0",
+ "resolved": "https://registry.npmjs.org/@plait/text-plugins/-/text-plugins-0.85.0.tgz",
+ "integrity": "sha512-rejslVBwDJmZMtQd+/0gcnNJBdKiIYLut9tv9i69TOfB/ejAa/WN3JRxIcLsPH1BJksDaUTXId/dC/sXaMSrnQ==",
"dependencies": {
"tslib": "^2.3.0"
}
diff --git a/package.json b/package.json
index 77e9ad9..a3a3a31 100644
--- a/package.json
+++ b/package.json
@@ -13,14 +13,14 @@
"private": true,
"dependencies": {
"@floating-ui/react": "^0.26.24",
- "@plait-board/markdown-to-drawnix": "^0.0.6",
+ "@plait-board/markdown-to-drawnix": "^0.0.7",
"@plait-board/mermaid-to-drawnix": "^0.0.7",
- "@plait/common": "^0.84.0",
- "@plait/core": "^0.84.0",
- "@plait/draw": "^0.84.0",
- "@plait/layouts": "^0.84.0",
- "@plait/mind": "^0.84.0",
- "@plait/text-plugins": "^0.84.0",
+ "@plait/common": "^0.85.0",
+ "@plait/core": "^0.85.0",
+ "@plait/draw": "^0.85.0",
+ "@plait/layouts": "^0.85.0",
+ "@plait/mind": "^0.85.0",
+ "@plait/text-plugins": "^0.85.0",
"ahooks": "^3.8.0",
"browser-fs-access": "^0.35.0",
"classnames": "^2.5.1",
diff --git a/packages/drawnix/vite.config.ts b/packages/drawnix/vite.config.ts
index dc66252..25401a9 100644
--- a/packages/drawnix/vite.config.ts
+++ b/packages/drawnix/vite.config.ts
@@ -43,7 +43,7 @@ export default defineConfig({
},
rollupOptions: {
// External packages that should not be bundled into your library.
- external: ['react', 'react-dom', 'react/jsx-runtime', '@plait-board/react-board', '@plait-board/mermaid-to-drawnix', 'classnames', 'open-color', 'mobile-detect', '@floating-ui/react', '@plait/core', '@plait/common', '@plait/draw', '@plait/mind', '@plait/mind', 'roughjs/bin/core', '@plait/text-plugins', 'lodash'],
+ external: ['react', 'react-dom', 'react/jsx-runtime', '@plait-board/react-board', '@plait-board/mermaid-to-drawnix', '@plait-board/markdown-to-drawnix', 'classnames', 'open-color', 'mobile-detect', '@floating-ui/react', '@plait/core', '@plait/common', '@plait/draw', '@plait/mind', '@plait/mind', 'roughjs/bin/core', '@plait/text-plugins', 'lodash'],
},
},
});