New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@blocksuite/affine-model

Package Overview
Dependencies
Maintainers
0
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/affine-model - npm Package Compare versions

Comparing version 0.0.0-canary-20240918001359 to 0.0.0-canary-20240919115531

dist/elements/mindmap/index.d.ts

55

CHANGELOG.md
# @blocksuite/affine-model
## 0.0.0-canary-20240918001359
## 0.0.0-canary-20240919115531

@@ -9,7 +9,52 @@ ### Patch Changes

- Updated dependencies
- @blocksuite/global@0.0.0-canary-20240918001359
- @blocksuite/block-std@0.0.0-canary-20240918001359
- @blocksuite/store@0.0.0-canary-20240918001359
- @blocksuite/inline@0.0.0-canary-20240918001359
- @blocksuite/block-std@0.0.0-canary-20240919115531
- @blocksuite/global@0.0.0-canary-20240919115531
- @blocksuite/inline@0.0.0-canary-20240919115531
- @blocksuite/store@0.0.0-canary-20240919115531
## 0.17.13
### Patch Changes
- 9de68e3: Update mindmap uitls export
- Updated dependencies [9de68e3]
- @blocksuite/block-std@0.17.13
- @blocksuite/global@0.17.13
- @blocksuite/inline@0.17.13
- @blocksuite/store@0.17.13
## 0.17.12
### Patch Changes
- c334c91: - fix(database): remove image column
- fix: frame preview should update correctly after mode switched
- refactor: move with-disposable and signal-watcher to global package
- fix(edgeless): failed to alt clone move frame when it contains container element
- fix: wrong size limit config
- Updated dependencies [c334c91]
- @blocksuite/block-std@0.17.12
- @blocksuite/global@0.17.12
- @blocksuite/inline@0.17.12
- @blocksuite/store@0.17.12
## 0.17.11
### Patch Changes
- 1052ebd: - Refactor drag handle widget
- Split embed blocks to `@blocksuite/affine-block-embed`
- Fix latex selected state in edgeless mode
- Fix unclear naming
- Fix prototype pollution
- Fix portal interaction in affine modal
- Fix paste linked block on edgeless
- Add scroll anchoring widget
- Add highlight selection
- Updated dependencies [1052ebd]
- @blocksuite/block-std@0.17.11
- @blocksuite/global@0.17.11
- @blocksuite/inline@0.17.11
- @blocksuite/store@0.17.11
## 0.17.10

@@ -16,0 +61,0 @@

export * from './brush/index.js';
export * from './connector/index.js';
export * from './group/index.js';
export * from './mindmap/index.js';
export * from './shape/index.js';
export * from './text/index.js';
//# sourceMappingURL=index.d.ts.map
export * from './brush/index.js';
export * from './connector/index.js';
export * from './group/index.js';
export * from './mindmap/index.js';
export * from './shape/index.js';
export * from './text/index.js';
//# sourceMappingURL=index.js.map

3

