@adminforth/markdown 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ set -x
5
5
  COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | cut -c1-8)
6
6
 
7
7
 
8
- if [ "$CI_STEP_STATUS" = "success" ]; then
8
+ if [ "$CI_PREV_PIPELINE_STATUS" = "success" ]; then
9
9
  MESSAGE="Did a build without issues on \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\`. Commit: _${CI_COMMIT_MESSAGE}_ (<$CI_COMMIT_URL|$COMMIT_SHORT_SHA>)"
10
10
 
11
11
  curl -s -X POST -H "Content-Type: application/json" -d '{
@@ -15,8 +15,6 @@ steps:
15
15
  from_secret: VAULT_TOKEN
16
16
  commands:
17
17
  - infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > /woodpecker/deploy.vault.env
18
- secrets:
19
- - VAULT_TOKEN
20
18
 
21
19
  release:
22
20
  image: node:20
@@ -36,7 +34,6 @@ steps:
36
34
  when:
37
35
  - event: push
38
36
  status: [failure, success]
39
- - event: push
40
37
  image: curlimages/curl
41
38
  commands:
42
39
  - export $(cat /woodpecker/deploy.vault.env | xargs)
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Devforth.io
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # AdminForth Markdown Plugin
2
+
3
+ <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /> <img src="https://woodpecker.devforth.io/api/badges/3848/status.svg" alt="Build Status" /> <a href="https://www.npmjs.com/package/@adminforth/markdown"> <img src="https://img.shields.io/npm/dt/@adminforth/markdown" alt="npm downloads" /> </a> <a href="https://www.npmjs.com/package/@adminforth/markdown"> <img src="https://img.shields.io/npm/v/@adminforth/markdown" alt="npm version" /> </a>
4
+
5
+ Enables powerful Markdown editing capabilities in AdminForth applications using <a href="https://milkdown.dev">Milkdown</a>.
6
+
7
+ ## For usage, see [AdminForth Markdown Documentation](https://adminforth.dev/docs/tutorial/Plugins/markdown/)
package/build.log CHANGED
@@ -10,5 +10,5 @@ custom/package-lock.json
10
10
  custom/package.json
11
11
  custom/tsconfig.json
12
12
 
