@hyperfixi/core 2.6.0 → 2.7.0

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 (54) hide show
  1. package/dist/api/hyperscript-api.d.ts +6 -0
  2. package/dist/ast-utils/index.js +8 -8
  3. package/dist/ast-utils/index.mjs +8 -8
  4. package/dist/bundle-generator/index.js +12 -4
  5. package/dist/bundle-generator/index.mjs +12 -4
  6. package/dist/chunks/{bridge-fFLEvCQs.js → bridge-lZbOVRDD.js} +2 -2
  7. package/dist/chunks/browser-modular-DegkWQ8d.js +2 -0
  8. package/dist/chunks/{index-BRgVy8nY.js → index-i_j9Z-1e.js} +2 -2
  9. package/dist/commands/data/set.d.ts +1 -0
  10. package/dist/commands/index.js +156 -47
  11. package/dist/commands/index.mjs +156 -47
  12. package/dist/core/context.d.ts +4 -0
  13. package/dist/dom/attribute-processor.d.ts +1 -0
  14. package/dist/hyperfixi-browser-classic-i18n.js +1 -1
  15. package/dist/hyperfixi-browser-minimal.js +1 -1
  16. package/dist/hyperfixi-browser-standard.js +1 -1
  17. package/dist/hyperfixi-browser.js +1 -1
  18. package/dist/hyperfixi-classic-i18n.js +1 -1
  19. package/dist/hyperfixi-hx-v4.js +1 -1
  20. package/dist/hyperfixi-hx.js +1 -1
  21. package/dist/hyperfixi-hybrid-complete.js +1 -1
  22. package/dist/hyperfixi-hybrid-hx.js +1 -1
  23. package/dist/hyperfixi-lite-plus.js +1 -1
  24. package/dist/hyperfixi-lite.js +1 -1
  25. package/dist/hyperfixi-minimal.js +1 -1
  26. package/dist/hyperfixi-multilingual.js +1 -1
  27. package/dist/hyperfixi-standard.js +1 -1
  28. package/dist/hyperfixi.js +1 -1
  29. package/dist/hyperfixi.mjs +1 -1
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +694 -459
  32. package/dist/index.min.js +1 -1
  33. package/dist/index.mjs +691 -460
  34. package/dist/lokascript-browser-classic-i18n.js +1 -1
  35. package/dist/lokascript-browser-minimal.js +1 -1
  36. package/dist/lokascript-browser-standard.js +1 -1
  37. package/dist/lokascript-browser.js +1 -1
  38. package/dist/lokascript-hybrid-complete.js +1 -1
  39. package/dist/lokascript-hybrid-hx.js +1 -1
  40. package/dist/lokascript-lite-plus.js +1 -1
  41. package/dist/lokascript-lite.js +1 -1
  42. package/dist/lokascript-multilingual.js +1 -1
  43. package/dist/parser/full-parser.js +70 -35
  44. package/dist/parser/full-parser.mjs +70 -35
  45. package/dist/parser/parser-types.d.ts +1 -1
  46. package/dist/parser/parser.d.ts +2 -0
  47. package/dist/parser/regex-parser.js +23 -14
  48. package/dist/parser/regex-parser.mjs +23 -14
  49. package/dist/registry/index.js +178 -45
  50. package/dist/registry/index.mjs +178 -45
  51. package/dist/types/core-context.d.ts +1 -0
  52. package/package.json +6 -6
  53. package/dist/chunks/browser-modular-BK3IOo93.js +0 -2
  54. package/dist/compatibility/browser-bundle.d.ts +0 -164
