@blocksuite/affine-shared
Advanced tools
Comparing version 0.0.0-canary-20240902030638 to 0.0.0-canary-20240902064842
@@ -105,3 +105,3 @@ import { ConnectorMode, FontFamily, FontStyle, FontWeight, LineColor, LineWidth, NoteDisplayMode, PointStyle, ShapeStyle, ShapeTextFontSize, ShapeType, StrokeStyle, TextAlign, TextVerticalAlign } from '@blocksuite/affine-model'; | ||
export declare const ShapeSchema: z.ZodDefault<z.ZodObject<{ | ||
color: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{ | ||
color: z.ZodUnion<[z.ZodNativeEnum<typeof LineColor>, z.ZodUnion<[z.ZodObject<{ | ||
normal: z.ZodString; | ||
@@ -169,3 +169,3 @@ }, "strip", z.ZodTypeAny, { | ||
}, "strip", z.ZodTypeAny, { | ||
color: string | { | ||
color: LineColor | { | ||
normal: string; | ||
@@ -203,3 +203,3 @@ } | { | ||
}, { | ||
color: string | { | ||
color: LineColor | { | ||
normal: string; | ||
@@ -238,3 +238,3 @@ } | { | ||
export declare const TextSchema: z.ZodDefault<z.ZodObject<{ | ||
color: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{ | ||
color: z.ZodUnion<[z.ZodNativeEnum<typeof LineColor>, z.ZodUnion<[z.ZodObject<{ | ||
normal: z.ZodString; | ||
@@ -262,3 +262,3 @@ }, "strip", z.ZodTypeAny, { | ||
fontSize: number; | ||
color: string | { | ||
color: LineColor | { | ||
normal: string; | ||
@@ -275,3 +275,3 @@ } | { | ||
fontSize: number; | ||
color: string | { | ||
color: LineColor | { | ||
normal: string; | ||
@@ -288,3 +288,3 @@ } | { | ||
export declare const EdgelessTextSchema: z.ZodDefault<z.ZodObject<{ | ||
color: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{ | ||
color: z.ZodUnion<[z.ZodNativeEnum<typeof LineColor>, z.ZodUnion<[z.ZodObject<{ | ||
normal: z.ZodString; | ||
@@ -310,3 +310,3 @@ }, "strip", z.ZodTypeAny, { | ||
}, "strip", z.ZodTypeAny, { | ||
color: string | { | ||
color: LineColor | { | ||
normal: string; | ||
@@ -322,3 +322,3 @@ } | { | ||
}, { | ||
color: string | { | ||
color: LineColor | { | ||
normal: string; | ||
@@ -325,0 +325,0 @@ } | { |
@@ -28,3 +28,3 @@ import { ConnectorMode, DEFAULT_CONNECTOR_COLOR, DEFAULT_FRONT_END_POINT_STYLE, DEFAULT_NOTE_BACKGROUND_COLOR, DEFAULT_NOTE_SHADOW, DEFAULT_REAR_END_POINT_STYLE, DEFAULT_SHAPE_FILL_COLOR, DEFAULT_SHAPE_STROKE_COLOR, DEFAULT_SHAPE_TEXT_COLOR, DEFAULT_TEXT_COLOR, FillColorsSchema, FontFamily, FontStyle, FontWeight, LineColor, LineColorsSchema, LineWidth, NoteBackgroundColorsSchema, NoteDisplayMode, NoteShadowsSchema, PointStyle, ShapeStyle, ShapeTextFontSize, ShapeType, StrokeColorsSchema, StrokeStyle, TextAlign, TextVerticalAlign, } from '@blocksuite/affine-model'; | ||
const ShapeStrokeColorSchema = z.union([StrokeColorsSchema, ColorSchema]); | ||
const TextColorSchema = z.union([z.string(), ColorSchema]); | ||
const TextColorSchema = z.union([LineColorsSchema, ColorSchema]); | ||
const NoteBackgroundColorSchema = z.union([ | ||
@@ -31,0 +31,0 @@ NoteBackgroundColorsSchema, |
{ | ||
"name": "@blocksuite/affine-shared", | ||
"version": "0.0.0-canary-20240902030638", | ||
"version": "0.0.0-canary-20240902064842", | ||
"description": "Default BlockSuite editable blocks.", | ||
@@ -18,7 +18,7 @@ "type": "module", | ||
"zod": "^3.23.8", | ||
"@blocksuite/affine-model": "0.0.0-canary-20240902030638", | ||
"@blocksuite/block-std": "0.0.0-canary-20240902030638", | ||
"@blocksuite/global": "0.0.0-canary-20240902030638", | ||
"@blocksuite/inline": "0.0.0-canary-20240902030638", | ||
"@blocksuite/store": "0.0.0-canary-20240902030638" | ||
"@blocksuite/affine-model": "0.0.0-canary-20240902064842", | ||
"@blocksuite/block-std": "0.0.0-canary-20240902064842", | ||
"@blocksuite/global": "0.0.0-canary-20240902064842", | ||
"@blocksuite/inline": "0.0.0-canary-20240902064842", | ||
"@blocksuite/store": "0.0.0-canary-20240902064842" | ||
}, | ||
@@ -25,0 +25,0 @@ "exports": { |
@@ -59,3 +59,3 @@ import { | ||
const ShapeStrokeColorSchema = z.union([StrokeColorsSchema, ColorSchema]); | ||
const TextColorSchema = z.union([z.string(), ColorSchema]); | ||
const TextColorSchema = z.union([LineColorsSchema, ColorSchema]); | ||
const NoteBackgroundColorSchema = z.union([ | ||
@@ -62,0 +62,0 @@ NoteBackgroundColorsSchema, |
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
448187
+ Added@blocksuite/affine-model@0.0.0-canary-20240902064842(transitive)
+ Added@blocksuite/block-std@0.0.0-canary-20240902064842(transitive)
+ Added@blocksuite/global@0.0.0-canary-20240902064842(transitive)
+ Added@blocksuite/inline@0.0.0-canary-20240902064842(transitive)
+ Added@blocksuite/store@0.0.0-canary-20240902064842(transitive)
+ Added@blocksuite/sync@0.0.0-canary-20240902064842(transitive)
- Removed@blocksuite/affine-model@0.0.0-canary-20240902030638(transitive)
- Removed@blocksuite/block-std@0.0.0-canary-20240902030638(transitive)
- Removed@blocksuite/global@0.0.0-canary-20240902030638(transitive)
- Removed@blocksuite/inline@0.0.0-canary-20240902030638(transitive)
- Removed@blocksuite/store@0.0.0-canary-20240902030638(transitive)
- Removed@blocksuite/sync@0.0.0-canary-20240902030638(transitive)