@tachui/core 0.7.1-alpha → 0.8.1-alpha
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.
- package/README.md +20 -2
- package/dist/bundles/assets.d.ts +19 -0
- package/dist/bundles/assets.d.ts.map +1 -0
- package/dist/bundles/common.d.ts +1 -1
- package/dist/bundles/common.d.ts.map +1 -1
- package/dist/bundles/context.d.ts +22 -0
- package/dist/bundles/context.d.ts.map +1 -0
- package/dist/bundles/minimal.d.ts +8 -18
- package/dist/bundles/minimal.d.ts.map +1 -1
- package/dist/bundles/production-minimal.d.ts +2 -16
- package/dist/bundles/production-minimal.d.ts.map +1 -1
- package/dist/common.js +405 -828
- package/dist/compiler/advanced-parser.d.ts.map +1 -1
- package/dist/compiler/codegen.d.ts.map +1 -1
- package/dist/compiler/index.js +6 -1387
- package/dist/compiler/parser.d.ts +1 -1
- package/dist/compiler/parser.d.ts.map +1 -1
- package/dist/compiler/plugin.d.ts.map +1 -1
- package/dist/compiler/types.d.ts +28 -0
- package/dist/compiler/types.d.ts.map +1 -1
- package/dist/component-XAzF1xqs.js +487 -0
- package/dist/component-base-x2XmHFjy.js +255 -0
- package/dist/components/index.d.ts +4 -38
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +7 -4167
- package/dist/components/wrapper.d.ts +5 -152
- package/dist/components/wrapper.d.ts.map +1 -1
- package/dist/concatenated-component-ByPl3_FF.js +2933 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/layout.d.ts +47 -4
- package/dist/constants/layout.d.ts.map +1 -1
- package/dist/constants/layout.js +84 -0
- package/dist/css-classes/index.js +176 -0
- package/dist/{dom-bridge-Cx-s6Ihx.js → dom-bridge-CAa1N2zX.js} +28 -28
- package/dist/{effect-CytAc9em.js → effect-B9Knft0b.js} +3 -3
- package/dist/essential.js +397 -826
- package/dist/index-DEBd8cq7.js +1144 -0
- package/dist/index-DIvMCJQO.js +268 -0
- package/dist/index-vdsiw6gQ.js +777 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +397 -826
- package/dist/minimal-prod.js +101 -155
- package/dist/minimal.js +118 -170
- package/dist/modifiers/background.d.ts +41 -11
- package/dist/modifiers/background.d.ts.map +1 -1
- package/dist/modifiers/base.d.ts +6 -33
- package/dist/modifiers/base.d.ts.map +1 -1
- package/dist/modifiers/base.js +487 -0
- package/dist/modifiers/builder.d.ts +103 -195
- package/dist/modifiers/builder.d.ts.map +1 -1
- package/dist/modifiers/builder.js +9 -0
- package/dist/modifiers/core.d.ts +9 -401
- package/dist/modifiers/core.d.ts.map +1 -1
- package/dist/modifiers/{utils.d.ts → factories.d.ts} +18 -5
- package/dist/modifiers/factories.d.ts.map +1 -0
- package/dist/modifiers/index.d.ts +8 -52
- package/dist/modifiers/index.d.ts.map +1 -1
- package/dist/modifiers/index.js +38 -0
- package/dist/modifiers/presets.d.ts +368 -0
- package/dist/modifiers/presets.d.ts.map +1 -0
- package/dist/modifiers/registry.js +10 -0
- package/dist/modifiers/types.d.ts +39 -211
- package/dist/modifiers/types.d.ts.map +1 -1
- package/dist/modifiers/types.js +4 -0
- package/dist/observed-object-Cos-FtjP.js +269 -0
- package/dist/performance-optimizer-stub-CtfXUwl4.js +38 -0
- package/dist/plugin-BCAdZXKq.js +1680 -0
- package/dist/plugins/index.d.ts +5 -6
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +147 -297
- package/dist/plugins/simplified-index.d.ts +5 -6
- package/dist/plugins/simplified-index.d.ts.map +1 -1
- package/dist/production-minimal-BY_gMc-l.js +2532 -0
- package/dist/reactive/index.js +96 -95
- package/dist/reactive/types.js +4 -0
- package/dist/runtime/concatenation-aria.d.ts +24 -0
- package/dist/runtime/concatenation-aria.d.ts.map +1 -0
- package/dist/runtime/concatenation-aria.js +53 -0
- package/dist/runtime/concatenation-full.d.ts +30 -0
- package/dist/runtime/concatenation-full.d.ts.map +1 -0
- package/dist/runtime/concatenation-full.js +77 -0
- package/dist/runtime/concatenation-minimal.d.ts +25 -0
- package/dist/runtime/concatenation-minimal.d.ts.map +1 -0
- package/dist/runtime/concatenation-minimal.js +40 -0
- package/dist/runtime/dom-bridge.js +5 -5
- package/dist/runtime/element-override.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -7
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/renderer.d.ts.map +1 -1
- package/dist/runtime/renderer.js +7 -8
- package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
- package/dist/runtime/types.js +1 -0
- package/dist/{scheduler-7SvC3a21.js → scheduler-BKeqwrYE.js} +130 -130
- package/dist/validation/build-time-stub.d.ts +33 -0
- package/dist/validation/build-time-stub.d.ts.map +1 -0
- package/dist/validation/debug-tools-stub.d.ts +67 -0
- package/dist/validation/debug-tools-stub.d.ts.map +1 -0
- package/dist/validation/index.d.ts +23 -78
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +609 -6470
- package/dist/validation/lifecycle-validation.d.ts.map +1 -1
- package/dist/validation/performance-optimizer-stub.d.ts +50 -0
- package/dist/validation/performance-optimizer-stub.d.ts.map +1 -0
- package/dist/validation/plugin-registration.d.ts +5 -1
- package/dist/validation/plugin-registration.d.ts.map +1 -1
- package/dist/validation/production-bypass-core.d.ts +69 -0
- package/dist/validation/production-bypass-core.d.ts.map +1 -0
- package/package.json +61 -5
- package/dist/ScrollView-h-6wYMAm.js +0 -515
- package/dist/Spacer-BbteDQ9I.js +0 -5337
- package/dist/binding-CmdpowkI.js +0 -2276
- package/dist/components/BasicInput.d.ts +0 -116
- package/dist/components/BasicInput.d.ts.map +0 -1
- package/dist/components/Button.d.ts +0 -252
- package/dist/components/Button.d.ts.map +0 -1
- package/dist/components/Divider.d.ts +0 -141
- package/dist/components/Divider.d.ts.map +0 -1
- package/dist/components/EnhancedLink.d.ts +0 -365
- package/dist/components/EnhancedLink.d.ts.map +0 -1
- package/dist/components/Form.d.ts +0 -141
- package/dist/components/Form.d.ts.map +0 -1
- package/dist/components/Grid.d.ts +0 -698
- package/dist/components/Grid.d.ts.map +0 -1
- package/dist/components/GridResponsive.d.ts +0 -214
- package/dist/components/GridResponsive.d.ts.map +0 -1
- package/dist/components/Image.d.ts +0 -162
- package/dist/components/Image.d.ts.map +0 -1
- package/dist/components/List.d.ts +0 -287
- package/dist/components/List.d.ts.map +0 -1
- package/dist/components/Menu.d.ts +0 -159
- package/dist/components/Menu.d.ts.map +0 -1
- package/dist/components/Picker.d.ts +0 -153
- package/dist/components/Picker.d.ts.map +0 -1
- package/dist/components/ScrollView.d.ts +0 -222
- package/dist/components/ScrollView.d.ts.map +0 -1
- package/dist/components/Section.d.ts +0 -153
- package/dist/components/Section.d.ts.map +0 -1
- package/dist/components/Show.d.ts +0 -64
- package/dist/components/Show.d.ts.map +0 -1
- package/dist/components/Spacer.d.ts +0 -35
- package/dist/components/Spacer.d.ts.map +0 -1
- package/dist/components/Text.d.ts +0 -242
- package/dist/components/Text.d.ts.map +0 -1
- package/dist/components/Toggle.d.ts +0 -207
- package/dist/components/Toggle.d.ts.map +0 -1
- package/dist/concatenated-component-DPcl2TEO.js +0 -6779
- package/dist/context--zQFIImS.js +0 -283
- package/dist/debug/index.d.ts +0 -61
- package/dist/debug/index.d.ts.map +0 -1
- package/dist/debug.js +0 -178
- package/dist/developer-experience/enhanced-errors.d.ts +0 -128
- package/dist/developer-experience/enhanced-errors.d.ts.map +0 -1
- package/dist/developer-experience/enhanced-types.d.ts +0 -281
- package/dist/developer-experience/enhanced-types.d.ts.map +0 -1
- package/dist/developer-experience/index.d.ts +0 -44
- package/dist/developer-experience/index.d.ts.map +0 -1
- package/dist/index-Nfi2SBQh.js +0 -3268
- package/dist/modifiers/attributes.d.ts +0 -203
- package/dist/modifiers/attributes.d.ts.map +0 -1
- package/dist/modifiers/backdrop.d.ts +0 -59
- package/dist/modifiers/backdrop.d.ts.map +0 -1
- package/dist/modifiers/border.d.ts +0 -217
- package/dist/modifiers/border.d.ts.map +0 -1
- package/dist/modifiers/effects.d.ts +0 -159
- package/dist/modifiers/effects.d.ts.map +0 -1
- package/dist/modifiers/elements.d.ts +0 -240
- package/dist/modifiers/elements.d.ts.map +0 -1
- package/dist/modifiers/filters.d.ts +0 -275
- package/dist/modifiers/filters.d.ts.map +0 -1
- package/dist/modifiers/flexbox.d.ts +0 -82
- package/dist/modifiers/flexbox.d.ts.map +0 -1
- package/dist/modifiers/font.d.ts +0 -71
- package/dist/modifiers/font.d.ts.map +0 -1
- package/dist/modifiers/grid.d.ts +0 -92
- package/dist/modifiers/grid.d.ts.map +0 -1
- package/dist/modifiers/margin.d.ts +0 -128
- package/dist/modifiers/margin.d.ts.map +0 -1
- package/dist/modifiers/padding.d.ts +0 -204
- package/dist/modifiers/padding.d.ts.map +0 -1
- package/dist/modifiers/responsive/advanced-utilities.d.ts +0 -118
- package/dist/modifiers/responsive/advanced-utilities.d.ts.map +0 -1
- package/dist/modifiers/responsive/breakpoints.d.ts +0 -81
- package/dist/modifiers/responsive/breakpoints.d.ts.map +0 -1
- package/dist/modifiers/responsive/css-generator.d.ts +0 -100
- package/dist/modifiers/responsive/css-generator.d.ts.map +0 -1
- package/dist/modifiers/responsive/dev-tools.d.ts +0 -107
- package/dist/modifiers/responsive/dev-tools.d.ts.map +0 -1
- package/dist/modifiers/responsive/index.d.ts +0 -29
- package/dist/modifiers/responsive/index.d.ts.map +0 -1
- package/dist/modifiers/responsive/layout-patterns.d.ts +0 -230
- package/dist/modifiers/responsive/layout-patterns.d.ts.map +0 -1
- package/dist/modifiers/responsive/performance.d.ts +0 -130
- package/dist/modifiers/responsive/performance.d.ts.map +0 -1
- package/dist/modifiers/responsive/responsive-builder.d.ts +0 -133
- package/dist/modifiers/responsive/responsive-builder.d.ts.map +0 -1
- package/dist/modifiers/responsive/responsive-modifier.d.ts +0 -123
- package/dist/modifiers/responsive/responsive-modifier.d.ts.map +0 -1
- package/dist/modifiers/responsive/types.d.ts +0 -183
- package/dist/modifiers/responsive/types.d.ts.map +0 -1
- package/dist/modifiers/responsive/utilities.d.ts +0 -149
- package/dist/modifiers/responsive/utilities.d.ts.map +0 -1
- package/dist/modifiers/scroll.d.ts +0 -143
- package/dist/modifiers/scroll.d.ts.map +0 -1
- package/dist/modifiers/shadows.d.ts +0 -114
- package/dist/modifiers/shadows.d.ts.map +0 -1
- package/dist/modifiers/size.d.ts +0 -113
- package/dist/modifiers/size.d.ts.map +0 -1
- package/dist/modifiers/text.d.ts +0 -147
- package/dist/modifiers/text.d.ts.map +0 -1
- package/dist/modifiers/transformations.d.ts +0 -329
- package/dist/modifiers/transformations.d.ts.map +0 -1
- package/dist/modifiers/transitions.d.ts +0 -98
- package/dist/modifiers/transitions.d.ts.map +0 -1
- package/dist/modifiers/typography.d.ts +0 -192
- package/dist/modifiers/typography.d.ts.map +0 -1
- package/dist/modifiers/utility.d.ts +0 -69
- package/dist/modifiers/utility.d.ts.map +0 -1
- package/dist/modifiers/utils.d.ts.map +0 -1
- package/dist/plugins/simplified-error-handler.d.ts +0 -83
- package/dist/plugins/simplified-error-handler.d.ts.map +0 -1
- package/dist/runtime/dev-tools.d.ts +0 -240
- package/dist/runtime/dev-tools.d.ts.map +0 -1
- package/dist/runtime/development-warnings.d.ts +0 -42
- package/dist/runtime/development-warnings.d.ts.map +0 -1
- package/dist/runtime/error-boundary.d.ts +0 -302
- package/dist/runtime/error-boundary.d.ts.map +0 -1
- package/dist/runtime/error-recovery.d.ts +0 -267
- package/dist/runtime/error-recovery.d.ts.map +0 -1
- package/dist/runtime/error-reporting.d.ts +0 -287
- package/dist/runtime/error-reporting.d.ts.map +0 -1
- package/dist/runtime/error-utils.d.ts +0 -204
- package/dist/runtime/error-utils.d.ts.map +0 -1
- package/dist/runtime/performance.d.ts +0 -217
- package/dist/runtime/performance.d.ts.map +0 -1
- package/dist/sui-compat.d.ts +0 -110
- package/dist/sui-compat.d.ts.map +0 -1
- package/dist/validation/advanced-debugging.d.ts +0 -319
- package/dist/validation/advanced-debugging.d.ts.map +0 -1
- package/dist/validation/build-time/detection.d.ts +0 -32
- package/dist/validation/build-time/detection.d.ts.map +0 -1
- package/dist/validation/build-time/index.d.ts +0 -84
- package/dist/validation/build-time/index.d.ts.map +0 -1
- package/dist/validation/build-time/plugins.d.ts +0 -75
- package/dist/validation/build-time/plugins.d.ts.map +0 -1
- package/dist/validation/build-time/rules.d.ts +0 -73
- package/dist/validation/build-time/rules.d.ts.map +0 -1
- package/dist/validation/build-time/transformer.d.ts +0 -23
- package/dist/validation/build-time/transformer.d.ts.map +0 -1
- package/dist/validation/build-time/types.d.ts +0 -212
- package/dist/validation/build-time/types.d.ts.map +0 -1
- package/dist/validation/comprehensive.d.ts +0 -160
- package/dist/validation/comprehensive.d.ts.map +0 -1
- package/dist/validation/debug-tools.d.ts +0 -251
- package/dist/validation/debug-tools.d.ts.map +0 -1
- package/dist/validation/developer-experience.d.ts +0 -243
- package/dist/validation/developer-experience.d.ts.map +0 -1
- package/dist/validation/documentation-integration.d.ts +0 -269
- package/dist/validation/documentation-integration.d.ts.map +0 -1
- package/dist/validation/enhanced-runtime.d.ts +0 -279
- package/dist/validation/enhanced-runtime.d.ts.map +0 -1
- package/dist/validation/error-reporting.d.ts +0 -186
- package/dist/validation/error-reporting.d.ts.map +0 -1
- package/dist/validation/ide-integration.d.ts +0 -328
- package/dist/validation/ide-integration.d.ts.map +0 -1
- package/dist/validation/performance-optimizer.d.ts +0 -218
- package/dist/validation/performance-optimizer.d.ts.map +0 -1
- package/dist/validation/production-bypass.d.ts +0 -175
- package/dist/validation/production-bypass.d.ts.map +0 -1
- package/dist/validation/simple.d.ts +0 -111
- package/dist/validation/simple.d.ts.map +0 -1
- package/dist/viewport/adapters/web-adapter.d.ts +0 -227
- package/dist/viewport/adapters/web-adapter.d.ts.map +0 -1
- package/dist/viewport/components.d.ts +0 -131
- package/dist/viewport/components.d.ts.map +0 -1
- package/dist/viewport/environment.d.ts +0 -75
- package/dist/viewport/environment.d.ts.map +0 -1
- package/dist/viewport/index.d.ts +0 -138
- package/dist/viewport/index.d.ts.map +0 -1
- package/dist/viewport/index.js +0 -2085
- package/dist/viewport/platform-detection.d.ts +0 -59
- package/dist/viewport/platform-detection.d.ts.map +0 -1
- package/dist/viewport/types.d.ts +0 -301
- package/dist/viewport/types.d.ts.map +0 -1
- package/dist/viewport/viewport-manager.d.ts +0 -118
- package/dist/viewport/viewport-manager.d.ts.map +0 -1
package/dist/runtime/index.d.ts
CHANGED
|
@@ -9,21 +9,14 @@ export { ComponentManager, createAdvancedComponent, createComponent, createFragm
|
|
|
9
9
|
export { ComponentContextDebug, ComponentContextSymbol, consumeEnvironmentValue, createComponentContext, createEnvironmentKey, EnvironmentSymbol, getCurrentComponentContext, provideEnvironmentValue, runWithComponentContext, setCurrentComponentContext, withComponentContext, } from './component-context';
|
|
10
10
|
export type { TachUIContext } from './context';
|
|
11
11
|
export { ContextManager, contextUtils, createContext, createContextConsumer, DIContainer, defaultContextManager, globalDI, Injectable, inject, useContext, withProvider, } from './context';
|
|
12
|
-
export { type ComponentTreeNode, type DebugEvent, type DevState, DevTools, type DevToolsConfig, devUtils, enableDevelopmentMode, enablePerformanceTracking, getComponentTree, getDevTools, globalDevTools, } from './dev-tools';
|
|
13
12
|
export { mountRoot, DOMBridgeDebug, getComponentFromElement, mountComponentChildren, mountComponentTree, unmountComponent, unmountComponentEnhanced, updateComponent, } from './dom-bridge';
|
|
14
|
-
export { createErrorBoundary, ErrorBoundary, type ErrorBoundaryProps, type ErrorBoundaryState, type ErrorCategory, type ErrorHandler, type ErrorHandlingConfig, ErrorManager, type ErrorRecoveryConfig, type ErrorRecoveryStrategy, type ErrorReporter, type ErrorSeverity, errorReporters, errorUtils, globalErrorManager, type TachUIError, } from './error-boundary';
|
|
15
|
-
export { CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerState, type FallbackConfig, FallbackManager, RecoveryOrchestrator, RetryPolicy, type RetryPolicyConfig, recoveryPresets, recoveryUtils, } from './error-recovery';
|
|
16
|
-
export { type ErrorAggregation, ErrorAggregator, globalErrorAggregator, globalLogger, type LogEntry, type Logger, type LogLevel, type ReportDestination, type ReportingConfig, reportDestinations, reportingUtils, StructuredLogger, setupErrorReporting, } from './error-reporting';
|
|
17
|
-
export { devErrorUtils, type ErrorAnalysis, ErrorPatternDetector, errorDebugUtils, type PerformanceImpact, PerformanceImpactAnalyzer, type StackTraceAnalysis, StackTraceAnalyzer, } from './error-utils';
|
|
18
13
|
export { LifecycleManager } from './lifecycle';
|
|
19
14
|
export { mount, unmount, updateProps } from './mounting';
|
|
20
15
|
export { lazy, memo } from './optimization';
|
|
21
|
-
export { type ComponentMetrics, globalPerformanceMonitor, type MonitoringOptions, type PerformanceListener, type PerformanceMetric, PerformanceMonitor, performanceUtils, type ReactiveMetrics, } from './performance';
|
|
22
16
|
export { ChildrenManager, createChildrenManager, createPropsManager, createRefManager, defaultChildrenRenderer, PropsManager, propsUtils, RefManager, } from './props';
|
|
23
17
|
export { DOMRenderer, h, renderComponent, text } from './renderer';
|
|
24
18
|
export * from './element-override';
|
|
25
19
|
export * from './semantic-role-manager';
|
|
26
|
-
export * from './development-warnings';
|
|
27
20
|
export { AnimationManager, FocusManager, migrateFromSetTimeout, onDOMError, onDOMReady, onError, onMount, onUnmount, setupOutsideClickDetection, setupPositioning, useLifecycle, withDOMAccess, withErrorBoundary, withReactiveAsset, } from '../lifecycle/hooks';
|
|
28
21
|
export type { ChildrenRenderer, Component, ComponentChildren, ComponentContext, ComponentInstance, ComponentProps, ComponentRef, ContextSubscription, DOMError, DOMNode, Fragment, IDIContainer, LifecycleHooks, PropsValidator, Ref, RefCallback, RenderFunction, ServiceRegistration, StrictComponentProps, ValidatedProps, } from './types';
|
|
29
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,aAAa,GACd,MAAM,aAAa,CAAA;AAEpB,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,GAErB,MAAM,qBAAqB,CAAA;AAE5B,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EACL,cAAc,EACd,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,WAAW,EACX,qBAAqB,EACrB,QAAQ,EACR,UAAU,EACV,MAAM,EACN,UAAU,EACV,YAAY,GACb,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,aAAa,GACd,MAAM,aAAa,CAAA;AAEpB,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,GAErB,MAAM,qBAAqB,CAAA;AAE5B,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EACL,cAAc,EACd,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,WAAW,EACX,qBAAqB,EACrB,QAAQ,EACR,UAAU,EACV,MAAM,EACN,UAAU,EACV,YAAY,GACb,MAAM,WAAW,CAAA;AAIlB,OAAO,EACL,SAAS,EACT,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,GAChB,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAG3C,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,YAAY,EACZ,UAAU,EACV,UAAU,GACX,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAElE,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AAIvC,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,EACrB,UAAU,EACV,UAAU,EACV,OAAO,EACP,OAAO,EACP,SAAS,EACT,0BAA0B,EAC1B,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,oBAAoB,CAAA;AAE3B,YAAY,EACV,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,cAAc,EACd,GAAG,EACH,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,GACf,MAAM,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../src/runtime/renderer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../src/runtime/renderer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAUzD;;GAEG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,OAAO,CAAmD;IAClE,OAAO,CAAC,UAAU,CAA0D;IAC5E,OAAO,CAAC,aAAa,CAAqB;IAE1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,OAAO,GAAG,OAAO,EAAE,EACzB,SAAS,CAAC,EAAE,OAAO,GAClB,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,gBAAgB;IAQ9C;;OAEG;IACH,OAAO,CAAC,YAAY;IAoEpB;;OAEG;IACH,OAAO,CAAC,cAAc;IAkBtB;;OAEG;IACH,OAAO,CAAC,aAAa;IA6CrB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAmC5B;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,OAAO,CAAC,aAAa;IAIrB;;OAEG;IACH,OAAO,CAAC,UAAU;IAMlB;;OAEG;IACH,OAAO,CAAC,SAAS;IAoCjB;;OAEG;IACH,OAAO,CAAC,cAAc;IAoBtB;;OAEG;IACH,OAAO,CAAC,cAAc;IAiBtB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAe1B;;OAEG;IACH,OAAO,CAAC,UAAU;IAmBlB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAyCxB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAuB1B;;OAEG;IACH,OAAO,CAAC,UAAU;IASlB;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;IAY/D;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IA6B/B;;OAEG;IACH,kBAAkB,CAAC,YAAY,EAAE,MAAM,MAAM,GAAG,IAAI;IAUpD;;OAEG;IACH,qBAAqB,CACnB,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACxC,QAAQ,CAAC,EAAE,OAAO,EAAE,GACnB,OAAO;IAoBV;;OAEG;IACH,OAAO,CAAC,uBAAuB;IA+B/B;;OAEG;IACH,OAAO,IAAI,IAAI;CAiBhB;AAOD;;GAEG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,iBAAiB,EAC3B,SAAS,EAAE,OAAO,GACjB,MAAM,IAAI,CA6BZ;AAED;;GAEG;AACH,wBAAgB,CAAC,CACf,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EAClC,GAAG,QAAQ,EAAE,CAAC,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GACzC,OAAO,CAoBT;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,OAAO,CA4C9D"}
|
package/dist/runtime/renderer.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../scheduler-
|
|
3
|
-
import "../effect-
|
|
4
|
-
import "../debug.js";
|
|
1
|
+
import { D as a, v as m, w as n, x as p } from "../concatenated-component-ByPl3_FF.js";
|
|
2
|
+
import "../scheduler-BKeqwrYE.js";
|
|
3
|
+
import "../effect-B9Knft0b.js";
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
a as DOMRenderer,
|
|
6
|
+
m as h,
|
|
7
|
+
n as renderComponent,
|
|
8
|
+
p as text
|
|
10
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-role-manager.d.ts","sourceRoot":"","sources":["../../src/runtime/semantic-role-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAA;AAG3B,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAqB;IAE5C,MAAM,CAAC,WAAW,IAAI,mBAAmB;IAOzC;;OAEG;IACH,uBAAuB,CACrB,OAAO,EAAE,WAAW,EACpB,GAAG,EAAE,MAAM,EACX,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,IAAI;
|
|
1
|
+
{"version":3,"file":"semantic-role-manager.d.ts","sourceRoot":"","sources":["../../src/runtime/semantic-role-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAA;AAG3B,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAqB;IAE5C,MAAM,CAAC,WAAW,IAAI,mBAAmB;IAOzC;;OAEG;IACH,uBAAuB,CACrB,OAAO,EAAE,WAAW,EACpB,GAAG,EAAE,MAAM,EACX,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,IAAI;IA+CP;;OAEG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAI1D;;OAEG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAKjC;;OAEG;IACH,eAAe,IAAI,MAAM,EAAE;IAM3B;;;OAGG;IACH,kBAAkB,CAChB,OAAO,EAAE,WAAW,EACpB,GAAG,EAAE,MAAM,EACX,iBAAiB,CAAC,EAAE,GAAG,EACvB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,IAAI;CAoBR;AAGD,eAAO,MAAM,mBAAmB,qBAAoC,CAAA;AAGpE,eAAO,MAAM,uBAAuB,GAClC,SAAS,WAAW,EACpB,KAAK,MAAM,EACX,eAAe,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SACqC,CAAA;AAE5E,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,iCACD,CAAA;AAC1C,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,YAAyC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ComputationState as n } from "./reactive/types.js";
|
|
2
|
+
var P = Object.defineProperty, T = (t, e, s) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, u = (t, e, s) => T(t, typeof e != "symbol" ? e + "" : e, s);
|
|
3
|
+
let O = 0, D = 0, h = null, a = null, d = !1;
|
|
3
4
|
function I() {
|
|
4
5
|
return h;
|
|
5
6
|
}
|
|
@@ -11,7 +12,7 @@ function Q() {
|
|
|
11
12
|
}
|
|
12
13
|
class H {
|
|
13
14
|
constructor(e = null) {
|
|
14
|
-
|
|
15
|
+
u(this, "id"), u(this, "parent"), u(this, "context", /* @__PURE__ */ new Map()), u(this, "cleanups", []), u(this, "sources", /* @__PURE__ */ new Set()), u(this, "disposed", !1), this.id = ++D, this.parent = e;
|
|
15
16
|
}
|
|
16
17
|
dispose() {
|
|
17
18
|
if (!this.disposed) {
|
|
@@ -31,7 +32,7 @@ class H {
|
|
|
31
32
|
}
|
|
32
33
|
class V {
|
|
33
34
|
constructor(e, s = null) {
|
|
34
|
-
|
|
35
|
+
u(this, "id"), u(this, "owner"), u(this, "fn"), u(this, "sources", /* @__PURE__ */ new Set()), u(this, "observers", /* @__PURE__ */ new Set()), u(this, "state", n.Dirty), u(this, "value"), this.id = ++O, this.fn = e, this.owner = s, s && !s.disposed && s.sources.add(this);
|
|
35
36
|
}
|
|
36
37
|
execute() {
|
|
37
38
|
if (this.state === n.Disposed)
|
|
@@ -61,7 +62,7 @@ class V {
|
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function ce(t) {
|
|
65
66
|
const e = new H(a), s = a;
|
|
66
67
|
a = e;
|
|
67
68
|
try {
|
|
@@ -70,7 +71,7 @@ function le(t) {
|
|
|
70
71
|
a = s;
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function he(t, e) {
|
|
74
75
|
const s = a;
|
|
75
76
|
a = t;
|
|
76
77
|
try {
|
|
@@ -79,14 +80,14 @@ function ce(t, e) {
|
|
|
79
80
|
a = s;
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function fe() {
|
|
83
84
|
return a;
|
|
84
85
|
}
|
|
85
86
|
let C = null;
|
|
86
87
|
function B(t) {
|
|
87
88
|
C = t;
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function de(t) {
|
|
90
91
|
if (d)
|
|
91
92
|
return t();
|
|
92
93
|
const e = d;
|
|
@@ -98,7 +99,7 @@ function fe(t) {
|
|
|
98
99
|
d = e;
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
+
function pe(t) {
|
|
102
103
|
const e = h;
|
|
103
104
|
h = null;
|
|
104
105
|
try {
|
|
@@ -107,28 +108,28 @@ function de(t) {
|
|
|
107
108
|
h = e;
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
+
function me(t, e) {
|
|
111
112
|
const s = new V(t, e || a);
|
|
112
113
|
return s.execute(), s;
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
+
function ye() {
|
|
115
116
|
return {
|
|
116
117
|
computation: h,
|
|
117
118
|
batch: d
|
|
118
119
|
};
|
|
119
120
|
}
|
|
120
|
-
const
|
|
121
|
+
const ge = {
|
|
121
122
|
getCurrentComputation: () => h,
|
|
122
123
|
getCurrentOwner: () => a,
|
|
123
|
-
getComputationCount: () =>
|
|
124
|
-
getOwnerCount: () =>
|
|
124
|
+
getComputationCount: () => O,
|
|
125
|
+
getOwnerCount: () => D,
|
|
125
126
|
isBatching: () => d
|
|
126
127
|
};
|
|
127
|
-
var U = Object.defineProperty, W = (t, e, s) => e in t ? U(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s,
|
|
128
|
+
var U = Object.defineProperty, W = (t, e, s) => e in t ? U(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, q = (t, e, s) => W(t, typeof e != "symbol" ? e + "" : e, s);
|
|
128
129
|
let L = 0;
|
|
129
130
|
class G {
|
|
130
131
|
constructor(e) {
|
|
131
|
-
|
|
132
|
+
q(this, "id"), q(this, "observers", /* @__PURE__ */ new Set()), q(this, "_value"), this.id = ++L, this._value = e;
|
|
132
133
|
}
|
|
133
134
|
/**
|
|
134
135
|
* Get the current value and track dependency
|
|
@@ -178,9 +179,9 @@ class G {
|
|
|
178
179
|
const b = /* @__PURE__ */ new Set();
|
|
179
180
|
let _ = !1;
|
|
180
181
|
function J(t) {
|
|
181
|
-
b.add(t), !_ && !Q() && queueMicrotask(
|
|
182
|
+
b.add(t), !_ && !Q() && queueMicrotask(M);
|
|
182
183
|
}
|
|
183
|
-
function
|
|
184
|
+
function M() {
|
|
184
185
|
if (!_) {
|
|
185
186
|
_ = !0;
|
|
186
187
|
try {
|
|
@@ -207,10 +208,10 @@ function K(t) {
|
|
|
207
208
|
function ve(t) {
|
|
208
209
|
return typeof t == "function" && Symbol.for("tachui.signal") in t;
|
|
209
210
|
}
|
|
210
|
-
function
|
|
211
|
+
function be(t) {
|
|
211
212
|
return t[Symbol.for("tachui.signal")] || null;
|
|
212
213
|
}
|
|
213
|
-
B(
|
|
214
|
+
B(M);
|
|
214
215
|
const w = (t, e) => t === e, E = (t, e) => {
|
|
215
216
|
if (t === e) return !0;
|
|
216
217
|
if (t == null || e == null || typeof t != typeof e) return !1;
|
|
@@ -220,16 +221,16 @@ const w = (t, e) => t === e, E = (t, e) => {
|
|
|
220
221
|
const l = t, F = e;
|
|
221
222
|
return l.length !== F.length ? !1 : l.every((A, j) => E(A, F[j]));
|
|
222
223
|
}
|
|
223
|
-
const s = t, r = e, i = Object.keys(s),
|
|
224
|
-
return i.length !==
|
|
224
|
+
const s = t, r = e, i = Object.keys(s), o = Object.keys(r);
|
|
225
|
+
return i.length !== o.length ? !1 : i.every((l) => E(s[l], r[l]));
|
|
225
226
|
}
|
|
226
227
|
return !1;
|
|
227
|
-
},
|
|
228
|
+
}, _e = (t, e) => {
|
|
228
229
|
if (t === e) return !0;
|
|
229
230
|
if (typeof t != "object" || typeof e != "object" || t == null || e == null) return !1;
|
|
230
|
-
const s = t, r = e, i = Object.keys(s),
|
|
231
|
-
return i.length !==
|
|
232
|
-
},
|
|
231
|
+
const s = t, r = e, i = Object.keys(s), o = Object.keys(r);
|
|
232
|
+
return i.length !== o.length ? !1 : i.every((l) => s[l] === r[l]);
|
|
233
|
+
}, we = (t, e) => {
|
|
233
234
|
if (t === e) return !0;
|
|
234
235
|
if (t instanceof Date && e instanceof Date)
|
|
235
236
|
return t.getTime() === e.getTime();
|
|
@@ -248,32 +249,32 @@ const w = (t, e) => t === e, E = (t, e) => {
|
|
|
248
249
|
return !0;
|
|
249
250
|
}
|
|
250
251
|
return E(t, e);
|
|
251
|
-
},
|
|
252
|
+
}, Se = (t, e) => {
|
|
252
253
|
if (t === e) return !0;
|
|
253
254
|
try {
|
|
254
255
|
return JSON.stringify(t) === JSON.stringify(e);
|
|
255
256
|
} catch {
|
|
256
257
|
return t === e;
|
|
257
258
|
}
|
|
258
|
-
}, qe = (t, e = w) => (s, r) => e(t(s), t(r)),
|
|
259
|
+
}, qe = (t, e = w) => (s, r) => e(t(s), t(r)), Ce = (t = w) => (e, s) => e === s ? !0 : e.length !== s.length ? !1 : e.every((r, i) => t(r, s[i])), Ee = (t = w) => (e, s) => {
|
|
259
260
|
if (e === s) return !0;
|
|
260
261
|
if (e == null || s == null) return !1;
|
|
261
262
|
const r = Object.keys(e), i = Object.keys(s);
|
|
262
|
-
return r.length !== i.length ? !1 : r.every((
|
|
263
|
-
},
|
|
263
|
+
return r.length !== i.length ? !1 : r.every((o) => t(e[o], s[o]));
|
|
264
|
+
}, Fe = (...t) => (e, s) => t.every((r) => r(e, s)), Oe = (t, e) => (s, r) => {
|
|
264
265
|
const i = t(s, r);
|
|
265
266
|
return process.env.NODE_ENV === "development" && console.log(`[${e || "equals"}]`, { a: s, b: r, equal: i }), i;
|
|
266
267
|
};
|
|
267
|
-
var X = Object.defineProperty, Y = (t, e, s) => e in t ? X(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, c = (t, e, s) => Y(t, typeof e != "symbol" ? e + "" : e, s),
|
|
268
|
+
var X = Object.defineProperty, Y = (t, e, s) => e in t ? X(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, c = (t, e, s) => Y(t, typeof e != "symbol" ? e + "" : e, s), g = /* @__PURE__ */ ((t) => (t[t.Immediate = 0] = "Immediate", t[t.High = 1] = "High", t[t.Normal = 2] = "Normal", t[t.Low = 3] = "Low", t[t.Idle = 4] = "Idle", t))(g || {});
|
|
268
269
|
class Z extends Error {
|
|
269
270
|
constructor(e, s, r) {
|
|
270
271
|
super(e), this.cause = s, this.node = r, this.name = "ReactiveError";
|
|
271
272
|
}
|
|
272
273
|
}
|
|
273
|
-
const
|
|
274
|
+
const k = class m {
|
|
274
275
|
constructor() {
|
|
275
276
|
c(this, "updateQueues", /* @__PURE__ */ new Map()), c(this, "isFlushPending", !1), c(this, "isDestroyed", !1), c(this, "errorHandlers", /* @__PURE__ */ new Set()), c(this, "maxRetries", 3), c(this, "totalUpdateCycles", 0), c(this, "totalUpdateTime", 0), c(this, "errorCount", 0), c(this, "nodeRegistry", /* @__PURE__ */ new WeakSet());
|
|
276
|
-
for (const e of Object.values(
|
|
277
|
+
for (const e of Object.values(g))
|
|
277
278
|
typeof e == "number" && this.updateQueues.set(e, /* @__PURE__ */ new Set());
|
|
278
279
|
}
|
|
279
280
|
static getInstance() {
|
|
@@ -306,12 +307,12 @@ const M = class m {
|
|
|
306
307
|
if (!r || r.size === 0) continue;
|
|
307
308
|
const i = Array.from(r);
|
|
308
309
|
r.clear();
|
|
309
|
-
for (const
|
|
310
|
+
for (const o of i)
|
|
310
311
|
try {
|
|
311
|
-
await this.updateNodeWithRetry(
|
|
312
|
+
await this.updateNodeWithRetry(o);
|
|
312
313
|
} catch (l) {
|
|
313
314
|
this.handleReactiveError(
|
|
314
|
-
new Z(`Failed to update ${
|
|
315
|
+
new Z(`Failed to update ${o.type} node ${o.id}`, l, o)
|
|
315
316
|
);
|
|
316
317
|
}
|
|
317
318
|
if (this.hasHigherPriorityWork(s))
|
|
@@ -465,7 +466,7 @@ const M = class m {
|
|
|
465
466
|
getDebugInfo() {
|
|
466
467
|
const e = {};
|
|
467
468
|
for (const [s, r] of this.updateQueues)
|
|
468
|
-
e[
|
|
469
|
+
e[g[s]] = r.size;
|
|
469
470
|
return {
|
|
470
471
|
isFlushPending: this.isFlushPending,
|
|
471
472
|
isDestroyed: this.isDestroyed,
|
|
@@ -475,12 +476,12 @@ const M = class m {
|
|
|
475
476
|
};
|
|
476
477
|
}
|
|
477
478
|
};
|
|
478
|
-
c(
|
|
479
|
-
let De =
|
|
479
|
+
c(k, "instance", null);
|
|
480
|
+
let De = k;
|
|
480
481
|
var ee = Object.defineProperty, te = (t, e, s) => e in t ? ee(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, p = (t, e, s) => te(t, typeof e != "symbol" ? e + "" : e, s);
|
|
481
482
|
class se extends V {
|
|
482
483
|
constructor(e, s = {}, r = N()) {
|
|
483
|
-
super(e, r), p(this, "type", "computed"), p(this, "priority"), p(this, "_hasValue", !1), p(this, "_error", null), p(this, "equalsFn"), p(this, "options"), this.priority = s.priority ??
|
|
484
|
+
super(e, r), p(this, "type", "computed"), p(this, "priority"), p(this, "_hasValue", !1), p(this, "_error", null), p(this, "equalsFn"), p(this, "options"), this.priority = s.priority ?? g.Normal, this.equalsFn = s.equals ?? w, this.options = s;
|
|
484
485
|
}
|
|
485
486
|
/**
|
|
486
487
|
* Get the computed value, tracking dependency and lazily computing
|
|
@@ -549,7 +550,7 @@ class se extends V {
|
|
|
549
550
|
state: this.state,
|
|
550
551
|
sourceCount: this.sources.size,
|
|
551
552
|
observerCount: this.observers.size,
|
|
552
|
-
priority:
|
|
553
|
+
priority: g[this.priority],
|
|
553
554
|
debugName: this.options.debugName,
|
|
554
555
|
equalsFn: this.equalsFn.name || "anonymous"
|
|
555
556
|
};
|
|
@@ -558,24 +559,24 @@ class se extends V {
|
|
|
558
559
|
return `Computed(${this.options.debugName || this.id}): ${this._hasValue ? this.value : "no value"}`;
|
|
559
560
|
}
|
|
560
561
|
}
|
|
561
|
-
function
|
|
562
|
+
function v(t, e) {
|
|
562
563
|
const s = new se(t, e), r = s.getValue.bind(s);
|
|
563
564
|
return r.peek = s.peek.bind(s), Object.defineProperty(r, Symbol.for("tachui.computed"), {
|
|
564
565
|
value: s,
|
|
565
566
|
enumerable: !1
|
|
566
567
|
}), r;
|
|
567
568
|
}
|
|
568
|
-
function
|
|
569
|
-
return
|
|
569
|
+
function Ie(t, e) {
|
|
570
|
+
return v(t, e);
|
|
570
571
|
}
|
|
571
|
-
function
|
|
572
|
+
function Ne(t) {
|
|
572
573
|
return typeof t == "function" && Symbol.for("tachui.computed") in t;
|
|
573
574
|
}
|
|
574
|
-
function
|
|
575
|
+
function Ve(t) {
|
|
575
576
|
return t[Symbol.for("tachui.computed")] || null;
|
|
576
577
|
}
|
|
577
|
-
function
|
|
578
|
-
return
|
|
578
|
+
function Me(t, e) {
|
|
579
|
+
return v(e ? () => {
|
|
579
580
|
for (const r of e)
|
|
580
581
|
r();
|
|
581
582
|
return t();
|
|
@@ -583,38 +584,38 @@ function Ve(t, e) {
|
|
|
583
584
|
}
|
|
584
585
|
function ke(t, e) {
|
|
585
586
|
let s, r = !1;
|
|
586
|
-
return
|
|
587
|
+
return v(() => (e() && (s = t(), r = !0), r || (s = t(), r = !0), s));
|
|
587
588
|
}
|
|
588
589
|
const [x, re] = K("light");
|
|
589
|
-
function
|
|
590
|
+
function xe() {
|
|
590
591
|
const t = x();
|
|
591
592
|
return t === "system" ? $() : t;
|
|
592
593
|
}
|
|
593
|
-
function
|
|
594
|
+
function $e(t) {
|
|
594
595
|
re(t);
|
|
595
596
|
}
|
|
596
|
-
const ie =
|
|
597
|
+
const ie = v(() => {
|
|
597
598
|
const t = x();
|
|
598
599
|
return t === "system" ? $() : t;
|
|
599
600
|
});
|
|
600
|
-
function
|
|
601
|
+
function ze() {
|
|
601
602
|
return ie;
|
|
602
603
|
}
|
|
603
604
|
function $() {
|
|
604
605
|
return typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
605
606
|
}
|
|
606
|
-
function
|
|
607
|
+
function S(t) {
|
|
607
608
|
const e = N();
|
|
608
609
|
e && !e.disposed ? e.cleanups.push(t) : __DEV__ && console.warn("onCleanup called outside of reactive context");
|
|
609
610
|
}
|
|
610
|
-
function
|
|
611
|
+
function Re(t) {
|
|
611
612
|
"dispose" in t && typeof t.dispose == "function" && t.dispose();
|
|
612
613
|
}
|
|
613
|
-
function
|
|
614
|
+
function Ae(t) {
|
|
614
615
|
const [e, s] = t();
|
|
615
|
-
return
|
|
616
|
+
return S(s), e;
|
|
616
617
|
}
|
|
617
|
-
function
|
|
618
|
+
function je() {
|
|
618
619
|
const t = [];
|
|
619
620
|
let e = !1;
|
|
620
621
|
return {
|
|
@@ -642,19 +643,19 @@ function Ae() {
|
|
|
642
643
|
}
|
|
643
644
|
};
|
|
644
645
|
}
|
|
645
|
-
function
|
|
646
|
+
function Pe(t, e) {
|
|
646
647
|
const s = setTimeout(t, e);
|
|
647
|
-
return
|
|
648
|
+
return S(() => clearTimeout(s)), s;
|
|
648
649
|
}
|
|
649
|
-
function
|
|
650
|
+
function Te(t, e) {
|
|
650
651
|
const s = setInterval(t, e);
|
|
651
|
-
return
|
|
652
|
+
return S(() => clearInterval(s)), s;
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
-
t.addEventListener(e, s, r),
|
|
654
|
+
function Qe(t, e, s, r) {
|
|
655
|
+
t.addEventListener(e, s, r), S(() => t.removeEventListener(e, s, r));
|
|
655
656
|
}
|
|
656
657
|
typeof globalThis.__DEV__ > "u" && (globalThis.__DEV__ = process.env.NODE_ENV !== "production");
|
|
657
|
-
var ne = Object.defineProperty,
|
|
658
|
+
var ne = Object.defineProperty, oe = (t, e, s) => e in t ? ne(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, y = (t, e, s) => oe(t, typeof e != "symbol" ? e + "" : e, s);
|
|
658
659
|
class z {
|
|
659
660
|
constructor() {
|
|
660
661
|
y(this, "pending", /* @__PURE__ */ new Set()), y(this, "isFlushScheduled", !1);
|
|
@@ -678,7 +679,7 @@ class z {
|
|
|
678
679
|
this.pending.size > 0 && (this.isFlushScheduled = !0, queueMicrotask(() => this.flush()));
|
|
679
680
|
}
|
|
680
681
|
}
|
|
681
|
-
class
|
|
682
|
+
class ue {
|
|
682
683
|
schedule(e) {
|
|
683
684
|
try {
|
|
684
685
|
e();
|
|
@@ -716,13 +717,13 @@ class ae {
|
|
|
716
717
|
]) {
|
|
717
718
|
const s = this.queues.get(e);
|
|
718
719
|
if (!s || s.size === 0) continue;
|
|
719
|
-
const r = Array.from(s).sort((i,
|
|
720
|
+
const r = Array.from(s).sort((i, o) => i.id - o.id);
|
|
720
721
|
s.clear();
|
|
721
722
|
for (const i of r)
|
|
722
723
|
try {
|
|
723
724
|
i.fn();
|
|
724
|
-
} catch (
|
|
725
|
-
console.error(`Error in priority ${e} task:`,
|
|
725
|
+
} catch (o) {
|
|
726
|
+
console.error(`Error in priority ${e} task:`, o);
|
|
726
727
|
}
|
|
727
728
|
if (s.size === 0 && this.hasMoreTasks()) {
|
|
728
729
|
queueMicrotask(() => this.flush());
|
|
@@ -737,78 +738,77 @@ class ae {
|
|
|
737
738
|
}
|
|
738
739
|
}
|
|
739
740
|
let f = new z();
|
|
740
|
-
function
|
|
741
|
+
function He() {
|
|
741
742
|
return f;
|
|
742
743
|
}
|
|
743
|
-
function
|
|
744
|
+
function Be(t) {
|
|
744
745
|
f = t;
|
|
745
746
|
}
|
|
746
|
-
function
|
|
747
|
-
t ? f = new z() : f = new
|
|
747
|
+
function Ue(t = !0) {
|
|
748
|
+
t ? f = new z() : f = new ue();
|
|
748
749
|
}
|
|
749
|
-
function
|
|
750
|
+
function We(t) {
|
|
750
751
|
f.schedule(t);
|
|
751
752
|
}
|
|
752
|
-
function
|
|
753
|
+
function Le(t, e) {
|
|
753
754
|
f instanceof ae ? f.schedule(t, e) : f.schedule(t);
|
|
754
755
|
}
|
|
755
|
-
function
|
|
756
|
+
function Ge(t) {
|
|
756
757
|
typeof requestIdleCallback < "u" ? requestIdleCallback(t) : setTimeout(t, 0);
|
|
757
758
|
}
|
|
758
759
|
export {
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
Z,
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
Ae as
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
ge as g,
|
|
760
|
+
ge as $,
|
|
761
|
+
Ue as A,
|
|
762
|
+
He as B,
|
|
763
|
+
Ge as C,
|
|
764
|
+
We as D,
|
|
765
|
+
Le as E,
|
|
766
|
+
Be as F,
|
|
767
|
+
K as G,
|
|
768
|
+
M as H,
|
|
769
|
+
be as I,
|
|
770
|
+
ve as J,
|
|
771
|
+
$ as K,
|
|
772
|
+
xe as L,
|
|
773
|
+
ze as M,
|
|
774
|
+
$e as N,
|
|
775
|
+
De as O,
|
|
776
|
+
Ve as P,
|
|
777
|
+
Me as Q,
|
|
778
|
+
Z as R,
|
|
779
|
+
ke as S,
|
|
780
|
+
R as T,
|
|
781
|
+
g as U,
|
|
782
|
+
I as V,
|
|
783
|
+
N as W,
|
|
784
|
+
Q as X,
|
|
785
|
+
V as Y,
|
|
786
|
+
B as Z,
|
|
787
|
+
me as _,
|
|
788
|
+
Qe as a,
|
|
789
|
+
Te as b,
|
|
790
|
+
je as c,
|
|
791
|
+
Ae as d,
|
|
792
|
+
Pe as e,
|
|
793
|
+
Re as f,
|
|
794
|
+
v as g,
|
|
795
795
|
Ie as h,
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
796
|
+
Ne as i,
|
|
797
|
+
de as j,
|
|
798
|
+
ce as k,
|
|
799
|
+
fe as l,
|
|
800
|
+
ye as m,
|
|
801
|
+
Fe as n,
|
|
802
|
+
S as o,
|
|
803
|
+
Ce as p,
|
|
804
|
+
Ee as q,
|
|
805
|
+
he as r,
|
|
806
|
+
qe as s,
|
|
807
|
+
Oe as t,
|
|
808
|
+
pe as u,
|
|
809
|
+
E as v,
|
|
810
|
+
w,
|
|
811
|
+
Se as x,
|
|
812
|
+
_e as y,
|
|
813
|
+
we as z
|
|
814
814
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build-Time Validation Stub - Lightweight Production Version
|
|
3
|
+
*
|
|
4
|
+
* Minimal build-time validation for production builds.
|
|
5
|
+
* Full implementation moved to @tachui/devtools package.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Lightweight build-time detection stub
|
|
9
|
+
*/
|
|
10
|
+
export declare function isDevelopmentEnvironment(): boolean;
|
|
11
|
+
export declare function isCIEnvironment(): boolean;
|
|
12
|
+
export declare function shouldEnableValidation(): boolean;
|
|
13
|
+
export declare function detectBuildEnvironment(): string;
|
|
14
|
+
export declare function getPrimaryBuildTool(): string;
|
|
15
|
+
export declare function getEnvironmentConfig(): any;
|
|
16
|
+
/**
|
|
17
|
+
* Build-time development tools stub
|
|
18
|
+
*/
|
|
19
|
+
export declare const BuildTimeDevTools: {
|
|
20
|
+
test: () => void;
|
|
21
|
+
getStats: () => {
|
|
22
|
+
environment: {
|
|
23
|
+
isDevelopment: boolean;
|
|
24
|
+
isCI: boolean;
|
|
25
|
+
shouldEnable: boolean;
|
|
26
|
+
};
|
|
27
|
+
buildTool: string;
|
|
28
|
+
available: boolean;
|
|
29
|
+
movedTo: string;
|
|
30
|
+
};
|
|
31
|
+
initialize: () => void;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=build-time-stub.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-time-stub.d.ts","sourceRoot":"","sources":["../../src/validation/build-time-stub.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAIlD;AAED,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAE/C;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,wBAAgB,oBAAoB,IAAI,GAAG,CAM1C;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAqB7B,CAAA"}
|