@absolutejs/absolute 0.20.0-beta.173 → 0.20.0-beta.174
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/CHANGELOG.md +7 -0
- package/changelog.json +11 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +47 -27
- package/dist/angular/index.js.map +6 -5
- package/dist/angular/server.js +47 -27
- package/dist/angular/server.js.map +6 -5
- package/dist/build.js +635 -613
- package/dist/build.js.map +25 -24
- package/dist/cli/{add-ae6mg79m.js → add-ntg96znk.js} +32 -31
- package/dist/cli/{compile-ndc36zna.js → compile-n6fs2vmx.js} +16 -14
- package/dist/cli/config/server.js +85 -65
- package/dist/cli/{dev-x49583aj.js → dev-6h1f0mzq.js} +1 -1
- package/dist/cli/{expoProject-h404n2r8.js → expoProject-1qtw97js.js} +2 -1
- package/dist/cli/{generate-brvjesd6.js → generate-5vyz1s44.js} +7 -6
- package/dist/cli/{htmx-5twhjz7p.js → htmx-26hs6jdm.js} +2 -1
- package/dist/cli/{index-gyjxrnnz.js → index-23hvdyxf.js} +18 -16
- package/dist/cli/index-4j1twret.js +22 -0
- package/dist/cli/{index-25e7k849.js → index-bhyd3ejc.js} +4 -4
- package/dist/cli/{index-s0r5q839.js → index-cksezef8.js} +10 -8
- package/dist/cli/{index-q3snnhyd.js → index-enbw9484.js} +34 -33
- package/dist/cli/{index-b1wht4q5.js → index-kes8he5s.js} +6 -4
- package/dist/cli/{index-z794p5qg.js → index-mqevg32w.js} +22 -19
- package/dist/cli/{index-vh68jb0e.js → index-pkw3jktb.js} +17 -16
- package/dist/cli/{index-rervww4p.js → index-zyd80s3h.js} +119 -119
- package/dist/cli/index.js +11 -11
- package/dist/cli/{islands-p4vgx7a2.js → islands-vk05sj6v.js} +5 -4
- package/dist/cli/{mobile-nqdkk3gd.js → mobile-62b6j3j7.js} +5 -4
- package/dist/cli/{remove-abaf0w6k.js → remove-4jh862qa.js} +6 -5
- package/dist/cli/{start-t3cq57wn.js → start-jh6kyp92.js} +5 -4
- package/dist/cli/{typecheck-fag7djt5.js → typecheck-7fvww3b7.js} +28 -26
- package/dist/dev/importCostReport.js +45 -26
- package/dist/index.js +633 -611
- package/dist/index.js.map +25 -24
- package/dist/mobile/index.js +115 -95
- package/dist/mobile/index.js.map +6 -5
- package/dist/mobile/remoteMacAgentEntry.js +205 -651
- package/dist/src/cli/config/absolute/resolveAbsoluteConfig.d.ts +3 -3
- package/dist/src/cli/config/auth/resolveAuthSettings.d.ts +3 -3
- package/dist/src/dev/angular/fastHmrCompiler.d.ts +2 -2
- package/dist/src/dev/angular/hmrImportGenerator.d.ts +2 -2
- package/dist/src/dev/angular/vendor/translator/ts_util.d.ts +2 -2
- package/dist/src/dev/angular/vendor/translator/typescript_ast_factory.d.ts +40 -40
- package/dist/src/dev/angular/vendor/translator/typescript_translator.d.ts +3 -3
- package/dist/src/utils/lazyTypescript.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type TS from 'typescript';
|
|
2
2
|
export declare const findConfigPath: (cwd: string, override?: string) => string | null;
|
|
3
|
-
export declare const findConfigObject: (sourceFile:
|
|
3
|
+
export declare const findConfigObject: (sourceFile: TS.Node) => TS.ObjectLiteralExpression | null;
|
|
4
4
|
export declare const parseConfigObject: (configPath: string) => {
|
|
5
|
-
object:
|
|
5
|
+
object: TS.ObjectLiteralExpression | null;
|
|
6
6
|
text: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const readAbsoluteConfigValues: (cwd: string, override?: string) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type TS from 'typescript';
|
|
2
2
|
export declare const findAuthSettingsPath: (cwd: string, override?: string) => string | null;
|
|
3
|
-
export declare const findAuthSettingsObject: (sourceFile:
|
|
3
|
+
export declare const findAuthSettingsObject: (sourceFile: TS.Node) => TS.ObjectLiteralExpression | null;
|
|
4
4
|
export declare const parseAuthSettingsObject: (configPath: string) => {
|
|
5
|
-
object:
|
|
5
|
+
object: TS.ObjectLiteralExpression | null;
|
|
6
6
|
text: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const resolveAuthSettingsState: (cwd: string, override?: string) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type TS from 'typescript';
|
|
2
2
|
import type { AngularEntityKind } from './resolveOwningComponents';
|
|
3
3
|
export type FastHmrFallbackReason = 'file-not-found' | 'class-not-found' | 'no-component-decorator' | 'unsupported-decorator-args' | 'inherits-decorated-class' | 'multiple-decorators-on-class' | 'template-parse-error' | 'template-resource-not-found' | 'style-resource-not-found' | 'style-compile-error' | 'structural-change' | 'unexpected-error';
|
|
4
4
|
export type ComponentFingerprint = {
|
|
@@ -31,7 +31,7 @@ export type ComponentFingerprint = {
|
|
|
31
31
|
export type FastHmrSuccess = {
|
|
32
32
|
ok: true;
|
|
33
33
|
moduleText: string;
|
|
34
|
-
componentSource:
|
|
34
|
+
componentSource: TS.SourceFile;
|
|
35
35
|
fingerprintChanged: boolean;
|
|
36
36
|
rebootstrapRequired: boolean;
|
|
37
37
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type TS from 'typescript';
|
|
2
2
|
import type { ImportGenerator } from './vendor/translator/api/import_generator';
|
|
3
|
-
export declare const createHmrImportGenerator: (namespaceMap: Map<string, string>) => ImportGenerator<
|
|
3
|
+
export declare const createHmrImportGenerator: (namespaceMap: Map<string, string>) => ImportGenerator<TS.SourceFile, TS.Expression>;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import type TS from 'typescript';
|
|
9
9
|
/**
|
|
10
10
|
* Creates a TypeScript node representing a numeric value.
|
|
11
11
|
*/
|
|
12
|
-
export declare function tsNumericExpression(value: number):
|
|
12
|
+
export declare function tsNumericExpression(value: number): TS.NumericLiteral | TS.PrefixUnaryExpression;
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import type TS from 'typescript';
|
|
9
9
|
import { AstFactory, BinaryOperator, BuiltInType, LeadingComment, ObjectLiteralProperty, Parameter, SourceMapRange, TemplateLiteral, UnaryOperator, VariableDeclarationType } from './api/ast_factory';
|
|
10
10
|
/**
|
|
11
11
|
* A TypeScript flavoured implementation of the AstFactory.
|
|
12
12
|
*/
|
|
13
|
-
export declare class TypeScriptAstFactory implements AstFactory<
|
|
13
|
+
export declare class TypeScriptAstFactory implements AstFactory<TS.Statement, TS.Expression, TS.TypeNode> {
|
|
14
14
|
private annotateForClosureCompiler;
|
|
15
15
|
private externalSourceFiles;
|
|
16
16
|
private readonly UNARY_OPERATORS;
|
|
@@ -18,49 +18,49 @@ export declare class TypeScriptAstFactory implements AstFactory<ts.Statement, ts
|
|
|
18
18
|
private readonly VAR_TYPES;
|
|
19
19
|
constructor(annotateForClosureCompiler: boolean);
|
|
20
20
|
attachComments: typeof attachComments;
|
|
21
|
-
createArrayLiteral: (elements?: readonly
|
|
22
|
-
createAssignment(target:
|
|
23
|
-
createBinaryExpression(leftOperand:
|
|
24
|
-
createBlock(body:
|
|
25
|
-
createCallExpression(callee:
|
|
26
|
-
createConditional(condition:
|
|
27
|
-
createElementAccess: (expression:
|
|
28
|
-
createExpressionStatement: (expression:
|
|
29
|
-
createDynamicImport(url: string |
|
|
30
|
-
createFunctionDeclaration(functionName: string, parameters: Parameter<
|
|
31
|
-
createFunctionExpression(functionName: string | null, parameters: Parameter<
|
|
32
|
-
createArrowFunctionExpression(parameters: Parameter<
|
|
21
|
+
createArrayLiteral: (elements?: readonly TS.Expression[], multiLine?: boolean) => TS.ArrayLiteralExpression;
|
|
22
|
+
createAssignment(target: TS.Expression, operator: BinaryOperator, value: TS.Expression): TS.Expression;
|
|
23
|
+
createBinaryExpression(leftOperand: TS.Expression, operator: BinaryOperator, rightOperand: TS.Expression): TS.Expression;
|
|
24
|
+
createBlock(body: TS.Statement[]): TS.Statement;
|
|
25
|
+
createCallExpression(callee: TS.Expression, args: TS.Expression[], pure: boolean): TS.Expression;
|
|
26
|
+
createConditional(condition: TS.Expression, whenTrue: TS.Expression, whenFalse: TS.Expression): TS.Expression;
|
|
27
|
+
createElementAccess: (expression: TS.Expression, index: number | TS.Expression) => TS.ElementAccessExpression;
|
|
28
|
+
createExpressionStatement: (expression: TS.Expression) => TS.ExpressionStatement;
|
|
29
|
+
createDynamicImport(url: string | TS.Expression): TS.CallExpression;
|
|
30
|
+
createFunctionDeclaration(functionName: string, parameters: Parameter<TS.TypeNode>[], body: TS.Statement): TS.Statement;
|
|
31
|
+
createFunctionExpression(functionName: string | null, parameters: Parameter<TS.TypeNode>[], body: TS.Statement): TS.Expression;
|
|
32
|
+
createArrowFunctionExpression(parameters: Parameter<TS.TypeNode>[], body: TS.Statement | TS.Expression): TS.Expression;
|
|
33
33
|
private createParameter;
|
|
34
|
-
createIdentifier: (text: string) =>
|
|
35
|
-
createIfStatement(condition:
|
|
36
|
-
createLiteral(value: string | number | boolean | null | undefined):
|
|
37
|
-
createNewExpression(expression:
|
|
38
|
-
createObjectLiteral(properties: ObjectLiteralProperty<
|
|
39
|
-
createParenthesizedExpression: (expression:
|
|
40
|
-
createPropertyAccess: (expression:
|
|
41
|
-
createSpreadElement: (expression:
|
|
42
|
-
createReturnStatement(expression:
|
|
43
|
-
createTaggedTemplate(tag:
|
|
44
|
-
createTemplateLiteral(template: TemplateLiteral<
|
|
45
|
-
createThrowStatement: (expression:
|
|
46
|
-
createTypeOfExpression: (expression:
|
|
47
|
-
createVoidExpression: (expression:
|
|
48
|
-
createUnaryExpression(operator: UnaryOperator, operand:
|
|
49
|
-
createVariableDeclaration(variableName: string, initializer:
|
|
50
|
-
createRegularExpressionLiteral(body: string, flags: string | null):
|
|
51
|
-
setSourceMapRange<T extends
|
|
52
|
-
createBuiltInType(type: BuiltInType):
|
|
53
|
-
createExpressionType(expression:
|
|
54
|
-
createArrayType(elementType:
|
|
55
|
-
createMapType(valueType:
|
|
56
|
-
transplantType(type:
|
|
34
|
+
createIdentifier: (text: string) => TS.Identifier;
|
|
35
|
+
createIfStatement(condition: TS.Expression, thenStatement: TS.Statement, elseStatement: TS.Statement | null): TS.Statement;
|
|
36
|
+
createLiteral(value: string | number | boolean | null | undefined): TS.Expression;
|
|
37
|
+
createNewExpression(expression: TS.Expression, args: TS.Expression[]): TS.Expression;
|
|
38
|
+
createObjectLiteral(properties: ObjectLiteralProperty<TS.Expression>[]): TS.Expression;
|
|
39
|
+
createParenthesizedExpression: (expression: TS.Expression) => TS.ParenthesizedExpression;
|
|
40
|
+
createPropertyAccess: (expression: TS.Expression, name: string | TS.MemberName) => TS.PropertyAccessExpression;
|
|
41
|
+
createSpreadElement: (expression: TS.Expression) => TS.SpreadElement;
|
|
42
|
+
createReturnStatement(expression: TS.Expression | null): TS.Statement;
|
|
43
|
+
createTaggedTemplate(tag: TS.Expression, template: TemplateLiteral<TS.Expression>): TS.Expression;
|
|
44
|
+
createTemplateLiteral(template: TemplateLiteral<TS.Expression>): TS.TemplateLiteral;
|
|
45
|
+
createThrowStatement: (expression: TS.Expression) => TS.ThrowStatement;
|
|
46
|
+
createTypeOfExpression: (expression: TS.Expression) => TS.TypeOfExpression;
|
|
47
|
+
createVoidExpression: (expression: TS.Expression) => TS.VoidExpression;
|
|
48
|
+
createUnaryExpression(operator: UnaryOperator, operand: TS.Expression): TS.Expression;
|
|
49
|
+
createVariableDeclaration(variableName: string, initializer: TS.Expression | null, variableType: VariableDeclarationType, type: TS.TypeNode | null): TS.Statement;
|
|
50
|
+
createRegularExpressionLiteral(body: string, flags: string | null): TS.Expression;
|
|
51
|
+
setSourceMapRange<T extends TS.Node>(node: T, sourceMapRange: SourceMapRange | null): T;
|
|
52
|
+
createBuiltInType(type: BuiltInType): TS.TypeNode;
|
|
53
|
+
createExpressionType(expression: TS.Expression, typeParams: TS.TypeNode[] | null): TS.TypeNode;
|
|
54
|
+
createArrayType(elementType: TS.TypeNode): TS.TypeNode;
|
|
55
|
+
createMapType(valueType: TS.TypeNode): TS.TypeNode;
|
|
56
|
+
transplantType(type: TS.TypeNode): TS.TypeNode;
|
|
57
57
|
}
|
|
58
|
-
export declare function createTemplateMiddle(cooked: string, raw: string):
|
|
59
|
-
export declare function createTemplateTail(cooked: string, raw: string):
|
|
58
|
+
export declare function createTemplateMiddle(cooked: string, raw: string): TS.TemplateMiddle;
|
|
59
|
+
export declare function createTemplateTail(cooked: string, raw: string): TS.TemplateTail;
|
|
60
60
|
/**
|
|
61
61
|
* Attach the given `leadingComments` to the `statement` node.
|
|
62
62
|
*
|
|
63
63
|
* @param statement The statement that will have comments attached.
|
|
64
64
|
* @param leadingComments The comments to attach to the statement.
|
|
65
65
|
*/
|
|
66
|
-
export declare function attachComments(statement:
|
|
66
|
+
export declare function attachComments(statement: TS.Statement | TS.Expression, leadingComments: LeadingComment[]): void;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import * as o from '@angular/compiler';
|
|
9
|
-
import
|
|
9
|
+
import type TS from 'typescript';
|
|
10
10
|
import { ImportGenerator } from './api/import_generator';
|
|
11
11
|
import { TranslatorOptions } from './translator';
|
|
12
|
-
export declare function translateExpression(contextFile:
|
|
13
|
-
export declare function translateStatement(contextFile:
|
|
12
|
+
export declare function translateExpression(contextFile: TS.SourceFile, expression: o.Expression, imports: ImportGenerator<TS.SourceFile, TS.Expression>, options?: TranslatorOptions<TS.Expression>): TS.Expression;
|
|
13
|
+
export declare function translateStatement(contextFile: TS.SourceFile, statement: o.Statement, imports: ImportGenerator<TS.SourceFile, TS.Expression>, options?: TranslatorOptions<TS.Expression>): TS.Statement;
|