Compare commits

...
Author SHA1 Message Date
Aman Harwara 9481d1458f chore: fix home-server build error [skip e2e] 2025-04-21 20:36:54 +05:30
StandardNotes CI 4d1ca66f26 chore(release): publish
CodeQL / Analyze (javascript) (push) Has been cancelled
Sync Repo / git-sync (push) Has been cancelled
Publish Packages / Build & Test (push) Has been cancelled
Publish Packages / Build Docker Image (push) Has been cancelled
Publish Packages / E2E Base Test Suite (push) Has been cancelled
Publish Packages / E2E Vaults Test Suite (push) Has been cancelled
Publish Packages / Build and publish Docker Image for Web App (push) Has been cancelled
Publish Packages / Publish to NPM (push) Has been cancelled
Publish Packages / Publish to Docker Hub (push) Has been cancelled
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-04-21 14:57:26 +00:00
Aman Harwara 7d4b724615 chore: re-trigger build [skip e2e] 2025-04-21 20:07:28 +05:30
Aman Harwara 5b6a4fc988 chore: upgrade electron-rebuild [skip e2e] 2025-04-21 19:55:10 +05:30
StandardNotes CI 2908ddf425 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-04-21 14:20:24 +00:00
Aman Harwara 8759df2024 chore: fix build error [skip e2e] 2025-04-21 19:41:04 +05:30
Aman Harwara 1faa464ec6 chore: upgrade electron (#2894) 2025-04-21 19:31:24 +05:30
StandardNotes CI 6391c328b9 chore(release): publish
CodeQL / Analyze (javascript) (push) Has been cancelled
Sync Repo / git-sync (push) Has been cancelled
Publish Packages / Build & Test (push) Has been cancelled
Publish Packages / Build Docker Image (push) Has been cancelled
Publish Packages / E2E Base Test Suite (push) Has been cancelled
Publish Packages / E2E Vaults Test Suite (push) Has been cancelled
Publish Packages / Build and publish Docker Image for Web App (push) Has been cancelled
Publish Packages / Publish to NPM (push) Has been cancelled
Publish Packages / Publish to Docker Hub (push) Has been cancelled
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-02-03 10:12:29 +00:00
Aman Harwara 5e9716c742 chore: new release [skip e2e] 2025-02-03 15:32:43 +05:30
Aman Harwara a0467e7c4d fix: Fix PDF export not working on Android
The request for loading the PDF worker gets canceled since it tries to load it from a `file:` url, so we need to inline the loader as a blob so that it can be loaded correctly.
2025-02-03 15:20:33 +05:30
StandardNotes CI ca234cdb33 chore(release): publish
CodeQL / Analyze (javascript) (push) Has been cancelled
Sync Repo / git-sync (push) Has been cancelled
Publish Packages / Build & Test (push) Has been cancelled
Publish Packages / Build Docker Image (push) Has been cancelled
Publish Packages / E2E Base Test Suite (push) Has been cancelled
Publish Packages / E2E Vaults Test Suite (push) Has been cancelled
Publish Packages / Build and publish Docker Image for Web App (push) Has been cancelled
Publish Packages / Publish to NPM (push) Has been cancelled
Publish Packages / Publish to Docker Hub (push) Has been cancelled
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].3
 - @standardnotes/[email protected]
