@processandtools/rp-article-designer 1.0.12 → 1.0.14

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.
@@ -1,28 +0,0 @@
1
- import { ImosVariable } from './variable.types.ts';
2
-
3
- export type VariableTree = Map<string, ImosVariable>;
4
- /**
5
- * Create variable tree - just convert array to Map
6
- */
7
- export declare function createVariableTree(imosVariables: ImosVariable[]): VariableTree;
8
- /**
9
- * Get the final value by following $VAR references
10
- * V1 ($V2) -> V2 ($V3) -> V3 ($V4) -> V4 (400) = 400
11
- */
12
- export declare function getValue(varName: string, tree: VariableTree, visited?: Set<string>): string | number | undefined;
13
- /**
14
- * Set a variable's value (immutable update)
15
- */
16
- export declare function setValue(varName: string, newValue: string | number, tree: VariableTree): VariableTree;
17
- /**
18
- * Resolve variables in a string (e.g., "1:$VAR_M1 mm" → "1:300 mm")
19
- */
20
- export declare function resolveString(str: string, tree: VariableTree): string;
21
- /**
22
- * Check if a string contains variable references
23
- */
24
- export declare function hasVariables(str: string): boolean;
25
- /**
26
- * Extract all variable names from a string
27
- */
28
- export declare function extractVariableNames(str: string): string[];
@@ -1,11 +0,0 @@
1
- /**
2
- * Hook to access variables
3
- * Provides utilities to work with the variable tree
4
- */
5
- export declare function useVariables(): {
6
- tree: any;
7
- getValue: (name: string) => string | number;
8
- resolveString: (str: string) => string;
9
- hasVariables: (str: string) => boolean;
10
- setVarValue: any;
11
- };
@@ -1,24 +0,0 @@
1
- export declare enum VAR_TYPE {
2
- None = 0,
3
- Profile = 2,
4
- Surface = 3,
5
- Material = 4,
6
- Kms = 5,
7
- Numeric = 100,
8
- Text = 120,
9
- color = 29
10
- }
11
- export interface ImosVariable {
12
- NAME: string;
13
- TYP: number;
14
- WERT: string;
15
- }
16
- export declare function isVariableReference(value: string): boolean;
17
- export declare function extractVariableName(reference: string): string;
18
- export interface VariableContextType {
19
- getValue: (name: string) => string | number | undefined;
20
- setValue: (name: string, value: string | number) => void;
21
- resolveString: (str: string) => string;
22
- hasVariables: (str: string) => boolean;
23
- getTree: () => Map<string, ImosVariable>;
24
- }