inital
This commit is contained in:
12
node_modules/liquidjs/dist/template/filter-impl-options.d.ts
generated
vendored
Normal file
12
node_modules/liquidjs/dist/template/filter-impl-options.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { Context } from '../context';
|
||||
import type { Liquid } from '../liquid';
|
||||
export interface FilterImpl {
|
||||
context: Context;
|
||||
liquid: Liquid;
|
||||
}
|
||||
export type FilterHandler = (this: FilterImpl, value: any, ...args: any[]) => any;
|
||||
export interface FilterOptions {
|
||||
handler: FilterHandler;
|
||||
raw: boolean;
|
||||
}
|
||||
export type FilterImplOptions = FilterHandler | FilterOptions;
|
13
node_modules/liquidjs/dist/template/filter.d.ts
generated
vendored
Normal file
13
node_modules/liquidjs/dist/template/filter.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Context } from '../context';
|
||||
import { FilterImplOptions } from './filter-impl-options';
|
||||
import { FilterArg } from '../parser/filter-arg';
|
||||
import { Liquid } from '../liquid';
|
||||
export declare class Filter {
|
||||
name: string;
|
||||
args: FilterArg[];
|
||||
readonly raw: boolean;
|
||||
private handler;
|
||||
private liquid;
|
||||
constructor(name: string, options: FilterImplOptions | undefined, args: FilterArg[], liquid: Liquid);
|
||||
render(value: any, context: Context): IterableIterator<unknown>;
|
||||
}
|
1
node_modules/liquidjs/dist/template/filter.spec.d.ts
generated
vendored
Normal file
1
node_modules/liquidjs/dist/template/filter.spec.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
17
node_modules/liquidjs/dist/template/hash.d.ts
generated
vendored
Normal file
17
node_modules/liquidjs/dist/template/hash.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Context } from '../context/context';
|
||||
import { Token } from '../tokens/token';
|
||||
type HashValueTokens = Record<string, Token | undefined>;
|
||||
/**
|
||||
* Key-Value Pairs Representing Tag Arguments
|
||||
* Example:
|
||||
* For the markup `, foo:'bar', coo:2 reversed %}`,
|
||||
* hash['foo'] === 'bar'
|
||||
* hash['coo'] === 2
|
||||
* hash['reversed'] === undefined
|
||||
*/
|
||||
export declare class Hash {
|
||||
hash: HashValueTokens;
|
||||
constructor(markup: string, jekyllStyle?: boolean | string);
|
||||
render(ctx: Context): Generator<unknown, Record<string, any>, unknown>;
|
||||
}
|
||||
export {};
|
1
node_modules/liquidjs/dist/template/hash.spec.d.ts
generated
vendored
Normal file
1
node_modules/liquidjs/dist/template/hash.spec.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
9
node_modules/liquidjs/dist/template/html.d.ts
generated
vendored
Normal file
9
node_modules/liquidjs/dist/template/html.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { TemplateImpl, Template } from '../template';
|
||||
import { HTMLToken } from '../tokens';
|
||||
import { Context } from '../context';
|
||||
import { Emitter } from '../emitters';
|
||||
export declare class HTML extends TemplateImpl<HTMLToken> implements Template {
|
||||
private str;
|
||||
constructor(token: HTMLToken);
|
||||
render(ctx: Context, emitter: Emitter): IterableIterator<void>;
|
||||
}
|
10
node_modules/liquidjs/dist/template/index.d.ts
generated
vendored
Normal file
10
node_modules/liquidjs/dist/template/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export * from './template';
|
||||
export * from './template-impl';
|
||||
export * from './tag';
|
||||
export * from './tag-options-adapter';
|
||||
export * from './filter';
|
||||
export * from './filter-impl-options';
|
||||
export * from './hash';
|
||||
export * from './value';
|
||||
export * from './output';
|
||||
export * from './html';
|
11
node_modules/liquidjs/dist/template/output.d.ts
generated
vendored
Normal file
11
node_modules/liquidjs/dist/template/output.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Value } from './value';
|
||||
import { Template, TemplateImpl } from '../template';
|
||||
import { Context } from '../context/context';
|
||||
import { Emitter } from '../emitters/emitter';
|
||||
import { OutputToken } from '../tokens/output-token';
|
||||
import { Liquid } from '../liquid';
|
||||
export declare class Output extends TemplateImpl<OutputToken> implements Template {
|
||||
value: Value;
|
||||
constructor(token: OutputToken, liquid: Liquid);
|
||||
render(ctx: Context, emitter: Emitter): IterableIterator<unknown>;
|
||||
}
|
1
node_modules/liquidjs/dist/template/output.spec.d.ts
generated
vendored
Normal file
1
node_modules/liquidjs/dist/template/output.spec.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
10
node_modules/liquidjs/dist/template/tag-options-adapter.d.ts
generated
vendored
Normal file
10
node_modules/liquidjs/dist/template/tag-options-adapter.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Tag, TagClass, TagRenderReturn } from './tag';
|
||||
import { TagToken, TopLevelToken } from '../tokens';
|
||||
import { Emitter } from '../emitters';
|
||||
import { Context } from '../context';
|
||||
export interface TagImplOptions {
|
||||
[key: string]: any;
|
||||
parse?: (this: Tag & TagImplOptions, token: TagToken, remainingTokens: TopLevelToken[]) => void;
|
||||
render: (this: Tag & TagImplOptions, ctx: Context, emitter: Emitter, hash: Record<string, any>) => TagRenderReturn;
|
||||
}
|
||||
export declare function createTagClass(options: TagImplOptions): TagClass;
|
18
node_modules/liquidjs/dist/template/tag.d.ts
generated
vendored
Normal file
18
node_modules/liquidjs/dist/template/tag.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { TemplateImpl } from './template-impl';
|
||||
import type { Emitter } from '../emitters/emitter';
|
||||
import type { Parser, Tokenizer } from '../parser';
|
||||
import type { Context } from '../context/context';
|
||||
import type { TopLevelToken, TagToken } from '../tokens';
|
||||
import type { Template } from './template';
|
||||
import type { Liquid } from '../liquid';
|
||||
export type TagRenderReturn = Generator<unknown, unknown, unknown> | Promise<unknown> | unknown;
|
||||
export declare abstract class Tag extends TemplateImpl<TagToken> implements Template {
|
||||
name: string;
|
||||
liquid: Liquid;
|
||||
protected tokenizer: Tokenizer;
|
||||
constructor(token: TagToken, remainTokens: TopLevelToken[], liquid: Liquid);
|
||||
abstract render(ctx: Context, emitter: Emitter): TagRenderReturn;
|
||||
}
|
||||
export interface TagClass {
|
||||
new (token: TagToken, tokens: TopLevelToken[], liquid: Liquid, parser: Parser): Tag;
|
||||
}
|
4
node_modules/liquidjs/dist/template/template-impl.d.ts
generated
vendored
Normal file
4
node_modules/liquidjs/dist/template/template-impl.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export declare abstract class TemplateImpl<T> {
|
||||
token: T;
|
||||
constructor(token: T);
|
||||
}
|
7
node_modules/liquidjs/dist/template/template.d.ts
generated
vendored
Normal file
7
node_modules/liquidjs/dist/template/template.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Context } from '../context/context';
|
||||
import { Token } from '../tokens/token';
|
||||
import { Emitter } from '../emitters/emitter';
|
||||
export interface Template {
|
||||
token: Token;
|
||||
render(ctx: Context, emitter: Emitter): any;
|
||||
}
|
15
node_modules/liquidjs/dist/template/value.d.ts
generated
vendored
Normal file
15
node_modules/liquidjs/dist/template/value.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Filter } from './filter';
|
||||
import { Expression } from '../render';
|
||||
import type { FilteredValueToken } from '../tokens';
|
||||
import type { Liquid } from '../liquid';
|
||||
import type { Context } from '../context';
|
||||
export declare class Value {
|
||||
readonly filters: Filter[];
|
||||
readonly initial: Expression;
|
||||
/**
|
||||
* @param str the value to be valuated, eg.: "foobar" | truncate: 3
|
||||
*/
|
||||
constructor(input: string | FilteredValueToken, liquid: Liquid);
|
||||
value(ctx: Context, lenient?: boolean): Generator<unknown, unknown, unknown>;
|
||||
private getFilter;
|
||||
}
|
1
node_modules/liquidjs/dist/template/value.spec.d.ts
generated
vendored
Normal file
1
node_modules/liquidjs/dist/template/value.spec.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
Reference in New Issue
Block a user