@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/dist/internals.js CHANGED
@@ -1,5 +1,5 @@
1
- import { V as n, aE as r } from "./yjsSync-hZSPGLEP.js";
2
- import { ab as p, aT as i, aU as u, aV as S, aW as g, aX as T, aY as b, bn as F, bo as l, bp as v } from "./yjsSync-hZSPGLEP.js";
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
- p as MessageType,
28
+ i as MessageType,
29
29
  r as YjsSync,
30
- i as convertV2ToV4,
31
- u as convertV3EdgeTypeToV4,
32
- S as convertV3HandleToV4,
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
- F as isV2Format,
38
- l as isV3Format,
37
+ l as isV2Format,
38
+ F as isV3Format,
39
39
  v as isV4Format
40
40
  };
@@ -0,0 +1,7 @@
1
+ import { CollaborationViewport } from '../../typings';
2
+ type Point = {
3
+ x: number;
4
+ y: number;
5
+ };
6
+ export declare const flowToCanvasPosition: (point: Point, viewport: CollaborationViewport) => Point;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const EdgeTypePreviewIcon: ({ edgeType }: {
2
+ edgeType: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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"