@lax-wp/editor 0.3.13 → 0.3.15

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.
@@ -3,4 +3,11 @@ import type { ApiTagEntry } from "@/config/EditorConfig";
3
3
  export declare function setShowValue(editor: Editor, showValue: boolean, filter?: Set<string>): void;
4
4
  export declare function revertToPlainText(editor: Editor, filter?: Set<string>): void;
5
5
  export declare function buildTagsFromEditor(editor: Editor): Record<string, ApiTagEntry[]>;
6
- export declare function getAnonymizedVariables(editor: Editor): Set<string>;
6
+ export type AnonymizedVariableRevealState = 'placeholder' | 'revealed';
7
+ /**
8
+ * Collects `anonymizedVariable` ids from `anonymizedText` nodes in the document.
9
+ * @param revealState `placeholder` (default) — chips showing the token; `revealed` — chips showing the stored original.
10
+ */
11
+ export declare function getAnonymizedVariables(editor: Editor, options?: {
12
+ revealState?: AnonymizedVariableRevealState;
13
+ }): Set<string>;
@@ -13,7 +13,6 @@ export declare const ANON_CATEGORY_COLORS: Record<string, {
13
13
  darkBg: string;
14
14
  darkColor: string;
15
15
  }>;
16
- /** Extract category key (e.g. "person") from an anonymizedVariable like "PERSON_A_NAME" or "Person 1". */
17
16
  export declare function extractCategory(anonymizedData: string): string;
18
17
  /** Apply per-category inline colors and chip spacing to a DOM element. */
19
18
  export declare function applyCategoryStyle(dom: HTMLElement, anonymizedData: string, opts?: {