Merge branch 'main' of github.com:standardnotes/app

This commit is contained in:
Aman Harwara
2022-12-29 12:31:59 +05:30
30 changed files with 136 additions and 16 deletions

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.20.25](https://github.com/standardnotes/app/compare/@standardnotes/api@1.20.24...@standardnotes/api@1.20.25) (2022-12-28)
**Note:** Version bump only for package @standardnotes/api
## [1.20.24](https://github.com/standardnotes/app/compare/@standardnotes/api@1.20.23...@standardnotes/api@1.20.24) (2022-12-27)
**Note:** Version bump only for package @standardnotes/api

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/api",
"version": "1.20.24",
"version": "1.20.25",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

View File

@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.104.58](https://github.com/standardnotes/app/compare/@standardnotes/desktop@3.130.0...@standardnotes/desktop@3.104.58) (2022-12-29)
**Note:** Version bump only for package @standardnotes/desktop
## [3.104.57](https://github.com/standardnotes/app/compare/@standardnotes/desktop@3.129.3...@standardnotes/desktop@3.104.57) (2022-12-28)
**Note:** Version bump only for package @standardnotes/desktop
## [3.104.56](https://github.com/standardnotes/app/compare/@standardnotes/desktop@3.104.55...@standardnotes/desktop@3.104.56) (2022-12-28)
**Note:** Version bump only for package @standardnotes/desktop

View File

@@ -1,7 +1,7 @@
{
"name": "@standardnotes/desktop",
"main": "./app/dist/index.js",
"version": "3.104.56",
"version": "3.104.58",
"license": "AGPL-3.0-or-later",
"author": "Standard Notes.",
"private": true,

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.19.30](https://github.com/standardnotes/app/compare/@standardnotes/encryption@1.19.29...@standardnotes/encryption@1.19.30) (2022-12-28)
**Note:** Version bump only for package @standardnotes/encryption
## [1.19.29](https://github.com/standardnotes/app/compare/@standardnotes/encryption@1.19.28...@standardnotes/encryption@1.19.29) (2022-12-27)
**Note:** Version bump only for package @standardnotes/encryption

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/encryption",
"version": "1.19.29",
"version": "1.19.30",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

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.57.0](https://github.com/standardnotes/app/compare/@standardnotes/features@1.56.0...@standardnotes/features@1.57.0) (2022-12-28)
### Features
* Added "Files Table View" to Labs ([b764296](https://github.com/standardnotes/app/commit/b764296c8f831d06f854dcf2982e644c27e14e7c))
# [1.56.0](https://github.com/standardnotes/app/compare/@standardnotes/features@1.55.3...@standardnotes/features@1.56.0) (2022-12-05)
### Features

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/features",
"version": "1.56.0",
"version": "1.57.0",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

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.27.8](https://github.com/standardnotes/app/compare/@standardnotes/filepicker@1.27.7...@standardnotes/filepicker@1.27.8) (2022-12-28)
**Note:** Version bump only for package @standardnotes/filepicker
## [1.27.7](https://github.com/standardnotes/app/compare/@standardnotes/filepicker@1.27.6...@standardnotes/filepicker@1.27.7) (2022-12-27)
**Note:** Version bump only for package @standardnotes/filepicker

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/filepicker",
"version": "1.27.7",
"version": "1.27.8",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

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.14.7](https://github.com/standardnotes/app/compare/@standardnotes/files@1.14.6...@standardnotes/files@1.14.7) (2022-12-28)
**Note:** Version bump only for package @standardnotes/files
## [1.14.6](https://github.com/standardnotes/app/compare/@standardnotes/files@1.14.5...@standardnotes/files@1.14.6) (2022-12-27)
**Note:** Version bump only for package @standardnotes/files

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/files",
"version": "1.14.6",
"version": "1.14.7",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

View File

@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.49.55](https://github.com/standardnotes/app/compare/@standardnotes/mobile@3.49.54...@standardnotes/mobile@3.49.55) (2022-12-29)
**Note:** Version bump only for package @standardnotes/mobile
## [3.49.54](https://github.com/standardnotes/app/compare/@standardnotes/mobile@3.49.53...@standardnotes/mobile@3.49.54) (2022-12-28)
**Note:** Version bump only for package @standardnotes/mobile
## [3.49.53](https://github.com/standardnotes/app/compare/@standardnotes/mobile@3.49.52...@standardnotes/mobile@3.49.53) (2022-12-28)
**Note:** Version bump only for package @standardnotes/mobile

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/mobile",
"version": "3.49.53",
"version": "3.49.55",
"author": "Standard Notes.",
"private": true,
"license": "AGPL-3.0-or-later",

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.40.2](https://github.com/standardnotes/app/compare/@standardnotes/models@1.40.1...@standardnotes/models@1.40.2) (2022-12-28)
**Note:** Version bump only for package @standardnotes/models
## [1.40.1](https://github.com/standardnotes/app/compare/@standardnotes/models@1.40.0...@standardnotes/models@1.40.1) (2022-12-27)
**Note:** Version bump only for package @standardnotes/models

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/models",
"version": "1.40.1",
"version": "1.40.2",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

View File

@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.4.81](https://github.com/standardnotes/app/compare/@standardnotes/releases@1.4.80...@standardnotes/releases@1.4.81) (2022-12-29)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.80](https://github.com/standardnotes/app/compare/@standardnotes/releases@1.4.79...@standardnotes/releases@1.4.80) (2022-12-28)
**Note:** Version bump only for package @standardnotes/releases
## [1.4.79](https://github.com/standardnotes/app/compare/@standardnotes/releases@1.4.78...@standardnotes/releases@1.4.79) (2022-12-28)
**Note:** Version bump only for package @standardnotes/releases

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/releases",
"version": "1.4.79",
"version": "1.4.81",
"license": "AGPL-3.0-or-later",
"main": "dist/releases.json",
"types": "dist/index.d.ts",

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.12.11](https://github.com/standardnotes/app/compare/@standardnotes/responses@1.12.10...@standardnotes/responses@1.12.11) (2022-12-28)
**Note:** Version bump only for package @standardnotes/responses
## [1.12.10](https://github.com/standardnotes/app/compare/@standardnotes/responses@1.12.9...@standardnotes/responses@1.12.10) (2022-12-05)
**Note:** Version bump only for package @standardnotes/responses

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/responses",
"version": "1.12.10",
"version": "1.12.11",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

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.50.13](https://github.com/standardnotes/app/compare/@standardnotes/services@1.50.12...@standardnotes/services@1.50.13) (2022-12-28)
**Note:** Version bump only for package @standardnotes/services
## [1.50.12](https://github.com/standardnotes/app/compare/@standardnotes/services@1.50.11...@standardnotes/services@1.50.12) (2022-12-27)
**Note:** Version bump only for package @standardnotes/services

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/services",
"version": "1.50.12",
"version": "1.50.13",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

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.
## [2.156.15](https://github.com/standardnotes/app/compare/@standardnotes/snjs@2.156.14...@standardnotes/snjs@2.156.15) (2022-12-28)
**Note:** Version bump only for package @standardnotes/snjs
## [2.156.14](https://github.com/standardnotes/app/compare/@standardnotes/snjs@2.156.13...@standardnotes/snjs@2.156.14) (2022-12-27)
**Note:** Version bump only for package @standardnotes/snjs

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/snjs",
"version": "2.156.14",
"version": "2.156.15",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

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.21.4](https://github.com/standardnotes/app/compare/@standardnotes/ui-services@1.21.3...@standardnotes/ui-services@1.21.4) (2022-12-28)
**Note:** Version bump only for package @standardnotes/ui-services
## [1.21.3](https://github.com/standardnotes/app/compare/@standardnotes/ui-services@1.21.2...@standardnotes/ui-services@1.21.3) (2022-12-27)
**Note:** Version bump only for package @standardnotes/ui-services

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/ui-services",
"version": "1.21.3",
"version": "1.21.4",
"engines": {
"node": ">=16.0.0 <17.0.0"
},

View File

@@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.130.2](https://github.com/standardnotes/app/compare/@standardnotes/web@3.130.0...@standardnotes/web@3.130.2) (2022-12-29)
### Bug Fixes
* Fixed issue where Moments could incorrectly get engaged during biometrics unlocking ([8e3ae80](https://github.com/standardnotes/app/commit/8e3ae80aa09c0c60e4f3ad08497fd656a1231465))
# [3.130.0](https://github.com/standardnotes/app/compare/@standardnotes/web@3.129.3...@standardnotes/web@3.130.0) (2022-12-28)
### Features
* Added "Files Table View" to Labs ([b764296](https://github.com/standardnotes/app/commit/b764296c8f831d06f854dcf2982e644c27e14e7c))
## [3.129.3](https://github.com/standardnotes/app/compare/@standardnotes/web@3.129.2...@standardnotes/web@3.129.3) (2022-12-28)
**Note:** Version bump only for package @standardnotes/web

View File

@@ -1,5 +1,33 @@
{
"versions": [
{
"version": "3.130.2",
"title": "[3.130.2](https://github.com/standardnotes/app/compare/@standardnotes/web@3.130.0...@standardnotes/web@3.130.2) (2022-12-29)",
"date": null,
"body": "### Bug Fixes\n\n* Fixed issue where Moments could incorrectly get engaged during biometrics unlocking ([8e3ae80](https://github.com/standardnotes/app/commit/8e3ae80aa09c0c60e4f3ad08497fd656a1231465))",
"parsed": {
"_": [
"Fixed issue where Moments could incorrectly get engaged during biometrics unlocking (8e3ae80)"
],
"Bug Fixes": [
"Fixed issue where Moments could incorrectly get engaged during biometrics unlocking (8e3ae80)"
]
}
},
{
"version": "3.130.0",
"title": "[3.130.0](https://github.com/standardnotes/app/compare/@standardnotes/web@3.129.3...@standardnotes/web@3.130.0) (2022-12-28)",
"date": null,
"body": "### Features\n\n* Added \"Files Table View\" to Labs ([b764296](https://github.com/standardnotes/app/commit/b764296c8f831d06f854dcf2982e644c27e14e7c))",
"parsed": {
"_": [
"Added \"Files Table View\" to Labs (b764296)"
],
"Features": [
"Added \"Files Table View\" to Labs (b764296)"
]
}
},
{
"version": "3.129.3",
"title": "[3.129.3](https://github.com/standardnotes/app/compare/@standardnotes/web@3.129.2...@standardnotes/web@3.129.3) (2022-12-28)",

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/web",
"version": "3.129.3",
"version": "3.130.2",
"license": "AGPL-3.0-or-later",
"main": "dist/app.js",
"author": "Standard Notes.",

View File

@@ -29,11 +29,13 @@ export class MomentsService extends AbstractViewController {
void this.beginTakingPhotos()
}
}, ApplicationEvent.LocalDataLoaded),
application.addEventObserver(async () => {
this.disableMoments()
this.pauseMoments()
}, ApplicationEvent.BiometricsSoftLockEngaged),
application.addEventObserver(async () => {
this.enableMoments()
this.resumeMoments()
}, ApplicationEvent.BiometricsSoftLockDisengaged),
)
@@ -67,6 +69,18 @@ export class MomentsService extends AbstractViewController {
clearInterval(this.intervalReference)
}
private pauseMoments(): void {
clearInterval(this.intervalReference)
}
private resumeMoments(): void {
if (!this.isEnabled) {
return
}
void this.beginTakingPhotos()
}
private beginTakingPhotos() {
if (this.intervalReference) {
clearInterval(this.intervalReference)