@lipsjs/lips 0.0.13 → 0.0.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.
- package/dist/lips.min.js +2 -2
- package/dist/lips.min.js.map +10 -9
- package/dist/test.component.min.js +280 -65
- package/dist/test.component.min.js.map +11 -12
- package/dist/test.stress.min.js +8 -8
- package/dist/test.stress.min.js.map +10 -9
- package/dist/types/syntax/async.d.ts +7 -8
- package/dist/types/syntax/for.d.ts +9 -4
- package/dist/types/types.d.ts +7 -3
- package/dist/types/utils.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Declaration, Handler, Metavars, MeshRenderer, MeshTemplate
|
|
1
|
+
import type { Declaration, Handler, Metavars, MeshRenderer, MeshTemplate } from '../types';
|
|
2
2
|
export interface Input {
|
|
3
3
|
await: Promise<any>;
|
|
4
4
|
then: MeshTemplate;
|
|
@@ -6,12 +6,11 @@ export interface Input {
|
|
|
6
6
|
loading?: MeshTemplate;
|
|
7
7
|
renderer: MeshRenderer;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
export interface Static {
|
|
10
|
+
initialized: boolean;
|
|
11
|
+
finalized: boolean;
|
|
12
|
+
prevRenderer: MeshRenderer | null;
|
|
12
13
|
}
|
|
13
14
|
export declare const declaration: Declaration;
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const handler: Handler<Metavars<Input,
|
|
16
|
-
declare const _default: "<{state.renderer} #=state.props/>";
|
|
17
|
-
export default _default;
|
|
15
|
+
export declare const _static: Static;
|
|
16
|
+
export declare const handler: Handler<Metavars<Input, {}, Static>>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type { Declaration, Handler, Metavars, MeshRenderer } from '../types';
|
|
1
|
+
import type { Declaration, Handler, Metavars, MeshRenderer, VariableSet, FragmentBoundaries } from '../types';
|
|
2
|
+
type ArgvTrack = {
|
|
3
|
+
argvalues: VariableSet;
|
|
4
|
+
boundaries: FragmentBoundaries;
|
|
5
|
+
};
|
|
2
6
|
export interface Input {
|
|
3
7
|
in: Record<string, any> | any[];
|
|
4
8
|
from?: number;
|
|
@@ -10,11 +14,12 @@ export interface State {
|
|
|
10
14
|
}
|
|
11
15
|
export interface Static {
|
|
12
16
|
lastIn: any;
|
|
17
|
+
argvlist: ArgvTrack[] | null;
|
|
18
|
+
initialized: boolean;
|
|
19
|
+
prevRenderer: MeshRenderer | null;
|
|
13
20
|
processingBatch: boolean;
|
|
14
21
|
}
|
|
15
22
|
export declare const declaration: Declaration;
|
|
16
|
-
export declare const state: State;
|
|
17
23
|
export declare const _static: Static;
|
|
18
24
|
export declare const handler: Handler<Metavars<Input, State, Static>>;
|
|
19
|
-
|
|
20
|
-
export default _default;
|
|
25
|
+
export {};
|
package/dist/types/types.d.ts
CHANGED
|
@@ -186,10 +186,14 @@ export type FragmentBoundaries = {
|
|
|
186
186
|
export interface MeshRenderer {
|
|
187
187
|
path: string | null;
|
|
188
188
|
argv: string[];
|
|
189
|
-
mesh(argvalues?: VariableSet, scope?: VariableSet): Cash | null;
|
|
190
|
-
update(deps: string[], argvalues: VariableSet, scope: VariableSet, boundaries?: FragmentBoundaries): void;
|
|
189
|
+
mesh(argvalues?: VariableSet, scope?: VariableSet, suffix?: string): Cash | null;
|
|
190
|
+
update(deps: string[], argvalues: VariableSet, scope: VariableSet, boundaries?: FragmentBoundaries, suffix?: string): void;
|
|
191
|
+
cleanup(boundaries?: FragmentBoundaries, suffix?: string | true): void;
|
|
192
|
+
demarcate($log: Cash, sufix: string): {
|
|
193
|
+
$partial: Cash;
|
|
194
|
+
boundaries: FragmentBoundaries;
|
|
195
|
+
};
|
|
191
196
|
fill($log: Cash, boundaries?: FragmentBoundaries): void;
|
|
192
|
-
cleanup(boundaries?: FragmentBoundaries): void;
|
|
193
197
|
}
|
|
194
198
|
export type MeshTemplate = Record<string, any> & {
|
|
195
199
|
renderer: MeshRenderer;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -8,11 +8,12 @@ export declare const ARGUMENT_VAR_PATTERN: RegExp;
|
|
|
8
8
|
export declare const INTERPOLATE_PATTERN: RegExp;
|
|
9
9
|
export declare const META_ATTRIBUTES: string[];
|
|
10
10
|
export declare const LAYOUT_AFFECTING_ATTRS: string[];
|
|
11
|
-
export declare const ROOT_PREFIX = ":r";
|
|
12
11
|
export declare const NODE_PREFIX = ":n";
|
|
12
|
+
export declare const PARTIAL_ROOT_PREFIX = ":pr";
|
|
13
13
|
export declare const MACRO_PREFIX = "m";
|
|
14
14
|
export declare const COMPONENT_PREFIX = "c";
|
|
15
15
|
export declare const SYNTAX_COMPONENT_PREFIX = "x";
|
|
16
|
+
export declare const DEFAULT_PARTIAL_PATH_SLOT = "*";
|
|
16
17
|
/**
|
|
17
18
|
* Constant for max update type priorities
|
|
18
19
|
*/
|