diff --git a/package.json b/package.json index 5a7208f1..3ba766d8 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,6 @@ "@capacitor/core": "^7.0.1", "@capacitor/ios": "^7.0.0", "@capacitor/keyboard": "^7.0.0", - "@noble/curves": "^1.5.0", - "@noble/hashes": "^1.4.0", "@poppanator/sveltekit-svg": "^4.2.1", "@sentry/browser": "^8.35.0", "@sveltejs/adapter-static": "^3.0.4", @@ -66,6 +64,7 @@ "@welshman/signer": "^0.3.0", "@welshman/store": "^0.3.0", "@welshman/util": "^0.3.0", + "compressorjs": "^1.2.1", "daisyui": "^4.12.10", "date-picker-svelte": "^2.13.0", "dotenv": "^16.4.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 59335baa..59512765 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,12 +29,6 @@ importers: '@capacitor/keyboard': specifier: ^7.0.0 version: 7.0.1(@capacitor/core@7.2.0) - '@noble/curves': - specifier: ^1.5.0 - version: 1.8.1 - '@noble/hashes': - specifier: ^1.4.0 - version: 1.7.1 '@poppanator/sveltekit-svg': specifier: ^4.2.1 version: 4.2.1(rollup@2.79.2)(svelte@5.25.10)(svgo@3.3.2)(vite@5.4.17(@types/node@22.14.0)(terser@5.39.0)) @@ -92,6 +86,9 @@ importers: '@welshman/util': specifier: ^0.3.0 version: 0.3.0(typescript@5.8.3) + compressorjs: + specifier: ^1.2.1 + version: 1.2.1 daisyui: specifier: ^4.12.10 version: 4.12.24(postcss@8.5.3) @@ -1043,8 +1040,8 @@ packages: '@noble/curves@1.2.0': resolution: {integrity: sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==} - '@noble/curves@1.8.1': - resolution: {integrity: sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==} + '@noble/curves@1.9.2': + resolution: {integrity: sha512-HxngEd2XUcg9xi20JkwlLCtYwfoFw4JGkuZpT+WlsPD4gB/cxkvTD8fSsoAnphGZhFdZYKeQIPCuFlWPm1uE0g==} engines: {node: ^14.21.3 || >=16} '@noble/hashes@1.3.1': @@ -1055,8 +1052,8 @@ packages: resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} engines: {node: '>= 16'} - '@noble/hashes@1.7.1': - resolution: {integrity: sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ==} + '@noble/hashes@1.8.0': + resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} engines: {node: ^14.21.3 || >=16} '@nodelib/fs.scandir@2.1.5': @@ -1842,6 +1839,9 @@ packages: bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} + blueimp-canvas-to-blob@3.29.0: + resolution: {integrity: sha512-0pcSSGxC0QxT+yVkivxIqW0Y4VlO2XSDPofBAqoJ1qJxgH9eiUDLv50Rixij2cDuEfx4M6DpD9UGZpRhT5Q8qg==} + boolbase@1.0.0: resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} @@ -2018,6 +2018,9 @@ packages: compare-func@2.0.0: resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} + compressorjs@1.2.1: + resolution: {integrity: sha512-+geIjeRnPhQ+LLvvA7wxBQE5ddeLU7pJ3FsKFWirDw6veY3s9iLxAQEw7lXGHnhCJvBujEQWuNnGzZcvCvdkLQ==} + concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} @@ -2858,6 +2861,10 @@ packages: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} + is-blob@2.1.0: + resolution: {integrity: sha512-SZ/fTft5eUhQM6oF/ZaASFDEdbFVe89Imltn9uZr03wdKMcWNVYSMjQPFtg05QuNkt5l5c135ElvXEQG0rk4tw==} + engines: {node: '>=6'} + is-boolean-object@1.2.2: resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==} engines: {node: '>= 0.4'} @@ -5845,15 +5852,15 @@ snapshots: dependencies: '@noble/hashes': 1.3.2 - '@noble/curves@1.8.1': + '@noble/curves@1.9.2': dependencies: - '@noble/hashes': 1.7.1 + '@noble/hashes': 1.8.0 '@noble/hashes@1.3.1': {} '@noble/hashes@1.3.2': {} - '@noble/hashes@1.7.1': {} + '@noble/hashes@1.8.0': {} '@nodelib/fs.scandir@2.1.5': dependencies: @@ -6458,7 +6465,7 @@ snapshots: '@welshman/dvm@0.3.0(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@7.2.0))(typescript@5.8.3)(ws@8.18.2)': dependencies: - '@noble/hashes': 1.7.1 + '@noble/hashes': 1.8.0 '@welshman/lib': 0.3.0 '@welshman/net': 0.3.0(typescript@5.8.3)(ws@8.18.2) '@welshman/signer': 0.3.0(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@7.2.0))(typescript@5.8.3)(ws@8.18.2) @@ -6547,8 +6554,8 @@ snapshots: '@welshman/signer@0.3.0(nostr-signer-capacitor-plugin@0.0.4(@capacitor/core@7.2.0))(typescript@5.8.3)(ws@8.18.2)': dependencies: - '@noble/curves': 1.8.1 - '@noble/hashes': 1.7.1 + '@noble/curves': 1.9.2 + '@noble/hashes': 1.8.0 '@welshman/lib': 0.3.0 '@welshman/net': 0.3.0(typescript@5.8.3)(ws@8.18.2) '@welshman/util': 0.3.0(typescript@5.8.3) @@ -6767,6 +6774,8 @@ snapshots: inherits: 2.0.4 readable-stream: 3.6.2 + blueimp-canvas-to-blob@3.29.0: {} + boolbase@1.0.0: {} bplist-creator@0.1.0: @@ -6953,6 +6962,11 @@ snapshots: array-ify: 1.0.0 dot-prop: 5.3.0 + compressorjs@1.2.1: + dependencies: + blueimp-canvas-to-blob: 3.29.0 + is-blob: 2.1.0 + concat-map@0.0.1: {} consola@3.4.2: {} @@ -7933,6 +7947,8 @@ snapshots: dependencies: binary-extensions: 2.3.0 + is-blob@2.1.0: {} + is-boolean-object@1.2.2: dependencies: call-bound: 1.0.4 diff --git a/src/app/components/ContentLinkBlockImage.svelte b/src/app/components/ContentLinkBlockImage.svelte index 3848c081..19d4eca6 100644 --- a/src/app/components/ContentLinkBlockImage.svelte +++ b/src/app/components/ContentLinkBlockImage.svelte @@ -1,8 +1,7 @@