@xaendar/core 0.9.25 → 0.9.27

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/dist/signals.d.ts CHANGED
@@ -10,7 +10,7 @@ import { SignalOptions } from '../../../../../schematics/packages/signals/src/pu
10
10
  *
11
11
  * @template Value - The type of the computed value. Defaults to `any`.
12
12
  */
13
- declare type Computed<Value = any> = Signal.Computed<Value> & {
13
+ export declare type Computed<Value = any> = Signal.Computed<Value> & {
14
14
  /**
15
15
  * Reads the current computed value, recomputing it if any dependency changed.
16
16
  *
@@ -97,7 +97,7 @@ export declare function input<ActualValue = unknown, IncomingValue = ActualValue
97
97
  * @template ActualValue - The internal type stored by the signal. Defaults to `unknown`.
98
98
  * @template IncomingValue - The raw type received from outside. Defaults to `ActualValue`.
99
99
  */
100
- declare type InputSignal<ActualValue = unknown, IncomingValue = ActualValue> = Omit<Signal.State<ActualValue>, 'set'> & {
100
+ export declare type InputSignal<ActualValue = unknown, IncomingValue = ActualValue> = Omit<Signal.State<ActualValue>, 'set'> & {
101
101
  /**
102
102
  * Reads the current value of the input signal.
103
103
  *
@@ -123,7 +123,7 @@ declare type InputSignal<ActualValue = unknown, IncomingValue = ActualValue> = O
123
123
  * @template ActualValue - The internal type stored by the signal. Defaults to `unknown`.
124
124
  * @template IncomingValue - The raw type received from outside (e.g. from an attribute). Defaults to `ActualValue`.
125
125
  */
126
- declare type InputSignalOptions<ActualValue = unknown, IncomingValue = ActualValue> = SignalOptions<ActualValue> & {
126
+ export declare type InputSignalOptions<ActualValue = unknown, IncomingValue = ActualValue> = SignalOptions<ActualValue> & {
127
127
  /**
128
128
  * Optional function to transform the incoming value before it is stored.
129
129
  *
@@ -169,6 +169,7 @@ declare type Signal_2<Value = any> = Signal.State<Value> & {
169
169
  */
170
170
  update(updater: (prev: Value) => Value): void;
171
171
  };
172
+ export { Signal_2 as Signal }
172
173
 
173
174
  /**
174
175
  * Executes a function without tracking any dependencies.
@@ -86,23 +86,6 @@ declare type Block = {
86
86
  block: Function_2<[HTMLElement, Context, Node | null], Context>;
87
87
  };
88
88
 
89
- /**
90
- * A read-only reactive value derived from other signals.
91
- *
92
- * Wraps {@link Signal.Computed} and is also callable as a function to read the
93
- * current computed value.
94
- *
95
- * @template Value - The type of the computed value. Defaults to `any`.
96
- */
97
- export declare type Computed<Value = any> = Signal.Computed<Value> & {
98
- /**
99
- * Reads the current computed value, recomputing it if any dependency changed.
100
- *
101
- * @returns The current value of type `Value`.
102
- */
103
- (): Value;
104
- };
105
-
106
89
  /**
107
90
  * Tracks identifier scope during run time template function execution
108
91
  * Each `Context` instance represents one lexical scope (e.g. a `@for` loop body)
@@ -345,7 +328,7 @@ export declare function _if(parentNode: HTMLElement, parentContext: Context, blo
345
328
  * @template ActualValue - The internal type stored by the signal. Defaults to `unknown`.
346
329
  * @template IncomingValue - The raw type received from outside. Defaults to `ActualValue`.
347
330
  */
348
- export declare type InputSignal<ActualValue = unknown, IncomingValue = ActualValue> = Omit<Signal.State<ActualValue>, 'set'> & {
331
+ declare type InputSignal<ActualValue = unknown, IncomingValue = ActualValue> = Omit<Signal.State<ActualValue>, 'set'> & {
349
332
  /**
350
333
  * Reads the current value of the input signal.
351
334
  *
@@ -371,7 +354,7 @@ export declare type InputSignal<ActualValue = unknown, IncomingValue = ActualVal
371
354
  * @template ActualValue - The internal type stored by the signal. Defaults to `unknown`.
372
355
  * @template IncomingValue - The raw type received from outside (e.g. from an attribute). Defaults to `ActualValue`.
373
356
  */
374
- export declare type InputSignalOptions<ActualValue = unknown, IncomingValue = ActualValue> = SignalOptions<ActualValue> & {
357
+ declare type InputSignalOptions<ActualValue = unknown, IncomingValue = ActualValue> = SignalOptions<ActualValue> & {
375
358
  /**
376
359
  * Optional function to transform the incoming value before it is stored.
377
360
  *
@@ -582,30 +565,6 @@ export declare function _renderLiteralText(parentNode: HTMLElement, context: Con
582
565
  */
583
566
  export declare function _renderText(parentNode: HTMLElement, context: Context, textFn: NoArgsFunction<string>): void;
584
567
 
585
- /**
586
- * A writable reactive value.
587
- *
588
- * Wraps {@link Signal.State} and is also callable as a function to set a new
589
- * value directly.
590
- *
591
- * @template Value - The type of the stored value. Defaults to `any`.
592
- */
593
- declare type Signal_2<Value = any> = Signal.State<Value> & {
594
- /**
595
- * Get the current value of the signal.
596
- *
597
- * @returns The current value of the signal.
598
- */
599
- (): Value;
600
- /**
601
- * Updates the signal value based on its previous value.
602
- *
603
- * @param updater - Function receiving the previous value and returning the next one.
604
- */
605
- update(updater: (prev: Value) => Value): void;
606
- };
607
- export { Signal_2 as Signal }
608
-
609
568
  /**
610
569
  * Creates a reactive switch/case structure by converting it into an if/else-if chain
611
570
  * and delegating to {@link _if}.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaendar/core",
3
- "version": "0.9.25",
3
+ "version": "0.9.27",
4
4
  "description": "A library containing core utils such as webcomponent base classes and theming support",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@xaendar/signals": "0.9.25",
26
- "@xaendar/types": "0.9.25"
25
+ "@xaendar/signals": "0.9.27",
26
+ "@xaendar/types": "0.9.27"
27
27
  }
28
28
  }