mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-02 02:00:49 +08:00
Compare commits
19 Commits
2135b2e0c8
...
canary
| Author | SHA1 | Date | |
|---|---|---|---|
| e5d44b8ff2 | |||
| 8c68319094 | |||
| 8ebdb7452f | |||
| da7d438377 | |||
| a821f67fc9 | |||
| a1363b3873 | |||
| 1b9e21f2de | |||
| 0a422aa158 | |||
| 4a7c931eca | |||
| 8e036a2f38 | |||
| 57c5bac456 | |||
| 11db127772 | |||
| c41d613b6e | |||
| c1c19be271 | |||
| 7e100d1c62 | |||
| f44a7978d9 | |||
| fa488aee64 | |||
| bb8454e7e1 | |||
| 7ea8800c99 |
@@ -121,6 +121,18 @@
|
||||
"default": {
|
||||
"concurrency": 1
|
||||
}
|
||||
},
|
||||
"queues.backendRuntime": {
|
||||
"type": "object",
|
||||
"description": "The config for backend runtime job queue\n@default {\"concurrency\":1}",
|
||||
"properties": {
|
||||
"concurrency": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"concurrency": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -493,6 +505,7 @@
|
||||
"jurisdiction": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default",
|
||||
"eu"
|
||||
],
|
||||
"description": "Optional jurisdiction for the cloudflare r2 endpoint. Set to \"eu\" for EU buckets."
|
||||
@@ -518,6 +531,36 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"assetpack"
|
||||
]
|
||||
},
|
||||
"bucket": {
|
||||
"type": "string"
|
||||
},
|
||||
"config": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"path"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"bucket",
|
||||
"config"
|
||||
]
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
@@ -691,6 +734,7 @@
|
||||
"jurisdiction": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default",
|
||||
"eu"
|
||||
],
|
||||
"description": "Optional jurisdiction for the cloudflare r2 endpoint. Set to \"eu\" for EU buckets."
|
||||
@@ -716,6 +760,36 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"assetpack"
|
||||
]
|
||||
},
|
||||
"bucket": {
|
||||
"type": "string"
|
||||
},
|
||||
"config": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"path"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"bucket",
|
||||
"config"
|
||||
]
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
@@ -1332,6 +1406,7 @@
|
||||
"jurisdiction": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default",
|
||||
"eu"
|
||||
],
|
||||
"description": "Optional jurisdiction for the cloudflare r2 endpoint. Set to \"eu\" for EU buckets."
|
||||
@@ -1357,6 +1432,36 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"assetpack"
|
||||
]
|
||||
},
|
||||
"bucket": {
|
||||
"type": "string"
|
||||
},
|
||||
"config": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"path"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"bucket",
|
||||
"config"
|
||||
]
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
|
||||
@@ -3,4 +3,4 @@ name: affine
|
||||
description: AFFiNE cloud chart
|
||||
type: application
|
||||
version: 0.0.0
|
||||
appVersion: "0.26.3"
|
||||
appVersion: "0.27.0"
|
||||
|
||||
@@ -3,7 +3,7 @@ name: doc
|
||||
description: AFFiNE doc server
|
||||
type: application
|
||||
version: 0.0.0
|
||||
appVersion: "0.26.3"
|
||||
appVersion: "0.27.0"
|
||||
dependencies:
|
||||
- name: gcloud-sql-proxy
|
||||
version: 0.0.0
|
||||
|
||||
@@ -3,7 +3,7 @@ name: front
|
||||
description: AFFiNE front server
|
||||
type: application
|
||||
version: 0.0.0
|
||||
appVersion: "0.26.3"
|
||||
appVersion: "0.27.0"
|
||||
dependencies:
|
||||
- name: gcloud-sql-proxy
|
||||
version: 0.0.0
|
||||
|
||||
@@ -3,7 +3,7 @@ name: graphql
|
||||
description: AFFiNE GraphQL server
|
||||
type: application
|
||||
version: 0.0.0
|
||||
appVersion: "0.26.3"
|
||||
appVersion: "0.27.0"
|
||||
dependencies:
|
||||
- name: gcloud-sql-proxy
|
||||
version: 0.0.0
|
||||
|
||||
@@ -424,12 +424,10 @@ jobs:
|
||||
if: >-
|
||||
${{
|
||||
always() &&
|
||||
inputs.desktop_macos &&
|
||||
inputs.desktop_linux &&
|
||||
inputs.desktop_windows &&
|
||||
(inputs.desktop_macos || inputs.desktop_linux || inputs.desktop_windows) &&
|
||||
needs.before-make.result == 'success' &&
|
||||
needs.make-distribution-macos.result == 'success' &&
|
||||
needs.make-distribution-linux.result == 'success' &&
|
||||
(!inputs.desktop_macos || needs.make-distribution-macos.result == 'success') &&
|
||||
(!inputs.desktop_linux || needs.make-distribution-linux.result == 'success') &&
|
||||
(
|
||||
!inputs.require-windows-signing ||
|
||||
(
|
||||
@@ -457,11 +455,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Download Artifacts (macos-x64)
|
||||
if: ${{ inputs.desktop_macos }}
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: affine-darwin-x64-builds
|
||||
path: ./release
|
||||
- name: Download Artifacts (macos-arm64)
|
||||
if: ${{ inputs.desktop_macos }}
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: affine-darwin-arm64-builds
|
||||
@@ -479,6 +479,7 @@ jobs:
|
||||
name: affine-win32-arm64-builds
|
||||
path: ./release
|
||||
- name: Download Artifacts (linux-x64)
|
||||
if: ${{ inputs.desktop_linux }}
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: affine-linux-x64-builds
|
||||
|
||||
@@ -109,6 +109,9 @@ jobs:
|
||||
- uses: maxim-lobanov/setup-xcode@v1
|
||||
with:
|
||||
xcode-version: 26.2
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.3'
|
||||
- name: Install Swiftformat
|
||||
run: brew install swiftformat
|
||||
- name: Cap sync
|
||||
@@ -131,8 +134,10 @@ jobs:
|
||||
printf '%s' "$BUILD_PROVISION_PROFILE" | base64 --decode -o "$PP_PATH"
|
||||
mkdir -p "$HOME/Library/MobileDevice/Provisioning Profiles"
|
||||
cp "$PP_PATH" "$HOME/Library/MobileDevice/Provisioning Profiles"
|
||||
fastlane beta
|
||||
bundle install
|
||||
bundle exec fastlane beta
|
||||
env:
|
||||
BUNDLE_PATH: vendor/bundle
|
||||
BUILD_TARGET: distribution
|
||||
BUILD_PROVISION_PROFILE: ${{ secrets.BUILD_PROVISION_PROFILE }}
|
||||
PP_PATH: ${{ runner.temp }}/build_pp.mobileprovision
|
||||
|
||||
@@ -195,7 +195,7 @@ jobs:
|
||||
desktop_macos: ${{ github.event_name != 'workflow_dispatch' || inputs.desktop_macos }}
|
||||
desktop_windows: ${{ github.event_name != 'workflow_dispatch' || inputs.desktop_windows }}
|
||||
desktop_linux: ${{ github.event_name != 'workflow_dispatch' || inputs.desktop_linux }}
|
||||
require-windows-signing: ${{ needs.prepare.outputs.BUILD_TYPE == 'beta' || needs.prepare.outputs.BUILD_TYPE == 'stable' || (github.event_name == 'workflow_dispatch' && inputs.desktop_windows) }}
|
||||
require-windows-signing: ${{ needs.prepare.outputs.BUILD_TYPE == 'stable' || (github.event_name == 'workflow_dispatch' && inputs.desktop_windows) }}
|
||||
|
||||
mobile:
|
||||
name: Release Mobile
|
||||
|
||||
Generated
+389
-20
@@ -67,6 +67,7 @@ dependencies = [
|
||||
"assert-json-diff",
|
||||
"chrono",
|
||||
"criterion",
|
||||
"hex",
|
||||
"nanoid",
|
||||
"napi",
|
||||
"pulldown-cmark",
|
||||
@@ -196,12 +197,18 @@ dependencies = [
|
||||
"aes-gcm",
|
||||
"affine_common",
|
||||
"anyhow",
|
||||
"assetpack-core",
|
||||
"assetpack-transform-precomp2",
|
||||
"base64",
|
||||
"chrono",
|
||||
"crc32fast",
|
||||
"doc_extractor",
|
||||
"file-format",
|
||||
"hex",
|
||||
"homedir",
|
||||
"image",
|
||||
"infer",
|
||||
"instant-xml",
|
||||
"jsonschema",
|
||||
"libwebp-sys",
|
||||
"little_exif",
|
||||
@@ -216,16 +223,24 @@ dependencies = [
|
||||
"p256",
|
||||
"rand 0.9.4",
|
||||
"rayon",
|
||||
"reqwest",
|
||||
"rustls",
|
||||
"rusty-s3",
|
||||
"safefetch",
|
||||
"schemars",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2 0.10.9",
|
||||
"sha2 0.11.0",
|
||||
"sha3",
|
||||
"sqlx",
|
||||
"tempfile",
|
||||
"thiserror 2.0.18",
|
||||
"tiktoken-rs",
|
||||
"tokio",
|
||||
"url",
|
||||
"uuid",
|
||||
"v_htmlescape",
|
||||
"webpki-roots 1.0.6",
|
||||
"y-octo",
|
||||
]
|
||||
|
||||
@@ -478,6 +493,39 @@ dependencies = [
|
||||
"serde_json",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "assetpack-core"
|
||||
version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "72bb7294f3c191cc25839285896f7973ce4470dca2a412a95ad39956c99326f5"
|
||||
dependencies = [
|
||||
"brotli",
|
||||
"chrono",
|
||||
"fastcdc",
|
||||
"futures-core",
|
||||
"futures-util",
|
||||
"hex",
|
||||
"serde",
|
||||
"sha3",
|
||||
"sqlx",
|
||||
"tempfile",
|
||||
"thiserror 2.0.18",
|
||||
"tokio",
|
||||
"zstd",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "assetpack-transform-precomp2"
|
||||
version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "780badf66e57dd350c0b2778966c383a871b3df6873d4e6ca12174344761819c"
|
||||
dependencies = [
|
||||
"assetpack-core",
|
||||
"lzma-rust2",
|
||||
"precomp2",
|
||||
"zstd",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-compat"
|
||||
version = "0.2.5"
|
||||
@@ -726,6 +774,30 @@ version = "0.8.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
|
||||
|
||||
[[package]]
|
||||
name = "bitcode"
|
||||
version = "0.6.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0a6ed1b54d8dc333e7be604d00fa9262f4635485ffea923647b6521a5fff045d"
|
||||
dependencies = [
|
||||
"arrayvec",
|
||||
"bitcode_derive",
|
||||
"bytemuck",
|
||||
"glam",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bitcode_derive"
|
||||
version = "0.6.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "238b90427dfad9da4a9abd60f3ec1cdee6b80454bde49ed37f1781dd8e9dc7f9"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.117",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bitflags"
|
||||
version = "1.3.2"
|
||||
@@ -904,6 +976,25 @@ version = "1.11.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
|
||||
|
||||
[[package]]
|
||||
name = "bzip2"
|
||||
version = "0.6.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f3a53fac24f34a81bc9954b5d6cfce0c21e18ec6959f44f56e8e90e4bb7c346c"
|
||||
dependencies = [
|
||||
"libbz2-rs-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cabac"
|
||||
version = "0.15.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "606873b80c9b424f9b6ed0cd03da139edc26d325eb9b31969ebf27c2bdd98f68"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"byteorder",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "camino"
|
||||
version = "1.2.2"
|
||||
@@ -1177,6 +1268,12 @@ dependencies = [
|
||||
"cc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cmov"
|
||||
version = "0.5.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
|
||||
|
||||
[[package]]
|
||||
name = "cobs"
|
||||
version = "0.3.0"
|
||||
@@ -1450,6 +1547,16 @@ dependencies = [
|
||||
"windows 0.54.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cpu-time"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e9e393a7668fe1fad3075085b86c781883000b4ede868f43627b34a87c8b7ded"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cpubits"
|
||||
version = "0.1.1"
|
||||
@@ -1684,6 +1791,15 @@ dependencies = [
|
||||
"cipher 0.4.4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ctutils"
|
||||
version = "0.4.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
|
||||
dependencies = [
|
||||
"cmov",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dary_heap"
|
||||
version = "0.3.8"
|
||||
@@ -1714,6 +1830,26 @@ version = "0.1.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7eed2c4702fa172d1ce21078faa7c5203e69f5394d48cc436d25928394a867a2"
|
||||
|
||||
[[package]]
|
||||
name = "default-boxed"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b48cc7cb0b3bcd8acee5eb26e45f8f4b597c5e57a67deb86e3d1d4a1e57a1c31"
|
||||
dependencies = [
|
||||
"default-boxed-derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "default-boxed-derive"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "94bbd6a078996f7e3af0e053377eb5577dee801eae2f22af2cd1e58fa33a0f5e"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 1.0.109",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "der"
|
||||
version = "0.7.10"
|
||||
@@ -1777,6 +1913,7 @@ dependencies = [
|
||||
"block-buffer 0.12.1",
|
||||
"const-oid 0.10.2",
|
||||
"crypto-common 0.2.2",
|
||||
"ctutils",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2133,6 +2270,12 @@ version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "dd2e7510819d6fbf51a5545c8f922716ecfb14df168a3242f7d33e0239efe6a1"
|
||||
|
||||
[[package]]
|
||||
name = "fastcdc"
|
||||
version = "3.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bf51ceb43e96afbfe4dd5c6f6082af5dfd60e220820b8123792d61963f2ce6bc"
|
||||
|
||||
[[package]]
|
||||
name = "fastrand"
|
||||
version = "2.3.0"
|
||||
@@ -2559,6 +2702,32 @@ dependencies = [
|
||||
"weezl 0.1.12",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "git-version"
|
||||
version = "0.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1ad568aa3db0fcbc81f2f116137f263d7304f512a1209b35b85150d3ef88ad19"
|
||||
dependencies = [
|
||||
"git-version-macro",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "git-version-macro"
|
||||
version = "0.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "53010ccb100b96a67bc32c0175f0ed1426b31b655d562898e57325f81c023ac0"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.117",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "glam"
|
||||
version = "0.33.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7f22fb22f065b308be0d8724e3706c7fa3fc2a6c7d6899df4cad7860e7a75436"
|
||||
|
||||
[[package]]
|
||||
name = "glidesort"
|
||||
version = "0.1.2"
|
||||
@@ -2805,7 +2974,7 @@ dependencies = [
|
||||
"tokio-rustls",
|
||||
"tracing",
|
||||
"url",
|
||||
"webpki-roots",
|
||||
"webpki-roots 1.0.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2854,7 +3023,7 @@ dependencies = [
|
||||
"tokio",
|
||||
"tokio-rustls",
|
||||
"tracing",
|
||||
"webpki-roots",
|
||||
"webpki-roots 1.0.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2863,7 +3032,7 @@ version = "0.12.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7"
|
||||
dependencies = [
|
||||
"hmac",
|
||||
"hmac 0.12.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2875,6 +3044,15 @@ dependencies = [
|
||||
"digest 0.10.7",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hmac"
|
||||
version = "0.13.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f"
|
||||
dependencies = [
|
||||
"digest 0.11.3",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "home"
|
||||
version = "0.5.12"
|
||||
@@ -3461,6 +3639,29 @@ dependencies = [
|
||||
"hybrid-array",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "instant-xml"
|
||||
version = "0.7.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8863a17b9487acadbfc6a54f1215b67695dcc56d760c69cc08a16ad5e8fd5d0e"
|
||||
dependencies = [
|
||||
"instant-xml-macros",
|
||||
"thiserror 2.0.18",
|
||||
"xmlparser",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "instant-xml-macros"
|
||||
version = "0.7.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "44127a3a387c070ef0656a6ce53dd0e616cf8d6cf5b159aa478cfd49e1c166e0"
|
||||
dependencies = [
|
||||
"heck",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.117",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "io-surface"
|
||||
version = "0.16.1"
|
||||
@@ -3752,11 +3953,12 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "keccak"
|
||||
version = "0.1.6"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cb26cec98cce3a3d96cbb7bced3c4b16e3d13f27ec56dbd62cbc8f39cfb9d653"
|
||||
checksum = "9e24a010dd405bd7ed803e5253182815b41bf2e6a80cc3bfc066658e03a198aa"
|
||||
dependencies = [
|
||||
"cpufeatures 0.2.17",
|
||||
"cfg-if",
|
||||
"cpufeatures 0.3.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3823,6 +4025,29 @@ version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
|
||||
|
||||
[[package]]
|
||||
name = "lepton_jpeg"
|
||||
version = "0.5.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "540c312fa0f528f4cad6c7dbffb0b29d39f34026e133a4c79d23d95f2863e46e"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"byteorder",
|
||||
"cpu-time",
|
||||
"default-boxed",
|
||||
"flate2",
|
||||
"git-version",
|
||||
"log",
|
||||
"thread-priority",
|
||||
"wide",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "libbz2-rs-sys"
|
||||
version = "0.2.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "34b357333733e8260735ba5894eb928c02ecc69c78715f01a8019e7fa7f2db4c"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.183"
|
||||
@@ -3914,13 +4139,12 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "libwebp-sys"
|
||||
version = "0.14.2"
|
||||
version = "0.9.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "375ca3fbd6d89769361c5d505c9da676eb4128ee471b9fd763144d377a2d30e6"
|
||||
checksum = "54cd30df7c7165ce74a456e4ca9732c603e8dc5e60784558c1c6dc047f876733"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"glob",
|
||||
"pkg-config",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -4050,6 +4274,15 @@ version = "0.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
|
||||
|
||||
[[package]]
|
||||
name = "lzma-rust2"
|
||||
version = "0.16.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ce716bf1a316f47a280fc76295f6495b5bea4752bca01c3b3885e101b1c23c02"
|
||||
dependencies = [
|
||||
"sha2 0.11.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "mac"
|
||||
version = "0.1.1"
|
||||
@@ -4129,6 +4362,16 @@ dependencies = [
|
||||
"digest 0.10.7",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "md-5"
|
||||
version = "0.11.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "69b6441f590336821bb897fb28fc622898ccceb1d6cea3fde5ea86b090c4de98"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"digest 0.11.3",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "memchr"
|
||||
version = "2.8.0"
|
||||
@@ -5222,6 +5465,24 @@ dependencies = [
|
||||
"zerocopy",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "precomp2"
|
||||
version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5d9879cdb87b5bd4d8be61fa457c8dca65004270dda0f70d2348db3298d7c7fe"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"bzip2",
|
||||
"crc32fast",
|
||||
"lepton_jpeg",
|
||||
"memchr",
|
||||
"nom 7.1.3",
|
||||
"preflate-rs",
|
||||
"thiserror 2.0.18",
|
||||
"tokio",
|
||||
"webp",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "precomputed-hash"
|
||||
version = "0.1.1"
|
||||
@@ -5239,6 +5500,19 @@ dependencies = [
|
||||
"num-traits",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "preflate-rs"
|
||||
version = "0.7.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1a2e9d0ac8c6cd9bb134681e11b5a32c7c56b89c5958cf785775080def38537c"
|
||||
dependencies = [
|
||||
"bitcode",
|
||||
"byteorder",
|
||||
"cabac",
|
||||
"default-boxed",
|
||||
"deranged",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "prettyplease"
|
||||
version = "0.2.37"
|
||||
@@ -5763,7 +6037,7 @@ version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2"
|
||||
dependencies = [
|
||||
"hmac",
|
||||
"hmac 0.12.1",
|
||||
"subtle",
|
||||
]
|
||||
|
||||
@@ -5972,6 +6246,25 @@ version = "1.0.22"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
||||
|
||||
[[package]]
|
||||
name = "rusty-s3"
|
||||
version = "0.10.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "20f0d23aa8ac3b44d4cfb1e4b3611e6f3776debfb3f7701c4ea9f2252a701403"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"hmac 0.13.0",
|
||||
"instant-xml",
|
||||
"jiff",
|
||||
"md-5 0.11.0",
|
||||
"percent-encoding",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2 0.11.0",
|
||||
"url",
|
||||
"zeroize",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustybuzz"
|
||||
version = "0.20.1"
|
||||
@@ -5996,6 +6289,15 @@ version = "1.0.23"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
|
||||
|
||||
[[package]]
|
||||
name = "safe_arch"
|
||||
version = "0.9.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "629516c85c29fe757770fa03f2074cf1eac43d44c02a3de9fc2ef7b0e207dfdd"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "safefetch"
|
||||
version = "0.1.0"
|
||||
@@ -6009,7 +6311,7 @@ dependencies = [
|
||||
"rustls",
|
||||
"tokio",
|
||||
"url",
|
||||
"webpki-roots",
|
||||
"webpki-roots 1.0.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -6273,11 +6575,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "sha3"
|
||||
version = "0.10.8"
|
||||
version = "0.11.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60"
|
||||
checksum = "be176f1a57ce4e3d31c1a166222d9768de5954f811601fb7ca06fc8203905ce1"
|
||||
dependencies = [
|
||||
"digest 0.10.7",
|
||||
"digest 0.11.3",
|
||||
"keccak",
|
||||
]
|
||||
|
||||
@@ -6485,6 +6787,7 @@ dependencies = [
|
||||
"memchr",
|
||||
"once_cell",
|
||||
"percent-encoding",
|
||||
"rustls",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2 0.10.9",
|
||||
@@ -6494,6 +6797,7 @@ dependencies = [
|
||||
"tokio-stream",
|
||||
"tracing",
|
||||
"url",
|
||||
"webpki-roots 0.26.11",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -6557,10 +6861,10 @@ dependencies = [
|
||||
"generic-array",
|
||||
"hex",
|
||||
"hkdf",
|
||||
"hmac",
|
||||
"hmac 0.12.1",
|
||||
"itoa",
|
||||
"log",
|
||||
"md-5",
|
||||
"md-5 0.10.6",
|
||||
"memchr",
|
||||
"once_cell",
|
||||
"percent-encoding",
|
||||
@@ -6596,11 +6900,11 @@ dependencies = [
|
||||
"futures-util",
|
||||
"hex",
|
||||
"hkdf",
|
||||
"hmac",
|
||||
"hmac 0.12.1",
|
||||
"home",
|
||||
"itoa",
|
||||
"log",
|
||||
"md-5",
|
||||
"md-5 0.10.6",
|
||||
"memchr",
|
||||
"once_cell",
|
||||
"rand 0.8.6",
|
||||
@@ -7173,6 +7477,20 @@ dependencies = [
|
||||
"syn 2.0.117",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "thread-priority"
|
||||
version = "1.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cfe075d7053dae61ac5413a34ea7d4913b6e6207844fd726bdd858b37ff72bf5"
|
||||
dependencies = [
|
||||
"bitflags 2.11.0",
|
||||
"cfg-if",
|
||||
"libc",
|
||||
"log",
|
||||
"rustversion",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "thread_local"
|
||||
version = "1.1.9"
|
||||
@@ -8322,7 +8640,7 @@ dependencies = [
|
||||
"rustls-pki-types",
|
||||
"ureq-proto",
|
||||
"utf8-zero",
|
||||
"webpki-roots",
|
||||
"webpki-roots 1.0.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -8666,6 +8984,16 @@ dependencies = [
|
||||
"wasm-bindgen",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "webp"
|
||||
version = "0.3.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c071456adef4aca59bf6a583c46b90ff5eb0b4f758fc347cea81290288f37ce1"
|
||||
dependencies = [
|
||||
"image",
|
||||
"libwebp-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "webpki-root-certs"
|
||||
version = "1.0.7"
|
||||
@@ -8675,6 +9003,15 @@ dependencies = [
|
||||
"rustls-pki-types",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "webpki-roots"
|
||||
version = "0.26.11"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"
|
||||
dependencies = [
|
||||
"webpki-roots 1.0.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "webpki-roots"
|
||||
version = "1.0.6"
|
||||
@@ -8715,12 +9052,38 @@ dependencies = [
|
||||
"wasite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wide"
|
||||
version = "0.8.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "13ca908d26e4786149c48efcf6c0ea09ab0e06d1fe3c17dc1b4b0f1ca4a7e788"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"safe_arch",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "widestring"
|
||||
version = "1.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471"
|
||||
|
||||
[[package]]
|
||||
name = "winapi"
|
||||
version = "0.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
||||
dependencies = [
|
||||
"winapi-i686-pc-windows-gnu",
|
||||
"winapi-x86_64-pc-windows-gnu",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winapi-i686-pc-windows-gnu"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
||||
|
||||
[[package]]
|
||||
name = "winapi-util"
|
||||
version = "0.1.11"
|
||||
@@ -8730,6 +9093,12 @@ dependencies = [
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winapi-x86_64-pc-windows-gnu"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
||||
|
||||
[[package]]
|
||||
name = "windows"
|
||||
version = "0.54.0"
|
||||
|
||||
+3
-24
@@ -17,16 +17,12 @@ resolver = "3"
|
||||
aes-gcm = "0.10"
|
||||
affine_common = { path = "./packages/common/native" }
|
||||
affine_nbstore = { path = "./packages/frontend/native/nbstore" }
|
||||
ahash = "0.8"
|
||||
anyhow = "1"
|
||||
arbitrary = { version = "1.3", features = ["derive"] }
|
||||
assert-json-diff = "2.0"
|
||||
base64 = "0.22.1"
|
||||
base64-simd = "0.8"
|
||||
bitvec = "1.0"
|
||||
block2 = "0.6"
|
||||
byteorder = "1.5"
|
||||
chrono = "0.4"
|
||||
clap = { version = "4.4", features = ["derive"] }
|
||||
core-foundation = "0.10"
|
||||
coreaudio-rs = "0.12"
|
||||
cpal = "0.15"
|
||||
@@ -47,14 +43,10 @@ resolver = "3"
|
||||
"webp",
|
||||
] }
|
||||
infer = { version = "0.19.0" }
|
||||
lasso = { version = "0.7", features = ["multi-threaded"] }
|
||||
lib0 = { version = "0.16", features = ["lib0-serde"] }
|
||||
libc = "0.2"
|
||||
libwebp-sys = "0.14.2"
|
||||
little_exif = "0.6.23"
|
||||
llm_adapter = { version = "0.2", default-features = false }
|
||||
llm_runtime = { version = "0.2", default-features = false }
|
||||
log = "0.4"
|
||||
lru = "0.16"
|
||||
matroska = "0.30"
|
||||
memory-indexer = "0.3.1"
|
||||
@@ -71,33 +63,22 @@ resolver = "3"
|
||||
] }
|
||||
napi-build = { version = "2" }
|
||||
napi-derive = { version = "3.4" }
|
||||
nom = "8"
|
||||
notify = { version = "8", features = ["serde"] }
|
||||
objc2 = "0.6"
|
||||
objc2-foundation = "0.3"
|
||||
ogg = "0.9"
|
||||
once_cell = "1"
|
||||
ordered-float = "5"
|
||||
p256 = { version = "0.13", features = ["ecdsa", "pem"] }
|
||||
parking_lot = "0.12"
|
||||
phf = { version = "0.11", features = ["macros"] }
|
||||
proptest = "1.3"
|
||||
proptest-derive = "0.5"
|
||||
pulldown-cmark = "0.13"
|
||||
rand = "0.9"
|
||||
rand_chacha = "0.9"
|
||||
rand_distr = "0.5"
|
||||
rayon = "1.10"
|
||||
regex = "1.10"
|
||||
rubato = "0.16"
|
||||
safefetch = "0.1.0"
|
||||
schemars = "0.8"
|
||||
screencapturekit = "0.3"
|
||||
serde = "1"
|
||||
serde_json = "1"
|
||||
sha2 = "0.10"
|
||||
sha3 = "0.10"
|
||||
smol_str = "0.3"
|
||||
sha2 = "0.11"
|
||||
sha3 = "0.11"
|
||||
sqlx = { version = "0.8", default-features = false, features = [
|
||||
"chrono",
|
||||
"macros",
|
||||
@@ -135,8 +116,6 @@ resolver = "3"
|
||||
] }
|
||||
windows-core = { version = "0.61" }
|
||||
y-octo = "0.0.3"
|
||||
y-sync = { version = "0.4" }
|
||||
yrs = "0.23.0"
|
||||
|
||||
[profile.dev.package.sqlx-macros]
|
||||
opt-level = 3
|
||||
|
||||
@@ -295,7 +295,7 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3",
|
||||
"version": "0.27.0",
|
||||
"devDependencies": {
|
||||
"@vanilla-extract/vite-plugin": "^5.0.0",
|
||||
"msw": "^2.13.2",
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -44,5 +44,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -44,5 +44,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"@preact/signals-core": "^1.8.0",
|
||||
"@toeverything/theme": "^1.1.23",
|
||||
"@types/mdast": "^4.0.4",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-fns": "^4.4.0",
|
||||
"lit": "^3.2.0",
|
||||
"yjs": "^13.6.27",
|
||||
"zod": "^3.25.76"
|
||||
@@ -45,5 +45,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -31,5 +31,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -34,5 +34,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -41,5 +41,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -39,5 +39,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -47,5 +47,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -61,5 +61,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -41,5 +41,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"@preact/signals-core": "^1.8.0",
|
||||
"@toeverything/theme": "^1.1.23",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-fns": "^4.4.0",
|
||||
"lit": "^3.2.0",
|
||||
"lit-html": "^3.2.1",
|
||||
"lodash-es": "^4.17.23",
|
||||
@@ -74,5 +74,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"@toeverything/theme": "^1.1.23",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"clsx": "^2.1.1",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-fns": "^4.4.0",
|
||||
"lit": "^3.2.0",
|
||||
"lodash-es": "^4.17.23",
|
||||
"yjs": "^13.6.27",
|
||||
@@ -46,5 +46,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -31,5 +31,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -30,5 +30,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -40,5 +40,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -39,5 +39,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -30,5 +30,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -45,5 +45,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -34,5 +34,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -41,5 +41,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -40,5 +40,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -28,5 +28,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -40,5 +40,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -29,5 +29,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -76,5 +76,5 @@
|
||||
"@types/pdfmake": "^0.2.12",
|
||||
"vitest": "^4.1.8"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -40,5 +40,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -30,5 +30,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -27,5 +27,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -48,5 +48,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -44,5 +44,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -31,5 +31,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -31,5 +31,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -29,5 +29,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -34,5 +34,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -25,5 +25,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@blocksuite/affine": "workspace:*",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-fns": "^4.4.0",
|
||||
"markdown-it-container": "^4.0.0",
|
||||
"vitepress-plugin-sandpack": "^1.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/markdown-it-container": "^4.0.0",
|
||||
"typedoc": "^0.28.0",
|
||||
"typedoc-plugin-markdown": "^4.5.0",
|
||||
"vite-plugin-wasm": "^3.3.0",
|
||||
"vitepress": "^1.6.3",
|
||||
"typedoc": "^0.28.19",
|
||||
"typedoc-plugin-markdown": "^4.12.0",
|
||||
"vite-plugin-wasm": "^3.6.0",
|
||||
"vitepress": "^1.6.4",
|
||||
"vue": "^3.4.38"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ For (un)locking the element, use `(un)lock` instead.
|
||||
|
||||
###### lockedBySelf
|
||||
|
||||
`boolean` | `undefined`
|
||||
`boolean` \| `undefined`
|
||||
|
||||
##### Returns
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ Toggle the selection state of single element
|
||||
|
||||
##### element
|
||||
|
||||
`string` | `GfxModel`
|
||||
`string` \| `GfxModel`
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ SortOrder.AFTER means a should be rendered after b and so on.
|
||||
|
||||
### a
|
||||
|
||||
`GfxModel` | `GfxLocalElementModel`
|
||||
`GfxModel` \| `GfxLocalElementModel`
|
||||
|
||||
### b
|
||||
|
||||
`GfxModel` | `GfxLocalElementModel`
|
||||
`GfxModel` \| `GfxLocalElementModel`
|
||||
|
||||
## Returns
|
||||
|
||||
|
||||
@@ -32,18 +32,4 @@ Note:
|
||||
|
||||
## Returns
|
||||
|
||||
> (`_`, `context`): `ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
|
||||
### Parameters
|
||||
|
||||
#### \_
|
||||
|
||||
`unknown`
|
||||
|
||||
#### context
|
||||
|
||||
`ClassAccessorDecoratorContext`
|
||||
|
||||
### Returns
|
||||
|
||||
`ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
(`_`, `context`) => `ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
|
||||
@@ -37,18 +37,4 @@ Note:
|
||||
|
||||
## Returns
|
||||
|
||||
> (`_`, `context`): `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
### Parameters
|
||||
|
||||
#### \_
|
||||
|
||||
`unknown`
|
||||
|
||||
#### context
|
||||
|
||||
`ClassAccessorDecoratorContext`
|
||||
|
||||
### Returns
|
||||
|
||||
`ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
(`_`, `context`) => `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
### a
|
||||
|
||||
`string` | `null` | `undefined`
|
||||
`string` \| `null` \| `undefined`
|
||||
|
||||
### b
|
||||
|
||||
`string` | `null` | `undefined`
|
||||
`string` \| `null` \| `undefined`
|
||||
|
||||
### digits?
|
||||
|
||||
|
||||
@@ -17,11 +17,11 @@ make sure a and b are generated by this function.
|
||||
|
||||
### a
|
||||
|
||||
`string` | `null`
|
||||
`string` \| `null`
|
||||
|
||||
### b
|
||||
|
||||
`string` | `null`
|
||||
`string` \| `null`
|
||||
|
||||
## Returns
|
||||
|
||||
|
||||
@@ -20,11 +20,11 @@ a and b.
|
||||
|
||||
### a
|
||||
|
||||
`string` | `null` | `undefined`
|
||||
`string` \| `null` \| `undefined`
|
||||
|
||||
### b
|
||||
|
||||
`string` | `null` | `undefined`
|
||||
`string` \| `null` \| `undefined`
|
||||
|
||||
### n
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Function: getEffectiveDpr()
|
||||
|
||||
> **getEffectiveDpr**(`zoom`, `rawDpr`): `number`
|
||||
> **getEffectiveDpr**(`zoom`, `rawDpr?`): `number`
|
||||
|
||||
Resolves the effective device-pixel-ratio for canvas backing stores at the
|
||||
given zoom, honoring [viewportRuntimeConfig.CANVAS\_DPR\_CAP\_BY\_ZOOM](../variables/viewportRuntimeConfig.md#canvas_dpr_cap_by_zoom).
|
||||
@@ -19,7 +19,7 @@ Returns the raw `window.devicePixelRatio` when no cap applies.
|
||||
|
||||
`number`
|
||||
|
||||
### rawDpr
|
||||
### rawDpr?
|
||||
|
||||
`number` = `window.devicePixelRatio`
|
||||
|
||||
|
||||
@@ -25,18 +25,4 @@ Updating local property will also trigger the `elementUpdated` slot of the surfa
|
||||
|
||||
## Returns
|
||||
|
||||
> (`_target`, `context`): `ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
|
||||
### Parameters
|
||||
|
||||
#### \_target
|
||||
|
||||
`ClassAccessorDecoratorTarget`\<`T`, `V`\>
|
||||
|
||||
#### context
|
||||
|
||||
`ClassAccessorDecoratorContext`
|
||||
|
||||
### Returns
|
||||
|
||||
`ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
(`_target`, `context`) => `ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
|
||||
@@ -36,18 +36,4 @@ re-observe the property automatically when the value is altered.
|
||||
|
||||
## Returns
|
||||
|
||||
> (`_`, `context`): `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
### Parameters
|
||||
|
||||
#### \_
|
||||
|
||||
`unknown`
|
||||
|
||||
#### context
|
||||
|
||||
`ClassAccessorDecoratorContext`
|
||||
|
||||
### Returns
|
||||
|
||||
`ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
(`_`, `context`) => `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
@@ -29,18 +29,4 @@ You can thinks of it as a decorator version of `elementUpdated` slot of the surf
|
||||
|
||||
## Returns
|
||||
|
||||
> (`_`, `context`): `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
### Parameters
|
||||
|
||||
#### \_
|
||||
|
||||
`unknown`
|
||||
|
||||
#### context
|
||||
|
||||
`ClassAccessorDecoratorContext`
|
||||
|
||||
### Returns
|
||||
|
||||
`ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
(`_`, `context`) => `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
@@ -28,7 +28,7 @@ The bound of the element without considering the response extension.
|
||||
|
||||
### forceFullRender?
|
||||
|
||||
> `optional` **forceFullRender**: `boolean`
|
||||
> `optional` **forceFullRender?**: `boolean`
|
||||
|
||||
Whether to disable fallback rendering for this element, e.g., during zooming.
|
||||
Defaults to false (fallback to placeholder rendering is enabled).
|
||||
@@ -37,7 +37,7 @@ Defaults to false (fallback to placeholder rendering is enabled).
|
||||
|
||||
### lockedBySelf?
|
||||
|
||||
> `optional` **lockedBySelf**: `boolean`
|
||||
> `optional` **lockedBySelf?**: `boolean`
|
||||
|
||||
Indicates whether the current block is explicitly locked by self.
|
||||
For checking the lock status of the element, use `isLocked` instead.
|
||||
|
||||
@@ -47,7 +47,7 @@ The bound of the element without considering the response extension.
|
||||
|
||||
### forceFullRender?
|
||||
|
||||
> `optional` **forceFullRender**: `boolean`
|
||||
> `optional` **forceFullRender?**: `boolean`
|
||||
|
||||
Whether to disable fallback rendering for this element, e.g., during zooming.
|
||||
Defaults to false (fallback to placeholder rendering is enabled).
|
||||
@@ -60,7 +60,7 @@ Defaults to false (fallback to placeholder rendering is enabled).
|
||||
|
||||
### lockedBySelf?
|
||||
|
||||
> `optional` **lockedBySelf**: `boolean`
|
||||
> `optional` **lockedBySelf?**: `boolean`
|
||||
|
||||
Indicates whether the current block is explicitly locked by self.
|
||||
For checking the lock status of the element, use `isLocked` instead.
|
||||
|
||||
@@ -12,7 +12,7 @@ The options for the hit testing of a point.
|
||||
|
||||
### hitThreshold?
|
||||
|
||||
> `optional` **hitThreshold**: `number`
|
||||
> `optional` **hitThreshold?**: `number`
|
||||
|
||||
The threshold of the hit test. The unit is pixel.
|
||||
|
||||
@@ -20,7 +20,7 @@ The threshold of the hit test. The unit is pixel.
|
||||
|
||||
### ignoreTransparent?
|
||||
|
||||
> `optional` **ignoreTransparent**: `boolean`
|
||||
> `optional` **ignoreTransparent?**: `boolean`
|
||||
|
||||
If true, the transparent area of the element will be ignored during the point inclusion test.
|
||||
Otherwise, the transparent area will be considered as filled area.
|
||||
@@ -31,7 +31,7 @@ Default is true.
|
||||
|
||||
### responsePadding?
|
||||
|
||||
> `optional` **responsePadding**: \[`number`, `number`\]
|
||||
> `optional` **responsePadding?**: \[`number`, `number`\]
|
||||
|
||||
The padding of the response area for each element when do the hit testing. The unit is pixel.
|
||||
The first value is the padding for the x-axis, and the second value is the padding for the y-axis.
|
||||
@@ -40,7 +40,7 @@ The first value is the padding for the x-axis, and the second value is the paddi
|
||||
|
||||
### useElementBound?
|
||||
|
||||
> `optional` **useElementBound**: `boolean`
|
||||
> `optional` **useElementBound?**: `boolean`
|
||||
|
||||
If true, the element bound will be used for the hit testing.
|
||||
By default, the response bound will be used.
|
||||
@@ -49,6 +49,6 @@ By default, the response bound will be used.
|
||||
|
||||
### zoom?
|
||||
|
||||
> `optional` **zoom**: `number`
|
||||
> `optional` **zoom?**: `number`
|
||||
|
||||
The zoom level of current view when do the hit testing.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[BlockSuite API Documentation](../../../../README.md) / [@blocksuite/std](../../README.md) / [index](../README.md) / BlockService
|
||||
|
||||
# Class: ~~`abstract` BlockService~~
|
||||
# ~~Abstract Class: BlockService~~
|
||||
|
||||
## Deprecated
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[BlockSuite API Documentation](../../../../README.md) / [@blocksuite/std](../../README.md) / [index](../README.md) / LifeCycleWatcher
|
||||
|
||||
# Class: `abstract` LifeCycleWatcher
|
||||
# Abstract Class: LifeCycleWatcher
|
||||
|
||||
A life cycle watcher is an extension that watches the life cycle of the editor.
|
||||
It is used to perform actions when the editor is created, mounted, rendered, or unmounted.
|
||||
|
||||
@@ -25,6 +25,8 @@ boxedObject.setValue({ foo: 'bar' });
|
||||
|
||||
## Type Param
|
||||
|
||||
**T**
|
||||
|
||||
The type of the value stored in the Boxed.
|
||||
|
||||
## Type Parameters
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[BlockSuite API Documentation](../../../README.md) / [@blocksuite/store](../README.md) / Extension
|
||||
|
||||
# Class: `abstract` Extension
|
||||
# Abstract Class: Extension
|
||||
|
||||
# Understanding Extensions
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ Get the root block of the store.
|
||||
|
||||
### addBlock()
|
||||
|
||||
> **addBlock**\<`T`\>(`flavour`, `blockProps`, `parent?`, `parentIndex?`): `string`
|
||||
> **addBlock**\<`T`\>(`flavour`, `blockProps?`, `parent?`, `parentIndex?`): `string`
|
||||
|
||||
Creates and adds a new block to the store
|
||||
|
||||
@@ -136,7 +136,7 @@ Creates and adds a new block to the store
|
||||
|
||||
The block's flavour (type)
|
||||
|
||||
##### blockProps
|
||||
##### blockProps?
|
||||
|
||||
`Partial`\<`BlockProps` \| `PropsOfModel`\<`T`\> & `BlockSysProps`\> = `{}`
|
||||
|
||||
@@ -144,9 +144,9 @@ Optional properties for the new block
|
||||
|
||||
##### parent?
|
||||
|
||||
Optional parent block or parent block ID
|
||||
`string` \| `BlockModel`\<`object`\> \| `null`
|
||||
|
||||
`string` | `BlockModel`\<`object`\> | `null`
|
||||
Optional parent block or parent block ID
|
||||
|
||||
##### parentIndex?
|
||||
|
||||
@@ -182,9 +182,9 @@ Array of blocks to add
|
||||
|
||||
##### parent?
|
||||
|
||||
Optional parent block or parent block ID
|
||||
`string` \| `BlockModel`\<`object`\> \| `null`
|
||||
|
||||
`string` | `BlockModel`\<`object`\> | `null`
|
||||
Optional parent block or parent block ID
|
||||
|
||||
##### parentIndex?
|
||||
|
||||
@@ -202,7 +202,7 @@ Array of IDs of the newly created blocks
|
||||
|
||||
### addSiblingBlocks()
|
||||
|
||||
> **addSiblingBlocks**(`targetModel`, `props`, `placement`): `string`[]
|
||||
> **addSiblingBlocks**(`targetModel`, `props`, `placement?`): `string`[]
|
||||
|
||||
Add sibling blocks to the store
|
||||
|
||||
@@ -220,12 +220,12 @@ The target block model
|
||||
|
||||
Array of block properties
|
||||
|
||||
##### placement
|
||||
##### placement?
|
||||
|
||||
`"after"` \| `"before"`
|
||||
|
||||
Optional position to place the new blocks ('after' or 'before')
|
||||
|
||||
`"after"` | `"before"`
|
||||
|
||||
#### Returns
|
||||
|
||||
`string`[]
|
||||
@@ -236,7 +236,7 @@ Array of IDs of the newly created blocks
|
||||
|
||||
### deleteBlock()
|
||||
|
||||
> **deleteBlock**(`model`, `options`): `void`
|
||||
> **deleteBlock**(`model`, `options?`): `void`
|
||||
|
||||
Delete a block from the store
|
||||
|
||||
@@ -244,11 +244,11 @@ Delete a block from the store
|
||||
|
||||
##### model
|
||||
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
The block model or block ID to delete
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
|
||||
##### options
|
||||
##### options?
|
||||
|
||||
Optional options for the deletion
|
||||
|
||||
@@ -338,9 +338,9 @@ Gets all blocks of specified flavour(s)
|
||||
|
||||
##### blockFlavour
|
||||
|
||||
Single flavour or array of flavours to filter by
|
||||
`string` \| `string`[]
|
||||
|
||||
`string` | `string`[]
|
||||
Single flavour or array of flavours to filter by
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -388,9 +388,9 @@ Get all models of specified flavour(s)
|
||||
|
||||
##### blockFlavour
|
||||
|
||||
Single flavour or array of flavours to filter by
|
||||
`string` \| `string`[]
|
||||
|
||||
`string` | `string`[]
|
||||
Single flavour or array of flavours to filter by
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -410,9 +410,9 @@ Get the next sibling block of a given block
|
||||
|
||||
##### block
|
||||
|
||||
Block model or block ID to find next sibling for
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
Block model or block ID to find next sibling for
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -432,9 +432,9 @@ Get all next sibling blocks of a given block
|
||||
|
||||
##### block
|
||||
|
||||
Block model or block ID to find next siblings for
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
Block model or block ID to find next siblings for
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -454,9 +454,9 @@ Gets the parent block of a given block
|
||||
|
||||
##### target
|
||||
|
||||
Block model or block ID to find parent for
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
Block model or block ID to find parent for
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -476,9 +476,9 @@ Get the previous sibling block of a given block
|
||||
|
||||
##### block
|
||||
|
||||
Block model or block ID to find previous sibling for
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
Block model or block ID to find previous sibling for
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -498,9 +498,9 @@ Get all previous sibling blocks of a given block
|
||||
|
||||
##### block
|
||||
|
||||
Block model or block ID to find previous siblings for
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
Block model or block ID to find previous siblings for
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -534,7 +534,7 @@ True if the block exists, false otherwise
|
||||
|
||||
### moveBlocks()
|
||||
|
||||
> **moveBlocks**(`blocksToMove`, `newParent`, `targetSibling`, `shouldInsertBeforeSibling`): `void`
|
||||
> **moveBlocks**(`blocksToMove`, `newParent`, `targetSibling?`, `shouldInsertBeforeSibling?`): `void`
|
||||
|
||||
Move blocks to a new parent block
|
||||
|
||||
@@ -552,13 +552,13 @@ Array of block models to move
|
||||
|
||||
The new parent block model
|
||||
|
||||
##### targetSibling
|
||||
##### targetSibling?
|
||||
|
||||
`BlockModel`\<`object`\> \| `null`
|
||||
|
||||
Optional target sibling block model
|
||||
|
||||
`BlockModel`\<`object`\> | `null`
|
||||
|
||||
##### shouldInsertBeforeSibling
|
||||
##### shouldInsertBeforeSibling?
|
||||
|
||||
`boolean` = `true`
|
||||
|
||||
@@ -586,15 +586,15 @@ Updates a block's properties or executes a callback in a transaction
|
||||
|
||||
##### modelOrId
|
||||
|
||||
The block model or block ID to update
|
||||
`string` \| `T`
|
||||
|
||||
`string` | `T`
|
||||
The block model or block ID to update
|
||||
|
||||
##### callBackOrProps
|
||||
|
||||
Either a callback function to execute or properties to update
|
||||
(() => `void`) \| `Partial`\<`BlockProps` \| `PropsOfModel`\<`T`\> & `BlockSysProps`\>
|
||||
|
||||
() => `void` | `Partial`\<`BlockProps` \| `PropsOfModel`\<`T`\> & `BlockSysProps`\>
|
||||
Either a callback function to execute or properties to update
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -624,27 +624,7 @@ const extension = store.get(SomeExtension);
|
||||
|
||||
The extension instance
|
||||
|
||||
> \<`T`\>(`identifier`, `options?`): `T`
|
||||
|
||||
###### Type Parameters
|
||||
|
||||
###### T
|
||||
|
||||
`T`
|
||||
|
||||
###### Parameters
|
||||
|
||||
###### identifier
|
||||
|
||||
`GeneralServiceIdentifier`\<`T`\>
|
||||
|
||||
###### options?
|
||||
|
||||
`ResolveOptions`
|
||||
|
||||
###### Returns
|
||||
|
||||
`T`
|
||||
\<`T`\>(`identifier`, `options?`) => `T`
|
||||
|
||||
***
|
||||
|
||||
@@ -667,27 +647,7 @@ const extension = store.getOptional(SomeExtension);
|
||||
|
||||
The extension instance
|
||||
|
||||
> \<`T`\>(`identifier`, `options?`): `T` \| `null`
|
||||
|
||||
###### Type Parameters
|
||||
|
||||
###### T
|
||||
|
||||
`T`
|
||||
|
||||
###### Parameters
|
||||
|
||||
###### identifier
|
||||
|
||||
`GeneralServiceIdentifier`\<`T`\>
|
||||
|
||||
###### options?
|
||||
|
||||
`ResolveOptions`
|
||||
|
||||
###### Returns
|
||||
|
||||
`T` \| `null`
|
||||
\<`T`\>(`identifier`, `options?`) => `T` \| `null`
|
||||
|
||||
***
|
||||
|
||||
@@ -797,7 +757,7 @@ Reset the history of the store.
|
||||
|
||||
### transact()
|
||||
|
||||
> **transact**(`fn`, `shouldTransact`): `void`
|
||||
> **transact**(`fn`, `shouldTransact?`): `void`
|
||||
|
||||
Execute a transaction.
|
||||
|
||||
@@ -807,7 +767,7 @@ Execute a transaction.
|
||||
|
||||
() => `void`
|
||||
|
||||
##### shouldTransact
|
||||
##### shouldTransact?
|
||||
|
||||
`boolean` = `...`
|
||||
|
||||
@@ -969,13 +929,13 @@ The store instance
|
||||
|
||||
### getTransformer()
|
||||
|
||||
> **getTransformer**(`middlewares`): `Transformer`
|
||||
> **getTransformer**(`middlewares?`): `Transformer`
|
||||
|
||||
Creates a new transformer instance for the store
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### middlewares
|
||||
##### middlewares?
|
||||
|
||||
`TransformerMiddleware`[] = `[]`
|
||||
|
||||
|
||||
@@ -38,9 +38,9 @@ Text [delta](https://docs.yjs.dev/api/delta-format) is a format from Y.js.
|
||||
|
||||
##### input?
|
||||
|
||||
The input can be a string, a Y.Text instance, or an array of DeltaInsert.
|
||||
`string` \| `YText` \| `DeltaInsert`\<`TextAttributes`\>[]
|
||||
|
||||
`string` | `YText` | `DeltaInsert`\<`TextAttributes`\>[]
|
||||
The input can be a string, a Y.Text instance, or an array of DeltaInsert.
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -320,7 +320,7 @@ The delta of the sliced text.
|
||||
|
||||
### split()
|
||||
|
||||
> **split**(`index`, `length`): `Text`
|
||||
> **split**(`index`, `length?`): `Text`
|
||||
|
||||
Split the text into another Text.
|
||||
|
||||
@@ -332,7 +332,7 @@ Split the text into another Text.
|
||||
|
||||
The index to split.
|
||||
|
||||
##### length
|
||||
##### length?
|
||||
|
||||
`number` = `0`
|
||||
|
||||
|
||||
@@ -14,5 +14,5 @@
|
||||
"scripts": {
|
||||
"build": "typedoc"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user