2025-01-31 20:11:40 +00:00
Aman Harwara 800335c563 chore: new release [skip e2e]
CodeQL / Analyze (javascript) (push) Waiting to run
Sync Repo / git-sync (push) Waiting to run
Publish Packages / Build & Test (push) Waiting to run
Publish Packages / Build Docker Image (push) Waiting to run
Publish Packages / E2E Base Test Suite (push) Blocked by required conditions
Publish Packages / E2E Vaults Test Suite (push) Blocked by required conditions
Publish Packages / Build and publish Docker Image for Web App (push) Blocked by required conditions
Publish Packages / Publish to NPM (push) Blocked by required conditions
Publish Packages / Publish to Docker Hub (push) Blocked by required conditions
2025-02-01 01:29:45 +05:30
Aman Harwara e525db61d3 fix: Fix "Share" option not working on Android 2025-01-31 23:23:44 +05:30
Aman Harwara 42aedcdf84 fix: Fix downloads silently failing on Android 2025-01-31 22:48:39 +05:30
StandardNotes CI 27aa7139cb chore(release): publish
CodeQL / Analyze (javascript) (push) Has been cancelled
Sync Repo / git-sync (push) Has been cancelled
Publish Packages / Build & Test (push) Has been cancelled
Publish Packages / Build Docker Image (push) Has been cancelled
Publish Packages / E2E Base Test Suite (push) Has been cancelled
Publish Packages / E2E Vaults Test Suite (push) Has been cancelled
Publish Packages / Build and publish Docker Image for Web App (push) Has been cancelled
Publish Packages / Publish to NPM (push) Has been cancelled
Publish Packages / Publish to Docker Hub (push) Has been cancelled
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-01-21 14:47:52 +00:00
Aman Harwara 6a4065fc29 chore: upgrade lexical [skip e2e]
fixes "TabNode does not support setMode" issue
2025-01-21 20:05:22 +05:30
StandardNotes CI e531860d19 chore(release): publish
CodeQL / Analyze (javascript) (push) Waiting to run
Sync Repo / git-sync (push) Waiting to run
Publish Packages / Build & Test (push) Waiting to run
Publish Packages / Build Docker Image (push) Waiting to run
Publish Packages / E2E Base Test Suite (push) Blocked by required conditions
Publish Packages / E2E Vaults Test Suite (push) Blocked by required conditions
Publish Packages / Build and publish Docker Image for Web App (push) Blocked by required conditions
Publish Packages / Publish to NPM (push) Blocked by required conditions
Publish Packages / Publish to Docker Hub (push) Blocked by required conditions
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-01-21 07:38:35 +00:00
Aman Harwara 8cba0fa488 chore: downgrade electron-rebuild dep [skip e2e] 2025-01-21 12:55:00 +05:30
StandardNotes CI 7c69c25b62 chore(release): publish
CodeQL / Analyze (javascript) (push) Has been cancelled
Sync Repo / git-sync (push) Has been cancelled
Publish Packages / Build & Test (push) Has been cancelled
Publish Packages / Build Docker Image (push) Has been cancelled
Publish Packages / E2E Base Test Suite (push) Has been cancelled
Publish Packages / E2E Vaults Test Suite (push) Has been cancelled
Publish Packages / Build and publish Docker Image for Web App (push) Has been cancelled
Publish Packages / Publish to NPM (push) Has been cancelled
Publish Packages / Publish to Docker Hub (push) Has been cancelled
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-01-09 20:14:00 +00:00
Aman Harwara 5a439ff66d chore: fix ci download-artifact parameters [skip e2e] 2025-01-10 01:31:55 +05:30
StandardNotes CI b617b916f7 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-01-09 19:37:16 +00:00
Aman Harwara a98a1a18bb chore: update ci [skip e2e] 2025-01-10 00:57:39 +05:30
Aman Harwara 273f4d55cf chore: update asset names 2025-01-10 00:55:08 +05:30
Aman Harwara 7e83f24373 Revert "chore: fix github actions [skip e2e]"
This reverts commit 196aa3ad9f.
2025-01-10 00:52:44 +05:30
StandardNotes CI 88207cfeb3 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-01-09 19:14:38 +00:00
Aman Harwara 196aa3ad9f chore: fix github actions [skip e2e] 2025-01-10 00:31:54 +05:30
StandardNotes CI 2e5bafe8f4 chore(release): publish
CodeQL / Analyze (javascript) (push) Waiting to run
Sync Repo / git-sync (push) Waiting to run
Publish Packages / Build & Test (push) Waiting to run
Publish Packages / Build Docker Image (push) Waiting to run
Publish Packages / E2E Base Test Suite (push) Blocked by required conditions
Publish Packages / E2E Vaults Test Suite (push) Blocked by required conditions
Publish Packages / Build and publish Docker Image for Web App (push) Blocked by required conditions
Publish Packages / Publish to NPM (push) Blocked by required conditions
Publish Packages / Publish to Docker Hub (push) Blocked by required conditions
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-01-09 18:01:09 +00:00
Aman Harwara d3b039619d chore: update github action deps [skip e2e] 2025-01-09 23:21:16 +05:30
StandardNotes CI 26f40a2beb chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-01-09 17:46:11 +00:00
Aman Harwara 8e17f71fd6 chore: new release [skip e2e] 2025-01-09 23:03:58 +05:30
Aman Harwara 6875912a0b chore: revert electron version bump since it breaks for some apple silicon users [skip e2e] 2025-01-09 23:03:17 +05:30
StandardNotes CI 274c9f7a74 chore(release): publish
CodeQL / Analyze (javascript) (push) Has been cancelled
Sync Repo / git-sync (push) Has been cancelled
Publish Packages / Build & Test (push) Has been cancelled
Publish Packages / Build Docker Image (push) Has been cancelled
Publish Packages / E2E Base Test Suite (push) Has been cancelled
Publish Packages / E2E Vaults Test Suite (push) Has been cancelled
Publish Packages / Build and publish Docker Image for Web App (push) Has been cancelled
Publish Packages / Publish to NPM (push) Has been cancelled
Publish Packages / Publish to Docker Hub (push) Has been cancelled
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-01-06 13:18:56 +00:00
Aman Harwara 4b7d1f23ee chore: new release [skip e2e] 2025-01-06 18:39:07 +05:30
Aman Harwara 8c50180231 Merge branch 'main' of github.com:standardnotes/app 2025-01-06 18:20:46 +05:30
Aman Harwara 0841b5d5af chore: fix desktop build [skip e2e] 2025-01-06 18:20:39 +05:30
StandardNotes CI e7e5c4fb08 chore(release): publish
CodeQL / Analyze (javascript) (push) Waiting to run
Sync Repo / git-sync (push) Waiting to run
Publish Packages / Build & Test (push) Waiting to run
Publish Packages / Build Docker Image (push) Waiting to run
Publish Packages / E2E Base Test Suite (push) Blocked by required conditions
Publish Packages / E2E Vaults Test Suite (push) Blocked by required conditions
Publish Packages / Build and publish Docker Image for Web App (push) Blocked by required conditions
Publish Packages / Publish to NPM (push) Blocked by required conditions
Publish Packages / Publish to Docker Hub (push) Blocked by required conditions
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2025-01-06 08:15:46 +00:00
Aman Harwara 5c3354ca48 chore: upgrade electron [skip e2e] 2025-01-06 13:34:04 +05:30
Aman Harwara c3c0e5c532 chore: upgrade lexical to 0.23.0 2025-01-06 13:15:32 +05:30
105 changed files with 1041 additions and 424 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ jobs:
yarn web-ext sign --source-dir dist --api-key $WEB_EXT_API_KEY --api-secret $WEB_EXT_API_SECRET --channel=listed --use-submission-api
mv web-ext-artifacts/*.xpi standard-notes-clipper-$PACKAGE_VERSION.firefox.xpi
- name: Upload
uses: actions/upload-artifact@v3.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: assets
path: |
@@ -73,7 +73,7 @@ jobs:
- name: Export version from package.json
run:
echo "PACKAGE_VERSION=$(grep '"version"' ./package.json | cut -d '"' -f 4 | cut -d "-" -f 1)" >> $GITHUB_ENV
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: assets
path: packages/clipper/artifacts
+13 -12
View File
@@ -46,9 +46,9 @@ jobs:
run: yarn run electron-builder --mac --arm64 --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
- name: Upload
uses: actions/upload-artifact@v3.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: assets
name: dist-macos
path: |
packages/desktop/dist/*.dmg
packages/desktop/dist/*.zip
@@ -95,9 +95,9 @@ jobs:
run: yarn run electron-builder --linux --arm64 -c.linux.target=AppImage --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
- name: Upload
uses: actions/upload-artifact@v3.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: assets
name: dist-linux-appimage
path: |
packages/desktop/dist/*.AppImage
packages/desktop/dist/*.yml
@@ -185,9 +185,9 @@ jobs:
yarn run electron-builder --linux --arm64 -c.linux.target=deb --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
- name: Upload
uses: actions/upload-artifact@v3.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: assets
name: dist-linux-deb
path: |
packages/desktop/dist/*.deb
packages/desktop/dist/*.yml
@@ -238,9 +238,9 @@ jobs:
run: review-tools.snap-review dist/standard-notes-${{ env.APP_VERSION }}-linux-amd64.snap
- name: Upload
uses: actions/upload-artifact@v3.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: assets
name: dist-linux-snap
path: |
packages/desktop/dist/*.snap
packages/desktop/dist/*.yml
@@ -324,9 +324,9 @@ jobs:
run: yarn run electron-builder --windows --x64 --ia32 --publish=never --c.extraMetadata.version=$(node -p "require('./../web/package.json').version")
- name: Upload
uses: actions/upload-artifact@v3.0.0
uses: actions/upload-artifact@v4.0.0
with:
name: assets
name: dist-windows
path: |
packages/desktop/dist/*.blockmap
packages/desktop/dist/*.exe
@@ -354,10 +354,11 @@ jobs:
- run: yarn install --immutable
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: assets
pattern: dist-*
path: packages/desktop/dist
merge-multiple: true
- name: Generate Checksums
run: node scripts/sums.mjs
+1 -1
View File
@@ -1 +1 @@
18.6.0
22
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -44,8 +44,9 @@
"@types/react-native-vector-icons/@types/react": "17.0.2",
"@types/react-native/@types/react": "17.0.2",
"@types/hoist-non-react-statics/@types/react": "17.0.2",
"@lexical/[email protected]2.0": "patch:@lexical/clipboard@npm:0.22.0#.yarn/patches/@lexical-clipboard-npm-0.22.0-e950aa6a7f.patch",
"@lexical/[email protected]2.0": "patch:@lexical/rich-text@npm:0.22.0#.yarn/patches/@lexical-rich-text-npm-0.22.0-1c32cc4b16.patch"
"@lexical/[email protected]3.1": "patch:@lexical/clipboard@npm:0.23.1#.yarn/patches/@lexical-clipboard-npm-0.23.1-961671e399.patch",
"@lexical/[email protected]3.1": "patch:@lexical/rich-text@npm:0.23.1#.yarn/patches/@lexical-rich-text-npm-0.23.1-a9f13154ae.patch",
"node-abi": "^4.2.0"
},
"dependencies": {
"@standardnotes/snjs": "workspace:*"
+52
View File
@@ -3,6 +3,58 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.1.506](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.505](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.504](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-02-03)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.503](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-31)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.502](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.501](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.500](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.499](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.498](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.497](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.496](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.495](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.494](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)
**Note:** Version bump only for package @standardnotes/clipper
## [1.1.493](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-02)
**Note:** Version bump only for package @standardnotes/clipper
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@standardnotes/clipper",
"description": "Web clipper browser extension for Standard Notes",
"version": "1.1.493",
"version": "1.1.506",
"private": true,
"scripts": {
"build-mv2": "yarn clean && webpack --config ./webpack.config.prod.js",
+52
View File
@@ -3,6 +3,58 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.110.110](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.110](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.109](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-02-03)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.108](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-31)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.107](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.106](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.105](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.104](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.103](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.102](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.101](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.100](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.99](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)
**Note:** Version bump only for package @standardnotes/desktop
## [3.110.98](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-02)
**Note:** Version bump only for package @standardnotes/desktop
+4 -4
View File
@@ -1,7 +1,7 @@
{
"name": "@standardnotes/desktop",
"main": "./app/dist/index.js",
"version": "3.110.98",
"version": "3.110.110",
"license": "AGPL-3.0",
"author": "Standard Notes.",
"private": true,
@@ -43,7 +43,7 @@
"compare-versions": "^6.1.0",
"decrypt": "github:standardnotes/decrypt#master",
"dotenv": "^16.3.1",
"electron": "31.1.0",
"electron": "35.2.0",
"electron-log": "^4.4.8",
"electron-updater": "^6.1.4",
"fs-extra": "^11.1.1",
@@ -54,8 +54,8 @@
"devDependencies": {
"@babel/core": "*",
"@babel/preset-env": "*",
"@electron/notarize": "^2.1.0",
"@electron/rebuild": "^3.6.0",
"@electron/notarize": "^3.0.0",
"@electron/rebuild": "3.7.2",
"@types/fs-extra": "^11.0.1",
"@types/lodash": "^4.14.189",
"@types/mime-types": "^2.1.1",
+6
View File
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.28.126](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-31)
### Bug Fixes
* Fix downloads silently failing on Android ([42aedcd](https://github.com/standardnotes/app/commit/42aedcdf84503a57946ad0e5faf65adc55bc0008))
## [1.28.125](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2024-05-07)
**Note:** Version bump only for package @standardnotes/filepicker
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/filepicker",
"version": "1.28.125",
"version": "1.28.126",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -21,17 +21,30 @@ export class StreamingFileSaver {
return window.showSaveFilePicker != undefined
}
/** This function must be called in response to a user interaction, otherwise, it will be rejected by the browser. */
async selectFileToSaveTo(handle?: FileSystemFileHandle): Promise<void> {
/**
* This function must be called in response to a user interaction, otherwise, it will be rejected by the browser.
* @returns Whether file was successfully selected or not.
*/
async selectFileToSaveTo(handle?: FileSystemFileHandle): Promise<boolean> {
this.log('Showing save file picker')
const downloadHandle = handle
? handle
: await window.showSaveFilePicker({
suggestedName: this.name,
})
try {
const downloadHandle = handle
? handle
: await window.showSaveFilePicker({
suggestedName: this.name,
})
this.writableStream = await downloadHandle.createWritable()
if (!downloadHandle) {
return false
}
this.writableStream = await downloadHandle.createWritable()
return true
} catch {
return false
}
}
async pushBytes(bytes: Uint8Array): Promise<void> {
+56
View File
@@ -3,6 +3,62 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.58.166](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.165](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.164](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-02-03)
### Bug Fixes
* Fix PDF export not working on Android ([a0467e7](https://github.com/standardnotes/app/commit/a0467e7c4db27d27dc17f588bbaaebbb6f22d259))
## [3.58.163](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-31)
### Bug Fixes
* Fix "Share" option not working on Android ([e525db6](https://github.com/standardnotes/app/commit/e525db61d39dc6df331822bdd8874d8d067a46ad))
## [3.58.162](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.161](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.160](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.159](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.158](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.157](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.156](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.155](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.154](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)
**Note:** Version bump only for package @standardnotes/mobile
## [3.58.153](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-02)
**Note:** Version bump only for package @standardnotes/mobile
+2 -2
View File
@@ -1545,7 +1545,7 @@ PODS:
- React-Core
- RNPrivacySnapshot (1.0.0):
- React-Core
- RNShare (9.4.1):
- RNShare (10.2.1):
- React-Core
- RNStoreReview (0.4.1):
- React-Core
@@ -1873,7 +1873,7 @@ SPEC CHECKSUMS:
RNKeychain: a65256b6ca6ba6976132cc4124b238a5b13b3d9c
RNNotifee: f3c01b391dd8e98e67f539f9a35a9cbcd3bae744
RNPrivacySnapshot: 8eaf571478a353f2e5184f5c803164f22428b023
RNShare: 32e97adc8d8c97d4a26bcdd3c45516882184f8b6
RNShare: 0fad69ae2d71de9d1f7b9a43acf876886a6cb99c
RNStoreReview: 923b1c888c13469925bf0256dc2c046eab557ce5
SNReactNative: b5e9e529c175c13f3a618e27c76cf3071213d5e1
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/mobile",
"version": "3.58.153",
"version": "3.58.166",
"author": "Standard Notes.",
"private": true,
"license": "AGPL-3.0",
@@ -63,7 +63,7 @@
"react-native-keychain": "standardnotes/react-native-keychain#4fd687461cecfa26d482d820ee43c0de61b964d4",
"react-native-mmkv": "^2.6.2",
"react-native-privacy-snapshot": "standardnotes/react-native-privacy-snapshot#653e904c90fc6f2b578da59138f2bfe5d7f942fe",
"react-native-share": "^9.4.1",
"react-native-share": "^10.0.0",
"react-native-version-info": "^1.1.1",
"react-native-webview": "13.12.2",
"typescript": "*"
+52
View File
@@ -3,6 +3,58 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.4.805](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.804](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.803](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-02-03)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.802](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-31)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.801](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.800](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.799](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.798](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.797](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.796](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.795](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.794](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.793](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.792](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-02)
**Note:** Version bump only for package @standardnotes/releases
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/releases",
"version": "1.4.792",
"version": "1.4.805",
"license": "AGPL-3.0",
"main": "dist/releases.json",
"types": "dist/index.d.ts",
+3 -3
View File
@@ -1,6 +1,6 @@
import Desktop from '../../desktop/package.json' assert { type: 'json' }
import Mobile from '../../mobile/package.json' assert { type: 'json' }
import Web from '../../web/package.json' assert { type: 'json' }
import Desktop from '../../desktop/package.json' with { type: 'json' }
import Mobile from '../../mobile/package.json' with { type: 'json' }
import Web from '../../web/package.json' with { type: 'json' }
import { writeJson, ensureDirExists } from '../../../scripts/ScriptUtils.mjs'
const CdnUrl = 'https://github.com/standardnotes/app/releases/download/'
+4
View File
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.38.3](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-31)
**Note:** Version bump only for package @standardnotes/ui-services
## [1.38.2](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2024-11-22)
**Note:** Version bump only for package @standardnotes/ui-services
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/ui-services",
"version": "1.38.2",
"version": "1.38.3",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
+58
View File
@@ -3,6 +3,64 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.195.28](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)
**Note:** Version bump only for package @standardnotes/web
## [3.195.27](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)
**Note:** Version bump only for package @standardnotes/web
## [3.195.26](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-02-03)
### Bug Fixes
* Fix PDF export not working on Android ([a0467e7](https://github.com/standardnotes/app/commit/a0467e7c4db27d27dc17f588bbaaebbb6f22d259))
## [3.195.25](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-31)
### Bug Fixes
* Fix downloads silently failing on Android ([42aedcd](https://github.com/standardnotes/app/commit/42aedcdf84503a57946ad0e5faf65adc55bc0008))
## [3.195.24](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)
**Note:** Version bump only for package @standardnotes/web
## [3.195.23](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)
**Note:** Version bump only for package @standardnotes/web
## [3.195.22](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/web
## [3.195.21](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
### Reverts
* Revert "chore: fix github actions [skip e2e]" ([7e83f24](https://github.com/standardnotes/app/commit/7e83f24373b810916654b5fa5809ac1d2f132ca1))
## [3.195.20](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/web
## [3.195.19](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/web
## [3.195.18](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)
**Note:** Version bump only for package @standardnotes/web
## [3.195.17](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)
**Note:** Version bump only for package @standardnotes/web
## [3.195.16](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)
**Note:** Version bump only for package @standardnotes/web
## [3.195.15](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-02)
**Note:** Version bump only for package @standardnotes/web
+152
View File
@@ -1,5 +1,157 @@
{
"versions": [
{
"version": "3.195.28",
"title": "[3.195.28](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)",
"date": null,
"body": "**Note:** Version bump only for package @standardnotes/web",
"parsed": {
"_": [
"Note: Version bump only for package @standardnotes/web"
]
}
},
{
"version": "3.195.27",
"title": "[3.195.27](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-04-21)",
"date": null,
"body": "**Note:** Version bump only for package @standardnotes/web",
"parsed": {
"_": [
"Note: Version bump only for package @standardnotes/web"
]
}
},
{
"version": "3.195.26",
"title": "[3.195.26](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-02-03)",
"date": null,
"body": "### Bug Fixes\n\n* Fix PDF export not working on Android ([a0467e7](https://github.com/standardnotes/app/commit/a0467e7c4db27d27dc17f588bbaaebbb6f22d259))",
"parsed": {
"_": [
"Fix PDF export not working on Android (a0467e7)"
],
"Bug Fixes": [
"Fix PDF export not working on Android (a0467e7)"
]
}
},
{
"version": "3.195.25",
"title": "[3.195.25](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-31)",
"date": null,
"body": "### Bug Fixes\n\n* Fix downloads silently failing on Android ([42aedcd](https://github.com/standardnotes/app/commit/42aedcdf84503a57946ad0e5faf65adc55bc0008))",
"parsed": {
"_": [
"Fix downloads silently failing on Android (42aedcd)"
],
"Bug Fixes": [
"Fix downloads silently failing on Android (42aedcd)"
]
}
},
{
"version": "3.195.24",
"title": "[3.195.24](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)",
"date": null,
"body": "**Note:** Version bump only for package @standardnotes/web",
"parsed": {
"_": [
"Note: Version bump only for package @standardnotes/web"
]
}
},
{
"version": "3.195.23",
"title": "[3.195.23](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-21)",
"date": null,
"body": "**Note:** Version bump only for package @standardnotes/web",
"parsed": {
"_": [
"Note: Version bump only for package @standardnotes/web"
]
}
},
{
"version": "3.195.22",
"title": "[3.195.22](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)",
"date": null,
"body": "**Note:** Version bump only for package @standardnotes/web",
"parsed": {
"_": [
"Note: Version bump only for package @standardnotes/web"
]
}
},
{
"version": "3.195.21",
"title": "[3.195.21](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)",
"date": null,
"body": "### Reverts\n\n* Revert \"chore: fix github actions [skip e2e]\" ([7e83f24](https://github.com/standardnotes/app/commit/7e83f24373b810916654b5fa5809ac1d2f132ca1))",
"parsed": {
"_": [
"Revert \"chore: fix github actions skip e2e]\" ([7e83f24)"
],
"Reverts": [
"Revert \"chore: fix github actions skip e2e]\" ([7e83f24)"
]
}
},
{
"version": "3.195.20",
"title": "[3.195.20](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)",
"date": null,
"body": "**Note:** Version bump only for package @standardnotes/web",
"parsed": {
"_": [
"Note: Version bump only for package @standardnotes/web"
]
}
},
{
"version": "3.195.19",
"title": "[3.195.19](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)",
"date": null,
"body": "**Note:** Version bump only for package @standardnotes/web",
"parsed": {
"_": [
"Note: Version bump only for package @standardnotes/web"
]
}
},
{
"version": "3.195.18",
"title": "[3.195.18](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-09)",
"date": null,
"body": "**Note:** Version bump only for package @standardnotes/web",
"parsed": {
"_": [
"Note: Version bump only for package @standardnotes/web"
]
}
},
{
"version": "3.195.17",
"title": "[3.195.17](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)",
"date": null,
"body": "**Note:** Version bump only for package @standardnotes/web",
"parsed": {
"_": [
"Note: Version bump only for package @standardnotes/web"
]
}
},
{
"version": "3.195.16",
"title": "[3.195.16](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-06)",
"date": null,
"body": "**Note:** Version bump only for package @standardnotes/web",
"parsed": {
"_": [
"Note: Version bump only for package @standardnotes/web"
]
}
},
{
"version": "3.195.15",
"title": "[3.195.15](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2025-01-02)",
+12 -11
View File
@@ -1,9 +1,9 @@
{
"name": "@standardnotes/web",
"version": "3.195.15",
"version": "3.195.28",
"license": "AGPL-3.0",
"main": "dist/app.js",
"author": "Standard Notes",
"author": "Standard Notes.",
"private": true,
"files": [
"dist"
@@ -99,7 +99,8 @@
"webextension-polyfill": "^0.10.0",
"webpack": "*",
"webpack-dev-server": "*",
"webpack-merge": "*"
"webpack-merge": "*",
"worker-loader": "^3.0.8"
},
"lint-staged": {
"app/**/*.{js,ts,jsx,tsx}": "eslint --cache --fix",
@@ -107,17 +108,17 @@
},
"dependencies": {
"@ariakit/react": "^0.3.9",
"@lexical/clipboard": "0.22.0",
"@lexical/headless": "0.22.0",
"@lexical/link": "0.22.0",
"@lexical/list": "0.22.0",
"@lexical/react": "0.22.0",
"@lexical/rich-text": "0.22.0",
"@lexical/utils": "0.22.0",
"@lexical/clipboard": "0.23.1",
"@lexical/headless": "0.23.1",
"@lexical/link": "0.23.1",
"@lexical/list": "0.23.1",
"@lexical/react": "0.23.1",
"@lexical/rich-text": "0.23.1",
"@lexical/utils": "0.23.1",
"@radix-ui/react-slot": "^1.0.1",
"@react-pdf/renderer": "^3.3.2",
"comlink": "^4.4.1",
"fast-diff": "^1.3.0",
"lexical": "0.22.0"
"lexical": "0.23.1"
}
}
@@ -4,8 +4,6 @@ import { DOMExportOutput, ElementFormatType, NodeKey, Spread } from 'lexical'
type SerializedFileExportNode = Spread<
{
version: 1
type: 'file-export'
name: string
mimeType: string
},
@@ -31,7 +29,7 @@ export class FileExportNode extends DecoratorBlockNode {
}
static importJSON(serializedNode: SerializedFileExportNode): FileExportNode {
const node = new FileExportNode(serializedNode.name, serializedNode.mimeType)
const node = $createFileExportNode(serializedNode.name, serializedNode.mimeType).updateFromJSON(serializedNode)
return node
}
@@ -40,8 +38,6 @@ export class FileExportNode extends DecoratorBlockNode {
...super.exportJSON(),
name: this.__name,
mimeType: this.__mimeType,
version: 1,
type: 'file-export',
}
}
@@ -114,8 +114,6 @@ function TweetComponent({
export type SerializedTweetNode = Spread<
{
id: string
type: 'tweet'
version: 1
},
SerializedDecoratorBlockNode
>
@@ -137,17 +135,13 @@ export class TweetNode extends DecoratorBlockNode {
}
static override importJSON(serializedNode: SerializedTweetNode): TweetNode {
const node = $createTweetNode(serializedNode.id)
node.setFormat(serializedNode.format)
return node
return $createTweetNode(serializedNode.id).updateFromJSON(serializedNode)
}
override exportJSON(): SerializedTweetNode {
return {
...super.exportJSON(),
id: this.getId(),
type: 'tweet',
version: 1,
}
}
@@ -50,8 +50,6 @@ function YouTubeComponent({ className, format, nodeKey, videoID }: YouTubeCompon
export type SerializedYouTubeNode = Spread<
{
videoID: string
type: 'youtube'
version: 1
},
SerializedDecoratorBlockNode
>
@@ -82,16 +80,12 @@ export class YouTubeNode extends DecoratorBlockNode {
}
static importJSON(serializedNode: SerializedYouTubeNode): YouTubeNode {
const node = $createYouTubeNode(serializedNode.videoID)
node.setFormat(serializedNode.format)
return node
return $createYouTubeNode(serializedNode.videoID).updateFromJSON(serializedNode)
}
exportJSON(): SerializedYouTubeNode {
return {
...super.exportJSON(),
type: 'youtube',
version: 1,
videoID: this.__id,
}
}
@@ -19,7 +19,8 @@ import { $isRemoteImageNode } from '../../../Plugins/RemoteImagePlugin/RemoteIma
import { $isCollapsibleContainerNode } from '../../../Plugins/CollapsiblePlugin/CollapsibleContainerNode'
import { $isCollapsibleContentNode } from '../../../Plugins/CollapsiblePlugin/CollapsibleContentNode'
import { $isCollapsibleTitleNode } from '../../../Plugins/CollapsiblePlugin/CollapsibleTitleNode'
import { PDFDataNode, PDFWorker } from './PDFWorker'
// @ts-expect-error TS thinks there's no default export but that is added by the webpack loader.
import PDFWorker, { PDFDataNode, PDFWorkerInterface } from './PDFWorker.worker'
import { wrap } from 'comlink'
import { PrefKey, PrefValue } from '@standardnotes/snjs'
@@ -417,7 +418,8 @@ const getPDFDataNodesFromLexicalNodes = (nodes: LexicalNode[]): PDFDataNode[] =>
return nodes.map(getPDFDataNodeFromLexicalNode)
}
const PDFWorkerComlink = wrap<PDFWorker>(new Worker(new URL('./PDFWorker.tsx', import.meta.url)))
const pdfWorker = new PDFWorker()
const PDFWorkerComlink = wrap<PDFWorkerInterface>(pdfWorker)
/**
* @returns The PDF as an object url
@@ -102,6 +102,6 @@ expose({
renderPDF,
})
export type PDFWorker = {
export type PDFWorkerInterface = {
renderPDF: typeof renderPDF
}
@@ -21,8 +21,6 @@ import {
type SerializedCollapsibleContainerNode = Spread<
{
type: 'collapsible-container'
version: 1
open: boolean
},
SerializedElementNode
@@ -85,8 +83,7 @@ export class CollapsibleContainerNode extends ElementNode {
}
static override importJSON(serializedNode: SerializedCollapsibleContainerNode): CollapsibleContainerNode {
const node = $createCollapsibleContainerNode(serializedNode.open)
return node
return $createCollapsibleContainerNode(serializedNode.open).updateFromJSON(serializedNode)
}
exportDOM(): DOMExportOutput {
@@ -100,8 +97,6 @@ export class CollapsibleContainerNode extends ElementNode {
override exportJSON(): SerializedCollapsibleContainerNode {
return {
...super.exportJSON(),
type: 'collapsible-container',
version: 1,
open: this.__open,
}
}
@@ -65,8 +65,8 @@ export class CollapsibleContentNode extends ElementNode {
}
}
static override importJSON(_serializedNode: SerializedCollapsibleContentNode): CollapsibleContentNode {
return $createCollapsibleContentNode()
static override importJSON(serializedNode: SerializedCollapsibleContentNode): CollapsibleContentNode {
return $createCollapsibleContentNode().updateFromJSON(serializedNode)
}
override isShadowRoot(): boolean {
@@ -12,10 +12,8 @@ import {
DOMConversionMap,
DOMConversionOutput,
DOMExportOutput,
ElementFormatType,
ElementNode,
LexicalNode,
NodeKey,
RangeSelection,
SerializedElementNode,
Spread,
@@ -44,15 +42,8 @@ export class CollapsibleTitleNode extends ElementNode {
return 'collapsible-title'
}
constructor({ formatType, key }: { formatType?: ElementFormatType; key?: NodeKey }) {
super(key)
if (formatType) {
super.setFormat(formatType)
}
}
static override clone(node: CollapsibleTitleNode): CollapsibleTitleNode {
return new CollapsibleTitleNode({ key: node.__key })
return new CollapsibleTitleNode(node.__key)
}
override createDOM(): HTMLElement {
@@ -79,7 +70,7 @@ export class CollapsibleTitleNode extends ElementNode {
}
static override importJSON(serializedNode: SerializedCollapsibleTitleNode): CollapsibleTitleNode {
return $createCollapsibleTitleNode(serializedNode.format)
return $createCollapsibleTitleNode().updateFromJSON(serializedNode)
}
exportDOM(): DOMExportOutput {
@@ -87,14 +78,6 @@ export class CollapsibleTitleNode extends ElementNode {
return { element }
}
override exportJSON(): SerializedCollapsibleTitleNode {
return {
...super.exportJSON(),
type: 'collapsible-title',
version: 1,
}
}
override collapseAtStart(_selection: RangeSelection): boolean {
this.getParentOrThrow().insertBefore(this)
return true
@@ -129,10 +112,8 @@ export class CollapsibleTitleNode extends ElementNode {
}
}
export function $createCollapsibleTitleNode(formatType?: ElementFormatType): CollapsibleTitleNode {
return new CollapsibleTitleNode({
formatType,
})
export function $createCollapsibleTitleNode(): CollapsibleTitleNode {
return new CollapsibleTitleNode()
}
export function $isCollapsibleTitleNode(node: LexicalNode | null | undefined): node is CollapsibleTitleNode {
@@ -1,4 +1,12 @@
import { DOMConversionMap, DOMExportOutput, EditorConfig, ElementFormatType, LexicalEditor, NodeKey } from 'lexical'
import {
DOMConversionMap,
DOMExportOutput,
EditorConfig,
ElementFormatType,
LexicalEditor,
LexicalUpdateJSON,
NodeKey,
} from 'lexical'
import { DecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode'
import { $createFileNode, convertToFileElement } from './FileUtils'
import FileComponent from './FileComponent'
@@ -24,18 +32,17 @@ export class FileNode extends DecoratorBlockNode implements ItemNodeInterface {
}
static importJSON(serializedNode: SerializedFileNode): FileNode {
const node = $createFileNode(serializedNode.fileUuid)
node.setFormat(serializedNode.format)
node.setZoomLevel(serializedNode.zoomLevel)
return node
return $createFileNode(serializedNode.fileUuid).updateFromJSON(serializedNode)
}
updateFromJSON(serializedNode: LexicalUpdateJSON<SerializedFileNode>): this {
return super.updateFromJSON(serializedNode).setZoomLevel(serializedNode.zoomLevel)
}
exportJSON(): SerializedFileNode {
return {
...super.exportJSON(),
fileUuid: this.getId(),
version: 1,
type: 'snfile',
zoomLevel: this.__zoomLevel,
}
}
@@ -70,9 +77,10 @@ export class FileNode extends DecoratorBlockNode implements ItemNodeInterface {
return `[File: ${this.__id}]`
}
setZoomLevel(zoomLevel: number): void {
const writable = this.getWritable()
writable.__zoomLevel = zoomLevel
setZoomLevel(zoomLevel: number): this {
const self = this.getWritable()
self.__zoomLevel = zoomLevel
return self
}
decorate(_editor: LexicalEditor, config: EditorConfig): JSX.Element {
@@ -4,8 +4,6 @@ import { SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlo
export type SerializedFileNode = Spread<
{
fileUuid: string
version: 1
type: 'snfile'
zoomLevel: number
},
SerializedDecoratorBlockNode
@@ -13,8 +13,6 @@ import InlineFileComponent from './InlineFileComponent'
type SerializedInlineFileNode = Spread<
{
version: 1
type: 'inline-file'
fileName: string | undefined
mimeType: string
src: string
@@ -43,7 +41,11 @@ export class InlineFileNode extends DecoratorBlockNode {
}
static importJSON(serializedNode: SerializedInlineFileNode): InlineFileNode {
const node = $createInlineFileNode(serializedNode.src, serializedNode.mimeType, serializedNode.fileName)
const node = $createInlineFileNode(
serializedNode.src,
serializedNode.mimeType,
serializedNode.fileName,
).updateFromJSON(serializedNode)
return node
}
@@ -53,8 +55,6 @@ export class InlineFileNode extends DecoratorBlockNode {
src: this.__src,
mimeType: this.__mimeType,
fileName: this.__fileName,
version: 1,
type: 'inline-file',
}
}
@@ -16,15 +16,13 @@ export class BubbleNode extends DecoratorNode<JSX.Element> implements ItemNodeIn
}
static importJSON(serializedNode: SerializedBubbleNode): BubbleNode {
const node = $createBubbleNode(serializedNode.itemUuid)
return node
return $createBubbleNode(serializedNode.itemUuid).updateFromJSON(serializedNode)
}
override exportJSON(): SerializedBubbleNode {
return {
...super.exportJSON(),
itemUuid: this.getId(),
version: 1,
type: 'snbubble',
}
}

Some files were not shown because too many files have changed in this diff Show More