@blocksuite/affine-model
Advanced tools
Comparing version 0.0.0-canary-20240830045318 to 0.0.0-canary-20240831001307
@@ -0,1 +1,2 @@ | ||
import { z } from 'zod'; | ||
export declare enum LineWidth { | ||
@@ -23,3 +24,3 @@ Eight = 8, | ||
export declare const LINE_COLORS: readonly [LineColor.Yellow, LineColor.Orange, LineColor.Red, LineColor.Magenta, LineColor.Purple, LineColor.Blue, LineColor.Teal, LineColor.Green, LineColor.Black, LineColor.Grey, LineColor.White]; | ||
export declare const LineColorsSchema: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<LineColor.Yellow>, import("zod").ZodLiteral<LineColor.Orange>, import("zod").ZodLiteral<LineColor.Red>, import("zod").ZodLiteral<LineColor.Magenta>, import("zod").ZodLiteral<LineColor.Purple>, import("zod").ZodLiteral<LineColor.Blue>, import("zod").ZodLiteral<LineColor.Teal>, import("zod").ZodLiteral<LineColor.Green>, import("zod").ZodLiteral<LineColor.Black>, import("zod").ZodLiteral<LineColor.Grey>, import("zod").ZodLiteral<LineColor.White>]>; | ||
export declare const LineColorsSchema: z.ZodNativeEnum<typeof LineColor>; | ||
export declare const DEFAULT_TEXT_COLOR = LineColor.Blue; | ||
@@ -26,0 +27,0 @@ export declare const DEFAULT_BRUSH_COLOR = LineColor.Blue; |
@@ -1,2 +0,2 @@ | ||
import { createZodUnion } from '../utils/zod.js'; | ||
import { z } from 'zod'; | ||
export var LineWidth; | ||
@@ -40,3 +40,3 @@ (function (LineWidth) { | ||
]; | ||
export const LineColorsSchema = createZodUnion(LINE_COLORS); | ||
export const LineColorsSchema = z.nativeEnum(LineColor); | ||
export const DEFAULT_TEXT_COLOR = LineColor.Blue; | ||
@@ -43,0 +43,0 @@ export const DEFAULT_BRUSH_COLOR = LineColor.Blue; |
@@ -0,1 +1,2 @@ | ||
import { z } from 'zod'; | ||
export declare const NOTE_WIDTH = 800; | ||
@@ -17,3 +18,3 @@ export declare enum NoteBackgroundColor { | ||
export declare const DEFAULT_NOTE_BACKGROUND_COLOR = NoteBackgroundColor.Blue; | ||
export declare const NoteBackgroundColorsSchema: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<NoteBackgroundColor.Yellow>, import("zod").ZodLiteral<NoteBackgroundColor.Orange>, import("zod").ZodLiteral<NoteBackgroundColor.Red>, import("zod").ZodLiteral<NoteBackgroundColor.Magenta>, import("zod").ZodLiteral<NoteBackgroundColor.Purple>, import("zod").ZodLiteral<NoteBackgroundColor.Blue>, import("zod").ZodLiteral<NoteBackgroundColor.Teal>, import("zod").ZodLiteral<NoteBackgroundColor.Green>, import("zod").ZodLiteral<NoteBackgroundColor.Black>, import("zod").ZodLiteral<NoteBackgroundColor.Grey>, import("zod").ZodLiteral<NoteBackgroundColor.White>]>; | ||
export declare const NoteBackgroundColorsSchema: z.ZodNativeEnum<typeof NoteBackgroundColor>; | ||
export declare enum NoteShadow { | ||
@@ -29,3 +30,3 @@ Box = "--affine-note-shadow-box", | ||
export declare const DEFAULT_NOTE_SHADOW = NoteShadow.Sticker; | ||
export declare const NoteShadowsSchema: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<NoteShadow.None>, import("zod").ZodLiteral<NoteShadow.Box>, import("zod").ZodLiteral<NoteShadow.Sticker>, import("zod").ZodLiteral<NoteShadow.Paper>, import("zod").ZodLiteral<NoteShadow.Float>, import("zod").ZodLiteral<NoteShadow.Film>]>; | ||
export declare const NoteShadowsSchema: z.ZodNativeEnum<typeof NoteShadow>; | ||
export declare enum NoteDisplayMode { | ||
@@ -32,0 +33,0 @@ DocAndEdgeless = "both", |
@@ -1,2 +0,2 @@ | ||
import { createZodUnion } from '../utils/zod.js'; | ||
import { z } from 'zod'; | ||
export const NOTE_WIDTH = 800; | ||
@@ -31,3 +31,3 @@ export var NoteBackgroundColor; | ||
export const DEFAULT_NOTE_BACKGROUND_COLOR = NoteBackgroundColor.Blue; | ||
export const NoteBackgroundColorsSchema = createZodUnion(NOTE_BACKGROUND_COLORS); | ||
export const NoteBackgroundColorsSchema = z.nativeEnum(NoteBackgroundColor); | ||
export var NoteShadow; | ||
@@ -51,3 +51,3 @@ (function (NoteShadow) { | ||
export const DEFAULT_NOTE_SHADOW = NoteShadow.Sticker; | ||
export const NoteShadowsSchema = createZodUnion(NOTE_SHADOWS); | ||
export const NoteShadowsSchema = z.nativeEnum(NoteShadow); | ||
export var NoteDisplayMode; | ||
@@ -54,0 +54,0 @@ (function (NoteDisplayMode) { |
@@ -0,1 +1,2 @@ | ||
import { z } from 'zod'; | ||
import { LineColor } from './line.js'; | ||
@@ -35,7 +36,7 @@ export declare const DEFAULT_ROUGHNESS = 1.4; | ||
export declare const DEFAULT_SHAPE_FILL_COLOR = ShapeFillColor.Yellow; | ||
export declare const FillColorsSchema: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<ShapeFillColor.Yellow>, import("zod").ZodLiteral<ShapeFillColor.Orange>, import("zod").ZodLiteral<ShapeFillColor.Red>, import("zod").ZodLiteral<ShapeFillColor.Magenta>, import("zod").ZodLiteral<ShapeFillColor.Purple>, import("zod").ZodLiteral<ShapeFillColor.Blue>, import("zod").ZodLiteral<ShapeFillColor.Teal>, import("zod").ZodLiteral<ShapeFillColor.Green>, import("zod").ZodLiteral<ShapeFillColor.Black>, import("zod").ZodLiteral<ShapeFillColor.Grey>, import("zod").ZodLiteral<ShapeFillColor.White>]>; | ||
export declare const FillColorsSchema: z.ZodNativeEnum<typeof ShapeFillColor>; | ||
export declare const SHAPE_STROKE_COLORS: readonly [LineColor.Yellow, LineColor.Orange, LineColor.Red, LineColor.Magenta, LineColor.Purple, LineColor.Blue, LineColor.Teal, LineColor.Green, LineColor.Black, LineColor.Grey, LineColor.White]; | ||
export declare const DEFAULT_SHAPE_STROKE_COLOR = LineColor.Yellow; | ||
export declare const DEFAULT_SHAPE_TEXT_COLOR = LineColor.Black; | ||
export declare const StrokeColorsSchema: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<LineColor.Yellow>, import("zod").ZodLiteral<LineColor.Orange>, import("zod").ZodLiteral<LineColor.Red>, import("zod").ZodLiteral<LineColor.Magenta>, import("zod").ZodLiteral<LineColor.Purple>, import("zod").ZodLiteral<LineColor.Blue>, import("zod").ZodLiteral<LineColor.Teal>, import("zod").ZodLiteral<LineColor.Green>, import("zod").ZodLiteral<LineColor.Black>, import("zod").ZodLiteral<LineColor.Grey>, import("zod").ZodLiteral<LineColor.White>]>; | ||
export declare const StrokeColorsSchema: z.ZodNativeEnum<typeof LineColor>; | ||
//# sourceMappingURL=shape.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { createZodUnion } from '../utils/zod.js'; | ||
import { z } from 'zod'; | ||
import { LINE_COLORS, LineColor } from './line.js'; | ||
@@ -53,7 +53,7 @@ export const DEFAULT_ROUGHNESS = 1.4; | ||
export const DEFAULT_SHAPE_FILL_COLOR = ShapeFillColor.Yellow; | ||
export const FillColorsSchema = createZodUnion(SHAPE_FILL_COLORS); | ||
export const FillColorsSchema = z.nativeEnum(ShapeFillColor); | ||
export const SHAPE_STROKE_COLORS = LINE_COLORS; | ||
export const DEFAULT_SHAPE_STROKE_COLOR = LineColor.Yellow; | ||
export const DEFAULT_SHAPE_TEXT_COLOR = LineColor.Black; | ||
export const StrokeColorsSchema = createZodUnion(SHAPE_STROKE_COLORS); | ||
export const StrokeColorsSchema = z.nativeEnum(LineColor); | ||
//# sourceMappingURL=shape.js.map |
@@ -5,3 +5,2 @@ export * from './gfx-compatible.js'; | ||
export * from './types.js'; | ||
export * from './zod.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,3 +5,2 @@ export * from './gfx-compatible.js'; | ||
export * from './types.js'; | ||
export * from './zod.js'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@blocksuite/affine-model", | ||
"version": "0.0.0-canary-20240830045318", | ||
"version": "0.0.0-canary-20240831001307", | ||
"description": "Default BlockSuite editable blocks.", | ||
@@ -12,6 +12,6 @@ "type": "module", | ||
"zod": "^3.23.8", | ||
"@blocksuite/block-std": "0.0.0-canary-20240830045318", | ||
"@blocksuite/inline": "0.0.0-canary-20240830045318", | ||
"@blocksuite/global": "0.0.0-canary-20240830045318", | ||
"@blocksuite/store": "0.0.0-canary-20240830045318" | ||
"@blocksuite/block-std": "0.0.0-canary-20240831001307", | ||
"@blocksuite/global": "0.0.0-canary-20240831001307", | ||
"@blocksuite/store": "0.0.0-canary-20240831001307", | ||
"@blocksuite/inline": "0.0.0-canary-20240831001307" | ||
}, | ||
@@ -18,0 +18,0 @@ "exports": { |
@@ -1,2 +0,2 @@ | ||
import { createZodUnion } from '../utils/zod.js'; | ||
import { z } from 'zod'; | ||
@@ -42,3 +42,3 @@ export enum LineWidth { | ||
export const LineColorsSchema = createZodUnion(LINE_COLORS); | ||
export const LineColorsSchema = z.nativeEnum(LineColor); | ||
@@ -45,0 +45,0 @@ export const DEFAULT_TEXT_COLOR = LineColor.Blue; |
@@ -1,2 +0,2 @@ | ||
import { createZodUnion } from '../utils/zod.js'; | ||
import { z } from 'zod'; | ||
@@ -35,5 +35,3 @@ export const NOTE_WIDTH = 800; | ||
export const NoteBackgroundColorsSchema = createZodUnion( | ||
NOTE_BACKGROUND_COLORS | ||
); | ||
export const NoteBackgroundColorsSchema = z.nativeEnum(NoteBackgroundColor); | ||
@@ -60,3 +58,3 @@ export enum NoteShadow { | ||
export const NoteShadowsSchema = createZodUnion(NOTE_SHADOWS); | ||
export const NoteShadowsSchema = z.nativeEnum(NoteShadow); | ||
@@ -63,0 +61,0 @@ export enum NoteDisplayMode { |
@@ -1,2 +0,3 @@ | ||
import { createZodUnion } from '../utils/zod.js'; | ||
import { z } from 'zod'; | ||
import { LINE_COLORS, LineColor } from './line.js'; | ||
@@ -58,3 +59,3 @@ | ||
export const FillColorsSchema = createZodUnion(SHAPE_FILL_COLORS); | ||
export const FillColorsSchema = z.nativeEnum(ShapeFillColor); | ||
@@ -67,2 +68,2 @@ export const SHAPE_STROKE_COLORS = LINE_COLORS; | ||
export const StrokeColorsSchema = createZodUnion(SHAPE_STROKE_COLORS); | ||
export const StrokeColorsSchema = z.nativeEnum(LineColor); |
@@ -5,2 +5,1 @@ export * from './gfx-compatible.js'; | ||
export * from './types.js'; | ||
export * from './zod.js'; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
542924
412
7516
+ Added@blocksuite/block-std@0.0.0-canary-20240831001307(transitive)
+ Added@blocksuite/global@0.0.0-canary-20240831001307(transitive)
+ Added@blocksuite/inline@0.0.0-canary-20240831001307(transitive)
+ Added@blocksuite/store@0.0.0-canary-20240831001307(transitive)
+ Added@blocksuite/sync@0.0.0-canary-20240831001307(transitive)
- Removed@blocksuite/block-std@0.0.0-canary-20240830045318(transitive)
- Removed@blocksuite/global@0.0.0-canary-20240830045318(transitive)
- Removed@blocksuite/inline@0.0.0-canary-20240830045318(transitive)
- Removed@blocksuite/store@0.0.0-canary-20240830045318(transitive)
- Removed@blocksuite/sync@0.0.0-canary-20240830045318(transitive)