@collie-lang/compiler 1.3.3 → 1.4.0
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 +3 -3
- package/dist/index.cjs +841 -1200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +841 -1200
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NormalizedCollieDialectOptions } from '@collie-lang/config';
|
|
2
|
-
export { CollieCompilerOptions, CollieConfig, CollieCssOptions, CollieCssStrategy, CollieDiagnosticLevel, CollieDialectOptions,
|
|
2
|
+
export { CollieCompilerOptions, CollieConfig, CollieCssOptions, CollieCssStrategy, CollieDiagnosticLevel, CollieDialectOptions, CollieDialectTokenKind, CollieDialectTokenRule, CollieDialectTokens, CollieEditorOptions, CollieFeatureOptions, CollieProjectConfig, HtmlProjectOptions, NormalizedCollieConfig, NormalizedCollieCssOptions, NormalizedCollieDialectOptions, NormalizedCollieDialectTokenRule, NormalizedCollieDialectTokens, NormalizedCollieProjectConfig, ReactProjectOptions, defineConfig, loadAndNormalizeConfig, loadConfig, normalizeConfig } from '@collie-lang/config';
|
|
3
3
|
|
|
4
4
|
type DiagnosticSeverity = "error" | "warning";
|
|
5
|
-
type DiagnosticCode = "COLLIE001" | "COLLIE002" | "COLLIE003" | "COLLIE004" | "COLLIE005" | "COLLIE101" | "COLLIE102" | "COLLIE103" | "COLLIE104" | "COLLIE105" | "COLLIE106" | "COLLIE201" | "COLLIE202" | "COLLIE203" | "COLLIE204" | "COLLIE205" | "COLLIE206" | "COLLIE207" | "COLLIE208" | "COLLIE209" | "COLLIE210" | "COLLIE211" | "COLLIE212" | "COLLIE213" | "COLLIE301" | "COLLIE302" | "COLLIE303" | "COLLIE304" | "COLLIE305" | "COLLIE306" | "COLLIE307" | "COLLIE401" | "COLLIE402" | "COLLIE501" | "COLLIE502" | "COLLIE503" | "COLLIE601" | "COLLIE701" | "COLLIE702" | "COLLIE703" | "COLLIE_ID_NOT_PASCAL_CASE" | "dialect.token.disallowed" | "dialect.token.nonPreferred"
|
|
5
|
+
type DiagnosticCode = "COLLIE001" | "COLLIE002" | "COLLIE003" | "COLLIE004" | "COLLIE005" | "COLLIE101" | "COLLIE102" | "COLLIE103" | "COLLIE104" | "COLLIE105" | "COLLIE106" | "COLLIE201" | "COLLIE202" | "COLLIE203" | "COLLIE204" | "COLLIE205" | "COLLIE206" | "COLLIE207" | "COLLIE208" | "COLLIE209" | "COLLIE210" | "COLLIE211" | "COLLIE212" | "COLLIE213" | "COLLIE301" | "COLLIE302" | "COLLIE303" | "COLLIE304" | "COLLIE305" | "COLLIE306" | "COLLIE307" | "COLLIE401" | "COLLIE402" | "COLLIE501" | "COLLIE502" | "COLLIE503" | "COLLIE601" | "COLLIE701" | "COLLIE702" | "COLLIE703" | "COLLIE_ID_NOT_PASCAL_CASE" | "dialect.token.disallowed" | "dialect.token.nonPreferred";
|
|
6
6
|
interface SourcePos {
|
|
7
7
|
line: number;
|
|
8
8
|
col: number;
|
|
@@ -40,17 +40,17 @@ interface ClassAliasDecl {
|
|
|
40
40
|
interface ClassAliasesDecl {
|
|
41
41
|
aliases: ClassAliasDecl[];
|
|
42
42
|
}
|
|
43
|
-
type
|
|
44
|
-
interface
|
|
43
|
+
type InputDeclKind = "value";
|
|
44
|
+
interface InputDecl {
|
|
45
45
|
name: string;
|
|
46
|
-
kind:
|
|
46
|
+
kind: InputDeclKind;
|
|
47
47
|
span?: SourceSpan;
|
|
48
48
|
}
|
|
49
49
|
interface RootNode {
|
|
50
50
|
type: "Root";
|
|
51
51
|
children: Node[];
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
inputs?: InputsDecl;
|
|
53
|
+
inputsDecls?: InputDecl[];
|
|
54
54
|
classAliases?: ClassAliasesDecl;
|
|
55
55
|
clientComponent?: boolean;
|
|
56
56
|
id?: string;
|
|
@@ -127,10 +127,10 @@ interface ConditionalNode {
|
|
|
127
127
|
type: "Conditional";
|
|
128
128
|
branches: ConditionalBranch[];
|
|
129
129
|
}
|
|
130
|
-
interface
|
|
131
|
-
fields:
|
|
130
|
+
interface InputsDecl {
|
|
131
|
+
fields: InputsField[];
|
|
132
132
|
}
|
|
133
|
-
interface
|
|
133
|
+
interface InputsField {
|
|
134
134
|
name: string;
|
|
135
135
|
optional: boolean;
|
|
136
136
|
typeText: string;
|
|
@@ -249,4 +249,4 @@ declare function compileToHtml(sourceOrAst: string | RootNode | CollieDocument,
|
|
|
249
249
|
*/
|
|
250
250
|
declare function compile(source: string, options?: CompileOptions): CompileResult;
|
|
251
251
|
|
|
252
|
-
export { type Attribute, type BaseCompileOptions, type ClassAliasDecl, type ClassAliasesDecl, type CollieCompileMeta, type CollieDocument, type CompileOptions, type CompileResult, type CompileTemplateOptions, type ComponentNode, type ConditionalBranch, type ConditionalNode, type ConvertCollieResult, type ConvertTsxOptions, type ConvertTsxResult, type Diagnostic, type DiagnosticFix, type DiagnosticSeverity, type ElementNode, type ExpressionNode, type ForNode, type FormatOptions, type FormatResult, type HtmlCompileOptions, type JSXPassthroughNode, type JsxCompileOptions, type Node, type ParseCollieOptions, type ParseResult, type
|
|
252
|
+
export { type Attribute, type BaseCompileOptions, type ClassAliasDecl, type ClassAliasesDecl, type CollieCompileMeta, type CollieDocument, type CompileOptions, type CompileResult, type CompileTemplateOptions, type ComponentNode, type ConditionalBranch, type ConditionalNode, type ConvertCollieResult, type ConvertTsxOptions, type ConvertTsxResult, type Diagnostic, type DiagnosticFix, type DiagnosticSeverity, type ElementNode, type ExpressionNode, type ForNode, type FormatOptions, type FormatResult, type HtmlCompileOptions, type JSXPassthroughNode, type JsxCompileOptions, type Node, type ParseCollieOptions, type ParseResult, type RootNode, type SlotBlock, type SourcePos, type SourceSpan, type TemplateUnit, type TextChunk, type TextExprPart, type TextNode, type TextPart, type TsxCompileOptions, applyFixes, compile, compileTemplate, compileToHtml, compileToJsx, compileToTsx, convertCollieToTsx, convertTsxToCollie, fixAllFromDiagnostics, formatCollie, parseCollie as parse, parseCollie };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NormalizedCollieDialectOptions } from '@collie-lang/config';
|
|
2
|
-
export { CollieCompilerOptions, CollieConfig, CollieCssOptions, CollieCssStrategy, CollieDiagnosticLevel, CollieDialectOptions,
|
|
2
|
+
export { CollieCompilerOptions, CollieConfig, CollieCssOptions, CollieCssStrategy, CollieDiagnosticLevel, CollieDialectOptions, CollieDialectTokenKind, CollieDialectTokenRule, CollieDialectTokens, CollieEditorOptions, CollieFeatureOptions, CollieProjectConfig, HtmlProjectOptions, NormalizedCollieConfig, NormalizedCollieCssOptions, NormalizedCollieDialectOptions, NormalizedCollieDialectTokenRule, NormalizedCollieDialectTokens, NormalizedCollieProjectConfig, ReactProjectOptions, defineConfig, loadAndNormalizeConfig, loadConfig, normalizeConfig } from '@collie-lang/config';
|
|
3
3
|
|
|
4
4
|
type DiagnosticSeverity = "error" | "warning";
|
|
5
|
-
type DiagnosticCode = "COLLIE001" | "COLLIE002" | "COLLIE003" | "COLLIE004" | "COLLIE005" | "COLLIE101" | "COLLIE102" | "COLLIE103" | "COLLIE104" | "COLLIE105" | "COLLIE106" | "COLLIE201" | "COLLIE202" | "COLLIE203" | "COLLIE204" | "COLLIE205" | "COLLIE206" | "COLLIE207" | "COLLIE208" | "COLLIE209" | "COLLIE210" | "COLLIE211" | "COLLIE212" | "COLLIE213" | "COLLIE301" | "COLLIE302" | "COLLIE303" | "COLLIE304" | "COLLIE305" | "COLLIE306" | "COLLIE307" | "COLLIE401" | "COLLIE402" | "COLLIE501" | "COLLIE502" | "COLLIE503" | "COLLIE601" | "COLLIE701" | "COLLIE702" | "COLLIE703" | "COLLIE_ID_NOT_PASCAL_CASE" | "dialect.token.disallowed" | "dialect.token.nonPreferred"
|
|
5
|
+
type DiagnosticCode = "COLLIE001" | "COLLIE002" | "COLLIE003" | "COLLIE004" | "COLLIE005" | "COLLIE101" | "COLLIE102" | "COLLIE103" | "COLLIE104" | "COLLIE105" | "COLLIE106" | "COLLIE201" | "COLLIE202" | "COLLIE203" | "COLLIE204" | "COLLIE205" | "COLLIE206" | "COLLIE207" | "COLLIE208" | "COLLIE209" | "COLLIE210" | "COLLIE211" | "COLLIE212" | "COLLIE213" | "COLLIE301" | "COLLIE302" | "COLLIE303" | "COLLIE304" | "COLLIE305" | "COLLIE306" | "COLLIE307" | "COLLIE401" | "COLLIE402" | "COLLIE501" | "COLLIE502" | "COLLIE503" | "COLLIE601" | "COLLIE701" | "COLLIE702" | "COLLIE703" | "COLLIE_ID_NOT_PASCAL_CASE" | "dialect.token.disallowed" | "dialect.token.nonPreferred";
|
|
6
6
|
interface SourcePos {
|
|
7
7
|
line: number;
|
|
8
8
|
col: number;
|
|
@@ -40,17 +40,17 @@ interface ClassAliasDecl {
|
|
|
40
40
|
interface ClassAliasesDecl {
|
|
41
41
|
aliases: ClassAliasDecl[];
|
|
42
42
|
}
|
|
43
|
-
type
|
|
44
|
-
interface
|
|
43
|
+
type InputDeclKind = "value";
|
|
44
|
+
interface InputDecl {
|
|
45
45
|
name: string;
|
|
46
|
-
kind:
|
|
46
|
+
kind: InputDeclKind;
|
|
47
47
|
span?: SourceSpan;
|
|
48
48
|
}
|
|
49
49
|
interface RootNode {
|
|
50
50
|
type: "Root";
|
|
51
51
|
children: Node[];
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
inputs?: InputsDecl;
|
|
53
|
+
inputsDecls?: InputDecl[];
|
|
54
54
|
classAliases?: ClassAliasesDecl;
|
|
55
55
|
clientComponent?: boolean;
|
|
56
56
|
id?: string;
|
|
@@ -127,10 +127,10 @@ interface ConditionalNode {
|
|
|
127
127
|
type: "Conditional";
|
|
128
128
|
branches: ConditionalBranch[];
|
|
129
129
|
}
|
|
130
|
-
interface
|
|
131
|
-
fields:
|
|
130
|
+
interface InputsDecl {
|
|
131
|
+
fields: InputsField[];
|
|
132
132
|
}
|
|
133
|
-
interface
|
|
133
|
+
interface InputsField {
|
|
134
134
|
name: string;
|
|
135
135
|
optional: boolean;
|
|
136
136
|
typeText: string;
|
|
@@ -249,4 +249,4 @@ declare function compileToHtml(sourceOrAst: string | RootNode | CollieDocument,
|
|
|
249
249
|
*/
|
|
250
250
|
declare function compile(source: string, options?: CompileOptions): CompileResult;
|
|
251
251
|
|
|
252
|
-
export { type Attribute, type BaseCompileOptions, type ClassAliasDecl, type ClassAliasesDecl, type CollieCompileMeta, type CollieDocument, type CompileOptions, type CompileResult, type CompileTemplateOptions, type ComponentNode, type ConditionalBranch, type ConditionalNode, type ConvertCollieResult, type ConvertTsxOptions, type ConvertTsxResult, type Diagnostic, type DiagnosticFix, type DiagnosticSeverity, type ElementNode, type ExpressionNode, type ForNode, type FormatOptions, type FormatResult, type HtmlCompileOptions, type JSXPassthroughNode, type JsxCompileOptions, type Node, type ParseCollieOptions, type ParseResult, type
|
|
252
|
+
export { type Attribute, type BaseCompileOptions, type ClassAliasDecl, type ClassAliasesDecl, type CollieCompileMeta, type CollieDocument, type CompileOptions, type CompileResult, type CompileTemplateOptions, type ComponentNode, type ConditionalBranch, type ConditionalNode, type ConvertCollieResult, type ConvertTsxOptions, type ConvertTsxResult, type Diagnostic, type DiagnosticFix, type DiagnosticSeverity, type ElementNode, type ExpressionNode, type ForNode, type FormatOptions, type FormatResult, type HtmlCompileOptions, type JSXPassthroughNode, type JsxCompileOptions, type Node, type ParseCollieOptions, type ParseResult, type RootNode, type SlotBlock, type SourcePos, type SourceSpan, type TemplateUnit, type TextChunk, type TextExprPart, type TextNode, type TextPart, type TsxCompileOptions, applyFixes, compile, compileTemplate, compileToHtml, compileToJsx, compileToTsx, convertCollieToTsx, convertTsxToCollie, fixAllFromDiagnostics, formatCollie, parseCollie as parse, parseCollie };
|