@tumaet/apollon 4.5.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/assets/style.css +1 -1
- package/dist/index.js +3018 -3291
- package/dist/internals.js +8 -8
- package/dist/react/components/collaboration/coordinates.d.ts +7 -0
- package/dist/react/components/popovers/edgePopovers/EdgeTypePreviewIcon.d.ts +3 -0
- package/dist/react/components/popovers/edgePopovers/EdgeTypeSelect.d.ts +9 -0
- package/dist/react/components/svgs/edges/InlineMarker.d.ts +8 -0
- package/dist/react/react.js +6224 -6125
- package/dist/{yjsSync-hZSPGLEP.js → yjsSync-CK5cmd5z.js} +14339 -13969
- package/package.json +1 -1
package/dist/internals.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as n,
|
|
2
|
-
import {
|
|
1
|
+
import { V as n, aB as r } from "./yjsSync-CK5cmd5z.js";
|
|
2
|
+
import { a8 as i, aQ as p, aR as S, aS as u, aT as g, aU as T, aV as b, bk as l, bl as F, bm as v } from "./yjsSync-CK5cmd5z.js";
|
|
3
3
|
function V(t = new n()) {
|
|
4
4
|
const e = () => {
|
|
5
5
|
}, a = {
|
|
@@ -25,16 +25,16 @@ function V(t = new n()) {
|
|
|
25
25
|
return { ydoc: t, sync: o };
|
|
26
26
|
}
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
i as MessageType,
|
|
29
29
|
r as YjsSync,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
p as convertV2ToV4,
|
|
31
|
+
S as convertV3EdgeTypeToV4,
|
|
32
|
+
u as convertV3HandleToV4,
|
|
33
33
|
g as convertV3MessagesToV4,
|
|
34
34
|
T as convertV3NodeTypeToV4,
|
|
35
35
|
b as convertV3ToV4,
|
|
36
36
|
V as createHeadlessSync,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
l as isV2Format,
|
|
38
|
+
F as isV3Format,
|
|
39
39
|
v as isV4Format
|
|
40
40
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface EdgeTypeOption {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const EdgeTypeSelect: ({ value, options, onChange, }: {
|
|
6
|
+
value?: string;
|
|
7
|
+
options: ReadonlyArray<EdgeTypeOption>;
|
|
8
|
+
onChange: (value: string) => void;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MARKER_CONFIGS } from '../../../constants';
|
|
1
2
|
import { extractMarkerId as extractMarkerIdFromParser } from '../../../utils/pathParsing';
|
|
2
3
|
export interface MarkerProps {
|
|
3
4
|
/** The endpoint where the marker should be drawn */
|
|
@@ -12,6 +13,13 @@ export interface MarkerProps {
|
|
|
12
13
|
/** Optional stroke color override */
|
|
13
14
|
strokeColor?: string;
|
|
14
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Native (canvas-scale) half-height of a marker's bounding box. The single
|
|
18
|
+
* place marker vertical extent is derived from MARKER_CONFIGS, so callers that
|
|
19
|
+
* place or scale a marker (e.g. inline dropdown previews) stay in sync with how
|
|
20
|
+
* `InlineMarker` actually draws it.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getMarkerHalfHeight(markerId: keyof typeof MARKER_CONFIGS): number;
|
|
15
23
|
/**
|
|
16
24
|
* Extract marker ID from a url() reference.
|
|
17
25
|
* e.g., "url(#black-arrow)" -> "black-arrow"
|