@blqke/vgentation 0.1.1 → 0.1.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.
@@ -14,21 +14,17 @@ export declare const IconCheck: FunctionalComponent<IconProps>;
14
14
  export declare const IconCheckSmall: FunctionalComponent<IconProps>;
15
15
  export declare const IconListSparkle: FunctionalComponent<IconProps>;
16
16
  export declare const IconHelp: FunctionalComponent<IconProps>;
17
- export declare const IconCopyAlt: FunctionalComponent<IconProps>;
17
+ export declare const IconCopy: FunctionalComponent<IconProps>;
18
18
  export declare const IconEye: FunctionalComponent<IconProps>;
19
- export declare const IconEyeAlt: FunctionalComponent<IconProps>;
20
19
  export declare const IconEyeClosed: FunctionalComponent<IconProps>;
21
- export declare const IconEyeMinus: FunctionalComponent<IconProps>;
20
+ export declare const IconEyeHidden: FunctionalComponent<IconProps>;
22
21
  export declare const IconGear: FunctionalComponent<IconProps>;
23
- export declare const IconPauseAlt: FunctionalComponent<IconProps>;
24
22
  export declare const IconPause: FunctionalComponent<IconProps>;
25
- export declare const IconPlayAlt: FunctionalComponent<IconProps>;
26
- export declare const IconTrashAlt: FunctionalComponent<IconProps>;
27
- export declare const IconChatEllipsis: FunctionalComponent<IconProps>;
23
+ export declare const IconPlay: FunctionalComponent<IconProps>;
24
+ export declare const IconTrash: FunctionalComponent<IconProps>;
25
+ export declare const IconChat: FunctionalComponent<IconProps>;
28
26
  export declare const IconCheckmark: FunctionalComponent<IconProps>;
29
- export declare const IconCheckmarkLarge: FunctionalComponent<IconProps>;
30
27
  export declare const IconCheckmarkCircle: FunctionalComponent<IconProps>;
31
- export declare const IconXmark: FunctionalComponent<IconProps>;
32
- export declare const IconXmarkLarge: FunctionalComponent<IconProps>;
28
+ export declare const IconX: FunctionalComponent<IconProps>;
33
29
  export declare const IconSun: FunctionalComponent<IconProps>;
34
30
  export declare const IconMoon: FunctionalComponent<IconProps>;
@@ -8,34 +8,34 @@ export interface VgentationContext {
8
8
  readonly annotations: ComputedRef<readonly Annotation[]>;
9
9
  /** Current markdown output */
10
10
  readonly output: ComputedRef<string>;
11
+ /** @internal Check if a component is registered */
12
+ readonly _isRegistered: ComputedRef<boolean>;
11
13
  /** Activate the annotation tool */
12
- activate: () => void;
14
+ activate(): void;
13
15
  /** Deactivate the annotation tool */
14
- deactivate: () => void;
16
+ deactivate(): void;
15
17
  /** Toggle the annotation tool active state */
16
- toggle: () => void;
18
+ toggle(): void;
17
19
  /** Clear all annotations */
18
- clearAll: () => void;
20
+ clearAll(): void;
19
21
  /** Copy output to clipboard */
20
- copyOutput: () => void;
22
+ copyOutput(): void;
21
23
  /** Get a copy of current annotations array */
22
- getAnnotations: () => Annotation[];
24
+ getAnnotations(): Annotation[];
23
25
  /** Get the current markdown output string */
24
- getOutput: () => string;
26
+ getOutput(): string;
25
27
  /** @internal Register the Vgentation component instance */
26
- _register: (instance: RegisteredInstance) => void;
28
+ _register(instance: RegisteredInstance): void;
27
29
  /** @internal Unregister the Vgentation component instance */
28
- _unregister: () => void;
29
- /** @internal Check if a component is registered */
30
- _isRegistered: ComputedRef<boolean>;
30
+ _unregister(): void;
31
31
  }
32
32
  /** @internal Interface for the registered Vgentation component */
33
33
  export interface RegisteredInstance {
34
34
  isActive: Ref<boolean>;
35
35
  annotations: Ref<Annotation[]>;
36
- getOutput: () => string;
37
- clearAll: () => void;
38
- copyOutput: () => void;
36
+ getOutput(): string;
37
+ clearAll(): void;
38
+ copyOutput(): void;
39
39
  }
40
40
  export declare const VgentationKey: InjectionKey<VgentationContext>;
41
41
  export declare function createVgentationContext(): VgentationContext;