Compare commits

...
Author SHA1 Message Date
StandardNotes CI ede3bada2e chore(release): publish
- @standardnotes/[email protected].2
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].2
 - @standardnotes/[email protected].2
 - @standardnotes/[email protected].2
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].4
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].1
 - @standardnotes/[email protected].3
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].1
 - @standardnotes/[email protected].6
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-11-04 03:12:44 +00:00
StandardNotes CI a4ca89118b chore(release): components 2022-11-04 03:12:26 +00:00
Mo 8b9a75530c chore: types 2022-11-03 21:33:58 -05:00
Mo b2831963fd chore: types 2022-11-03 21:30:22 -05:00
Mo 0f90db2836 chore: models workspace deps to devDeps so it can be used externally (skip e2e) 2022-11-03 21:23:49 -05:00
Mo 6759386bef chore: type required by plugins (skip e2e) 2022-11-03 21:20:48 -05:00
Mo 5ed61d1097 chore: fix build script (skip e2e) 2022-11-03 21:04:16 -05:00
Mo 8bb9f4ed11 chore: snjs workspace deps to devDeps so it can be used externally (skip e2e) 2022-11-03 20:58:34 -05:00
Mo 1252375a2e chore: publish packages required by plugins (skip e2e) 2022-11-03 20:43:21 -05:00
StandardNotes CI 1e2542e4f5 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].5
2022-11-03 20:40:20 +00:00
Aman Harwara 633d6189fb fix: padding on files view on mobile (#1934) 2022-11-04 01:34:47 +05:30
StandardNotes CI 5075b0c85a chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].4
2022-11-03 16:07:18 +00:00
Aman Harwara 2dd0586bb1 fix: archived/trashed items getting unselected when changed (#1932) 2022-11-03 21:04:55 +05:30
StandardNotes CI eab3dc99ed chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].3
2022-11-03 15:07:49 +00:00
Mo 5bb4435c5b fix: unable to add children to favorited tag; remove expand-on-click; render arrow before title (#1931) 2022-11-03 09:38:31 -05:00
53 changed files with 319 additions and 222 deletions
-4
View File
@@ -1,4 +0,0 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
yarn commitlint --edit $1
-2
View File
@@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
+2 -2
View File
@@ -22,12 +22,12 @@
"lint": "yarn workspaces foreach -t --verbose --exclude @standardnotes/components-meta run lint",
"test": "yarn workspaces foreach -pt --jobs 10 --verbose --exclude @standardnotes/components-meta run test",
"clean": "lerna run clean",
"build:all": "yarn workspaces foreach -pt --verbose --exclude '{@standardnotes/docs}' run build",
"build:all": "yarn workspaces foreach -pt --topological-dev --verbose --exclude '{@standardnotes/docs}' run build",
"build:components": "yarn workspaces foreach -pt --verbose --interlaced -R --from @standardnotes/components-meta run build",
"build:web": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/web --exclude @standardnotes/components-meta run build",
"build:desktop": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/desktop --exclude @standardnotes/components-meta run build",
"build:mobile": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/mobile --exclude @standardnotes/components-meta run build",
"build:snjs": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/snjs --exclude @standardnotes/components-meta run build",
"build:snjs": "yarn workspaces foreach -p --topological-dev --verbose -R --from @standardnotes/snjs --exclude @standardnotes/components-meta run build",
"build:services": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/services --exclude @standardnotes/components-meta run build",
"build:api": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/api --exclude @standardnotes/components-meta run build",
"start:server:web": "lerna run start --scope=@standardnotes/web",
+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.19.2](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/api
## [1.19.1](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-02)
**Note:** Version bump only for package @standardnotes/api
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/api",
"version": "1.19.1",
"version": "1.19.2",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
+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.
## [2.7.25](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/components-meta
## [2.7.24](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-02)
**Note:** Version bump only for package @standardnotes/components-meta
+6 -6
View File
@@ -70,9 +70,9 @@
"binary": "b621bfd81829a205f2f02e85d446e277ad20e367b92676ec20b3ee59b1bfab3f"
},
"org.standardnotes.markdown-visual-editor": {
"version": "1.1.5",
"base64": "7aea4cbf43d8cb6411171d09c1cd7e0428d59ab53419b601011ccfeb747426a3",
"binary": "ad75788eee720990203f8443bdc8c0a171ec404ba3462d33f833937d6ba236a4"
"version": "1.1.6",
"base64": "def28b9d33e378b56a610e662951cbbad1cc9313c994c0c099e63b1df8baa2ec",
"binary": "0fb52462d0183397e259afc437c3bd338e1466138505c0fa2179c036a466e505"
},
"org.standardnotes.simple-task-editor": {
"version": "1.4.4",
@@ -80,9 +80,9 @@
"binary": "9df983a144b9686f4f58b03bf78bf1f84f53aea60251621a75586722bf576475"
},
"org.standardnotes.token-vault": {
"version": "2.2.7",
"base64": "fd6ecde33b7135487a60d630813de8f8b4e5e0f06457c7dfda5bee28f3ea1113",
"binary": "88d1401384373ea8bc4b1c4669b34733e24d3692f7aa544b2d6f796de2275703"
"version": "2.2.8",
"base64": "2d91555d9db1aab56d3e3ce15623fb7de14f4efe7d5904bd4db7d081f5991ada",
"binary": "8a7cac8e08d1b18fa2c5a76b8a2a621f0c57b5b71eb9465eaf4de96c89361515"
},
"org.standardnotes.standard-sheets": {
"version": "1.5.1",
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/components-meta",
"version": "2.7.24",
"version": "2.7.25",
"private": true,
"author": "Standard Notes.",
"main": "dist",
@@ -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.1.6](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/markdown-visual
## [1.1.5](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-01)
**Note:** Version bump only for package @standardnotes/markdown-visual
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/markdown-visual",
"version": "1.1.5",
"version": "1.1.6",
"author": "Johnny Almonte <[email protected]>",
"description": "A lightweight WYSIWYG markdown editor for Standard Notes, derived from Milkdown.",
"keywords": [
@@ -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.2.8](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/authenticator
## [2.2.7](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-01)
**Note:** Version bump only for package @standardnotes/authenticator
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/authenticator",
"version": "2.2.7",
"version": "2.2.8",
"main": "dist/dist.js",
"author": "Standard Notes",
"private": true,
+16
View File
@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.23.275](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/desktop
## [3.23.274](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/desktop
## [3.23.273](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/desktop
## [3.23.272](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/desktop
## [3.23.271](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
### Bug Fixes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@standardnotes/desktop",
"main": "./app/dist/index.js",
"version": "3.23.271",
"version": "3.23.275",
"license": "AGPL-3.0-or-later",
"author": "Standard Notes.",
"private": true,
+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.19.2](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/encryption
## [1.19.1](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-02)
**Note:** Version bump only for package @standardnotes/encryption
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/encryption",
"version": "1.19.1",
"version": "1.19.2",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
+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.25.2](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/filepicker
## [1.25.1](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-02)
**Note:** Version bump only for package @standardnotes/filepicker
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/filepicker",
"version": "1.25.1",
"version": "1.25.2",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
+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.12.2](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/files
## [1.12.1](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-02)
**Note:** Version bump only for package @standardnotes/files
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/files",
"version": "1.12.1",
"version": "1.12.2",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
+16
View File
@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.45.24](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/mobile
## [3.45.23](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/mobile
## [3.45.22](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/mobile
## [3.45.21](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/mobile
## [3.45.20](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/mobile
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/mobile",
"version": "3.45.20",
"version": "3.45.24",
"author": "Standard Notes.",
"private": true,
"license": "AGPL-3.0-or-later",
+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.34.4](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/models
# [1.34.0](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-02)
### Features
+7 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/models",
"version": "1.34.0",
"version": "1.34.4",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -22,21 +22,19 @@
"test": "jest"
},
"devDependencies": {
"@standardnotes/common": "^1.43.0",
"@standardnotes/features": "workspace:*",
"@standardnotes/responses": "workspace:*",
"@standardnotes/utils": "workspace:*",
"@types/jest": "^28.1.5",
"@types/lodash": "^4.14.182",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"eslint": "*",
"eslint-plugin-prettier": "*",
"jest": "^28.1.2",
"lodash": "^4.17.21",
"reflect-metadata": "^0.1.13",
"ts-jest": "^28.0.5",
"typescript": "*"
},
"dependencies": {
"@standardnotes/common": "^1.43.0",
"@standardnotes/features": "workspace:*",
"@standardnotes/responses": "workspace:*",
"@standardnotes/utils": "workspace:*",
"lodash": "^4.17.21",
"reflect-metadata": "^0.1.13"
}
}
@@ -0,0 +1,19 @@
import { ItemContent } from './../Content/ItemContent'
import { ContentType } from '@standardnotes/common'
export type OutgoingItemMessagePayload<C extends ItemContent = ItemContent> = {
uuid: string
content_type: ContentType
created_at: Date
updated_at: Date
deleted?: boolean
content?: C
clientData?: Record<string, unknown>
/**
* isMetadataUpdate implies that the extension should make reference of updated
* metadata, but not update content values as they may be stale relative to what the
* extension currently has.
*/
isMetadataUpdate: boolean
}
+1
View File
@@ -5,6 +5,7 @@ export * from './Abstract/Component/ComponentViewerEvent'
export * from './Abstract/Component/IncomingComponentItemPayload'
export * from './Abstract/Component/KeyboardModifier'
export * from './Abstract/Component/MessageData'
export * from './Abstract/Component/OutgoingItemMessagePayload'
export * from './Abstract/Component/PermissionDialog'
export * from './Abstract/Content/ItemContent'
export * from './Abstract/Contextual/BackupFile'
+16
View File
@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.3.206](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/releases
## [1.3.205](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/releases
## [1.3.204](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/releases
## [1.3.203](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/releases
## [1.3.202](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/releases
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/releases",
"version": "1.3.202",
"version": "1.3.206",
"license": "AGPL-3.0-or-later",
"main": "dist/releases.json",
"types": "dist/index.d.ts",
+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.42.1](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/services
# [1.42.0](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
### Features
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/services",
"version": "1.42.0",
"version": "1.42.1",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
+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.
## [2.147.3](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/snjs
## [2.147.1](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
**Note:** Version bump only for package @standardnotes/snjs
@@ -34,6 +34,7 @@ import {
MessageData,
Environment,
Platform,
OutgoingItemMessagePayload,
} from '@standardnotes/models'
import find from 'lodash/find'
import uniq from 'lodash/uniq'
@@ -41,7 +42,6 @@ import remove from 'lodash/remove'
import { SNSyncService } from '@Lib/Services/Sync/SyncService'
import { environmentToString, platformToString } from '@Lib/Application/Platforms'
import {
OutgoingItemMessagePayload,
MessageReply,
StreamItemsMessageData,
AllowedBatchContentTypes,
@@ -1,25 +1,8 @@
import { ComponentArea, ComponentAction, FeatureIdentifier, LegacyFileSafeIdentifier } from '@standardnotes/features'
import { ComponentMessage, ItemContent, MessageData } from '@standardnotes/models'
import { ComponentMessage, MessageData, OutgoingItemMessagePayload } from '@standardnotes/models'
import { UuidString } from '@Lib/Types/UuidString'
import { ContentType } from '@standardnotes/common'
export type OutgoingItemMessagePayload = {
uuid: string
content_type: ContentType
created_at: Date
updated_at: Date
deleted?: boolean
content?: ItemContent
clientData?: Record<string, unknown>
/**
* isMetadataUpdate implies that the extension should make reference of updated
* metadata, but not update content values as they may be stale relative to what the
* extension currently has.
*/
isMetadataUpdate: boolean
}
/**
* Extensions allowed to batch stream AllowedBatchContentTypes
*/
+20 -20
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/snjs",
"version": "2.147.1",
"version": "2.147.3",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
@@ -13,7 +13,9 @@
"e2e-server.js"
],
"license": "AGPL-3.0-or-later",
"private": true,
"publishConfig": {
"access": "public"
},
"scripts": {
"start": "webpack -w --config webpack.dev.js",
"start:test-server": "yarn node e2e-server.js",
@@ -32,6 +34,20 @@
"devDependencies": {
"@babel/core": "*",
"@babel/preset-env": "*",
"@standardnotes/api": "workspace:*",
"@standardnotes/common": "^1.43.0",
"@standardnotes/domain-events": "^2.39.0",
"@standardnotes/encryption": "workspace:*",
"@standardnotes/features": "workspace:*",
"@standardnotes/files": "workspace:*",
"@standardnotes/models": "workspace:*",
"@standardnotes/responses": "workspace:*",
"@standardnotes/security": "^1.2.0",
"@standardnotes/services": "workspace:*",
"@standardnotes/settings": "^1.17.0",
"@standardnotes/sncrypto-common": "workspace:*",
"@standardnotes/sncrypto-web": "workspace:*",
"@standardnotes/utils": "workspace:*",
"@types/crypto-js": "^4.1.1",
"@types/jest": "^28.1.5",
"@types/jsdom": "^16.2.14",
@@ -55,7 +71,9 @@
"lodash": "^4.17.21",
"nock": "^13.2.4",
"otplib": "^12.0.1",
"reflect-metadata": "^0.1.13",
"script-loader": "^0.7.2",
"semver": "^7.3.7",
"ts-jest": "^28.0.5",
"ts-loader": "^9.2.6",
"ts-node": "^10.8.1",
@@ -65,23 +83,5 @@
"webpack": "*",
"webpack-cli": "*",
"webpack-merge": "^5.8.0"
},
"dependencies": {
"@standardnotes/api": "workspace:*",
"@standardnotes/common": "^1.43.0",
"@standardnotes/domain-events": "^2.39.0",
"@standardnotes/encryption": "workspace:*",
"@standardnotes/features": "workspace:*",
"@standardnotes/files": "workspace:*",
"@standardnotes/models": "workspace:*",
"@standardnotes/responses": "workspace:*",
"@standardnotes/security": "^1.2.0",
"@standardnotes/services": "workspace:*",
"@standardnotes/settings": "^1.17.0",
"@standardnotes/sncrypto-common": "workspace:*",
"@standardnotes/sncrypto-web": "workspace:*",
"@standardnotes/utils": "workspace:*",
"reflect-metadata": "^0.1.13",
"semver": "^7.3.7"
}
}
+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.6.2](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/styles
## [1.6.1](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-01)
### Bug Fixes
+1 -2
View File
@@ -1,7 +1,6 @@
{
"name": "@standardnotes/styles",
"version": "1.6.1",
"private": true,
"version": "1.6.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"publishConfig": {
+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.13.1](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/ui-services
# [1.13.0](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
### Features
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/ui-services",
"version": "1.13.0",
"version": "1.13.1",
"engines": {
"node": ">=16.0.0 <17.0.0"
},
+22
View File
@@ -3,6 +3,28 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.93.6](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-04)
**Note:** Version bump only for package @standardnotes/web
## [3.93.5](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
### Bug Fixes
* padding on files view on mobile ([#1934](https://github.com/standardnotes/app/issues/1934)) ([633d618](https://github.com/standardnotes/app/commit/633d6189fbbd2a470a74f8bfd352e8b3e7af684c))
## [3.93.4](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
### Bug Fixes
* archived/trashed items getting unselected when changed ([#1932](https://github.com/standardnotes/app/issues/1932)) ([2dd0586](https://github.com/standardnotes/app/commit/2dd0586bb16cb29c7c2a538e82aca48f247910e6))
## [3.93.3](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
### Bug Fixes
* unable to add children to favorited tag; remove expand-on-click; render arrow before title ([#1931](https://github.com/standardnotes/app/issues/1931)) ([5bb4435](https://github.com/standardnotes/app/commit/5bb4435c5b10de6e0fcb580472e028f76cd2a5bd))
## [3.93.2](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-11-03)
### Bug Fixes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/web",
"version": "3.93.2",
"version": "3.93.6",
"license": "AGPL-3.0-or-later",
"main": "dist/app.js",
"author": "Standard Notes.",
@@ -72,11 +72,11 @@ const ResponsivePaneProvider = ({ paneController, children }: ProviderProps) =>
useEffect(() => {
if (previousSelectedPane) {
const previousPaneElement = document.getElementById(ElementIds[previousSelectedPane])
previousPaneElement?.classList.remove('selected')
previousPaneElement?.removeAttribute('data-selected-pane')
}
const currentPaneElement = document.getElementById(ElementIds[currentSelectedPane])
currentPaneElement?.classList.add('selected')
currentPaneElement?.setAttribute('data-selected-pane', '')
}, [currentSelectedPane, previousSelectedPane])
const addAndroidBackHandler = useAndroidBackHandler()
@@ -50,7 +50,7 @@ const SmartViewsListItem: FunctionComponent<Props> = ({ view, tagsState }) => {
}, [setTitle, view])
const selectCurrentTag = useCallback(async () => {
await tagsState.setSelectedTag(view, {
await tagsState.setSelectedTag(view, 'views', {
userTriggered: true,
})
toggleAppPane(AppPaneId.Items)
@@ -86,7 +86,7 @@ const SmartViewsListItem: FunctionComponent<Props> = ({ view, tagsState }) => {
}, [inputRef, isEditing])
const onClickRename = useCallback(() => {
tagsState.editingTag = view
tagsState.setEditingTag(view)
}, [tagsState, view])
const onClickSave = useCallback(() => {
@@ -40,8 +40,7 @@ const TagContextMenu = ({ navigationController, isEntitledToFolders, selectedTag
const onClickRename = useCallback(() => {
navigationController.setContextMenuOpen(false)
navigationController.editingFrom = navigationController.contextMenuOpenFrom
navigationController.editingTag = selectedTag
navigationController.setEditingTag(selectedTag)
}, [navigationController, selectedTag])
const onClickDelete = useCallback(() => {
@@ -1 +1 @@
export type TagListSectionType = 'all' | 'favorites'
export type TagListSectionType = 'views' | 'all' | 'favorites'
@@ -25,19 +25,18 @@ const TagsList: FunctionComponent<Props> = ({ viewControllerManager, type }: Pro
x: posX,
y: posY,
})
viewControllerManager.navigationController.setContextMenuOpenFrom(type)
viewControllerManager.navigationController.reloadContextMenuLayout()
viewControllerManager.navigationController.setContextMenuOpen(true)
},
[viewControllerManager, type],
[viewControllerManager],
)
const onContextMenu = useCallback(
(tag: SNTag, posX: number, posY: number) => {
void viewControllerManager.navigationController.setSelectedTag(tag)
void viewControllerManager.navigationController.setSelectedTag(tag, type)
openTagContextMenu(posX, posY)
},
[viewControllerManager, openTagContextMenu],
[viewControllerManager, openTagContextMenu, type],
)
return (
@@ -47,24 +47,21 @@ export const TagsListItem: FunctionComponent<Props> = observer(
({ tag, type, features, navigationController: navigationController, level, onContextMenu, linkingController }) => {
const { toggleAppPane } = useResponsiveAppPane()
const isFavorite = type === 'favorites'
const [title, setTitle] = useState(tag.title || '')
const [subtagTitle, setSubtagTitle] = useState('')
const inputRef = useRef<HTMLInputElement>(null)
const subtagInputRef = useRef<HTMLInputElement>(null)
const menuButtonRef = useRef<HTMLAnchorElement>(null)
const isSelected = navigationController.selected === tag
const isEditing = navigationController.editingTag === tag && navigationController.editingFrom === type
const isAddingSubtag = navigationController.addingSubtagTo === tag
const isSelected = navigationController.selected === tag && navigationController.selectedLocation === type
const isEditing = navigationController.editingTag === tag && navigationController.selectedLocation === type
const isAddingSubtag = navigationController.addingSubtagTo === tag && navigationController.selectedLocation === type
const noteCounts = computed(() => navigationController.getNotesCount(tag))
const childrenTags = computed(() => navigationController.getChildren(tag)).get()
const hasChildren = childrenTags.length > 0
const hasFolders = features.hasFolders
const hasAtLeastOneFolder = navigationController.hasAtLeastOneFolder
const premiumModal = usePremiumModal()
@@ -93,12 +90,11 @@ export const TagsListItem: FunctionComponent<Props> = observer(
)
const selectCurrentTag = useCallback(async () => {
await navigationController.setSelectedTag(tag, {
await navigationController.setSelectedTag(tag, type, {
userTriggered: true,
})
toggleChildren()
toggleAppPane(AppPaneId.Items)
}, [navigationController, tag, toggleAppPane, toggleChildren])
}, [navigationController, tag, type, toggleAppPane])
const onBlur = useCallback(() => {
navigationController.save(tag, title).catch(console.error)
@@ -257,23 +253,14 @@ export const TagsListItem: FunctionComponent<Props> = observer(
}}
>
<div className="tag-info" title={title} ref={dropRef}>
{hasAtLeastOneFolder && !isFavorite && (
<div className="tag-fold-container">
<a
role="button"
className={`tag-fold focus:shadow-inner ${showChildren ? 'opened' : 'closed'} ${
!hasChildren ? 'invisible' : ''
}`}
onClick={hasChildren ? toggleChildren : undefined}
>
<Icon className={'text-neutral'} type={showChildren ? 'menu-arrow-down-alt' : 'menu-arrow-right'} />
</a>
</div>
)}
<div className={'tag-icon draggable mr-2'} ref={dragRef}>
<Icon type={tag.iconString as IconType} className={`${isSelected ? 'text-info' : 'text-neutral'}`} />
<div onClick={selectCurrentTag} className={'tag-icon draggable mr-2'} ref={dragRef}>
<Icon
type={tag.iconString as IconType}
className={`cursor-pointer ${isSelected ? 'text-info' : 'text-neutral'}`}
/>
</div>
{isEditing ? (
{isEditing && (
<input
className={
'title editing text-mobile-navigation-list-item focus:shadow-none focus:outline-none lg:text-navigation-list-item'
@@ -286,34 +273,60 @@ export const TagsListItem: FunctionComponent<Props> = observer(
spellCheck={false}
ref={inputRef}
/>
) : (
<div
className={
'title overflow-hidden text-left text-mobile-navigation-list-item focus:shadow-none focus:outline-none lg:text-navigation-list-item'
}
id={`react-tag-${tag.uuid}-${type}`}
>
{title}
</div>
)}
{!isEditing && (
<>
<div
className={
'title overflow-hidden text-left text-mobile-navigation-list-item focus:shadow-none focus:outline-none lg:text-navigation-list-item'
}
id={`react-tag-${tag.uuid}-${type}`}
>
{title}
</div>
</>
)}
<div className="flex items-center">
<a
role="button"
className={`mr-2 cursor-pointer border-0 bg-transparent hover:bg-contrast focus:shadow-inner ${
isSelected ? 'visible' : 'invisible'
{isSelected && (
<a
role="button"
className={'mr-2 cursor-pointer border-0 bg-transparent hover:bg-contrast focus:shadow-inner'}
onClick={toggleContextMenu}
ref={menuButtonRef}
>
<Icon type="more" className="text-neutral" />
</a>
)}
{hasChildren && (
<a
role="button"
className={`focus:shadow-inner ${showChildren ? 'cursor-n-resize' : 'cursor-s-resize'} ${
showChildren ? 'opened' : 'closed'
} `}
onClick={toggleChildren}
>
<Icon
className={'text-neutral'}
size="large"
type={showChildren ? 'menu-arrow-down-alt' : 'menu-arrow-right'}
/>
</a>
)}
<div
onClick={hasChildren ? toggleChildren : undefined}
className={`count text-base lg:text-sm ${
hasChildren ? (showChildren ? 'cursor-n-resize' : 'cursor-s-resize') : ''
}`}
onClick={toggleContextMenu}
ref={menuButtonRef}
>
<Icon type="more" className="text-neutral" />
</a>
<div className="count text-base lg:text-sm">{noteCounts.get()}</div>
{noteCounts.get()}
</div>
</div>
</div>
<div className={`meta ${hasAtLeastOneFolder ? 'with-folders' : ''}`}>
{tag.conflictOf && <div className="-mt-1 text-[0.625rem] font-bold text-danger">Conflicted Copy</div>}
</div>
{tag.conflictOf && <div className="-mt-1 text-[0.625rem] font-bold text-danger">Conflicted Copy</div>}
</div>
{isAddingSubtag && (
<div
@@ -393,15 +393,38 @@ export class ItemListController extends AbstractViewController implements Intern
}
private shouldSelectNextItemOrCreateNewNote = (activeItem: SNNote | FileItem | undefined) => {
const shouldShowTrashedNotes =
this.navigationController.isInSystemView(SystemViewId.TrashedNotes) || this.searchOptionsController.includeTrashed
const selectedView = this.navigationController.selected
const shouldShowArchivedNotes =
this.navigationController.isInSystemView(SystemViewId.ArchivedNotes) ||
this.searchOptionsController.includeArchived ||
this.application.getPreference(PrefKey.NotesShowArchived, PrefDefaults[PrefKey.NotesShowArchived])
const isActiveItemTrashed = activeItem?.trashed
const isActiveItemArchived = activeItem?.archived
return (activeItem?.trashed && !shouldShowTrashedNotes) || (activeItem?.archived && !shouldShowArchivedNotes)
if (isActiveItemTrashed) {
const selectedSmartViewShowsTrashed =
selectedView instanceof SmartView && selectedView.predicate.keypathIncludesString('trashed')
const shouldShowTrashedNotes =
this.navigationController.isInSystemView(SystemViewId.TrashedNotes) ||
this.searchOptionsController.includeTrashed ||
selectedSmartViewShowsTrashed ||
this.displayOptions.includeTrashed
return !shouldShowTrashedNotes
}
if (isActiveItemArchived) {
const selectedSmartViewShowsArchived =
selectedView instanceof SmartView && selectedView.predicate.keypathIncludesString('archived')
const shouldShowArchivedNotes =
this.navigationController.isInSystemView(SystemViewId.ArchivedNotes) ||
this.searchOptionsController.includeArchived ||
selectedSmartViewShowsArchived ||
this.displayOptions.includeArchived
return !shouldShowArchivedNotes
}
return false
}
private shouldSelectActiveItem = (activeItem: SNNote | FileItem | undefined) => {
@@ -247,7 +247,7 @@ export class LinkingController extends AbstractViewController {
this.setIsLinkingPanelOpen(false)
if (item instanceof SNTag) {
await this.navigationController.setSelectedTag(item)
await this.navigationController.setSelectedTag(item, 'all')
return AppPaneId.Items
} else if (item instanceof SNNote) {
await this.navigationController.selectHomeNavigationView()
@@ -2,9 +2,7 @@ import { confirmDialog, NavigationControllerPersistableValue } from '@standardno
import { STRING_DELETE_TAG } from '@/Constants/Strings'
import { MAX_MENU_SIZE_MULTIPLIER, MENU_MARGIN_FROM_APP_BORDER, SMART_TAGS_FEATURE_NAME } from '@/Constants/Constants'
import {
ComponentAction,
ContentType,
MessageData,
SmartView,
SNTag,
TagMutator,
@@ -37,14 +35,13 @@ export class NavigationController
starredTags: SNTag[] = []
allNotesCount_ = 0
selectedUuid: AnyTag['uuid'] | undefined = undefined
selected_: AnyTag | undefined
previouslySelected_: AnyTag | undefined
editing_: SNTag | SmartView | undefined
editingFrom?: TagListSectionType
addingSubtagTo: SNTag | undefined
selected_: AnyTag | undefined = undefined
selectedLocation: TagListSectionType | undefined = undefined
previouslySelected_: AnyTag | undefined = undefined
editing_: SNTag | SmartView | undefined = undefined
addingSubtagTo: SNTag | undefined = undefined
contextMenuOpen = false
contextMenuOpenFrom?: TagListSectionType
contextMenuPosition: { top?: number; left: number; bottom?: number } = {
top: 0,
left: 0,
@@ -58,24 +55,18 @@ export class NavigationController
super(application, eventBus)
this.tagsCountsState = new TagsCountsState(this.application)
this.selected_ = undefined
this.previouslySelected_ = undefined
this.editing_ = undefined
this.addingSubtagTo = undefined
this.smartViews = this.application.items.getSmartViews()
makeObservable(this, {
tags: observable,
starredTags: observable,
smartViews: observable.ref,
hasAtLeastOneFolder: computed,
allNotesCount_: observable,
allNotesCount: computed,
setAllNotesCount: action,
selected_: observable,
selectedLocation: observable,
previouslySelected_: observable.ref,
previouslySelected: computed,
editing_: observable.ref,
@@ -166,14 +157,14 @@ export class NavigationController
)
}
findAndSetTag = (uuid: UuidString) => {
private findAndSetTag = (uuid: UuidString) => {
const tagToSelect = [...this.tags, ...this.smartViews].find((tag) => tag.uuid === uuid)
if (tagToSelect) {
void this.setSelectedTag(tagToSelect)
void this.setSelectedTag(tagToSelect, isTag(tagToSelect) ? (tagToSelect.starred ? 'favorites' : 'all') : 'views')
}
}
selectHydratedTagOrDefault = () => {
private selectHydratedTagOrDefault = () => {
if (this.selectedUuid && !this.selected_) {
this.findAndSetTag(this.selectedUuid)
}
@@ -237,7 +228,7 @@ export class NavigationController
this.application.sync.sync().catch(console.error)
runInAction(() => {
void this.setSelectedTag(createdTag as SNTag)
void this.setSelectedTag(createdTag as SNTag, 'all')
})
this.setAddingSubtagTo(undefined)
@@ -276,10 +267,6 @@ export class NavigationController
this.addingSubtagTo = tag
}
setContextMenuOpenFrom(section: TagListSectionType): void {
this.contextMenuOpenFrom = section
}
setContextMenuOpen(open: boolean): void {
this.contextMenuOpen = open
}
@@ -436,7 +423,11 @@ export class NavigationController
})
}
public async setSelectedTag(tag: AnyTag | undefined, { userTriggered } = { userTriggered: false }) {
public async setSelectedTag(
tag: AnyTag | undefined,
location: TagListSectionType,
{ userTriggered } = { userTriggered: false },
) {
if (tag && tag.conflictOf) {
this.application.mutator
.changeAndSaveItem(tag, (mutator) => {
@@ -445,7 +436,7 @@ export class NavigationController
.catch(console.error)
}
const selectionHasNotChanged = this.selected_?.uuid === tag?.uuid
const selectionHasNotChanged = this.selected_?.uuid === tag?.uuid && location === this.selectedLocation
if (selectionHasNotChanged) {
return
@@ -455,6 +446,7 @@ export class NavigationController
await runInAction(async () => {
this.setSelectedTagInstance(tag)
this.selectedLocation = location
if (tag && this.application.items.isTemplateItem(tag)) {
return
@@ -471,11 +463,11 @@ export class NavigationController
}
public async selectHomeNavigationView(): Promise<void> {
await this.setSelectedTag(this.homeNavigationView)
await this.setSelectedTag(this.homeNavigationView, 'views')
}
public async selectFilesView() {
await this.setSelectedTag(this.filesNavigationView)
await this.setSelectedTag(this.filesNavigationView, 'views')
}
get homeNavigationView(): SmartView {
@@ -525,9 +517,11 @@ export class NavigationController
return this.editing_
}
public set editingTag(editingTag: SNTag | SmartView | undefined) {
this.editing_ = editingTag
void this.setSelectedTag(editingTag)
public setEditingTag(editingTag: SNTag | SmartView | undefined) {
runInAction(() => {
this.editing_ = editingTag
void this.setSelectedTag(editingTag, this.selectedLocation || 'all')
})
}
public createNewTemplate() {
@@ -540,16 +534,15 @@ export class NavigationController
const newTag = this.application.mutator.createTemplateItem(ContentType.Tag) as SNTag
runInAction(() => {
this.selectedLocation = 'all'
this.editing_ = newTag
this.editingFrom = 'all'
})
}
public undoCreateNewTag() {
this.editingFrom = undefined
this.editing_ = undefined
const previousTag = this.previouslySelected_ || this.smartViews[0]
void this.setSelectedTag(previousTag)
void this.setSelectedTag(previousTag, this.selectedLocation || 'views')
}
public async remove(tag: SNTag | SmartView, userTriggered: boolean) {
@@ -562,7 +555,7 @@ export class NavigationController
}
if (shouldDelete) {
this.application.mutator.deleteItem(tag).catch(console.error)
await this.setSelectedTag(this.smartViews[0])
await this.setSelectedTag(this.smartViews[0], 'views')
}
}
@@ -575,7 +568,6 @@ export class NavigationController
const hasDuplicatedTitle = siblings.some((other) => other.title.toLowerCase() === newTitle.toLowerCase())
runInAction(() => {
this.editingFrom = undefined
this.editing_ = undefined
})
@@ -607,7 +599,7 @@ export class NavigationController
const insertedTag = await this.application.mutator.createTagOrSmartView(newTitle)
this.application.sync.sync().catch(console.error)
runInAction(() => {
void this.setSelectedTag(insertedTag as SNTag)
void this.setSelectedTag(insertedTag as SNTag, this.selectedLocation || 'views')
})
} else {
await this.application.mutator.changeAndSaveItem<TagMutator>(tag, (mutator) => {
@@ -615,31 +607,6 @@ export class NavigationController
})
}
}
public onFoldersComponentMessage(action: ComponentAction, data: MessageData): void {
if (action === ComponentAction.SelectItem) {
const item = data.item
if (!item) {
return
}
if (item.content_type === ContentType.Tag || item.content_type === ContentType.SmartView) {
const matchingTag = this.application.items.findItem(item.uuid)
if (matchingTag) {
void this.setSelectedTag(matchingTag as AnyTag)
return
}
}
} else if (action === ComponentAction.ClearSelection) {
void this.setSelectedTag(this.smartViews[0])
}
}
public get hasAtLeastOneFolder(): boolean {
return this.tags.some((tag) => !!this.application.items.getTagParent(tag))
}
}
class TagsCountsState {
+2 -2
View File
@@ -17,7 +17,7 @@
}
@media screen and (max-width: 768px) {
&.selected {
&[data-selected-pane] {
flex-grow: 1;
.content {
@@ -30,7 +30,7 @@
left: 0 !important;
}
&:not(.selected) {
&:not([data-selected-pane]) {
min-height: 0;
height: auto;
padding: 0;
+1 -17
View File
@@ -88,18 +88,9 @@ $content-horizontal-padding: 16px;
display: flex;
align-items: center;
height: 100%;
&.draggable {
cursor: move;
}
&.propose-folders {
cursor: help;
}
}
> .title {
width: 80%;
background-color: transparent;
font-weight: 600;
color: var(--navigation-item-text-color);
@@ -107,7 +98,6 @@ $content-horizontal-padding: 16px;
border: none;
cursor: pointer;
text-overflow: ellipsis;
width: 75%;
flex-grow: 1;
// Required for Safari to avoid highlighting when dragging panel resizers
@@ -144,12 +134,6 @@ $content-horizontal-padding: 16px;
}
.meta {
padding-left: 3px;
&.with-folders {
padding-left: 25px;
}
> .menu {
font-size: 11px;
@@ -160,8 +144,8 @@ $content-horizontal-padding: 16px;
opacity: 0.5;
font-weight: bold;
clear: both;
margin-top: 2px;
margin-bottom: 2px;
padding-bottom: 5px;
&:hover {
opacity: 1;