@unframework.dev/target-angular 0.1.0 → 0.1.2

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.
@@ -1,7 +1,7 @@
1
- import { assertedSetup, narrowedWhole } from "./narrowing.js";
2
- import { ANGULAR_IMPORTS, unreachable } from "./plan.js";
3
1
  import { annotation, arrow, defaulted, parameterBinding } from "./effects.js";
4
2
  import { moduleReads } from "./modules.js";
3
+ import { assertedSetup, narrowedWhole } from "./narrowing.js";
4
+ import { ANGULAR_IMPORTS, unreachable } from "./plan.js";
5
5
  import { ImportSet, NameScope, addTypeImports, codeKind, codeNames, componentTypes, functionBodyText, functionText, js, kebabCase, pascalCase, printProgram, rewriteCode, sourceNames, typeDeclarationCode, typeNames, typeSpecifier, writtenValue } from "@unframework.dev/codegen";
6
6
  /**
7
7
  * A composable as the setup owner the codegen helpers read: its bindings, its setup and the
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { outputName } from "./outputs.js";
2
- import { ANGULAR_MEMBERS, bindingById, formOf, memberOf, moduleMember, planComponent, slotQuery } from "./plan.js";
3
- import { classRules } from "./rules.js";
4
- import { moduleReads } from "./modules.js";
5
1
  import { emitComposable } from "./composable.js";
6
- import { declaredTypes } from "./types.js";
7
2
  import { firstUse, keyOf, planComposition, refObjectCode, slotDirectiveCode, tokenType } from "./composition.js";
8
3
  import { directiveCode, scopeDirectiveCode } from "./directives.js";
9
4
  import { planListeners } from "./listeners.js";
10
5
  import { classMembers } from "./members.js";
11
6
  import { planModels } from "./models.js";
7
+ import { moduleReads } from "./modules.js";
8
+ import { outputName } from "./outputs.js";
9
+ import { ANGULAR_MEMBERS, bindingById, formOf, memberOf, moduleMember, planComponent, slotQuery } from "./plan.js";
10
+ import { classRules } from "./rules.js";
12
11
  import { fallthroughRoot, template, templateReads } from "./template.js";
12
+ import { declaredTypes } from "./types.js";
13
13
  import { Placeholders, addTypeImports, angularDialect, codeKind, codeNames, componentTypes, defineTarget, exportDeclaration, exportsOf, js, kebabCase, moduleHelperName, printExpression, printProgram, rewriteCode, scopeRoots, sourceNames, typeDeclarationCode, typeExportsCode, typeNames } from "@unframework.dev/codegen";
14
14
  import { codeOf, functionsOf, walk } from "@unframework.dev/ir";
15
15
  /** The note the emulated cells share: why a listener's option needs a directive. */
package/dist/listeners.js CHANGED
@@ -1,8 +1,8 @@
1
+ import { childEvent } from "./composition.js";
1
2
  import { assertedCode, assertedFunction } from "./narrowing.js";
2
3
  import { bindingById, formOf, isLoopVariable, resultApi, unreachable } from "./plan.js";
3
4
  import { classRules, statementRead, statementRules } from "./rules.js";
4
5
  import { bodyStatements, returnsValue } from "./statements.js";
5
- import { childEvent } from "./composition.js";
6
6
  import { angularCode, parameterText, parseExpression, parseStatementsSource, pascalCase, rewriteCode } from "@unframework.dev/codegen";
7
7
  import { DOM_EVENTS, walk } from "@unframework.dev/ir";