13
- sent 172,084 bytes received 115 bytes 344,398.00 bytes/sec
14
- total size is 171,624 speedup is 1.00
13
+ sent 169,311 bytes received 115 bytes 338,852.00 bytes/sec
14
+ total size is 168,857 speedup is 1.00
@@ -143,7 +143,7 @@ async function uploadFileToS3(file: File) {
143
143
  const originalExtension = file.name.split('.').pop();
144
144
 
145
145
  const { uploadUrl, tagline, previewUrl, s3Path, error } = await callAdminForthApi({
146
- path: `/plugin/${props.meta.uploadPluginInstanceId}/get_s3_upload_url`,
146
+ path: `/plugin/${props.meta.uploadPluginInstanceId}/get_file_upload_url`,
147
147
  method: 'POST',
148
148
  body: {
149
149
  originalFilename,
@@ -14,9 +14,6 @@
14
14
  "@milkdown/vue": "^7.7.0",
15
15
  "dompurify": "^3.2.4",
16
16
  "marked": "^15.0.7"
17
- },
18
- "devDependencies": {
19
- "vue-suggestion-input": "^0.0.18"
20
17
  }
21
18
  },
22
19
  "node_modules/@atomico/hooks": {
@@ -406,6 +403,7 @@
406
403
  "version": "7.24.8",
407
404
  "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz",
408
405
  "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==",
406
+ "peer": true,
409
407
  "engines": {
410
408
  "node": ">=6.9.0"
411
409
  }
@@ -414,6 +412,7 @@
414
412
  "version": "7.24.7",
415
413
  "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz",
416
414
  "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==",
415
+ "peer": true,
417
416
  "engines": {
418
417
  "node": ">=6.9.0"
419
418
  }
@@ -422,6 +421,7 @@
422
421
  "version": "7.25.3",
423
422
  "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.3.tgz",
424
423
  "integrity": "sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==",
424
+ "peer": true,
425
425
  "dependencies": {
426
426
  "@babel/types": "^7.25.2"
427
427
  },
@@ -436,6 +436,7 @@
436
436
  "version": "7.25.2",
437
437
  "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.2.tgz",
438
438
  "integrity": "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==",
439
+ "peer": true,
439
440
  "dependencies": {
440
441
  "@babel/helper-string-parser": "^7.24.8",
441
442
  "@babel/helper-validator-identifier": "^7.24.7",
@@ -868,7 +869,8 @@
868
869
  "node_modules/@jridgewell/sourcemap-codec": {
869
870
  "version": "1.5.0",
870
871
  "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
871
- "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="
872
+ "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
873
+ "peer": true
872
874
  },
873
875
  "node_modules/@lezer/common": {
874
876
  "version": "1.2.3",
@@ -2353,6 +2355,7 @@
2353
2355
  "version": "3.4.35",
2354
2356
  "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.35.tgz",
2355
2357
  "integrity": "sha512-gKp0zGoLnMYtw4uS/SJRRO7rsVggLjvot3mcctlMXunYNsX+aRJDqqw/lV5/gHK91nvaAAlWFgdVl020AW1Prg==",
2358
+ "peer": true,
2356
2359
  "dependencies": {
2357
2360
  "@babel/parser": "^7.24.7",
2358
2361
  "@vue/shared": "3.4.35",
@@ -2365,6 +2368,7 @@
2365
2368
  "version": "3.4.35",
2366
2369
  "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.35.tgz",
2367
2370
  "integrity": "sha512-pWIZRL76/oE/VMhdv/ovZfmuooEni6JPG1BFe7oLk5DZRo/ImydXijoZl/4kh2406boRQ7lxTYzbZEEXEhj9NQ==",
2371
+ "peer": true,
2368
2372
  "dependencies": {
2369
2373
  "@vue/compiler-core": "3.4.35",
2370
2374
  "@vue/shared": "3.4.35"
@@ -2374,6 +2378,7 @@
2374
2378
  "version": "3.4.35",
2375
2379
  "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.35.tgz",
2376
2380
  "integrity": "sha512-xacnRS/h/FCsjsMfxBkzjoNxyxEyKyZfBch/P4vkLRvYJwe5ChXmZZrj8Dsed/752H2Q3JE8kYu9Uyha9J6PgA==",
2381
+ "peer": true,
2377
2382
  "dependencies": {
2378
2383
  "@babel/parser": "^7.24.7",
2379
2384
  "@vue/compiler-core": "3.4.35",
@@ -2390,6 +2395,7 @@
2390
2395
  "version": "3.4.35",
2391
2396
  "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.35.tgz",
2392
2397
  "integrity": "sha512-7iynB+0KB1AAJKk/biENTV5cRGHRdbdaD7Mx3nWcm1W8bVD6QmnH3B4AHhQQ1qZHhqFwzEzMwiytXm3PX1e60A==",
2398
+ "peer": true,
2393
2399
  "dependencies": {
2394
2400
  "@vue/compiler-dom": "3.4.35",
2395
2401
  "@vue/shared": "3.4.35"
@@ -2399,6 +2405,7 @@
2399
2405
  "version": "3.4.35",
2400
2406
  "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.35.tgz",
2401
2407
  "integrity": "sha512-Ggtz7ZZHakriKioveJtPlStYardwQH6VCs9V13/4qjHSQb/teE30LVJNrbBVs4+aoYGtTQKJbTe4CWGxVZrvEw==",
2408
+ "peer": true,
2402
2409
  "dependencies": {
2403
2410
  "@vue/shared": "3.4.35"
2404
2411
  }
@@ -2407,6 +2414,7 @@
2407
2414
  "version": "3.4.35",
2408
2415
  "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.35.tgz",
2409
2416
  "integrity": "sha512-D+BAjFoWwT5wtITpSxwqfWZiBClhBbR+bm0VQlWYFOadUUXFo+5wbe9ErXhLvwguPiLZdEF13QAWi2vP3ZD5tA==",
2417
+ "peer": true,
2410
2418
  "dependencies": {
2411
2419
  "@vue/reactivity": "3.4.35",
2412
2420
  "@vue/shared": "3.4.35"
@@ -2416,6 +2424,7 @@
2416
2424
  "version": "3.4.35",
2417
2425
  "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.35.tgz",
2418
2426
  "integrity": "sha512-yGOlbos+MVhlS5NWBF2HDNgblG8e2MY3+GigHEyR/dREAluvI5tuUUgie3/9XeqhPE4LF0i2wjlduh5thnfOqw==",
2427
+ "peer": true,
2419
2428
  "dependencies": {
2420
2429
  "@vue/reactivity": "3.4.35",
2421
2430
  "@vue/runtime-core": "3.4.35",
@@ -2427,6 +2436,7 @@
2427
2436
  "version": "3.4.35",
2428
2437
  "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.35.tgz",
2429
2438
  "integrity": "sha512-iZ0e/u9mRE4T8tNhlo0tbA+gzVkgv8r5BX6s1kRbOZqfpq14qoIvCZ5gIgraOmYkMYrSEZgkkojFPr+Nyq/Mnw==",
2439
+ "peer": true,
2430
2440
  "dependencies": {
2431
2441
  "@vue/compiler-ssr": "3.4.35",
2432
2442
  "@vue/shared": "3.4.35"
@@ -2438,7 +2448,8 @@
2438
2448
  "node_modules/@vue/shared": {
2439
2449
  "version": "3.4.35",
2440
2450
  "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.35.tgz",
2441
- "integrity": "sha512-hvuhBYYDe+b1G8KHxsQ0diDqDMA8D9laxWZhNAjE83VZb5UDaXl9Xnz7cGdDSyiHM90qqI/CyGMcpBpiDy6VVQ=="
2451
+ "integrity": "sha512-hvuhBYYDe+b1G8KHxsQ0diDqDMA8D9laxWZhNAjE83VZb5UDaXl9Xnz7cGdDSyiHM90qqI/CyGMcpBpiDy6VVQ==",
2452
+ "peer": true
2442
2453
  },
2443
2454
  "node_modules/atomico": {
2444
2455
  "version": "1.79.2",
@@ -2518,7 +2529,8 @@
2518
2529
  "node_modules/csstype": {
2519
2530
  "version": "3.1.3",
2520
2531
  "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
2521
- "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
2532
+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
2533
+ "peer": true
2522
2534
  },
2523
2535
  "node_modules/debug": {
2524
2536
  "version": "4.4.0",
@@ -2592,6 +2604,7 @@
2592
2604
  "version": "4.5.0",
2593
2605
  "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
2594
2606
  "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
2607
+ "peer": true,
2595
2608
  "engines": {
2596
2609
  "node": ">=0.12"
2597
2610
  },
@@ -2614,13 +2627,8 @@
2614
2627
  "node_modules/estree-walker": {
2615
2628
  "version": "2.0.2",
2616
2629
  "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
2617
- "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
2618
- },
2619
- "node_modules/eventemitter3": {
2620
- "version": "5.0.1",
2621
- "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",
2622
- "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",
2623
- "dev": true
2630
+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
2631
+ "peer": true
2624
2632
  },
2625
2633
  "node_modules/extend": {
2626
2634
  "version": "3.0.2",
@@ -2628,12 +2636,6 @@
2628
2636
  "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
2629
2637
  "license": "MIT"
2630
2638
  },
2631
- "node_modules/fast-diff": {
2632
- "version": "1.3.0",
2633
- "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz",
2634
- "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==",
2635
- "dev": true
2636
- },
2637
2639
  "node_modules/is-plain-obj": {
2638
2640
  "version": "4.1.0",
2639
2641
  "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
@@ -2662,30 +2664,12 @@
2662
2664
  "katex": "cli.js"
2663
2665
  }
2664
2666
  },
2665
- "node_modules/lodash-es": {
2666
- "version": "4.17.21",
2667
- "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
2668
- "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==",
2669
- "dev": true
2670
- },
2671
- "node_modules/lodash.clonedeep": {
2672
- "version": "4.5.0",
2673
- "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
2674
- "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==",
2675
- "dev": true
2676
- },
2677
2667
  "node_modules/lodash.debounce": {
2678
2668
  "version": "4.0.8",
2679
2669
  "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
2680
2670
  "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==",
2681
2671
  "license": "MIT"
2682
2672
  },
2683
- "node_modules/lodash.isequal": {
2684
- "version": "4.5.0",
2685
- "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
2686
- "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==",
2687
- "dev": true
2688
- },
2689
2673
  "node_modules/lodash.throttle": {
2690
2674
  "version": "4.1.1",
2691
2675
  "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
@@ -2706,6 +2690,7 @@
2706
2690
  "version": "0.30.11",
2707
2691
  "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz",
2708
2692
  "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==",
2693
+ "peer": true,
2709
2694
  "dependencies": {
2710
2695
  "@jridgewell/sourcemap-codec": "^1.5.0"
2711
2696
  }
@@ -3553,6 +3538,7 @@
3553
3538
  "url": "https://github.com/sponsors/ai"
3554
3539
  }
3555
3540
  ],
3541
+ "peer": true,
3556
3542
  "bin": {
3557
3543
  "nanoid": "bin/nanoid.cjs"
3558
3544
  },
@@ -3566,16 +3552,11 @@
3566
3552
  "integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==",
3567
3553
  "license": "MIT"
3568
3554
  },
3569
- "node_modules/parchment": {
3570
- "version": "3.0.0",
3571
- "resolved": "https://registry.npmjs.org/parchment/-/parchment-3.0.0.tgz",
3572
- "integrity": "sha512-HUrJFQ/StvgmXRcQ1ftY6VEZUq3jA2t9ncFN4F84J/vN0/FPpQF+8FKXb3l6fLces6q0uOHj6NJn+2xvZnxO6A==",
3573
- "dev": true
3574
- },
3575
3555
  "node_modules/picocolors": {
3576
3556
  "version": "1.0.1",
3577
3557
  "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz",
3578
- "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew=="
3558
+ "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==",
3559
+ "peer": true
3579
3560
  },
3580
3561
  "node_modules/postcss": {
3581
3562
  "version": "8.4.40",
@@ -3595,6 +3576,7 @@
3595
3576
  "url": "https://github.com/sponsors/ai"
3596
3577
  }
3597
3578
  ],
3579
+ "peer": true,
3598
3580
  "dependencies": {
3599
3581
  "nanoid": "^3.3.7",
3600
3582
  "picocolors": "^1.0.1",
@@ -3756,35 +3738,6 @@
3756
3738
  "prosemirror-transform": "^1.1.0"
3757
3739
  }
3758
3740
  },
3759
- "node_modules/quill": {
3760
- "version": "2.0.2",
3761
- "resolved": "https://registry.npmjs.org/quill/-/quill-2.0.2.tgz",
3762
- "integrity": "sha512-QfazNrhMakEdRG57IoYFwffUIr04LWJxbS/ZkidRFXYCQt63c1gK6Z7IHUXMx/Vh25WgPBU42oBaNzQ0K1R/xw==",
3763
- "dev": true,
3764
- "dependencies": {
3765
- "eventemitter3": "^5.0.1",
3766
- "lodash-es": "^4.17.21",
3767
- "parchment": "^3.0.0",
3768
- "quill-delta": "^5.1.0"
3769
- },
3770
- "engines": {
3771
- "npm": ">=8.2.3"
3772
- }
3773
- },
3774
- "node_modules/quill-delta": {
3775
- "version": "5.1.0",
3776
- "resolved": "https://registry.npmjs.org/quill-delta/-/quill-delta-5.1.0.tgz",
3777
- "integrity": "sha512-X74oCeRI4/p0ucjb5Ma8adTXd9Scumz367kkMK5V/IatcX6A0vlgLgKbzXWy5nZmCGeNJm2oQX0d2Eqj+ZIlCA==",
3778
- "dev": true,
3779
- "dependencies": {
3780
- "fast-diff": "^1.3.0",
3781
- "lodash.clonedeep": "^4.5.0",
3782
- "lodash.isequal": "^4.5.0"
3783
- },
3784
- "engines": {
3785
- "node": ">= 12.0.0"
3786
- }
3787
- },
3788
3741
  "node_modules/remark": {
3789
3742
  "version": "15.0.1",
3790
3743
  "resolved": "https://registry.npmjs.org/remark/-/remark-15.0.1.tgz",
@@ -3891,6 +3844,7 @@
3891
3844
  "version": "1.2.0",
3892
3845
  "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",
3893
3846
  "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==",
3847
+ "peer": true,
3894
3848
  "engines": {
3895
3849
  "node": ">=0.10.0"
3896
3850
  }
@@ -3914,6 +3868,7 @@
3914
3868
  "version": "2.0.0",
3915
3869
  "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
3916
3870
  "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",
3871
+ "peer": true,
3917
3872
  "engines": {
3918
3873
  "node": ">=4"
3919
3874
  }
@@ -4054,6 +4009,7 @@
4054
4009
  "version": "3.4.35",
4055
4010
  "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.35.tgz",
4056
4011
  "integrity": "sha512-+fl/GLmI4GPileHftVlCdB7fUL4aziPcqTudpTGXCT8s+iZWuOCeNEB5haX6Uz2IpRrbEXOgIFbe+XciCuGbNQ==",
4012
+ "peer": true,
4057
4013
  "dependencies": {
4058
4014
  "@vue/compiler-dom": "3.4.35",
4059
4015
  "@vue/compiler-sfc": "3.4.35",
@@ -4070,16 +4026,6 @@
4070
4026
  }
4071
4027
  }
4072
4028
  },
4073
- "node_modules/vue-suggestion-input": {
4074
- "version": "0.0.18",
4075
- "resolved": "https://registry.npmjs.org/vue-suggestion-input/-/vue-suggestion-input-0.0.18.tgz",
4076
- "integrity": "sha512-jYyImQFcOvY9l2WJvSJ9mDCnQLSNzrGtCsbACL77p3jePWfbvPNCRwFEzEELCoBVYqYFmRtON+24Qhrb2Da7kw==",
4077
- "dev": true,
4078
- "dependencies": {
4079
- "quill": "^2.0.2",
4080
- "vue": "^3.4.31"
4081
- }
4082
- },
4083
4029
  "node_modules/w3c-keyname": {
4084
4030
  "version": "2.2.8",
4085
4031
  "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",
@@ -9,9 +9,6 @@
9
9
  "keywords": [],
10
10
  "author": "",
11
11
  "license": "ISC",
12
- "devDependencies": {
13
- "vue-suggestion-input": "^0.0.18"
14
- },
15
12
  "dependencies": {
16
13
  "@milkdown/kit": "^7.8.0",
17
14
  "@milkdown/theme-nord": "^7.8.0",
@@ -143,7 +143,7 @@ async function uploadFileToS3(file: File) {
143
143
  const originalExtension = file.name.split('.').pop();
144
144
 
145
145
  const { uploadUrl, tagline, previewUrl, s3Path, error } = await callAdminForthApi({
146
- path: `/plugin/${props.meta.uploadPluginInstanceId}/get_s3_upload_url`,
146
+ path: `/plugin/${props.meta.uploadPluginInstanceId}/get_file_upload_url`,
147
147
  method: 'POST',
148
148
  body: {
149
149
  originalFilename,
@@ -14,9 +14,6 @@
14
14
  "@milkdown/vue": "^7.7.0",
15
15
  "dompurify": "^3.2.4",
16
16
  "marked": "^15.0.7"
17
- },
18
- "devDependencies": {
19
- "vue-suggestion-input": "^0.0.18"
20
17
  }
21
18
  },
22
19
  "node_modules/@atomico/hooks": {
@@ -406,6 +403,7 @@
406
403
  "version": "7.24.8",
407
404
  "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz",
408
405
  "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==",
406
+ "peer": true,
409
407
  "engines": {
410
408
  "node": ">=6.9.0"
411
409
  }
@@ -414,6 +412,7 @@
414
412
  "version": "7.24.7",
415
413
  "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz",
416
414
  "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==",
415
+ "peer": true,
417
416
  "engines": {
418
417
  "node": ">=6.9.0"
419
418
  }
@@ -422,6 +421,7 @@
422
421
  "version": "7.25.3",
423
422
  "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.3.tgz",
424
423
  "integrity": "sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==",
424
+ "peer": true,
425
425
  "dependencies": {
426
426
  "@babel/types": "^7.25.2"
427
427
  },
@@ -436,6 +436,7 @@
436
436
  "version": "7.25.2",
437
437
  "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.2.tgz",
438
438
  "integrity": "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==",
439
+ "peer": true,
439
440
  "dependencies": {
440
441
  "@babel/helper-string-parser": "^7.24.8",
441
442
  "@babel/helper-validator-identifier": "^7.24.7",
@@ -868,7 +869,8 @@
868
869
  "node_modules/@jridgewell/sourcemap-codec": {
869
870
  "version": "1.5.0",
870
871
  "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
871
- "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="
872
+ "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
873
+ "peer": true
872
874
  },
873
875
  "node_modules/@lezer/common": {
874
876
  "version": "1.2.3",
@@ -2353,6 +2355,7 @@
2353
2355
  "version": "3.4.35",
2354
2356
  "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.35.tgz",
2355
2357
  "integrity": "sha512-gKp0zGoLnMYtw4uS/SJRRO7rsVggLjvot3mcctlMXunYNsX+aRJDqqw/lV5/gHK91nvaAAlWFgdVl020AW1Prg==",
2358
+ "peer": true,
2356
2359
  "dependencies": {
2357
2360
  "@babel/parser": "^7.24.7",
2358
2361
  "@vue/shared": "3.4.35",
@@ -2365,6 +2368,7 @@
2365
2368
  "version": "3.4.35",
2366
2369
  "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.35.tgz",
2367
2370
  "integrity": "sha512-pWIZRL76/oE/VMhdv/ovZfmuooEni6JPG1BFe7oLk5DZRo/ImydXijoZl/4kh2406boRQ7lxTYzbZEEXEhj9NQ==",
2371
+ "peer": true,
2368
2372
  "dependencies": {
2369
2373
  "@vue/compiler-core": "3.4.35",
2370
2374
  "@vue/shared": "3.4.35"
@@ -2374,6 +2378,7 @@
2374
2378
  "version": "3.4.35",
2375
2379
  "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.35.tgz",
2376
2380
  "integrity": "sha512-xacnRS/h/FCsjsMfxBkzjoNxyxEyKyZfBch/P4vkLRvYJwe5ChXmZZrj8Dsed/752H2Q3JE8kYu9Uyha9J6PgA==",
2381
+ "peer": true,
2377
2382
  "dependencies": {
2378
2383
  "@babel/parser": "^7.24.7",
2379
2384
  "@vue/compiler-core": "3.4.35",
@@ -2390,6 +2395,7 @@
2390
2395
  "version": "3.4.35",
2391
2396
  "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.35.tgz",
2392
2397
  "integrity": "sha512-7iynB+0KB1AAJKk/biENTV5cRGHRdbdaD7Mx3nWcm1W8bVD6QmnH3B4AHhQQ1qZHhqFwzEzMwiytXm3PX1e60A==",
2398
+ "peer": true,
2393
2399
  "dependencies": {
2394
2400
  "@vue/compiler-dom": "3.4.35",
2395
2401
  "@vue/shared": "3.4.35"
@@ -2399,6 +2405,7 @@
2399
2405
  "version": "3.4.35",
2400
2406
  "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.35.tgz",
2401
2407
  "integrity": "sha512-Ggtz7ZZHakriKioveJtPlStYardwQH6VCs9V13/4qjHSQb/teE30LVJNrbBVs4+aoYGtTQKJbTe4CWGxVZrvEw==",
2408
+ "peer": true,
2402
2409
  "dependencies": {
2403
2410
  "@vue/shared": "3.4.35"
2404
2411
  }
@@ -2407,6 +2414,7 @@
2407
2414
  "version": "3.4.35",
2408
2415
  "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.35.tgz",
2409
2416
  "integrity": "sha512-D+BAjFoWwT5wtITpSxwqfWZiBClhBbR+bm0VQlWYFOadUUXFo+5wbe9ErXhLvwguPiLZdEF13QAWi2vP3ZD5tA==",
2417
+ "peer": true,
2410
2418
  "dependencies": {
2411
2419
  "@vue/reactivity": "3.4.35",
2412
2420
  "@vue/shared": "3.4.35"
@@ -2416,6 +2424,7 @@
2416
2424
  "version": "3.4.35",
2417
2425
  "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.35.tgz",
2418
2426
  "integrity": "sha512-yGOlbos+MVhlS5NWBF2HDNgblG8e2MY3+GigHEyR/dREAluvI5tuUUgie3/9XeqhPE4LF0i2wjlduh5thnfOqw==",
2427
+ "peer": true,
2419
2428
  "dependencies": {
2420
2429
  "@vue/reactivity": "3.4.35",
2421
2430
  "@vue/runtime-core": "3.4.35",
@@ -2427,6 +2436,7 @@
2427
2436
  "version": "3.4.35",
2428
2437
  "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.35.tgz",
2429
2438
  "integrity": "sha512-iZ0e/u9mRE4T8tNhlo0tbA+gzVkgv8r5BX6s1kRbOZqfpq14qoIvCZ5gIgraOmYkMYrSEZgkkojFPr+Nyq/Mnw==",
2439
+ "peer": true,
2430
2440
  "dependencies": {
2431
2441
  "@vue/compiler-ssr": "3.4.35",
2432
2442
  "@vue/shared": "3.4.35"
@@ -2438,7 +2448,8 @@
2438
2448
  "node_modules/@vue/shared": {
2439
2449
  "version": "3.4.35",
2440
2450
  "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.35.tgz",
2441
- "integrity": "sha512-hvuhBYYDe+b1G8KHxsQ0diDqDMA8D9laxWZhNAjE83VZb5UDaXl9Xnz7cGdDSyiHM90qqI/CyGMcpBpiDy6VVQ=="
2451
+ "integrity": "sha512-hvuhBYYDe+b1G8KHxsQ0diDqDMA8D9laxWZhNAjE83VZb5UDaXl9Xnz7cGdDSyiHM90qqI/CyGMcpBpiDy6VVQ==",
2452
+ "peer": true
2442
2453
  },
2443
2454
  "node_modules/atomico": {
2444
2455
  "version": "1.79.2",
@@ -2518,7 +2529,8 @@
2518
2529
  "node_modules/csstype": {
2519
2530
  "version": "3.1.3",
2520
2531
  "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
2521
- "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
2532
+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
2533
+ "peer": true
2522
2534
  },
2523
2535
  "node_modules/debug": {
2524
2536
  "version": "4.4.0",
@@ -2592,6 +2604,7 @@
2592
2604
  "version": "4.5.0",
2593
2605
  "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
2594
2606
  "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
2607
+ "peer": true,
2595
2608
  "engines": {
2596
2609
  "node": ">=0.12"
2597
2610
  },
@@ -2614,13 +2627,8 @@
2614
2627
  "node_modules/estree-walker": {
2615
2628
  "version": "2.0.2",
2616
2629
  "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
2617
- "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
2618
- },
2619
- "node_modules/eventemitter3": {
2620
- "version": "5.0.1",
2621
- "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",
2622
- "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",
2623
- "dev": true
2630
+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
2631
+ "peer": true
2624
2632
  },
2625
2633
  "node_modules/extend": {
2626
2634
  "version": "3.0.2",
@@ -2628,12 +2636,6 @@
2628
2636
  "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
2629
2637
  "license": "MIT"
2630
2638
  },
2631
- "node_modules/fast-diff": {
2632
- "version": "1.3.0",
2633
- "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz",
2634
- "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==",
2635
- "dev": true
2636
- },
2637
2639
  "node_modules/is-plain-obj": {
2638
2640
  "version": "4.1.0",
2639
2641
  "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
@@ -2662,30 +2664,12 @@
2662
2664
  "katex": "cli.js"
2663
2665
  }
2664
2666
  },
2665
- "node_modules/lodash-es": {
2666
- "version": "4.17.21",
2667
- "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
2668
- "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==",
2669
- "dev": true
2670
- },
2671
- "node_modules/lodash.clonedeep": {
2672
- "version": "4.5.0",
2673
- "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
2674
- "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==",
2675
- "dev": true
2676
- },
2677
2667
  "node_modules/lodash.debounce": {
2678
2668
  "version": "4.0.8",
2679
2669
  "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
2680
2670
  "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==",
2681
2671
  "license": "MIT"
2682
2672
  },
2683
- "node_modules/lodash.isequal": {
2684
- "version": "4.5.0",
2685
- "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
2686
- "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==",
2687
- "dev": true
2688
- },
2689
2673
  "node_modules/lodash.throttle": {
2690
2674
  "version": "4.1.1",
2691
2675
  "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
@@ -2706,6 +2690,7 @@
2706
2690
  "version": "0.30.11",
2707
2691
  "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz",
2708
2692
  "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==",
2693
+ "peer": true,
2709
2694
  "dependencies": {
2710
2695
  "@jridgewell/sourcemap-codec": "^1.5.0"
2711
2696
  }
@@ -3553,6 +3538,7 @@
3553
3538
  "url": "https://github.com/sponsors/ai"
3554
3539
  }
3555
3540
  ],
3541
+ "peer": true,
3556
3542
  "bin": {
3557
3543
  "nanoid": "bin/nanoid.cjs"
3558
3544
  },
@@ -3566,16 +3552,11 @@
3566
3552
  "integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==",
3567
3553
  "license": "MIT"
3568
3554
  },
3569
- "node_modules/parchment": {
3570
- "version": "3.0.0",
3571
- "resolved": "https://registry.npmjs.org/parchment/-/parchment-3.0.0.tgz",
3572
- "integrity": "sha512-HUrJFQ/StvgmXRcQ1ftY6VEZUq3jA2t9ncFN4F84J/vN0/FPpQF+8FKXb3l6fLces6q0uOHj6NJn+2xvZnxO6A==",
3573
- "dev": true
3574
- },
3575
3555
  "node_modules/picocolors": {
3576
3556
  "version": "1.0.1",
3577
3557
  "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz",
3578
- "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew=="
3558
+ "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==",
3559
+ "peer": true
3579
3560
  },
3580
3561
  "node_modules/postcss": {
3581
3562
  "version": "8.4.40",
@@ -3595,6 +3576,7 @@
3595
3576
  "url": "https://github.com/sponsors/ai"
3596
3577
  }
3597
3578
  ],
3579
+ "peer": true,
3598
3580
  "dependencies": {
3599
3581
  "nanoid": "^3.3.7",
3600
3582
  "picocolors": "^1.0.1",
@@ -3756,35 +3738,6 @@
3756
3738
  "prosemirror-transform": "^1.1.0"
3757
3739
  }
3758
3740
  },
3759
- "node_modules/quill": {
3760
- "version": "2.0.2",
3761
- "resolved": "https://registry.npmjs.org/quill/-/quill-2.0.2.tgz",
3762
- "integrity": "sha512-QfazNrhMakEdRG57IoYFwffUIr04LWJxbS/ZkidRFXYCQt63c1gK6Z7IHUXMx/Vh25WgPBU42oBaNzQ0K1R/xw==",
3763
- "dev": true,
3764
- "dependencies": {
3765
- "eventemitter3": "^5.0.1",
3766
- "lodash-es": "^4.17.21",
3767
- "parchment": "^3.0.0",
3768
- "quill-delta": "^5.1.0"
3769
- },
3770
- "engines": {
3771
- "npm": ">=8.2.3"
3772
- }
3773
- },
3774
- "node_modules/quill-delta": {
3775
- "version": "5.1.0",
3776
- "resolved": "https://registry.npmjs.org/quill-delta/-/quill-delta-5.1.0.tgz",
3777
- "integrity": "sha512-X74oCeRI4/p0ucjb5Ma8adTXd9Scumz367kkMK5V/IatcX6A0vlgLgKbzXWy5nZmCGeNJm2oQX0d2Eqj+ZIlCA==",
3778
- "dev": true,
3779
- "dependencies": {
3780
- "fast-diff": "^1.3.0",
3781
- "lodash.clonedeep": "^4.5.0",
3782
- "lodash.isequal": "^4.5.0"
3783
- },
3784
- "engines": {
3785
- "node": ">= 12.0.0"
3786
- }
3787
- },
3788
3741
  "node_modules/remark": {
3789
3742
  "version": "15.0.1",
3790
3743
  "resolved": "https://registry.npmjs.org/remark/-/remark-15.0.1.tgz",
@@ -3891,6 +3844,7 @@
3891
3844
  "version": "1.2.0",
3892
3845
  "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",
3893
3846
  "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==",
3847
+ "peer": true,
3894
3848
  "engines": {
3895
3849
  "node": ">=0.10.0"
3896
3850
  }
@@ -3914,6 +3868,7 @@
3914
3868
  "version": "2.0.0",
3915
3869
  "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
3916
3870
  "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",
3871
+ "peer": true,
3917
3872
  "engines": {
3918
3873
  "node": ">=4"
3919
3874
  }
@@ -4054,6 +4009,7 @@
4054
4009
  "version": "3.4.35",
4055
4010
  "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.35.tgz",
4056
4011
  "integrity": "sha512-+fl/GLmI4GPileHftVlCdB7fUL4aziPcqTudpTGXCT8s+iZWuOCeNEB5haX6Uz2IpRrbEXOgIFbe+XciCuGbNQ==",
4012
+ "peer": true,
4057
4013
  "dependencies": {
4058
4014
  "@vue/compiler-dom": "3.4.35",
4059
4015
  "@vue/compiler-sfc": "3.4.35",
@@ -4070,16 +4026,6 @@
4070
4026
  }
4071
4027
  }
4072
4028
  },
4073
- "node_modules/vue-suggestion-input": {
4074
- "version": "0.0.18",
4075
- "resolved": "https://registry.npmjs.org/vue-suggestion-input/-/vue-suggestion-input-0.0.18.tgz",
4076
- "integrity": "sha512-jYyImQFcOvY9l2WJvSJ9mDCnQLSNzrGtCsbACL77p3jePWfbvPNCRwFEzEELCoBVYqYFmRtON+24Qhrb2Da7kw==",
4077
- "dev": true,
4078
- "dependencies": {
4079
- "quill": "^2.0.2",
4080
- "vue": "^3.4.31"
4081
- }
4082
- },
4083
4029
  "node_modules/w3c-keyname": {
4084
4030
  "version": "2.2.8",
4085
4031
  "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",
@@ -9,9 +9,6 @@
9
9
  "keywords": [],
10
10
  "author": "",
11
11
  "license": "ISC",
12
- "devDependencies": {
13
- "vue-suggestion-input": "^0.0.18"
14
- },
15
12
  "dependencies": {
16
13
  "@milkdown/kit": "^7.8.0",
17
14
  "@milkdown/theme-nord": "^7.8.0",
package/dist/index.js CHANGED
@@ -59,9 +59,11 @@ export default class MarkdownPlugin extends AdminForthPlugin {
59
59
  if (!plugin) {
60
60
  throw new Error(`${plugin} Plugin for attachment field '${this.options.attachments.attachmentFieldName}' not found in resource '${this.options.attachments.attachmentResource}', please check if Upload Plugin is installed on the field ${this.options.attachments.attachmentFieldName}`);
61
61
  }
62
- if (plugin.pluginOptions.s3ACL !== 'public-read') {
62
+ if (!plugin.pluginOptions.storageAdapter.objectCanBeAccesedPublicly()) {
63
63
  throw new Error(`Upload Plugin for attachment field '${this.options.attachments.attachmentFieldName}' in resource '${this.options.attachments.attachmentResource}'
64
- should have s3ACL set to 'public-read' (in vast majority of cases signed urls inside of HTML text is not desired behavior, so we did not implement it)`);
64
+ uses adapter which is not configured to store objects in public way, so it will produce only signed private URLs which can not be used in HTML text of blog posts.
65
+ Please configure adapter in such way that it will store objects publicly (e.g. for S3 use 'public-read' ACL).
66
+ `);
65
67
  }
66
68
  this.uploadPlugin = plugin;
67
69
  }
package/index.ts CHANGED
@@ -39,7 +39,6 @@ export default class MarkdownPlugin extends AdminForthPlugin {
39
39
  if (!column) {
40
40
  throw new Error(`Column ${fieldName} not found in resource ${resourceConfig.label}`);
41
41
  }
42
-
43
42
  if (!column.components) {
44
43
  column.components = {};
45
44
  }
@@ -62,9 +61,11 @@ export default class MarkdownPlugin extends AdminForthPlugin {
62
61
  throw new Error(`${plugin} Plugin for attachment field '${this.options.attachments!.attachmentFieldName}' not found in resource '${this.options.attachments!.attachmentResource}', please check if Upload Plugin is installed on the field ${this.options.attachments!.attachmentFieldName}`);
63
62
  }
64
63
 
65
- if (plugin.pluginOptions.s3ACL !== 'public-read') {
64
+ if (!plugin.pluginOptions.storageAdapter.objectCanBeAccesedPublicly()) {
66
65
  throw new Error(`Upload Plugin for attachment field '${this.options.attachments!.attachmentFieldName}' in resource '${this.options.attachments!.attachmentResource}'
67
- should have s3ACL set to 'public-read' (in vast majority of cases signed urls inside of HTML text is not desired behavior, so we did not implement it)`);
66
+ uses adapter which is not configured to store objects in public way, so it will produce only signed private URLs which can not be used in HTML text of blog posts.
67
+ Please configure adapter in such way that it will store objects publicly (e.g. for S3 use 'public-read' ACL).
68
+ `);
68
69
  }
69
70
  this.uploadPlugin = plugin;
70
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/markdown",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "Markdown plugin for adminforth",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",