@yoamigo.com/core 0.4.1 → 0.4.3

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +14 -1
  2. package/dist/index.js +1146 -465
  3. package/package.json +1 -2
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ interface ContentStore {
19
19
  getValue: (fieldId: string) => string;
20
20
  setValue: (fieldId: string, value: string, source?: ChangeSource) => void;
21
21
  getChangeSource: (fieldId: string) => ChangeSource;
22
+ clearChangeSource: (fieldId: string) => void;
22
23
  mode: EditMode;
23
24
  setMode: (mode: EditMode) => void;
24
25
  subscribe: (listener: () => void) => () => void;
@@ -113,6 +114,18 @@ interface SafeTriangleBelowProps {
113
114
  */
114
115
  declare function SafeTriangleBelow({ triggerRef, popoverRef, isVisible, onLeave, onStayInside, }: SafeTriangleBelowProps): null;
115
116
 
117
+ interface TooltipProps {
118
+ /** Tooltip content */
119
+ content: React.ReactNode;
120
+ /** Trigger element */
121
+ children: React.ReactElement;
122
+ /** Preferred position */
123
+ position?: 'top' | 'bottom' | 'left' | 'right';
124
+ /** Delay before showing (ms) */
125
+ delay?: number;
126
+ }
127
+ declare function Tooltip({ content, children, position, delay, }: TooltipProps): react_jsx_runtime.JSX.Element;
128
+
116
129
  /**
117
130
  * Animation state for a single field
118
131
  */
@@ -559,4 +572,4 @@ interface UseSafeTriangleReturn<T extends HTMLElement, U extends HTMLElement> {
559
572
  */
560
573
  declare function useSafeTriangle<T extends HTMLElement = HTMLElement, U extends HTMLElement = HTMLDivElement>(options?: UseSafeTriangleOptions): UseSafeTriangleReturn<T, U>;
561
574
 
562
- export { type AIEditContextValue, AIEditProvider, type AnimatedTextOptions, type AnimatedTextResult, type AnimationConfig, type AnimationMetadata, type AnimationOptions, type AnimationPhase, type AnimationResult, type AnimationState, type AnimationStrategy, type ContentStoreContextType, type ContentStoreMode, ContentStoreProvider, type ImageValue, type LinkValue, SafeHtml, type SafeHtmlProps, SafeTriangleBelow, type TextAnimationMetadata, type TextDiff, YaText, type YaTextProps, buildIntermediateText, calculateAnimationTiming, computeTextDiff, containsHtml, getTextCursorPosition, imageCrossfadeStrategy, linkTransitionStrategy, stripHtml, textTypingStrategy, useAIEditAnimation, useAIEditContext, useAIEditContextOptional, useAnimatedText, useContentStore, useSafeTriangle };
575
+ export { type AIEditContextValue, AIEditProvider, type AnimatedTextOptions, type AnimatedTextResult, type AnimationConfig, type AnimationMetadata, type AnimationOptions, type AnimationPhase, type AnimationResult, type AnimationState, type AnimationStrategy, type ContentStoreContextType, type ContentStoreMode, ContentStoreProvider, type ImageValue, type LinkValue, SafeHtml, type SafeHtmlProps, SafeTriangleBelow, type TextAnimationMetadata, type TextDiff, Tooltip, type TooltipProps, YaText, type YaTextProps, buildIntermediateText, calculateAnimationTiming, computeTextDiff, containsHtml, getTextCursorPosition, imageCrossfadeStrategy, linkTransitionStrategy, stripHtml, textTypingStrategy, useAIEditAnimation, useAIEditContext, useAIEditContextOptional, useAnimatedText, useContentStore, useSafeTriangle };