@blocksuite/blocks
Advanced tools
Comparing version 0.3.0-20221225004222-eacf37a to 0.3.0-20221225012015-ee9a1b8
/// <reference types="./index.d.ts" /> | ||
/**/ | ||
import { al as m, aY as k, aW as S, aV as y, aA as C, ah as h, ar as u, aj as M, aB as v, a_ as P, aZ as D, aC as T, as as x, at as b, ak as E, am as F, aU as I, aT as L, au as A, aX as N, aR as R, aS as f, aD as z, av as G, aw as H, a$ as q, aq as O, b1 as U, b2 as j, b0 as w, ai as K, ap as Q, ag as W, ao as _, an as J, aa as V, a6 as X, a7 as Y, a as Z, aF as $, a9 as aa, af as ea, d as oa, c as ta, b as sa, ax as la, ab as na, ay as ca, aH as ra, C as ia, f as Ba, r as da, q as pa, x as ga, w as ma, p as ka, aE as Sa, aL as ya, v as Ca, u as ha, n as ua, m as Ma, j as va, o as Pa, l as Da, y as Ta, t as xa, g as ba, k as Ea, s as Fa, z as Ia, aK as La, aP as Aa, aM as Na, aN as Ra, aO as fa, i as za, a8 as Ga, ac as Ha, aG as qa, ad as Oa, ae as Ua, az as ja, aJ as wa, aQ as Ka, aI as Qa } from "./index.621f59bc.js"; | ||
import { al as m, aY as k, aW as S, aV as y, aN as C, ah as h, aE as u, aj as M, aO as v, a_ as P, aZ as D, aP as T, aF as x, aG as b, ak as E, am as F, aU as I, aT as L, aH as A, aX as N, aR as R, aS as f, aQ as z, aI as G, aJ as H, a$ as q, aD as O, b1 as U, b2 as j, b0 as w, ai as K, ap as Q, ag as W, ao as _, an as J, aa as V, a6 as X, a7 as Y, a as Z, ar as $, a9 as aa, af as ea, d as oa, c as ta, b as sa, aK as la, ab as na, aL as ca, at as ra, C as ia, f as Ba, r as da, q as pa, x as ga, w as ma, p as ka, aq as Sa, ax as ya, v as Ca, u as ha, n as ua, m as Ma, j as va, o as Pa, l as Da, y as Ta, t as xa, g as ba, k as Ea, s as Fa, z as Ia, aw as La, aB as Aa, ay as Na, az as Ra, aA as fa, i as za, a8 as Ga, ac as Ha, as as qa, ad as Oa, ae as Ua, aM as ja, av as wa, aC as Ka, au as Qa } from "./index.cbb4cfbb.js"; | ||
import "lit"; | ||
@@ -6,0 +6,0 @@ import "lit/decorators.js"; |
@@ -6,3 +6,6 @@ // https://github.com/tldraw/tldraw/blob/24cad6959f59f93e20e556d018c391fd89d4ecca/packages/tldraw/src/state/shapes/RectangleUtil/rectangleHelpers.ts | ||
import { getShapeStyle } from './shape-style.js'; | ||
import { getStrokePoints, getStroke } from 'perfect-freehand'; | ||
import PF from 'perfect-freehand'; | ||
import * as DPF from 'perfect-freehand'; | ||
const getStrokePoints = DPF.getStrokePoints; | ||
const getStroke = PF; | ||
function getRectangleDrawPoints(id, style, size) { | ||
@@ -9,0 +12,0 @@ const styles = getShapeStyle(style); |
@@ -7,3 +7,6 @@ // https://github.com/tldraw/tldraw/blob/ca91e56b29212897b6c97650f567f7ea3e818d1e/packages/tldraw/src/state/shapes/TriangleUtil/triangleHelpers.ts | ||
import { getOffsetPolygon } from './polygon-utils.js'; | ||
import { getStrokePoints, getStroke } from 'perfect-freehand'; | ||
import PF from 'perfect-freehand'; | ||
import * as DPF from 'perfect-freehand'; | ||
const getStrokePoints = DPF.getStrokePoints; | ||
const getStroke = PF; | ||
export function getTrianglePoints(size, offset = 0, rotation = 0) { | ||
@@ -10,0 +13,0 @@ const [w, h] = size; |
import * as std from './__internal__/utils/index.js'; | ||
export * from './page-block/utils/index.js'; | ||
export * from './__internal__/utils/index.js'; | ||
export default std; | ||
//# sourceMappingURL=std.d.ts.map |
187
dist/std.js
/// <reference types="./std.d.ts" /> | ||
/**/ | ||
import { B as a, P as e, A as s, H as t, a as o, i as l, c as i, b as n, d as c, e as r, R as g, h as B, g as d, f as S, j as y, k as T, l as u, m as p, n as k, o as v, p as h, q as R, r as m, s as x, t as f, u as E, v as N, w as L, x as M, y as P, z as C, C as D, D as F, E as I, F as A, G as b, I as O, J as _, K as H, L as z, M as j, N as K, O as U, Q as q, S as Q, T as V, U as W, V as Y, W as w, X as G, Y as J, Z as X, _ as Z, $, a0 as aa, a1 as ea, a2 as sa, a3 as ta, a4 as oa, a5 as la, a6 as ia, a7 as na, a8 as ca, a9 as ra, aa as ga, ab as Ba, ac as da, ad as Sa, ae as ya, af as Ta, ag as ua, ah as pa, ai as ka, aj as va, ak as ha, al as Ra, am as ma, an as xa, ao as fa, ap as Ea } from "./index.621f59bc.js"; | ||
import { A as Ua, al as qa, B as Qa, E as Va, D as Wa, ah as Ya, aj as wa, ak as Ga, am as Ja, H as Xa, P as Za, e as $a, R as ae, ai as ee, ap as se, ag as te, ao as oe, an as le, aa as ie, a6 as ne, a7 as ce, a as re, a9 as ge, af as Be, d as de, c as Se, b as ye, ab as Te, L as ue, K as pe, J as ke, N as ve, O as he, C as Re, f as me, r as xe, q as fe, x as Ee, w as Ne, p as Le, a1 as Me, a0 as Pe, v as Ce, u as De, n as Fe, m as Ie, j as Ae, o as be, l as Oe, y as _e, t as He, W as ze, g as je, k as Ke, a2 as Ue, s as qe, z as Qe, Z as Ve, _ as We, X as Ye, h as we, I as Ge, Y as Je, i as Xe, S as Ze, a3 as $e, G as as, U as es, V as ss, Q as ts, F as os, T as ls, $ as is, a8 as ns, ac as cs, M as rs, a5 as gs, a4 as Bs, ad as ds, ae as Ss } from "./index.621f59bc.js"; | ||
import { B as a, P as e, A as s, H as t, a as o, i as l, c as i, b as n, d as c, e as r, R as g, h as d, g as B, f as S, j as y, k as u, l as T, m as p, n as k, o as h, p as m, q as v, r as R, s as x, t as f, u as N, v as E, w as C, x as L, y as M, z as D, C as P, D as F, E as A, F as I, G as b, I as O, J as _, K as H, L as z, M as K, N as U, O as j, Q as q, S as Q, T as V, U as W, V as Y, W as w, X as G, Y as J, Z as X, _ as Z, $, a0 as aa, a1 as ea, a2 as sa, a3 as ta, a4 as oa, a5 as la, a6 as ia, a7 as na, a8 as ca, a9 as ra, aa as ga, ab as da, ac as Ba, ad as Sa, ae as ya, af as ua, ag as Ta, ah as pa, ai as ka, aj as ha, ak as ma, al as va, am as Ra, an as xa, ao as fa, ap as Na } from "./index.cbb4cfbb.js"; | ||
import { A as ja, al as qa, B as Qa, E as Va, D as Wa, ah as Ya, aj as wa, ak as Ga, am as Ja, H as Xa, P as Za, e as $a, R as ae, ai as ee, ap as se, ag as te, ao as oe, an as le, aa as ie, a6 as ne, a7 as ce, a as re, ar as ge, a9 as de, af as Be, d as Se, c as ye, b as ue, ab as Te, at as pe, L as ke, K as he, J as me, N as ve, O as Re, C as xe, f as fe, r as Ne, q as Ee, x as Ce, w as Le, p as Me, aq as De, a1 as Pe, ax as Fe, a0 as Ae, v as Ie, u as be, n as Oe, m as _e, j as He, o as ze, l as Ke, y as Ue, t as je, W as qe, g as Qe, k as Ve, a2 as We, s as Ye, z as we, aw as Ge, aB as Je, ay as Xe, Z as Ze, _ as $e, X as as, az as es, aA as ss, h as ts, I as os, Y as ls, i as is, S as ns, a3 as cs, G as rs, U as gs, V as ds, Q as Bs, F as Ss, T as ys, $ as us, a8 as Ts, ac as ps, as as ks, M as hs, a5 as ms, a4 as vs, ad as Rs, ae as xs, av as fs, aC as Ns, au as Es } from "./index.cbb4cfbb.js"; | ||
import "lit"; | ||
@@ -31,26 +31,26 @@ import "lit/decorators.js"; | ||
Rect: g, | ||
hotkey: B, | ||
getShapeBlockHitBox: d, | ||
hotkey: d, | ||
getShapeBlockHitBox: B, | ||
getBlockById: S, | ||
getParentBlockById: y, | ||
getSiblingsById: T, | ||
getPreviousSiblingById: u, | ||
getSiblingsById: u, | ||
getPreviousSiblingById: T, | ||
getNextSiblingById: p, | ||
getNextBlock: k, | ||
getPreviousBlock: v, | ||
getDefaultPageBlock: h, | ||
getContainerByModel: R, | ||
getBlockElementByModel: m, | ||
getPreviousBlock: h, | ||
getDefaultPageBlock: m, | ||
getContainerByModel: v, | ||
getBlockElementByModel: R, | ||
getStartModelBySelection: x, | ||
getRichTextByModel: f, | ||
getModelsByRange: E, | ||
getModelByElement: N, | ||
getDOMRectByLine: L, | ||
getCurrentRange: M, | ||
getQuillIndexByNativeSelection: P, | ||
getTextNodeBySelectedBlock: C, | ||
getAllBlocks: D, | ||
getModelsByRange: N, | ||
getModelByElement: E, | ||
getDOMRectByLine: C, | ||
getCurrentRange: L, | ||
getQuillIndexByNativeSelection: M, | ||
getTextNodeBySelectedBlock: D, | ||
getAllBlocks: P, | ||
BlockElement: F, | ||
BlockChildrenContainer: I, | ||
isPageTitle: A, | ||
BlockChildrenContainer: A, | ||
isPageTitle: I, | ||
isInput: b, | ||
@@ -61,5 +61,5 @@ initMouseEventHandlers: O, | ||
focusNextBlock: z, | ||
resetNativeSelection: j, | ||
focusRichTextByOffset: K, | ||
focusRichTextStart: U, | ||
resetNativeSelection: K, | ||
focusRichTextByOffset: U, | ||
focusRichTextStart: j, | ||
isNoneSelection: q, | ||
@@ -87,20 +87,20 @@ isCollapsedSelection: Q, | ||
almostEqual: ga, | ||
createEvent: Ba, | ||
noop: da, | ||
createEvent: da, | ||
noop: Ba, | ||
sleep: Sa, | ||
throttle: ya, | ||
clamp: Ta, | ||
TDShapeType: ua, | ||
clamp: ua, | ||
TDShapeType: Ta, | ||
ColorStyle: pa, | ||
SizeStyle: ka, | ||
DashStyle: va, | ||
FontSize: ha, | ||
AlignStyle: Ra, | ||
FontStyle: ma, | ||
DashStyle: ha, | ||
FontSize: ma, | ||
AlignStyle: va, | ||
FontStyle: Ra, | ||
TLBoundsEdge: xa, | ||
TLBoundsCorner: fa, | ||
SnapPoints: Ea | ||
SnapPoints: Na | ||
}, Symbol.toStringTag, { value: "Module" })); | ||
export { | ||
Ua as ALLOW_DEFAULT, | ||
ja as ALLOW_DEFAULT, | ||
qa as AlignStyle, | ||
@@ -127,61 +127,74 @@ Qa as BLOCK_ID_ATTR, | ||
re as asyncFocusRichText, | ||
ge as caretRangeFromPoint, | ||
ge as bindCommonHotkey, | ||
de as caretRangeFromPoint, | ||
Be as clamp, | ||
de as convertToDivider, | ||
Se as convertToList, | ||
ye as convertToParagraph, | ||
Se as convertToDivider, | ||
ye as convertToList, | ||
ue as convertToParagraph, | ||
Te as createEvent, | ||
za as default, | ||
ue as focusNextBlock, | ||
pe as focusPreviousBlock, | ||
ke as focusRichText, | ||
pe as deleteModels, | ||
ke as focusNextBlock, | ||
he as focusPreviousBlock, | ||
me as focusRichText, | ||
ve as focusRichTextByOffset, | ||
he as focusRichTextStart, | ||
Re as getAllBlocks, | ||
me as getBlockById, | ||
xe as getBlockElementByModel, | ||
fe as getContainerByModel, | ||
Ee as getCurrentRange, | ||
Ne as getDOMRectByLine, | ||
Le as getDefaultPageBlock, | ||
Me as getFirstTextNode, | ||
Pe as getLastTextNode, | ||
Ce as getModelByElement, | ||
De as getModelsByRange, | ||
Fe as getNextBlock, | ||
Ie as getNextSiblingById, | ||
Ae as getParentBlockById, | ||
be as getPreviousBlock, | ||
Oe as getPreviousSiblingById, | ||
_e as getQuillIndexByNativeSelection, | ||
He as getRichTextByModel, | ||
ze as getSelectInfo, | ||
je as getShapeBlockHitBox, | ||
Ke as getSiblingsById, | ||
Ue as getSplicedTitle, | ||
qe as getStartModelBySelection, | ||
Qe as getTextNodeBySelectedBlock, | ||
Ve as handleNativeRangeClick, | ||
We as handleNativeRangeDblClick, | ||
Ye as handleNativeRangeDragMove, | ||
we as hotkey, | ||
Ge as initMouseEventHandlers, | ||
Je as isBlankArea, | ||
Xe as isCollapsedAtBlockStart, | ||
Ze as isCollapsedSelection, | ||
$e as isEmbed, | ||
as as isInput, | ||
es as isMultiBlockRange, | ||
ss as isMultiLineRange, | ||
ts as isNoneSelection, | ||
os as isPageTitle, | ||
ls as isRangeSelection, | ||
is as leftFirstSearchLeafNodes, | ||
ns as matchFlavours, | ||
cs as noop, | ||
rs as resetNativeSelection, | ||
gs as restoreSelection, | ||
Bs as saveBlockSelection, | ||
ds as sleep, | ||
Ss as throttle | ||
Re as focusRichTextStart, | ||
xe as getAllBlocks, | ||
fe as getBlockById, | ||
Ne as getBlockElementByModel, | ||
Ee as getContainerByModel, | ||
Ce as getCurrentRange, | ||
Le as getDOMRectByLine, | ||
Me as getDefaultPageBlock, | ||
De as getDragDirection, | ||
Pe as getFirstTextNode, | ||
Fe as getFormat, | ||
Ae as getLastTextNode, | ||
Ie as getModelByElement, | ||
be as getModelsByRange, | ||
Oe as getNextBlock, | ||
_e as getNextSiblingById, | ||
He as getParentBlockById, | ||
ze as getPreviousBlock, | ||
Ke as getPreviousSiblingById, | ||
Ue as getQuillIndexByNativeSelection, | ||
je as getRichTextByModel, | ||
qe as getSelectInfo, | ||
Qe as getShapeBlockHitBox, | ||
Ve as getSiblingsById, | ||
We as getSplicedTitle, | ||
Ye as getStartModelBySelection, | ||
we as getTextNodeBySelectedBlock, | ||
Ge as handleBackspace, | ||
Je as handleBlockSelectionBatchDelete, | ||
Xe as handleFormat, | ||
Ze as handleNativeRangeClick, | ||
$e as handleNativeRangeDblClick, | ||
as as handleNativeRangeDragMove, | ||
es as handleNativeSelectAll, | ||
ss as handleSelectAll, | ||
ts as hotkey, | ||
os as initMouseEventHandlers, | ||
ls as isBlankArea, | ||
is as isCollapsedAtBlockStart, | ||
ns as isCollapsedSelection, | ||
cs as isEmbed, | ||
rs as isInput, | ||
gs as isMultiBlockRange, | ||
ds as isMultiLineRange, | ||
Bs as isNoneSelection, | ||
Ss as isPageTitle, | ||
ys as isRangeSelection, | ||
us as leftFirstSearchLeafNodes, | ||
Ts as matchFlavours, | ||
ps as noop, | ||
ks as removeCommonHotKey, | ||
hs as resetNativeSelection, | ||
ms as restoreSelection, | ||
vs as saveBlockSelection, | ||
Rs as sleep, | ||
xs as throttle, | ||
fs as transformBlock, | ||
Ns as tryUpdateGroupSize, | ||
Es as updateSelectedTextType | ||
}; |
{ | ||
"name": "@blocksuite/blocks", | ||
"version": "0.3.0-20221225004222-eacf37a", | ||
"version": "0.3.0-20221225012015-ee9a1b8", | ||
"description": "Default BlockSuite editable blocks.", | ||
@@ -11,3 +11,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@blocksuite/store": "0.3.0-20221225004222-eacf37a", | ||
"@blocksuite/store": "0.3.0-20221225012015-ee9a1b8", | ||
"@tldraw/intersect": "^1.8.0", | ||
@@ -14,0 +14,0 @@ "highlight.js": "^11.7.0", |
@@ -9,3 +9,7 @@ // https://github.com/tldraw/tldraw/blob/24cad6959f59f93e20e556d018c391fd89d4ecca/packages/tldraw/src/state/shapes/RectangleUtil/rectangleHelpers.ts | ||
import { getStrokePoints, getStroke } from 'perfect-freehand'; | ||
import PF from 'perfect-freehand'; | ||
import type { getStroke as getStrokeType } from 'perfect-freehand'; | ||
import * as DPF from 'perfect-freehand'; | ||
const getStrokePoints = DPF.getStrokePoints; | ||
const getStroke = PF as unknown as typeof getStrokeType; | ||
@@ -12,0 +16,0 @@ function getRectangleDrawPoints( |
@@ -10,3 +10,7 @@ // https://github.com/tldraw/tldraw/blob/ca91e56b29212897b6c97650f567f7ea3e818d1e/packages/tldraw/src/state/shapes/TriangleUtil/triangleHelpers.ts | ||
import { getStrokePoints, getStroke } from 'perfect-freehand'; | ||
import PF from 'perfect-freehand'; | ||
import type { getStroke as getStrokeType } from 'perfect-freehand'; | ||
import * as DPF from 'perfect-freehand'; | ||
const getStrokePoints = DPF.getStrokePoints; | ||
const getStroke = PF as unknown as typeof getStrokeType; | ||
@@ -13,0 +17,0 @@ export function getTrianglePoints(size: number[], offset = 0, rotation = 0) { |
import * as std from './__internal__/utils/index.js'; | ||
export * from './page-block/utils/index.js'; | ||
export * from './__internal__/utils/index.js'; | ||
export default std; |
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
1777796
35366
+ Added@blocksuite/store@0.3.0-20221225012015-ee9a1b8(transitive)
- Removed@blocksuite/store@0.3.0-20221225004222-eacf37a(transitive)