@syntrologie/adapt-content 2.8.0-canary.62 → 2.8.0-canary.621
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/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +7 -0
- package/dist/runtime.d.ts +8 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +503 -348
- package/dist/runtime.js.map +7 -0
- package/dist/sanitizer.d.ts.map +1 -1
- package/dist/schema.d.ts +62 -22
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +4777 -62
- package/dist/schema.js.map +7 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -23
- package/dist/cdn.d.ts +0 -35
- package/dist/cdn.d.ts.map +0 -1
- package/dist/cdn.js +0 -39
- package/dist/components/AnchorPicker.d.ts +0 -8
- package/dist/components/AnchorPicker.d.ts.map +0 -1
- package/dist/components/AnchorPicker.js +0 -6
- package/dist/content-editor-state.d.ts +0 -45
- package/dist/content-editor-state.d.ts.map +0 -1
- package/dist/content-editor-state.js +0 -123
- package/dist/content-editor-ui.d.ts +0 -26
- package/dist/content-editor-ui.d.ts.map +0 -1
- package/dist/content-editor-ui.js +0 -291
- package/dist/editor.d.ts +0 -9
- package/dist/editor.d.ts.map +0 -1
- package/dist/editor.js +0 -8
- package/dist/reconciliation-guard.js +0 -80
- package/dist/sanitizer.js +0 -95
- package/dist/summarize.js +0 -88
- package/dist/types.js +0 -7
- package/dist/utils/selectorGenerator.d.ts +0 -6
- package/dist/utils/selectorGenerator.d.ts.map +0 -1
- package/dist/utils/selectorGenerator.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/cn.d.ts +0 -2
- package/node_modules/@syntrologie/shared-editor-ui/dist/cn.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/cn.js +0 -3
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.d.ts +0 -34
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.js +0 -158
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.js +0 -9
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts +0 -23
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.js +0 -40
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.js +0 -22
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.js +0 -9
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.d.ts +0 -13
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.js +0 -15
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.d.ts +0 -9
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.js +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.d.ts +0 -7
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts +0 -25
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.js +0 -379
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.js +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.js +0 -17
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.d.ts +0 -32
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.js +0 -85
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.d.ts +0 -6
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.js +0 -4
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.js +0 -5
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts +0 -12
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.js +0 -40
- package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts +0 -26
- package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.js +0 -202
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.d.ts +0 -8
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.js +0 -46
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts +0 -24
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.js +0 -86
- package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts +0 -34
- package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/index.js +0 -25
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.d.ts +0 -37
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.js +0 -52
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.d.ts +0 -22
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.d.ts.map +0 -1
- package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.js +0 -143
- package/node_modules/@syntrologie/shared-editor-ui/package.json +0 -47
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnchorPicker.d.ts","sourceRoot":"","sources":["../../src/components/AnchorPicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAWH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;8DAE0D;IAC1D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAKD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,iBAAyB,EACzB,eAAuJ,GACxJ,EAAE,iBAAiB,sCAwMnB"}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* AnchorPicker — Shared Element Picker Overlay
|
|
4
|
-
*
|
|
5
|
-
* Full-page overlay that lets the user hover and click to select a DOM element.
|
|
6
|
-
* Returns the element, its CSS selector, and a human-readable description.
|
|
7
|
-
*
|
|
8
|
-
* Renders via createPortal to document.body. Uses inline styles (not Tailwind)
|
|
9
|
-
* because it lives outside the editor's style scope.
|
|
10
|
-
*
|
|
11
|
-
* EXCEPTION: This component MUST stay on document.body (not in shadow root).
|
|
12
|
-
* It uses document.elementFromPoint() to detect host page elements under the
|
|
13
|
-
* cursor. If placed inside a shadow root, the overlay would block detection
|
|
14
|
-
* of underlying host elements.
|
|
15
|
-
*
|
|
16
|
-
* Instructions / cancel UI should be rendered by the consumer in their own
|
|
17
|
-
* panel — this component only provides the page overlay.
|
|
18
|
-
*/
|
|
19
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
20
|
-
import { createPortal } from 'react-dom';
|
|
21
|
-
import { generateSelector, getElementDescription, validateSelector, } from '../utils/selectorGenerator';
|
|
22
|
-
const HIGHLIGHT_COLOR = '#3b82f6';
|
|
23
|
-
const HIGHLIGHT_BG = 'rgba(59, 130, 246, 0.1)';
|
|
24
|
-
export function AnchorPicker({ isActive, onPick, onCancel, passthroughClicks = false, excludeSelector = '[data-syntro-editor-panel], [data-shadow-canvas-id], .syntro-tooltip, .syntro-modal, .syntro-highlight, [data-syntro-anchor-picker]', }) {
|
|
25
|
-
const [hoveredElement, setHoveredElement] = useState(null);
|
|
26
|
-
const [hoveredSelector, setHoveredSelector] = useState('');
|
|
27
|
-
const overlayRef = useRef(null);
|
|
28
|
-
const handleMouseMove = useCallback((e) => {
|
|
29
|
-
const overlay = overlayRef.current;
|
|
30
|
-
if (overlay) {
|
|
31
|
-
overlay.style.pointerEvents = 'none';
|
|
32
|
-
}
|
|
33
|
-
const elementAtPoint = document.elementFromPoint(e.clientX, e.clientY);
|
|
34
|
-
if (overlay) {
|
|
35
|
-
overlay.style.pointerEvents = 'auto';
|
|
36
|
-
}
|
|
37
|
-
if (!elementAtPoint) {
|
|
38
|
-
setHoveredElement(null);
|
|
39
|
-
setHoveredSelector('');
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (excludeSelector && elementAtPoint.closest(excludeSelector)) {
|
|
43
|
-
setHoveredElement(null);
|
|
44
|
-
setHoveredSelector('');
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (['HTML', 'BODY', 'HEAD'].includes(elementAtPoint.tagName)) {
|
|
48
|
-
setHoveredElement(null);
|
|
49
|
-
setHoveredSelector('');
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
setHoveredElement(elementAtPoint);
|
|
53
|
-
const selector = generateSelector(elementAtPoint);
|
|
54
|
-
setHoveredSelector(selector);
|
|
55
|
-
}, [excludeSelector]);
|
|
56
|
-
const handleClick = useCallback((e) => {
|
|
57
|
-
if (passthroughClicks)
|
|
58
|
-
return; // Let click propagate to PostHog
|
|
59
|
-
e.preventDefault();
|
|
60
|
-
e.stopPropagation();
|
|
61
|
-
if (hoveredElement && hoveredSelector) {
|
|
62
|
-
if (validateSelector(hoveredSelector, hoveredElement)) {
|
|
63
|
-
onPick({
|
|
64
|
-
element: hoveredElement,
|
|
65
|
-
selector: hoveredSelector,
|
|
66
|
-
description: getElementDescription(hoveredElement),
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
const newSelector = generateSelector(hoveredElement);
|
|
71
|
-
onPick({
|
|
72
|
-
element: hoveredElement,
|
|
73
|
-
selector: newSelector,
|
|
74
|
-
description: getElementDescription(hoveredElement),
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}, [passthroughClicks, hoveredElement, hoveredSelector, onPick]);
|
|
79
|
-
const handleKeyDown = useCallback((e) => {
|
|
80
|
-
if (e.key === 'Escape') {
|
|
81
|
-
e.preventDefault();
|
|
82
|
-
onCancel();
|
|
83
|
-
}
|
|
84
|
-
}, [onCancel]);
|
|
85
|
-
useEffect(() => {
|
|
86
|
-
if (!isActive)
|
|
87
|
-
return;
|
|
88
|
-
document.addEventListener('mousemove', handleMouseMove, true);
|
|
89
|
-
// In passthrough mode, don't register click handler — let clicks reach PostHog
|
|
90
|
-
if (!passthroughClicks) {
|
|
91
|
-
document.addEventListener('click', handleClick, true);
|
|
92
|
-
}
|
|
93
|
-
document.addEventListener('keydown', handleKeyDown, true);
|
|
94
|
-
return () => {
|
|
95
|
-
document.removeEventListener('mousemove', handleMouseMove, true);
|
|
96
|
-
if (!passthroughClicks) {
|
|
97
|
-
document.removeEventListener('click', handleClick, true);
|
|
98
|
-
}
|
|
99
|
-
document.removeEventListener('keydown', handleKeyDown, true);
|
|
100
|
-
};
|
|
101
|
-
}, [isActive, passthroughClicks, handleMouseMove, handleClick, handleKeyDown]);
|
|
102
|
-
if (!isActive)
|
|
103
|
-
return null;
|
|
104
|
-
const rect = hoveredElement?.getBoundingClientRect();
|
|
105
|
-
return createPortal(_jsxs("div", { ref: overlayRef, "data-syntro-anchor-picker": true, style: {
|
|
106
|
-
position: 'fixed',
|
|
107
|
-
inset: 0,
|
|
108
|
-
cursor: 'crosshair',
|
|
109
|
-
zIndex: 2147483644,
|
|
110
|
-
pointerEvents: passthroughClicks ? 'none' : undefined,
|
|
111
|
-
}, children: [_jsx("div", { style: {
|
|
112
|
-
position: 'absolute',
|
|
113
|
-
inset: 0,
|
|
114
|
-
background: 'rgba(0, 0, 0, 0.08)',
|
|
115
|
-
pointerEvents: 'none',
|
|
116
|
-
} }), hoveredElement && rect && (_jsx("div", { style: {
|
|
117
|
-
position: 'fixed',
|
|
118
|
-
left: rect.left - 2,
|
|
119
|
-
top: rect.top - 2,
|
|
120
|
-
width: rect.width + 4,
|
|
121
|
-
height: rect.height + 4,
|
|
122
|
-
border: `2px solid ${HIGHLIGHT_COLOR}`,
|
|
123
|
-
backgroundColor: HIGHLIGHT_BG,
|
|
124
|
-
borderRadius: '4px',
|
|
125
|
-
boxShadow: '0 0 0 9999px rgba(0, 0, 0, 0.2)',
|
|
126
|
-
pointerEvents: 'none',
|
|
127
|
-
transition: 'all 0.1s ease-out',
|
|
128
|
-
} })), hoveredElement && rect && (_jsxs("div", { className: "se-text-xs", style: {
|
|
129
|
-
position: 'fixed',
|
|
130
|
-
left: Math.max(8, Math.min(rect.left, window.innerWidth - 320)),
|
|
131
|
-
top: Math.max(8, rect.top - 68),
|
|
132
|
-
backgroundColor: '#1e293b',
|
|
133
|
-
color: '#e2e8f0',
|
|
134
|
-
padding: '8px 12px',
|
|
135
|
-
borderRadius: '6px',
|
|
136
|
-
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.3)',
|
|
137
|
-
zIndex: 1,
|
|
138
|
-
fontFamily: 'monospace',
|
|
139
|
-
maxWidth: '300px',
|
|
140
|
-
pointerEvents: 'none',
|
|
141
|
-
}, children: [_jsx("div", { className: "se-text-xs", style: {
|
|
142
|
-
textTransform: 'uppercase',
|
|
143
|
-
letterSpacing: '0.05em',
|
|
144
|
-
marginBottom: '4px',
|
|
145
|
-
color: '#94a3b8',
|
|
146
|
-
}, children: "Click to select" }), _jsx("div", { style: {
|
|
147
|
-
color: '#38bdf8',
|
|
148
|
-
overflow: 'hidden',
|
|
149
|
-
textOverflow: 'ellipsis',
|
|
150
|
-
whiteSpace: 'nowrap',
|
|
151
|
-
}, children: hoveredSelector }), _jsx("div", { style: {
|
|
152
|
-
marginTop: '4px',
|
|
153
|
-
color: '#cbd5e1',
|
|
154
|
-
overflow: 'hidden',
|
|
155
|
-
textOverflow: 'ellipsis',
|
|
156
|
-
whiteSpace: 'nowrap',
|
|
157
|
-
}, children: getElementDescription(hoveredElement) })] }))] }), document.body);
|
|
158
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface BeforeAfterToggleProps {
|
|
2
|
-
mode: 'before' | 'after';
|
|
3
|
-
onToggle: (mode: 'before' | 'after') => void;
|
|
4
|
-
}
|
|
5
|
-
export declare function BeforeAfterToggle({ mode, onToggle }: BeforeAfterToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=BeforeAfterToggle.d.ts.map
|
package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BeforeAfterToggle.d.ts","sourceRoot":"","sources":["../../src/components/BeforeAfterToggle.tsx"],"names":[],"mappings":"AAEA,UAAU,sBAAsB;IAC9B,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;IACzB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CA6B3E"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '../cn';
|
|
3
|
-
export function BeforeAfterToggle({ mode, onToggle }) {
|
|
4
|
-
return (_jsxs("div", { className: "se-flex se-mb-3 se-rounded-lg se-overflow-hidden se-border se-border-border-primary", children: [_jsx("button", { type: "button", onClick: () => onToggle('before'), className: cn('se-flex-1 se-py-1.5 se-px-3 se-border-none se-text-sm se-font-semibold se-cursor-pointer focus-visible:se-shadow-focus-primary focus-visible:se-outline-none', mode === 'before'
|
|
5
|
-
? 'se-bg-blue-5/30 se-text-blue-5'
|
|
6
|
-
: 'se-bg-transparent se-text-text-secondary'), children: "Before" }), _jsx("button", { type: "button", onClick: () => onToggle('after'), className: cn('se-flex-1 se-py-1.5 se-px-3 se-border-none se-border-l se-border-border-primary se-text-sm se-font-semibold se-cursor-pointer focus-visible:se-shadow-focus-primary focus-visible:se-outline-none', mode === 'after'
|
|
7
|
-
? 'se-bg-blue-5/30 se-text-blue-5'
|
|
8
|
-
: 'se-bg-transparent se-text-text-secondary'), children: "After" })] }));
|
|
9
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ConditionStatusLine — inline triggerWhen diagnostic on EditorCard.
|
|
3
|
-
*
|
|
4
|
-
* Shows a compact one-line status for items with triggerWhen conditions.
|
|
5
|
-
* Click to expand per-condition detail.
|
|
6
|
-
*/
|
|
7
|
-
import type { FormattedCondition } from '../formatConditionLabel';
|
|
8
|
-
export interface ConditionStatus {
|
|
9
|
-
type: string;
|
|
10
|
-
passed: boolean;
|
|
11
|
-
formatted: FormattedCondition;
|
|
12
|
-
}
|
|
13
|
-
export interface TriggerWhenStatus {
|
|
14
|
-
visible: boolean;
|
|
15
|
-
isFallback: boolean;
|
|
16
|
-
conditions: ConditionStatus[];
|
|
17
|
-
}
|
|
18
|
-
interface ConditionStatusLineProps {
|
|
19
|
-
status: TriggerWhenStatus | null;
|
|
20
|
-
}
|
|
21
|
-
export declare function ConditionStatusLine({ status }: ConditionStatusLineProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=ConditionStatusLine.d.ts.map
|
package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionStatusLine.d.ts","sourceRoot":"","sources":["../../src/components/ConditionStatusLine.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,kBAAkB,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B;AAED,UAAU,wBAAwB;IAChC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAClC;AA6CD,wBAAgB,mBAAmB,CAAC,EAAE,MAAM,EAAE,EAAE,wBAAwB,kDAiEvE"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* ConditionStatusLine — inline triggerWhen diagnostic on EditorCard.
|
|
4
|
-
*
|
|
5
|
-
* Shows a compact one-line status for items with triggerWhen conditions.
|
|
6
|
-
* Click to expand per-condition detail.
|
|
7
|
-
*/
|
|
8
|
-
import { Check, Clock, X } from 'lucide-react';
|
|
9
|
-
import { useState } from 'react';
|
|
10
|
-
import { cn } from '../cn';
|
|
11
|
-
function ProgressBar({ current, target }) {
|
|
12
|
-
const pct = Math.min(100, Math.round((current / Math.max(target, 1)) * 100));
|
|
13
|
-
return (_jsx("span", { className: "se-inline-block se-w-12 se-h-1.5 se-rounded-full se-bg-white/20 se-align-middle se-ml-1", title: `${current}/${target} (${pct}%)`, children: _jsx("span", { className: cn('se-block se-h-full se-rounded-full se-transition-all', pct >= 100 ? 'se-bg-green-4' : 'se-bg-blue-4'), style: { width: `${pct}%` } }) }));
|
|
14
|
-
}
|
|
15
|
-
function ConditionRow({ cs }) {
|
|
16
|
-
return (_jsxs("div", { className: "se-flex se-items-center se-gap-1 se-pl-3 se-text-[12px] se-font-medium se-text-text-secondary", children: [cs.passed ? (_jsx(Check, { className: "se-w-3 se-h-3 se-text-green-4" })) : (_jsx(X, { className: "se-w-3 se-h-3 se-text-red-4" })), _jsxs("span", { children: [cs.type, ":"] }), _jsx("span", { className: "se-text-text-secondary", children: cs.formatted.label }), cs.formatted.progress && (_jsxs(_Fragment, { children: [_jsx(ProgressBar, { current: cs.formatted.progress.current, target: cs.formatted.progress.target }), _jsxs("span", { className: "se-text-text-secondary se-ml-0.5", children: [cs.formatted.progress.current, "/", cs.formatted.progress.target] })] }))] }));
|
|
17
|
-
}
|
|
18
|
-
export function ConditionStatusLine({ status }) {
|
|
19
|
-
const [expanded, setExpanded] = useState(false);
|
|
20
|
-
if (!status)
|
|
21
|
-
return null;
|
|
22
|
-
const { visible, conditions } = status;
|
|
23
|
-
const passedCount = conditions.filter((c) => c.passed).length;
|
|
24
|
-
const totalCount = conditions.length;
|
|
25
|
-
// Icon: visible = green check, hidden = clock
|
|
26
|
-
const StatusIcon = visible ? Check : Clock;
|
|
27
|
-
const iconColor = visible ? 'se-text-green-4' : 'se-text-yellow-5';
|
|
28
|
-
// Single condition: show inline detail
|
|
29
|
-
// Multi condition: show summary, click to expand
|
|
30
|
-
const isSingle = totalCount === 1;
|
|
31
|
-
if (isSingle) {
|
|
32
|
-
const cs = conditions[0];
|
|
33
|
-
return (_jsxs("div", { className: "se-text-[12px] se-font-medium se-text-text-secondary se-mt-0.5 se-flex se-items-center se-gap-1", children: [_jsx(StatusIcon, { className: cn('se-w-3 se-h-3', iconColor) }), _jsxs("span", { children: [cs.type, ":"] }), _jsx("span", { className: "se-text-text-secondary", children: cs.formatted.label }), cs.formatted.progress && (_jsxs(_Fragment, { children: [_jsx(ProgressBar, { current: cs.formatted.progress.current, target: cs.formatted.progress.target }), _jsxs("span", { className: "se-text-text-secondary se-ml-0.5", children: [cs.formatted.progress.current, "/", cs.formatted.progress.target] })] }))] }));
|
|
34
|
-
}
|
|
35
|
-
// Multi-condition: summary line + expandable detail
|
|
36
|
-
return (_jsxs("div", { className: "se-mt-0.5", children: [_jsxs("button", { type: "button", className: "se-flex se-items-center se-gap-1 se-text-[12px] se-font-medium se-text-text-secondary se-bg-transparent se-border-none se-cursor-pointer se-p-0 hover:se-text-text-primary", onClick: (e) => {
|
|
37
|
-
e.stopPropagation();
|
|
38
|
-
setExpanded(!expanded);
|
|
39
|
-
}, children: [_jsx(StatusIcon, { className: cn('se-w-3 se-h-3', iconColor) }), _jsxs("span", { children: [passedCount, " of ", totalCount, " conditions met"] }), _jsx("span", { className: "se-text-[11px] se-ml-0.5", children: expanded ? '\u25b2' : '\u25bc' })] }), expanded && (_jsx("div", { className: "se-mt-0.5 se-space-y-0.5", children: conditions.map((cs, i) => (_jsx(ConditionRow, { cs: cs }, i))) }))] }));
|
|
40
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface DetectionBadgeProps {
|
|
2
|
-
found: boolean;
|
|
3
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
4
|
-
}
|
|
5
|
-
export declare function DetectionBadge({ found, onClick }: DetectionBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=DetectionBadge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DetectionBadge.d.ts","sourceRoot":"","sources":["../../src/components/DetectionBadge.tsx"],"names":[],"mappings":"AAEA,UAAU,mBAAmB;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,mBAAmB,2CA6CrE"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '../cn';
|
|
3
|
-
export function DetectionBadge({ found, onClick }) {
|
|
4
|
-
const title = onClick
|
|
5
|
-
? found
|
|
6
|
-
? 'Click to scroll to element'
|
|
7
|
-
: 'Click to navigate to page'
|
|
8
|
-
: found
|
|
9
|
-
? 'Found on this page'
|
|
10
|
-
: 'Not found on this page';
|
|
11
|
-
const textColor = found ? 'se-text-green-4' : 'se-text-text-tertiary';
|
|
12
|
-
const dotColor = found ? 'se-bg-green-4' : 'se-bg-text-tertiary';
|
|
13
|
-
const classes = cn('se-inline-flex se-items-center se-gap-1 se-text-xs se-font-medium se-shrink-0', textColor, onClick && 'se-cursor-pointer hover:se-opacity-80');
|
|
14
|
-
const dot = (_jsx("span", { "data-indicator": "", className: cn('se-w-1.5 se-h-1.5 se-rounded-full', dotColor) }));
|
|
15
|
-
if (onClick) {
|
|
16
|
-
return (_jsxs("button", { type: "button", className: cn(classes, 'se-border-none se-bg-transparent se-p-0'), title: title, onClick: (e) => {
|
|
17
|
-
e.stopPropagation();
|
|
18
|
-
onClick(e);
|
|
19
|
-
}, children: [dot, "GoTo"] }));
|
|
20
|
-
}
|
|
21
|
-
return (_jsxs("span", { className: classes, title: title, children: [dot, "GoTo"] }));
|
|
22
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
interface DismissedSectionProps {
|
|
3
|
-
count: number;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare function DismissedSection({ count, children }: DismissedSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=DismissedSection.d.ts.map
|
package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DismissedSection.d.ts","sourceRoot":"","sources":["../../src/components/DismissedSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,qBAAqB,2CAqB1E"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
export function DismissedSection({ count, children }) {
|
|
4
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
5
|
-
return (_jsxs("div", { className: "se-mt-4 se-cursor-pointer se-select-none", children: [_jsxs("div", { role: "button", tabIndex: 0, className: "se-text-xs se-font-semibold se-text-text-secondary se-flex se-items-center se-gap-1.5 se-cursor-pointer", onClick: () => setIsOpen(!isOpen), onKeyDown: (e) => {
|
|
6
|
-
if (e.key === 'Enter' || e.key === ' ')
|
|
7
|
-
setIsOpen(!isOpen);
|
|
8
|
-
}, children: [_jsx("span", { children: isOpen ? '\u25be' : '\u25b8' }), _jsxs("span", { children: ["Dismissed (", count, ")"] })] }), isOpen && _jsx("div", { className: "se-mt-1.5", children: children })] }));
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditBackButton.d.ts","sourceRoot":"","sources":["../../src/components/EditBackButton.tsx"],"names":[],"mappings":"AAAA,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,KAAqB,EAAE,EAAE,mBAAmB,2CAUrF"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export function EditBackButton({ onClick, label = '\u2190 List' }) {
|
|
3
|
-
return (_jsx("button", { type: "button", onClick: onClick, className: "se-h-10 se-px-4 se-py-2 se-rounded-md se-bg-btn-neutral se-text-btn-neutral-text se-border se-border-btn-neutral-border hover:se-text-btn-neutral-text-hover se-text-sm se-font-medium se-cursor-pointer se-mt-2 se-inline-flex se-items-center se-justify-center focus-visible:se-shadow-focus-primary focus-visible:se-outline-none", children: label }));
|
|
4
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorBody.d.ts","sourceRoot":"","sources":["../../src/components/EditorBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAEvD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
interface EditorCardProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
itemKey: string;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
onMouseEnter?: () => void;
|
|
7
|
-
onMouseLeave?: () => void;
|
|
8
|
-
className?: string;
|
|
9
|
-
validated?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare function EditorCard({ children, itemKey, onClick, onMouseEnter, onMouseLeave, className, validated, }: EditorCardProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=EditorCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorCard.d.ts","sourceRoot":"","sources":["../../src/components/EditorCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,OAAO,EACP,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,SAAS,GACV,EAAE,eAAe,2CA+BjB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '../cn';
|
|
3
|
-
export function EditorCard({ children, itemKey, onClick, onMouseEnter, onMouseLeave, className, validated, }) {
|
|
4
|
-
return (
|
|
5
|
-
// biome-ignore lint/a11y/noStaticElementInteractions: onMouseEnter/onMouseLeave are for presentational hover highlighting, not user interaction
|
|
6
|
-
_jsx("div", { "data-item-key": itemKey, role: onClick ? 'button' : undefined, tabIndex: onClick ? 0 : undefined, onClick: onClick, onKeyDown: onClick
|
|
7
|
-
? (e) => {
|
|
8
|
-
if (e.key === 'Enter' || e.key === ' ') {
|
|
9
|
-
e.preventDefault();
|
|
10
|
-
onClick();
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
: undefined, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, className: cn('se-py-2 se-px-2.5 se-rounded-lg se-border se-bg-card-bg se-shadow-sm se-mb-1 se-text-sm se-text-text-primary', validated ? 'se-border-green-4/50 se-shadow-glow-green' : 'se-border-border-primary', onClick &&
|
|
14
|
-
'se-cursor-pointer hover:se-border-border-primary/80 hover:se-bg-sidebar-hover se-transition-colors', className), children: children }));
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorFooter.d.ts","sourceRoot":"","sources":["../../src/components/EditorFooter.tsx"],"names":[],"mappings":"AAAA,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,iBAAiB,2CAmBpE"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function EditorFooter({ onSave, onPublish }) {
|
|
3
|
-
return (_jsxs("div", { className: "se-py-3 se-px-4 se-border-t se-border-border-primary se-flex se-gap-2", children: [_jsx("button", { type: "button", onClick: onSave, className: "se-flex-1 se-h-10 se-px-4 se-py-2 se-rounded-md se-bg-btn-neutral se-text-btn-neutral-text se-border se-border-btn-neutral-border hover:se-text-btn-neutral-text-hover se-text-sm se-font-medium se-cursor-pointer se-inline-flex se-items-center se-justify-center focus-visible:se-shadow-focus-primary focus-visible:se-outline-none", children: "Save Draft" }), _jsx("button", { type: "button", onClick: onPublish, className: "se-flex-1 se-h-10 se-px-4 se-py-2 se-rounded-md se-border-none se-bg-btn-primary se-text-btn-primary-text hover:se-bg-btn-primary-hover se-text-sm se-font-medium se-cursor-pointer se-inline-flex se-items-center se-justify-center focus-visible:se-shadow-focus-primary focus-visible:se-outline-none", children: "Publish" })] }));
|
|
4
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface EditorHeaderProps {
|
|
2
|
-
title: string;
|
|
3
|
-
subtitle?: string;
|
|
4
|
-
/** @deprecated Back navigation is now handled at the panel level. */
|
|
5
|
-
onBack?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function EditorHeader({ title, subtitle }: EditorHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=EditorHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorHeader.d.ts","sourceRoot":"","sources":["../../src/components/EditorHeader.tsx"],"names":[],"mappings":"AAAA,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CASlE"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function EditorHeader({ title, subtitle }) {
|
|
3
|
-
return (_jsxs("div", { className: "se-px-4 se-pt-3 se-pb-2", children: [_jsx("h2", { className: "se-m-0 se-text-base se-font-semibold se-text-text-primary", children: title }), subtitle && (_jsx("p", { className: "se-mt-0.5 se-mb-0 se-text-xs se-text-text-secondary", children: subtitle }))] }));
|
|
4
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
interface EditorInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
-
label?: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function EditorInput({ label, className, id, ...props }: EditorInputProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=EditorInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorInput.d.ts","sourceRoot":"","sources":["../../src/components/EditorInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,UAAU,gBAAiB,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CA0B/E"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useId } from 'react';
|
|
3
|
-
import { cn } from '../cn';
|
|
4
|
-
export function EditorInput({ label, className, id, ...props }) {
|
|
5
|
-
const generatedId = useId();
|
|
6
|
-
const inputId = id || generatedId;
|
|
7
|
-
return (_jsxs("div", { children: [label && (_jsx("label", { htmlFor: inputId, className: "se-text-sm se-font-medium se-text-input-field-text-label se-mb-1 se-block", children: label })), _jsx("input", { id: inputId, ...props, className: cn('se-w-full se-py-2 se-px-3 se-rounded-lg se-border se-border-input-field-border se-bg-slate-grey-3 se-text-text-primary se-text-sm se-font-[inherit] se-mb-2 se-box-border', 'placeholder:se-text-input-field-text-placeholder', 'focus:se-border-input-field-border-selected focus:se-outline-none focus:se-shadow-focus-primary', 'disabled:se-bg-input-field-bg-disabled disabled:se-cursor-not-allowed disabled:se-opacity-50', className) })] }));
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
interface EditorLayoutProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare function EditorLayout({ children }: EditorLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=EditorLayout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorLayout.d.ts","sourceRoot":"","sources":["../../src/components/EditorLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,iBAAiB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAE3D"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EditorPanelShell — moveable, resizable wrapper for editor sidebars.
|
|
3
|
-
*
|
|
4
|
-
* Renders:
|
|
5
|
-
* 1. A fixed FAB button (Syntrologie logo) at the panel's bottom-left corner.
|
|
6
|
-
* Click toggles open/minimized. Drag moves the entire panel.
|
|
7
|
-
* 2. A resizable panel container with semi-transparent background and backdrop blur.
|
|
8
|
-
* Supports docked (left/right edge, full height) and free-floating modes.
|
|
9
|
-
* Position, size, and dock state persist in localStorage.
|
|
10
|
-
*/
|
|
11
|
-
import type React from 'react';
|
|
12
|
-
export interface EditorPanelShellProps {
|
|
13
|
-
isOpen: boolean;
|
|
14
|
-
onToggle: () => void;
|
|
15
|
-
/** @deprecated Panel manages its own position. Kept for backwards compat. */
|
|
16
|
-
position?: 'left' | 'right';
|
|
17
|
-
panelId?: string;
|
|
18
|
-
/** Panel z-index (default 2147483647). ModularEditorPanel passes 2147483647. */
|
|
19
|
-
zIndex?: number;
|
|
20
|
-
/** @deprecated FAB no longer portals separately. Kept for backwards compat. */
|
|
21
|
-
portalTarget?: HTMLElement;
|
|
22
|
-
children: React.ReactNode;
|
|
23
|
-
}
|
|
24
|
-
export declare function EditorPanelShell({ isOpen, onToggle, panelId, zIndex, children, }: EditorPanelShellProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
//# sourceMappingURL=EditorPanelShell.d.ts.map
|
package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorPanelShell.d.ts","sourceRoot":"","sources":["../../src/components/EditorPanelShell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AA8MD,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAmB,EACnB,QAAQ,GACT,EAAE,qBAAqB,2CAySvB"}
|