@@ -1,164 +0,0 @@
1
- import { evalHyperScript, evalHyperScriptAsync, evalHyperScriptSmart, evalHyperScriptSync } from './eval-hyperscript';
2
- import { hyperscript, config } from '../api/lokascript-api';
3
- import type { RuntimeHooks } from '../types/hooks';
4
- import { defaultAttributeProcessor } from '../dom/attribute-processor';
5
- import { Parser } from '../parser/parser';
6
- import { Runtime } from '../runtime/runtime';
7
- import { tokenize } from '../parser/tokenizer';
8
- import { debug, debugControl } from '../utils/debug';
9
- import { styleBatcher, ObjectPool } from '../utils/performance';
10
- import { enableDebugEvents, disableDebugEvents, isDebugEnabled, getDebugStats, resetDebugStats, getEventHistory, replayEvents } from '../utils/debug-events';
11
- import { parseSemantic, parse as semanticParse, translate, render, toExplicit, fromExplicit } from '@lokascript/semantic';
12
- import type { LokaScriptRegistry } from '../registry';
13
- import { registerFetchResponseType } from '../commands/async/fetch';
14
- import { installPlugin } from '../runtime/plugin';
15
- import { getParserExtensionRegistry } from '../parser/extensions';
16
- import { validatePartialContent, configurePartialValidation, getPartialValidationConfig, resetPartialValidationConfig } from '../validation/partial-validator';
17
- import { emitPartialValidationWarnings, formatResultSummary } from '../validation/partial-warning-formatter';
18
- import type { CompileResult, NewCompileOptions } from '../api/hyperscript-api';
19
- interface HyperFixiBrowserAPI {
20
- evalHyperScript: typeof evalHyperScript;
21
- evalHyperScriptAsync: typeof evalHyperScriptAsync;
22
- evalHyperScriptSmart: typeof evalHyperScriptSmart;
23
- evalHyperScriptSync: typeof evalHyperScriptSync;
24
- compile: (code: string, options?: NewCompileOptions) => CompileResult;
25
- compileSync: (code: string, options?: NewCompileOptions) => CompileResult;
26
- compileMultilingual: (code: string, language: string) => Promise<CompileResult>;
27
- execute: typeof hyperscript.execute;
28
- run: (code: string, context?: any) => Promise<unknown>;
29
- createContext: typeof hyperscript.createContext;
30
- createRuntime: typeof hyperscript.createRuntime;
31
- processNode: (element: Element | Document) => Promise<void>;
32
- process: (element: Element | Document) => Promise<void>;
33
- Parser: typeof Parser;
34
- Runtime: typeof Runtime;
35
- tokenize: typeof tokenize;
36
- installPlugin: typeof installPlugin;
37
- getParserExtensionRegistry: typeof getParserExtensionRegistry;
38
- attributeProcessor: typeof defaultAttributeProcessor;
39
- debug: typeof debug;
40
- debugControl: typeof debugControl;
41
- styleBatcher: typeof styleBatcher;
42
- ObjectPool: typeof ObjectPool;
43
- semantic: {
44
- parseSemantic: typeof parseSemantic;
45
- parse: typeof semanticParse;
46
- translate: typeof translate;
47
- render: typeof render;
48
- toExplicit: typeof toExplicit;
49
- fromExplicit: typeof fromExplicit;
50
- supportedLanguages: string[];
51
- };
52
- semanticDebug: {
53
- enable: typeof enableDebugEvents;
54
- disable: typeof disableDebugEvents;
55
- isEnabled: typeof isDebugEnabled;
56
- getStats: typeof getDebugStats;
57
- resetStats: typeof resetDebugStats;
58
- getEventHistory: typeof getEventHistory;
59
- replayEvents: typeof replayEvents;
60
- };
61
- config: typeof config;
62
- registerHooks: (name: string, hooks: RuntimeHooks) => void;
63
- unregisterHooks: (name: string) => boolean;
64
- getRegisteredHooks: () => string[];
65
- getDefaultRuntime: typeof hyperscript.getDefaultRuntime;
66
- registry: LokaScriptRegistry;
67
- registerFetchResponseType: typeof registerFetchResponseType;
68
- evalLSENode(node: import('@lokascript/framework').SemanticNode, element?: Element): Promise<unknown>;
69
- validatePartialContent: typeof validatePartialContent;
70
- configurePartialValidation: typeof configurePartialValidation;
71
- getPartialValidationConfig: typeof getPartialValidationConfig;
72
- resetPartialValidationConfig: typeof resetPartialValidationConfig;
73
- emitPartialValidationWarnings: typeof emitPartialValidationWarnings;
74
- formatResultSummary: typeof formatResultSummary;
75
- }
76
- declare global {
77
- interface Window {
78
- hyperfixi: HyperFixiBrowserAPI;
79
- lokascript: HyperFixiBrowserAPI;
80
- evalHyperScript: typeof evalHyperScript;
81
- evalHyperScriptAsync: typeof evalHyperScriptAsync;
82
- evalHyperScriptSmart: typeof evalHyperScriptSmart;
83
- evalHyperScriptSync: typeof evalHyperScriptSync;
84
- }
85
- }
86
- declare const hyperfixiAPI: {
87
- evalHyperScript: typeof evalHyperScript;
88
- evalHyperScriptAsync: typeof evalHyperScriptAsync;
89
- evalHyperScriptSmart: typeof evalHyperScriptSmart;
90
- evalHyperScriptSync: typeof evalHyperScriptSync;
91
- evaluate: typeof evalHyperScript;
92
- compile: (code: string, options?: NewCompileOptions) => CompileResult;
93
- compileSync: (code: string, options?: NewCompileOptions) => CompileResult;
94
- compileMultilingual: (code: string, language: string) => Promise<CompileResult>;
95
- execute: (ast: import("..").ASTNode, context?: import("../registry").ExecutionContext) => Promise<unknown>;
96
- run: (code: string, context?: any) => Promise<unknown>;
97
- createContext: (element?: HTMLElement | null, parent?: import("../registry").ExecutionContext) => import("../registry").ExecutionContext;
98
- createRuntime: (options?: import("../runtime/runtime").RuntimeOptions) => Runtime;
99
- Parser: typeof Parser;
100
- Runtime: typeof Runtime;
101
- tokenize: typeof tokenize;
102
- installPlugin: typeof installPlugin;
103
- getParserExtensionRegistry: typeof getParserExtensionRegistry;
104
- processNode: (element: Element | Document) => Promise<void>;
105
- process: (element: Element | Document) => Promise<void>;
106
- attributeProcessor: import("../dom/attribute-processor").AttributeProcessor;
107
- styleBatcher: import("../utils/performance").StyleBatcher;
108
- ObjectPool: typeof ObjectPool;
109
- debug: {
110
- command: (...args: any[]) => void;
111
- event: (...args: any[]) => void;
112
- parse: (...args: any[]) => void;
113
- expr: (...args: any[]) => void;
114
- expressions: (...args: any[]) => void;
115
- style: (...args: any[]) => void;
116
- runtime: (...args: any[]) => void;
117
- loop: (...args: any[]) => void;
118
- async: (...args: any[]) => void;
119
- };
120
- debugControl: {
121
- enable(): void;
122
- disable(): void;
123
- isEnabled(): boolean;
124
- status(): {
125
- enabled: boolean;
126
- source: string;
127
- };
128
- };
129
- semantic: {
130
- parseSemantic: typeof parseSemantic;
131
- parse: typeof semanticParse;
132
- translate: typeof translate;
133
- render: typeof render;
134
- toExplicit: typeof toExplicit;
135
- fromExplicit: typeof fromExplicit;
136
- supportedLanguages: string[];
137
- };
138
- semanticDebug: {
139
- enable: typeof enableDebugEvents;
140
- disable: typeof disableDebugEvents;
141
- isEnabled: typeof isDebugEnabled;
142
- getStats: typeof getDebugStats;
143
- resetStats: typeof resetDebugStats;
144
- getEventHistory: typeof getEventHistory;
145
- replayEvents: typeof replayEvents;
146
- };
147
- config: import("../api/hyperscript-api").HyperscriptConfig;
148
- registerHooks: (name: string, hooks: RuntimeHooks) => void;
149
- unregisterHooks: (name: string) => boolean;
150
- getRegisteredHooks: () => string[];
151
- getDefaultRuntime: () => Runtime;
152
- registry: LokaScriptRegistry;
153
- registerFetchResponseType: typeof registerFetchResponseType;
154
- evalLSENode: (node: import("@lokascript/framework").SemanticNode, element?: Element) => Promise<unknown>;
155
- validatePartialContent: typeof validatePartialContent;
156
- configurePartialValidation: typeof configurePartialValidation;
157
- getPartialValidationConfig: typeof getPartialValidationConfig;
158
- resetPartialValidationConfig: typeof resetPartialValidationConfig;
159
- emitPartialValidationWarnings: typeof emitPartialValidationWarnings;
160
- formatResultSummary: typeof formatResultSummary;
161
- version: string;
162
- };
163
- export default hyperfixiAPI;
164
- //# sourceMappingURL=browser-bundle.d.ts.map