dist/elements/shape/shape.d.ts
import type { BaseElementProps, PointTestOptions } from '@blocksuite/block-std/gfx';
import type { Bound, IBound, IVec, PointLocation, SerializedXYWH } from '@blocksuite/global/utils';
import { type Color, FontStyle, FontWeight, StrokeStyle, TextAlign, type TextStyleProps, TextVerticalAlign } from '@blocksuite/affine-model';
import { GfxPrimitiveElementModel } from '@blocksuite/block-std/gfx';
import { type Y } from '@blocksuite/store';
import { ShapeStyle, ShapeType, TextResizing } from '../../consts/index.js';
import { type Color, FontStyle, FontWeight, ShapeStyle, ShapeType, StrokeStyle, TextAlign, TextResizing, type TextStyleProps, TextVerticalAlign } from '../../consts/index.js';
export type ShapeProps = BaseElementProps & {

@@ -8,0 +7,0 @@ shapeType: ShapeType;

@@ -35,6 +35,5 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {

};
import { DEFAULT_ROUGHNESS, FontFamily, FontStyle, FontWeight, StrokeStyle, TextAlign, TextVerticalAlign, } from '@blocksuite/affine-model';
import { field, GfxPrimitiveElementModel, local, } from '@blocksuite/block-std/gfx';
import { DocCollection } from '@blocksuite/store';
import { LineColor, ShapeFillColor, ShapeStyle, ShapeTextFontSize, ShapeType, TextResizing, } from '../../consts/index.js';
import { DEFAULT_ROUGHNESS, FontFamily, FontStyle, FontWeight, LineColor, ShapeFillColor, ShapeStyle, ShapeTextFontSize, ShapeType, StrokeStyle, TextAlign, TextResizing, TextVerticalAlign, } from '../../consts/index.js';
import { shapeMethods } from './api/index.js';

@@ -41,0 +40,0 @@ export const SHAPE_TEXT_PADDING = 20;

import type { BaseElementProps } from '@blocksuite/block-std/gfx';
import type { IVec, SerializedXYWH } from '@blocksuite/global/utils';
import { type Color, FontFamily, FontStyle, FontWeight, TextAlign, type TextStyleProps } from '@blocksuite/affine-model';
import { GfxPrimitiveElementModel } from '@blocksuite/block-std/gfx';
import { Bound } from '@blocksuite/global/utils';
import { type Y } from '@blocksuite/store';
import { type Color, FontFamily, FontStyle, FontWeight, TextAlign, type TextStyleProps } from '../../consts/index.js';
export type TextElementProps = BaseElementProps & {

@@ -8,0 +8,0 @@ text: Y.Text;

@@ -35,6 +35,6 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {

};
import { FontFamily, FontStyle, FontWeight, TextAlign, } from '@blocksuite/affine-model';
import { field, GfxPrimitiveElementModel } from '@blocksuite/block-std/gfx';
import { Bound, getPointsFromBoundsWithRotation, linePolygonIntersects, pointInPolygon, polygonNearestPoint, } from '@blocksuite/global/utils';
import { DocCollection } from '@blocksuite/store';
import { FontFamily, FontStyle, FontWeight, TextAlign, } from '../../consts/index.js';
let TextElementModel = (() => {

@@ -41,0 +41,0 @@ let _classSuper = GfxPrimitiveElementModel;

{
"name": "@blocksuite/affine-model",
"version": "0.0.0-canary-20240918001359",
"description": "Default BlockSuite editable blocks.",
"version": "0.0.0-canary-20240919115531",
"description": "Models for BlockSuite in Affine.",
"type": "module",
"repository": "toeverything/blocksuite",
"repository": {
"type": "git",
"url": "https://github.com/toeverything/blocksuite.git",
"directory": "packages/affine/model"
},
"scripts": {

@@ -18,6 +22,7 @@ "build": "tsc",

"dependencies": {
"@blocksuite/block-std": "0.0.0-canary-20240918001359",
"@blocksuite/global": "0.0.0-canary-20240918001359",
"@blocksuite/inline": "0.0.0-canary-20240918001359",
"@blocksuite/store": "0.0.0-canary-20240918001359",
"@blocksuite/block-std": "0.0.0-canary-20240919115531",
"@blocksuite/global": "0.0.0-canary-20240919115531",
"@blocksuite/inline": "0.0.0-canary-20240919115531",
"@blocksuite/store": "0.0.0-canary-20240919115531",
"fractional-indexing": "^3.2.0",
"zod": "^3.23.8"

@@ -24,0 +29,0 @@ },

export * from './brush/index.js';
export * from './connector/index.js';
export * from './group/index.js';
export * from './mindmap/index.js';
export * from './shape/index.js';
export * from './text/index.js';

@@ -14,13 +14,2 @@ import type {

import {
type Color,
DEFAULT_ROUGHNESS,
FontFamily,
FontStyle,
FontWeight,
StrokeStyle,
TextAlign,
type TextStyleProps,
TextVerticalAlign,
} from '@blocksuite/affine-model';
import {
field,

@@ -33,2 +22,7 @@ GfxPrimitiveElementModel,

import {
type Color,
DEFAULT_ROUGHNESS,
FontFamily,
FontStyle,
FontWeight,
LineColor,

@@ -39,3 +33,7 @@ ShapeFillColor,

ShapeType,
StrokeStyle,
TextAlign,
TextResizing,
type TextStyleProps,
TextVerticalAlign,
} from '../../consts/index.js';

@@ -42,0 +40,0 @@ import { shapeMethods } from './api/index.js';

import type { BaseElementProps } from '@blocksuite/block-std/gfx';
import type { IVec, SerializedXYWH } from '@blocksuite/global/utils';
import {
type Color,
FontFamily,
FontStyle,
FontWeight,
TextAlign,
type TextStyleProps,
} from '@blocksuite/affine-model';
import { field, GfxPrimitiveElementModel } from '@blocksuite/block-std/gfx';

@@ -22,2 +14,11 @@ import {

import {
type Color,
FontFamily,
FontStyle,
FontWeight,
TextAlign,
type TextStyleProps,
} from '../../consts/index.js';
export type TextElementProps = BaseElementProps & {

@@ -24,0 +25,0 @@ text: Y.Text;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc