This commit is contained in:
2024-11-03 17:16:20 +01:00
commit fd6412d6f2
8090 changed files with 778406 additions and 0 deletions

4
node_modules/liquidjs/dist/context/block-mode.d.ts generated vendored Normal file
View File

@@ -0,0 +1,4 @@
export declare enum BlockMode {
OUTPUT = 0,
STORE = 1
}

61
node_modules/liquidjs/dist/context/context.d.ts generated vendored Normal file
View File

@@ -0,0 +1,61 @@
import { NormalizedFullOptions, RenderOptions } from '../liquid-options';
import { Scope } from './scope';
import { Limiter } from '../util';
type PropertyKey = string | number;
export declare class Context {
/**
* insert a Context-level empty scope,
* for tags like `{% capture %}` `{% assign %}` to operate
*/
private scopes;
private registers;
/**
* user passed in scope
* `{% increment %}`, `{% decrement %}` changes this scope,
* whereas `{% capture %}`, `{% assign %}` only hide this scope
*/
environments: Scope;
/**
* global scope used as fallback for missing variables
*/
globals: Scope;
sync: boolean;
/**
* The normalized liquid options object
*/
opts: NormalizedFullOptions;
/**
* Throw when accessing undefined variable?
*/
strictVariables: boolean;
ownPropertyOnly: boolean;
memoryLimit: Limiter;
renderLimit: Limiter;
constructor(env?: object, opts?: NormalizedFullOptions, renderOptions?: RenderOptions, { memoryLimit, renderLimit }?: {
[key: string]: Limiter;
});
getRegister(key: string): any;
setRegister(key: string, value: any): any;
saveRegister(...keys: string[]): [string, any][];
restoreRegister(keyValues: [string, any][]): void;
getAll(): Scope;
/**
* @deprecated use `_get()` or `getSync()` instead
*/
get(paths: PropertyKey[]): unknown;
getSync(paths: PropertyKey[]): unknown;
_get(paths: PropertyKey[]): IterableIterator<unknown>;
/**
* @deprecated use `_get()` instead
*/
getFromScope(scope: unknown, paths: PropertyKey[] | string): IterableIterator<unknown>;
_getFromScope(scope: unknown, paths: PropertyKey[] | string, strictVariables?: boolean): IterableIterator<unknown>;
push(ctx: object): number;
pop(): Scope | undefined;
bottom(): Scope;
spawn(scope?: {}): Context;
private findScope;
}
export declare function readProperty(obj: Scope, key: PropertyKey, ownPropertyOnly: boolean): any;
export declare function readJSProperty(obj: Scope, key: PropertyKey, ownPropertyOnly: boolean): any;
export {};

1
node_modules/liquidjs/dist/context/context.spec.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export {};

3
node_modules/liquidjs/dist/context/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
export * from './context';
export * from './scope';
export * from './block-mode';

6
node_modules/liquidjs/dist/context/scope.d.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
import { Drop } from '../drop/drop';
interface ScopeObject extends Record<string, any> {
toLiquid?: () => any;
}
export type Scope = ScopeObject | Drop;
export {};