8
8
  /**
package/dist/members.js CHANGED
@@ -1,10 +1,10 @@
1
+ import { keyOf } from "./composition.js";
2
+ import { arrow, lifecycleCode, watchEffectCode, watcherCode } from "./effects.js";
1
3
  import { outputName } from "./outputs.js";
2
4
  import { bindingById, formOf, slotQuery, unreachable } from "./plan.js";
3
5
  import { outputType, tidied } from "./rules.js";
4
- import { arrow, lifecycleCode, watchEffectCode, watcherCode } from "./effects.js";
5
- import { defaultedType, propType } from "./types.js";
6
- import { keyOf } from "./composition.js";
7
6
  import { parenthesised, valueType } from "./seeded.js";
7
+ import { defaultedType, propType } from "./types.js";
8
8
  import { functionBodyText, functionText, js, kebabCase, parameterText, pascalCase, rewriteCode } from "@unframework.dev/codegen";
9
9
  /** The services the class injects, in the order it declares them. */
10
10
  const SERVICES = [
package/dist/template.js CHANGED
@@ -1,7 +1,7 @@
1
+ import { selectorOf } from "./composition.js";
1
2
  import { outputName } from "./outputs.js";
2
3
  import { bindingById, memberOf, unreachable } from "./plan.js";
3
4
  import { readThroughLet, templateRules } from "./rules.js";
4
- import { selectorOf } from "./composition.js";
5
5
  import { angularCode, angularDialect, printMarkup, spreadStyleExpression, staticClassValue, vueClassValue } from "@unframework.dev/codegen";
6
6
  import { expressionsOf, walk } from "@unframework.dev/ir";
7
7
  /** The consumer's `style`, which the root merges over its own (ADR-0056). */
@@ -1,6 +1,6 @@
1
+ import { COMPONENT_IMPORT, childKey } from "./ngtsc-virtual.js";
1
2
  import { createHost, diagnosticCode, formatDiagnostics, strictOptions } from "./ngtsc.js";
2
3
  import { loadCompiler } from "./tools.js";
3
- import { COMPONENT_IMPORT, childKey } from "./ngtsc-virtual.js";
4
4
  import { dirname, resolve } from "node:path";
5
5
  import { parentPort, workerData } from "node:worker_threads";
6
6
  const { toolchainDir } = workerData;
@@ -1,6 +1,6 @@
1
- import { loadCompiler, loadViteTools, packageVersion } from "./tools.js";
2
1
  import { angularLinker, angularSsrLinker } from "./linker.js";
3
2
  import { ngtscVirtual } from "./ngtsc-virtual.js";
3
+ import { loadCompiler, loadViteTools, packageVersion } from "./tools.js";
4
4
  import { mkdirSync, renameSync, writeFileSync } from "node:fs";
5
5
  import { dirname, join } from "node:path";
6
6
  /** One instance of each Angular package, wherever its importer lives (the adapters do too). */
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@unframework.dev/target-angular",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "The Angular 22 target of the Unframework compiler: emits idiomatic Angular components from the portable IR, declares their capabilities, and provides the toolchain the tests use.",
5
5
  "keywords": [
6
6
  "angular",
7
7
  "compiler",
8
8
  "unframework"
9
9
  ],
10
- "homepage": "https://github.com/uxfront-com/unframework/tree/main/packages/target-angular#readme",
10
+ "homepage": "https://unframework.dev",
11
11
  "bugs": "https://github.com/uxfront-com/unframework/issues",
12
12
  "license": "MIT",
13
13
  "repository": {
@@ -43,8 +43,8 @@
43
43
  "access": "public"
44
44
  },
45
45
  "dependencies": {
46
- "@unframework.dev/codegen": "0.1.0",
47
- "@unframework.dev/ir": "0.1.0"
46
+ "@unframework.dev/codegen": "0.1.2",
47
+ "@unframework.dev/ir": "0.1.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@angular/common": "22.2.1",
@@ -57,7 +57,7 @@
57
57
  "@vitest/browser-playwright": "5.0.3",
58
58
  "playwright": "1.63.0",
59
59
  "rxjs": "^7.8.2",
60
- "tsdown": "^0.23.0",
60
+ "tsdown": "^0.23.7",
61
61
  "tslib": "^2.8.1",
62
62
  "vite": "8.3.1",
63
63
  "vitest": "5.0.3"