@blocksuite/affine-model
Advanced tools
Comparing version 0.0.0-canary-20241205001533 to 0.0.0-canary-20241205123002
# @blocksuite/affine-model | ||
## 0.0.0-canary-20241205001533 | ||
## 0.0.0-canary-20241205123002 | ||
@@ -9,7 +9,27 @@ ### Patch Changes | ||
- Updated dependencies | ||
- @blocksuite/block-std@0.0.0-canary-20241205001533 | ||
- @blocksuite/global@0.0.0-canary-20241205001533 | ||
- @blocksuite/inline@0.0.0-canary-20241205001533 | ||
- @blocksuite/store@0.0.0-canary-20241205001533 | ||
- @blocksuite/block-std@0.0.0-canary-20241205123002 | ||
- @blocksuite/global@0.0.0-canary-20241205123002 | ||
- @blocksuite/inline@0.0.0-canary-20241205123002 | ||
- @blocksuite/store@0.0.0-canary-20241205123002 | ||
## 0.18.3 | ||
### Patch Changes | ||
- 3448094: ## Fix | ||
- fix(database): storage should be accessed via globalThis (#8863) | ||
- fix(edgeless): memory leak in edgeless widgets (#8862) | ||
- fix: page switching under starter route (#8860) | ||
## Refactor | ||
- refactor(blocks): shadowless keyboard toolbar (#8864) | ||
- Updated dependencies [3448094] | ||
- @blocksuite/block-std@0.18.3 | ||
- @blocksuite/global@0.18.3 | ||
- @blocksuite/inline@0.18.3 | ||
- @blocksuite/store@0.18.3 | ||
## 0.18.2 | ||
@@ -16,0 +36,0 @@ |
@@ -14,2 +14,4 @@ import type { ReferenceInfo } from '../../../consts/doc.js'; | ||
pageId: string; | ||
description?: string | null | undefined; | ||
title?: string | null | undefined; | ||
params?: { | ||
@@ -16,0 +18,0 @@ mode?: "edgeless" | "page" | undefined; |
@@ -7,2 +7,5 @@ import { createEmbedBlockSchema } from '../../../utils/index.js'; | ||
caption: null, | ||
// title & description aliases | ||
title: undefined, | ||
description: undefined, | ||
}; | ||
@@ -9,0 +12,0 @@ export const EmbedLinkedDocBlockSchema = createEmbedBlockSchema({ |
@@ -16,2 +16,4 @@ import type { ReferenceInfo } from '../../../consts/doc.js'; | ||
pageId: string; | ||
description?: string | null | undefined; | ||
title?: string | null | undefined; | ||
params?: { | ||
@@ -18,0 +20,0 @@ mode?: "edgeless" | "page" | undefined; |
@@ -8,2 +8,5 @@ import { createEmbedBlockSchema } from '../../../utils/index.js'; | ||
scale: undefined, | ||
// title & description aliases | ||
title: undefined, | ||
description: undefined, | ||
}; | ||
@@ -10,0 +13,0 @@ export const EmbedSyncedDocBlockSchema = createEmbedBlockSchema({ |
import { z } from 'zod'; | ||
export type DocMode = 'edgeless' | 'page'; | ||
export declare const DocModes: readonly ["edgeless", "page"]; | ||
/** | ||
* Custom title and description information. | ||
* | ||
* Supports the following blocks: | ||
* | ||
* 1. Inline View: `AffineReference` - title | ||
* 2. Card View: `EmbedLinkedDocBlock` - title & description | ||
* 3. Embed View: `EmbedSyncedDocBlock` - title | ||
*/ | ||
export declare const AliasInfoSchema: z.ZodObject<{ | ||
title: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
description: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
description?: string | null | undefined; | ||
title?: string | null | undefined; | ||
}, { | ||
description?: string | null | undefined; | ||
title?: string | null | undefined; | ||
}>; | ||
export type AliasInfo = z.infer<typeof AliasInfoSchema>; | ||
export declare const ReferenceParamsSchema: z.ZodObject<{ | ||
@@ -24,3 +44,3 @@ mode: z.ZodOptional<z.ZodEnum<["edgeless", "page"]>>; | ||
export type ReferenceParams = z.infer<typeof ReferenceParamsSchema>; | ||
export declare const ReferenceInfoSchema: z.ZodObject<{ | ||
export declare const ReferenceInfoSchema: z.ZodObject<z.objectUtil.extendShape<{ | ||
pageId: z.ZodString; | ||
@@ -46,4 +66,9 @@ params: z.ZodOptional<z.ZodObject<{ | ||
}>>; | ||
}, "strip", z.ZodTypeAny, { | ||
}, { | ||
title: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
description: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}>, "strip", z.ZodTypeAny, { | ||
pageId: string; | ||
description?: string | null | undefined; | ||
title?: string | null | undefined; | ||
params?: { | ||
@@ -58,2 +83,4 @@ mode?: "edgeless" | "page" | undefined; | ||
pageId: string; | ||
description?: string | null | undefined; | ||
title?: string | null | undefined; | ||
params?: { | ||
@@ -60,0 +87,0 @@ mode?: "edgeless" | "page" | undefined; |
import { z } from 'zod'; | ||
export const DocModes = ['edgeless', 'page']; | ||
/** | ||
* Custom title and description information. | ||
* | ||
* Supports the following blocks: | ||
* | ||
* 1. Inline View: `AffineReference` - title | ||
* 2. Card View: `EmbedLinkedDocBlock` - title & description | ||
* 3. Embed View: `EmbedSyncedDocBlock` - title | ||
*/ | ||
export const AliasInfoSchema = z | ||
.object({ | ||
title: z.string().nullable(), | ||
description: z.string().nullable(), | ||
}) | ||
.partial(); | ||
export const ReferenceParamsSchema = z | ||
@@ -12,6 +27,8 @@ .object({ | ||
.partial(); | ||
export const ReferenceInfoSchema = z.object({ | ||
export const ReferenceInfoSchema = z | ||
.object({ | ||
pageId: z.string(), | ||
params: ReferenceParamsSchema.optional(), | ||
}); | ||
}) | ||
.merge(AliasInfoSchema); | ||
//# sourceMappingURL=doc.js.map |
{ | ||
"name": "@blocksuite/affine-model", | ||
"version": "0.0.0-canary-20241205001533", | ||
"version": "0.0.0-canary-20241205123002", | ||
"description": "Models for BlockSuite in Affine.", | ||
@@ -22,6 +22,6 @@ "type": "module", | ||
"dependencies": { | ||
"@blocksuite/block-std": "0.0.0-canary-20241205001533", | ||
"@blocksuite/global": "0.0.0-canary-20241205001533", | ||
"@blocksuite/inline": "0.0.0-canary-20241205001533", | ||
"@blocksuite/store": "0.0.0-canary-20241205001533", | ||
"@blocksuite/block-std": "0.0.0-canary-20241205123002", | ||
"@blocksuite/global": "0.0.0-canary-20241205123002", | ||
"@blocksuite/inline": "0.0.0-canary-20241205123002", | ||
"@blocksuite/store": "0.0.0-canary-20241205123002", | ||
"fractional-indexing": "^3.2.0", | ||
@@ -28,0 +28,0 @@ "zod": "^3.23.8" |
@@ -12,2 +12,5 @@ import { createEmbedBlockSchema } from '../../../utils/index.js'; | ||
caption: null, | ||
// title & description aliases | ||
title: undefined, | ||
description: undefined, | ||
}; | ||
@@ -14,0 +17,0 @@ |
@@ -13,2 +13,5 @@ import { createEmbedBlockSchema } from '../../../utils/index.js'; | ||
scale: undefined, | ||
// title & description aliases | ||
title: undefined, | ||
description: undefined, | ||
}; | ||
@@ -15,0 +18,0 @@ |
@@ -7,2 +7,20 @@ import { z } from 'zod'; | ||
/** | ||
* Custom title and description information. | ||
* | ||
* Supports the following blocks: | ||
* | ||
* 1. Inline View: `AffineReference` - title | ||
* 2. Card View: `EmbedLinkedDocBlock` - title & description | ||
* 3. Embed View: `EmbedSyncedDocBlock` - title | ||
*/ | ||
export const AliasInfoSchema = z | ||
.object({ | ||
title: z.string().nullable(), | ||
description: z.string().nullable(), | ||
}) | ||
.partial(); | ||
export type AliasInfo = z.infer<typeof AliasInfoSchema>; | ||
export const ReferenceParamsSchema = z | ||
@@ -20,7 +38,9 @@ .object({ | ||
export const ReferenceInfoSchema = z.object({ | ||
pageId: z.string(), | ||
params: ReferenceParamsSchema.optional(), | ||
}); | ||
export const ReferenceInfoSchema = z | ||
.object({ | ||
pageId: z.string(), | ||
params: ReferenceParamsSchema.optional(), | ||
}) | ||
.merge(AliasInfoSchema); | ||
export type ReferenceInfo = z.infer<typeof ReferenceInfoSchema>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
722492
10137
+ Added@blocksuite/block-std@0.0.0-canary-20241205123002(transitive)
+ Added@blocksuite/global@0.0.0-canary-20241205123002(transitive)
+ Added@blocksuite/inline@0.0.0-canary-20241205123002(transitive)
+ Added@blocksuite/store@0.0.0-canary-20241205123002(transitive)
+ Added@blocksuite/sync@0.0.0-canary-20241205123002(transitive)
+ Added@types/lodash@4.17.14(transitive)
+ Addedpeek-readable@5.3.1(transitive)
- Removed@blocksuite/block-std@0.0.0-canary-20241205001533(transitive)
- Removed@blocksuite/global@0.0.0-canary-20241205001533(transitive)
- Removed@blocksuite/inline@0.0.0-canary-20241205001533(transitive)
- Removed@blocksuite/store@0.0.0-canary-20241205001533(transitive)
- Removed@blocksuite/sync@0.0.0-canary-20241205001533(transitive)
- Removed@types/lodash@4.17.15(transitive)
- Removedpeek-readable@5.4.2(transitive)