@collie-lang/compiler 1.2.0 → 1.2.1
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/index.cjs +780 -387
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +780 -387
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { NormalizedCollieDialectOptions } from '@collie-lang/config';
|
|
|
2
2
|
export { CollieCompilerOptions, CollieConfig, CollieCssOptions, CollieCssStrategy, CollieDiagnosticLevel, CollieDialectOptions, CollieDialectPropsOptions, CollieDialectTokenKind, CollieDialectTokenRule, CollieDialectTokens, CollieEditorOptions, CollieFeatureOptions, CollieProjectConfig, HtmlProjectOptions, NormalizedCollieConfig, NormalizedCollieCssOptions, NormalizedCollieDialectOptions, NormalizedCollieDialectPropsOptions, 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" | "COLLIE201" | "COLLIE202" | "COLLIE203" | "COLLIE204" | "COLLIE205" | "COLLIE206" | "COLLIE207" | "COLLIE208" | "COLLIE209" | "COLLIE210" | "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" | "props.missingDeclaration" | "props.unusedDeclaration" | "props.style.nonPreferred" | "props.block.recommendedOrRequired";
|
|
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" | "props.missingDeclaration" | "props.unusedDeclaration" | "props.style.nonPreferred" | "props.block.recommendedOrRequired";
|
|
6
6
|
interface SourcePos {
|
|
7
7
|
line: number;
|
|
8
8
|
col: number;
|
|
@@ -40,10 +40,17 @@ interface ClassAliasDecl {
|
|
|
40
40
|
interface ClassAliasesDecl {
|
|
41
41
|
aliases: ClassAliasDecl[];
|
|
42
42
|
}
|
|
43
|
+
type PropDeclKind = "value" | "callable";
|
|
44
|
+
interface PropDecl {
|
|
45
|
+
name: string;
|
|
46
|
+
kind: PropDeclKind;
|
|
47
|
+
span?: SourceSpan;
|
|
48
|
+
}
|
|
43
49
|
interface RootNode {
|
|
44
50
|
type: "Root";
|
|
45
51
|
children: Node[];
|
|
46
52
|
props?: PropsDecl;
|
|
53
|
+
propsDecls?: PropDecl[];
|
|
47
54
|
classAliases?: ClassAliasesDecl;
|
|
48
55
|
clientComponent?: boolean;
|
|
49
56
|
id?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { NormalizedCollieDialectOptions } from '@collie-lang/config';
|
|
|
2
2
|
export { CollieCompilerOptions, CollieConfig, CollieCssOptions, CollieCssStrategy, CollieDiagnosticLevel, CollieDialectOptions, CollieDialectPropsOptions, CollieDialectTokenKind, CollieDialectTokenRule, CollieDialectTokens, CollieEditorOptions, CollieFeatureOptions, CollieProjectConfig, HtmlProjectOptions, NormalizedCollieConfig, NormalizedCollieCssOptions, NormalizedCollieDialectOptions, NormalizedCollieDialectPropsOptions, 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" | "COLLIE201" | "COLLIE202" | "COLLIE203" | "COLLIE204" | "COLLIE205" | "COLLIE206" | "COLLIE207" | "COLLIE208" | "COLLIE209" | "COLLIE210" | "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" | "props.missingDeclaration" | "props.unusedDeclaration" | "props.style.nonPreferred" | "props.block.recommendedOrRequired";
|
|
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" | "props.missingDeclaration" | "props.unusedDeclaration" | "props.style.nonPreferred" | "props.block.recommendedOrRequired";
|
|
6
6
|
interface SourcePos {
|
|
7
7
|
line: number;
|
|
8
8
|
col: number;
|
|
@@ -40,10 +40,17 @@ interface ClassAliasDecl {
|
|
|
40
40
|
interface ClassAliasesDecl {
|
|
41
41
|
aliases: ClassAliasDecl[];
|
|
42
42
|
}
|
|
43
|
+
type PropDeclKind = "value" | "callable";
|
|
44
|
+
interface PropDecl {
|
|
45
|
+
name: string;
|
|
46
|
+
kind: PropDeclKind;
|
|
47
|
+
span?: SourceSpan;
|
|
48
|
+
}
|
|
43
49
|
interface RootNode {
|
|
44
50
|
type: "Root";
|
|
45
51
|
children: Node[];
|
|
46
52
|
props?: PropsDecl;
|
|
53
|
+
propsDecls?: PropDecl[];
|
|
47
54
|
classAliases?: ClassAliasesDecl;
|
|
48
55
|
clientComponent?: boolean;
|
|
49
56
|
id?: string;
|