From 0721bd52dd8dc0b9a0472476eb352362ae733ec5 Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Wed, 3 May 2023 15:11:56 +0700 Subject: [PATCH] update dependencies and minor fixes --- package.json | 10 +- pnpm-lock.yaml | 154 ++++++++++++++--------------- src/app/note/components/parser.tsx | 8 ++ 3 files changed, 90 insertions(+), 82 deletions(-) diff --git a/package.json b/package.json index 760054fc..33807cb0 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "react-dom": "^18.2.0", "react-hook-form": "^7.43.9", "react-string-replace": "^1.1.0", - "react-virtuoso": "^4.3.4", + "react-virtuoso": "^4.3.5", "react-youtube": "^10.1.0", "swr": "^2.1.5", "tailwind-merge": "^1.12.0", @@ -45,8 +45,8 @@ "@types/react": "^18.2.0", "@types/react-dom": "^18.2.1", "@types/youtube-player": "^5.5.7", - "@typescript-eslint/eslint-plugin": "^5.59.1", - "@typescript-eslint/parser": "^5.59.1", + "@typescript-eslint/eslint-plugin": "^5.59.2", + "@typescript-eslint/parser": "^5.59.2", "@vitejs/plugin-react-swc": "^3.3.0", "autoprefixer": "^10.4.14", "cross-env": "^7.0.3", @@ -65,8 +65,8 @@ "prop-types": "^15.8.1", "tailwindcss": "^3.3.2", "typescript": "^4.9.5", - "vite": "^4.3.3", - "vite-plugin-ssr": "^0.4.120", + "vite": "^4.3.4", + "vite-plugin-ssr": "^0.4.121", "vite-plugin-top-level-await": "^1.3.0", "vite-tsconfig-paths": "^4.2.0", "ws": "^8.13.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7fad8452..0b1dfa69 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,8 +50,8 @@ dependencies: specifier: ^1.1.0 version: 1.1.0 react-virtuoso: - specifier: ^4.3.4 - version: 4.3.4(react-dom@18.2.0)(react@18.2.0) + specifier: ^4.3.5 + version: 4.3.5(react-dom@18.2.0)(react@18.2.0) react-youtube: specifier: ^10.1.0 version: 10.1.0(react@18.2.0) @@ -91,14 +91,14 @@ devDependencies: specifier: ^5.5.7 version: 5.5.7 '@typescript-eslint/eslint-plugin': - specifier: ^5.59.1 - version: 5.59.1(@typescript-eslint/parser@5.59.1)(eslint@8.39.0)(typescript@4.9.5) + specifier: ^5.59.2 + version: 5.59.2(@typescript-eslint/parser@5.59.2)(eslint@8.39.0)(typescript@4.9.5) '@typescript-eslint/parser': - specifier: ^5.59.1 - version: 5.59.1(eslint@8.39.0)(typescript@4.9.5) + specifier: ^5.59.2 + version: 5.59.2(eslint@8.39.0)(typescript@4.9.5) '@vitejs/plugin-react-swc': specifier: ^3.3.0 - version: 3.3.0(vite@4.3.3) + version: 3.3.0(vite@4.3.4) autoprefixer: specifier: ^10.4.14 version: 10.4.14(postcss@8.4.23) @@ -151,17 +151,17 @@ devDependencies: specifier: ^4.9.5 version: 4.9.5 vite: - specifier: ^4.3.3 - version: 4.3.3(@types/node@18.16.3) + specifier: ^4.3.4 + version: 4.3.4(@types/node@18.16.3) vite-plugin-ssr: - specifier: ^0.4.120 - version: 0.4.120(vite@4.3.3) + specifier: ^0.4.121 + version: 0.4.121(vite@4.3.4) vite-plugin-top-level-await: specifier: ^1.3.0 - version: 1.3.0(vite@4.3.3) + version: 1.3.0(vite@4.3.4) vite-tsconfig-paths: specifier: ^4.2.0 - version: 4.2.0(typescript@4.9.5)(vite@4.3.3) + version: 4.2.0(typescript@4.9.5)(vite@4.3.4) ws: specifier: ^8.13.0 version: 8.13.0 @@ -244,9 +244,9 @@ packages: js-tokens: 4.0.0 dev: true - /@babel/parser@7.21.5: + /@babel/parser@7.21.8: resolution: - { integrity: sha512-J+IxH2IsxV4HbnTrSWgMAQj0UEo61hDA4Ny8h8PCX0MLXiibqHbqIOVneqdocemSBc22VpBKxt4J6FQzy9HarQ== } + { integrity: sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA== } engines: { node: '>=6.0.0' } hasBin: true dependencies: @@ -259,7 +259,7 @@ packages: engines: { node: '>=6.9.0' } dependencies: '@babel/code-frame': 7.21.4 - '@babel/parser': 7.21.5 + '@babel/parser': 7.21.8 '@babel/types': 7.21.5 dev: true @@ -274,7 +274,7 @@ packages: '@babel/helper-function-name': 7.21.0 '@babel/helper-hoist-variables': 7.18.6 '@babel/helper-split-export-declaration': 7.18.6 - '@babel/parser': 7.21.5 + '@babel/parser': 7.21.8 '@babel/types': 7.17.0 debug: 4.3.4 globals: 11.12.0 @@ -1143,7 +1143,7 @@ packages: optional: true dependencies: '@babel/generator': 7.17.7 - '@babel/parser': 7.21.5 + '@babel/parser': 7.21.8 '@babel/traverse': 7.17.3 '@babel/types': 7.17.0 javascript-natural-sort: 0.7.1 @@ -1207,9 +1207,9 @@ packages: { integrity: sha512-W8F4eoTIvzXeNrT3JroQPimZLXnlJA8smYygHZUKFPVoYwgs/OhJkA1VBhL3iSs57OQkuINqHlY4SmMT5wtnJg== } dev: true - /@typescript-eslint/eslint-plugin@5.59.1(@typescript-eslint/parser@5.59.1)(eslint@8.39.0)(typescript@4.9.5): + /@typescript-eslint/eslint-plugin@5.59.2(@typescript-eslint/parser@5.59.2)(eslint@8.39.0)(typescript@4.9.5): resolution: - { integrity: sha512-AVi0uazY5quFB9hlp2Xv+ogpfpk77xzsgsIEWyVS7uK/c7MZ5tw7ZPbapa0SbfkqE0fsAMkz5UwtgMLVk2BQAg== } + { integrity: sha512-yVrXupeHjRxLDcPKL10sGQ/QlVrA8J5IYOEWVqk0lJaSZP7X5DfnP7Ns3cc74/blmbipQ1htFNVGsHX6wsYm0A== } engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } peerDependencies: '@typescript-eslint/parser': ^5.0.0 @@ -1220,10 +1220,10 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.5.1 - '@typescript-eslint/parser': 5.59.1(eslint@8.39.0)(typescript@4.9.5) - '@typescript-eslint/scope-manager': 5.59.1 - '@typescript-eslint/type-utils': 5.59.1(eslint@8.39.0)(typescript@4.9.5) - '@typescript-eslint/utils': 5.59.1(eslint@8.39.0)(typescript@4.9.5) + '@typescript-eslint/parser': 5.59.2(eslint@8.39.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 5.59.2 + '@typescript-eslint/type-utils': 5.59.2(eslint@8.39.0)(typescript@4.9.5) + '@typescript-eslint/utils': 5.59.2(eslint@8.39.0)(typescript@4.9.5) debug: 4.3.4 eslint: 8.39.0 grapheme-splitter: 1.0.4 @@ -1236,9 +1236,9 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@5.59.1(eslint@8.39.0)(typescript@4.9.5): + /@typescript-eslint/parser@5.59.2(eslint@8.39.0)(typescript@4.9.5): resolution: - { integrity: sha512-nzjFAN8WEu6yPRDizIFyzAfgK7nybPodMNFGNH0M9tei2gYnYszRDqVA0xlnRjkl7Hkx2vYrEdb6fP2a21cG1g== } + { integrity: sha512-uq0sKyw6ao1iFOZZGk9F8Nro/8+gfB5ezl1cA06SrqbgJAt0SRoFhb9pXaHvkrxUpZaoLxt8KlovHNk8Gp6/HQ== } engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -1247,9 +1247,9 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 5.59.1 - '@typescript-eslint/types': 5.59.1 - '@typescript-eslint/typescript-estree': 5.59.1(typescript@4.9.5) + '@typescript-eslint/scope-manager': 5.59.2 + '@typescript-eslint/types': 5.59.2 + '@typescript-eslint/typescript-estree': 5.59.2(typescript@4.9.5) debug: 4.3.4 eslint: 8.39.0 typescript: 4.9.5 @@ -1257,18 +1257,18 @@ packages: - supports-color dev: true - /@typescript-eslint/scope-manager@5.59.1: + /@typescript-eslint/scope-manager@5.59.2: resolution: - { integrity: sha512-mau0waO5frJctPuAzcxiNWqJR5Z8V0190FTSqRw1Q4Euop6+zTwHAf8YIXNwDOT29tyUDrQ65jSg9aTU/H0omA== } + { integrity: sha512-dB1v7ROySwQWKqQ8rEWcdbTsFjh2G0vn8KUyvTXdPoyzSL6lLGkiXEV5CvpJsEe9xIdKV+8Zqb7wif2issoOFA== } engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } dependencies: - '@typescript-eslint/types': 5.59.1 - '@typescript-eslint/visitor-keys': 5.59.1 + '@typescript-eslint/types': 5.59.2 + '@typescript-eslint/visitor-keys': 5.59.2 dev: true - /@typescript-eslint/type-utils@5.59.1(eslint@8.39.0)(typescript@4.9.5): + /@typescript-eslint/type-utils@5.59.2(eslint@8.39.0)(typescript@4.9.5): resolution: - { integrity: sha512-ZMWQ+Oh82jWqWzvM3xU+9y5U7MEMVv6GLioM3R5NJk6uvP47kZ7YvlgSHJ7ERD6bOY7Q4uxWm25c76HKEwIjZw== } + { integrity: sha512-b1LS2phBOsEy/T381bxkkywfQXkV1dWda/z0PhnIy3bC5+rQWQDS7fk9CSpcXBccPY27Z6vBEuaPBCKCgYezyQ== } engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } peerDependencies: eslint: '*' @@ -1277,8 +1277,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 5.59.1(typescript@4.9.5) - '@typescript-eslint/utils': 5.59.1(eslint@8.39.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 5.59.2(typescript@4.9.5) + '@typescript-eslint/utils': 5.59.2(eslint@8.39.0)(typescript@4.9.5) debug: 4.3.4 eslint: 8.39.0 tsutils: 3.21.0(typescript@4.9.5) @@ -1287,15 +1287,15 @@ packages: - supports-color dev: true - /@typescript-eslint/types@5.59.1: + /@typescript-eslint/types@5.59.2: resolution: - { integrity: sha512-dg0ICB+RZwHlysIy/Dh1SP+gnXNzwd/KS0JprD3Lmgmdq+dJAJnUPe1gNG34p0U19HvRlGX733d/KqscrGC1Pg== } + { integrity: sha512-LbJ/HqoVs2XTGq5shkiKaNTuVv5tTejdHgfdjqRUGdYhjW1crm/M7og2jhVskMt8/4wS3T1+PfFvL1K3wqYj4w== } engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } dev: true - /@typescript-eslint/typescript-estree@5.59.1(typescript@4.9.5): + /@typescript-eslint/typescript-estree@5.59.2(typescript@4.9.5): resolution: - { integrity: sha512-lYLBBOCsFltFy7XVqzX0Ju+Lh3WPIAWxYpmH/Q7ZoqzbscLiCW00LeYCdsUnnfnj29/s1WovXKh2gwCoinHNGA== } + { integrity: sha512-+j4SmbwVmZsQ9jEyBMgpuBD0rKwi9RxRpjX71Brr73RsYnEr3Lt5QZ624Bxphp8HUkSKfqGnPJp1kA5nl0Sh7Q== } engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } peerDependencies: typescript: '*' @@ -1303,8 +1303,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.59.1 - '@typescript-eslint/visitor-keys': 5.59.1 + '@typescript-eslint/types': 5.59.2 + '@typescript-eslint/visitor-keys': 5.59.2 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 @@ -1315,9 +1315,9 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@5.59.1(eslint@8.39.0)(typescript@4.9.5): + /@typescript-eslint/utils@5.59.2(eslint@8.39.0)(typescript@4.9.5): resolution: - { integrity: sha512-MkTe7FE+K1/GxZkP5gRj3rCztg45bEhsd8HYjczBuYm+qFHP5vtZmjx3B0yUCDotceQ4sHgTyz60Ycl225njmA== } + { integrity: sha512-kSuF6/77TZzyGPhGO4uVp+f0SBoYxCDf+lW3GKhtKru/L8k/Hd7NFQxyWUeY7Z/KGB2C6Fe3yf2vVi4V9TsCSQ== } engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -1325,9 +1325,9 @@ packages: '@eslint-community/eslint-utils': 4.4.0(eslint@8.39.0) '@types/json-schema': 7.0.11 '@types/semver': 7.3.13 - '@typescript-eslint/scope-manager': 5.59.1 - '@typescript-eslint/types': 5.59.1 - '@typescript-eslint/typescript-estree': 5.59.1(typescript@4.9.5) + '@typescript-eslint/scope-manager': 5.59.2 + '@typescript-eslint/types': 5.59.2 + '@typescript-eslint/typescript-estree': 5.59.2(typescript@4.9.5) eslint: 8.39.0 eslint-scope: 5.1.1 semver: 7.5.0 @@ -1336,12 +1336,12 @@ packages: - typescript dev: true - /@typescript-eslint/visitor-keys@5.59.1: + /@typescript-eslint/visitor-keys@5.59.2: resolution: - { integrity: sha512-6waEYwBTCWryx0VJmP7JaM4FpipLsFl9CvYf2foAE8Qh/Y0s+bxWysciwOs0LTBED4JCaNxTZ5rGadB14M6dwA== } + { integrity: sha512-EEpsO8m3RASrKAHI9jpavNv9NlEUebV4qmF1OWxSTtKSFBpC1NCmWazDQHFivRf0O1DV11BA645yrLEVQ0/Lig== } engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } dependencies: - '@typescript-eslint/types': 5.59.1 + '@typescript-eslint/types': 5.59.2 eslint-visitor-keys: 3.4.0 dev: true @@ -1363,14 +1363,14 @@ packages: vidstack: 0.4.5 dev: false - /@vitejs/plugin-react-swc@3.3.0(vite@4.3.3): + /@vitejs/plugin-react-swc@3.3.0(vite@4.3.4): resolution: { integrity: sha512-Ycg+n2eyCOTpn/wRy+evVo859+hw7qCj9iaX5CMny6x1fx1Uoq0xBG+a98lFtwLNGfGEnpI0F26YigRuxCRkwg== } peerDependencies: vite: ^4 dependencies: '@swc/core': 1.3.56 - vite: 4.3.3(@types/node@18.16.3) + vite: 4.3.4(@types/node@18.16.3) transitivePeerDependencies: - '@swc/helpers' dev: true @@ -1547,7 +1547,7 @@ packages: postcss: ^8.1.0 dependencies: browserslist: 4.21.5 - caniuse-lite: 1.0.30001481 + caniuse-lite: 1.0.30001482 fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 @@ -1594,8 +1594,8 @@ packages: engines: { node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7 } hasBin: true dependencies: - caniuse-lite: 1.0.30001481 - electron-to-chromium: 1.4.377 + caniuse-lite: 1.0.30001482 + electron-to-chromium: 1.4.380 node-releases: 2.0.10 update-browserslist-db: 1.0.11(browserslist@4.21.5) dev: true @@ -1634,9 +1634,9 @@ packages: engines: { node: '>= 6' } dev: true - /caniuse-lite@1.0.30001481: + /caniuse-lite@1.0.30001482: resolution: - { integrity: sha512-KCqHwRnaa1InZBtqXzP98LPg0ajCVujMKjqKDhZEthIpAsJl/YEIa3YvXjGXPVqzZVguccuu7ga9KOE1J9rKPQ== } + { integrity: sha512-F1ZInsg53cegyjroxLNW9DmrEQ1SuGRTO1QlpA0o2/6OpQ0gFeDRoq1yFmnr8Sakn9qwwt9DmbxHB6w167OSuQ== } dev: true /chalk@2.4.2: @@ -1899,9 +1899,9 @@ packages: { integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== } dev: true - /electron-to-chromium@1.4.377: + /electron-to-chromium@1.4.380: resolution: - { integrity: sha512-H3BYG6DW5Z+l0xcfXaicJGxrpA4kMlCxnN71+iNX+dBLkRMOdVJqFJiAmbNZZKA1zISpRg17JR03qGifXNsJtw== } + { integrity: sha512-XKGdI4pWM78eLH2cbXJHiBnWUwFSzZM7XujsB6stDiGu9AeSqziedP6amNLpJzE3i0rLTcfAwdCTs5ecP5yeSg== } dev: true /emoji-regex@8.0.0: @@ -2913,7 +2913,7 @@ packages: normalize-path: 3.0.0 object-inspect: 1.12.3 pidtree: 0.6.0 - string-argv: 0.3.1 + string-argv: 0.3.2 yaml: 2.2.2 transitivePeerDependencies: - enquirer @@ -3581,9 +3581,9 @@ packages: engines: { node: '>=0.12.0' } dev: false - /react-virtuoso@4.3.4(react-dom@18.2.0)(react@18.2.0): + /react-virtuoso@4.3.5(react-dom@18.2.0)(react@18.2.0): resolution: - { integrity: sha512-r+zxsUKCLBhjT4925xY7YQz3pVqiJvkxrN8OSBpCd5VBWJCVGt0lpZOVpDQ2nX7yuCELFMuZOiFNCCYSJ1/OHQ== } + { integrity: sha512-MdWzmM9d8Gt5YGPIgGzRoqnYygTsriWlZrq+SqxphJTiiHs9cffnjf2Beo3SA3wRYzQJD8FI2HXtN5ACWzPFbQ== } engines: { node: '>=10' } peerDependencies: react: '>=16 || >=17 || >= 18' @@ -3695,9 +3695,9 @@ packages: glob: 7.2.3 dev: true - /rollup@3.21.2: + /rollup@3.21.3: resolution: - { integrity: sha512-c4vC+JZ3bbF4Kqq2TtM7zSKtSyMybFOjqmomFax3xpfYaPZDZ4iz8NMIuBRMjnXOcKYozw7bC6vhJjiWD6JpzQ== } + { integrity: sha512-VnPfEG51nIv2xPLnZaekkuN06q9ZbnyDcLkaBdJa/W7UddyhOfMP2yOPziYQfeY7k++fZM8FdQIummFN5y14kA== } engines: { node: '>=14.18.0', npm: '>=8.0.0' } hasBin: true optionalDependencies: @@ -3849,9 +3849,9 @@ packages: engines: { node: '>=0.10.0' } dev: true - /string-argv@0.3.1: + /string-argv@0.3.2: resolution: - { integrity: sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== } + { integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== } engines: { node: '>=0.6.19' } dev: true @@ -4252,9 +4252,9 @@ packages: type-fest: 3.9.0 dev: false - /vite-plugin-ssr@0.4.120(vite@4.3.3): + /vite-plugin-ssr@0.4.121(vite@4.3.4): resolution: - { integrity: sha512-crttExXYt98bEVeLJgqlJ6peaMgzN7YrL0TNIAWEjabWHaXgpQUO+pRXOf0MIyI/xcNh13e6kvalSPo9UEpPxQ== } + { integrity: sha512-6hJXWH8JAcBjRVwZeuI/yIk5gwJrdllZaBTBGXHH0Py0o0cJ1i8p7KZ3hht0SzY63pt0apekXKxnqW/brODung== } engines: { node: '>=12.19.0' } hasBin: true peerDependencies: @@ -4274,10 +4274,10 @@ packages: esbuild: 0.17.18 fast-glob: 3.2.12 sirv: 2.0.3 - vite: 4.3.3(@types/node@18.16.3) + vite: 4.3.4(@types/node@18.16.3) dev: true - /vite-plugin-top-level-await@1.3.0(vite@4.3.3): + /vite-plugin-top-level-await@1.3.0(vite@4.3.4): resolution: { integrity: sha512-owIfsgWudMlQODWJSwp0sQB3AZZu3qsMygeBjZy8CyjEk6OB9AGd8lHqmgwrcEqgvy9N58lYxSBLVk3/4ejEiA== } peerDependencies: @@ -4286,13 +4286,13 @@ packages: '@rollup/plugin-virtual': 3.0.1 '@swc/core': 1.3.56 uuid: 9.0.0 - vite: 4.3.3(@types/node@18.16.3) + vite: 4.3.4(@types/node@18.16.3) transitivePeerDependencies: - '@swc/helpers' - rollup dev: true - /vite-tsconfig-paths@4.2.0(typescript@4.9.5)(vite@4.3.3): + /vite-tsconfig-paths@4.2.0(typescript@4.9.5)(vite@4.3.4): resolution: { integrity: sha512-jGpus0eUy5qbbMVGiTxCL1iB9ZGN6Bd37VGLJU39kTDD6ZfULTTb1bcc5IeTWqWJKiWV5YihCaibeASPiGi8kw== } peerDependencies: @@ -4304,15 +4304,15 @@ packages: debug: 4.3.4 globrex: 0.1.2 tsconfck: 2.1.1(typescript@4.9.5) - vite: 4.3.3(@types/node@18.16.3) + vite: 4.3.4(@types/node@18.16.3) transitivePeerDependencies: - supports-color - typescript dev: true - /vite@4.3.3(@types/node@18.16.3): + /vite@4.3.4(@types/node@18.16.3): resolution: - { integrity: sha512-MwFlLBO4udZXd+VBcezo3u8mC77YQk+ik+fbc0GZWGgzfbPP+8Kf0fldhARqvSYmtIWoAJ5BXPClUbMTlqFxrA== } + { integrity: sha512-f90aqGBoxSFxWph2b39ae2uHAxm5jFBBdnfueNxZAT1FTpM13ccFQExCaKbR2xFW5atowjleRniQ7onjJ22QEg== } engines: { node: ^14.18.0 || >=16.0.0 } hasBin: true peerDependencies: @@ -4339,7 +4339,7 @@ packages: '@types/node': 18.16.3 esbuild: 0.17.18 postcss: 8.4.23 - rollup: 3.21.2 + rollup: 3.21.3 optionalDependencies: fsevents: 2.3.2 dev: true diff --git a/src/app/note/components/parser.tsx b/src/app/note/components/parser.tsx index f1802ec5..b90bba58 100644 --- a/src/app/note/components/parser.tsx +++ b/src/app/note/components/parser.tsx @@ -33,6 +33,14 @@ export const noteParser = (event: Event) => { content.videos.push(url); // remove url from original content content.parsed = content.parsed.replace(url, ''); + } else { + content.parsed = reactStringReplace(content.parsed, url, () => { + return ( + + {url} + + ); + }); } });