@ng-doc/builder 20.1.1 → 21.0.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.
@@ -6,7 +6,7 @@
6
6
  "properties": {
7
7
  "assets": {
8
8
  "type": "array",
9
- "description": "List of static application assets.",
9
+ "description": "Define the assets to be copied to the output directory. These assets are copied as-is without any further processing or hashing.",
10
10
  "default": [],
11
11
  "items": {
12
12
  "$ref": "#/definitions/assetPattern"
@@ -288,7 +288,7 @@
288
288
  ]
289
289
  },
290
290
  "loader": {
291
- "description": "Defines the type of loader to use with a specified file extension when used with a JavaScript `import`. `text` inlines the content as a string; `binary` inlines the content as a Uint8Array; `file` emits the file and provides the runtime location of the file; `empty` considers the content to be empty and not include it in bundles.",
291
+ "description": "Defines the type of loader to use with a specified file extension when used with a JavaScript `import`. `text` inlines the content as a string; `binary` inlines the content as a Uint8Array; `file` emits the file and provides the runtime location of the file; `dataurl` inlines the content as a data URL with best guess of MIME type; `base64` inlines the content as a Base64-encoded string; `empty` considers the content to be empty and not include it in bundles.",
292
292
  "type": "object",
293
293
  "patternProperties": {
294
294
  "^\\.\\S+$": {
@@ -296,6 +296,8 @@
296
296
  "text",
297
297
  "binary",
298
298
  "file",
299
+ "dataurl",
300
+ "base64",
299
301
  "empty"
300
302
  ]
301
303
  }
@@ -467,7 +469,7 @@
467
469
  },
468
470
  "outputHashing": {
469
471
  "type": "string",
470
- "description": "Define the output filename cache-busting hashing mode.",
472
+ "description": "Define the output filename cache-busting hashing mode.\n\n- `none`: No hashing.\n- `all`: Hash for all output bundles. \n- `media`: Hash for all output media (e.g., images, fonts, etc. that are referenced in CSS files).\n- `bundles`: Hash for output of lazy and main bundles.",
471
473
  "default": "none",
472
474
  "enum": [
473
475
  "none",
@@ -651,7 +653,7 @@
651
653
  },
652
654
  "outputMode": {
653
655
  "type": "string",
654
- "description": "Defines the build output target. 'static': Generates a static site for deployment on any static hosting service. 'server': Produces an application designed for deployment on a server that supports server-side rendering (SSR).",
656
+ "description": "Defines the type of build output artifact. 'static': Generates a static site build artifact for deployment on any static hosting service. 'server': Generates a server application build artifact, required for applications using hybrid rendering or APIs.",
655
657
  "enum": [
656
658
  "static",
657
659
  "server"
@@ -53,6 +53,13 @@
53
53
  }
54
54
  ]
55
55
  },
56
+ "define": {
57
+ "description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced.",
58
+ "type": "object",
59
+ "additionalProperties": {
60
+ "type": "string"
61
+ }
62
+ },
56
63
  "headers": {
57
64
  "type": "object",
58
65
  "description": "Custom HTTP headers to be added to all responses.",
@@ -18,7 +18,7 @@ function isInput(p) {
18
18
  function isInputSignal(p) {
19
19
  const typeDeclaration = p.getType().getSymbol()?.getDeclarations()[0];
20
20
  if (ts_morph_1.Node.isInterfaceDeclaration(typeDeclaration)) {
21
- return ['InputSignal', 'InputSignalWithTransform'].includes(typeDeclaration.getName());
21
+ return ['InputSignal', 'InputSignalWithTransform', 'ModelSignal'].includes(typeDeclaration.getName());
22
22
  }
23
23
  return false;
24
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"is-input.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/is-input.ts"],"names":[],"mappings":";;AAgBA,0BAEC;AAMD,sCAQC;AAMD,4CAEC;AAxCD,uCAKkB;AAOlB;;;GAGG;AACH,SAAgB,OAAO,CAAC,CAAwB;IAC9C,OAAO,gBAAgB,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,CAAwB;IACpD,MAAM,eAAe,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;IAEtE,IAAI,eAAI,CAAC,sBAAsB,CAAC,eAAe,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,aAAa,EAAE,0BAA0B,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,CAAwB;IACvD,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;AACnC,CAAC"}
1
+ {"version":3,"file":"is-input.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/is-input.ts"],"names":[],"mappings":";;AAgBA,0BAEC;AAMD,sCAUC;AAMD,4CAEC;AA1CD,uCAKkB;AAOlB;;;GAGG;AACH,SAAgB,OAAO,CAAC,CAAwB;IAC9C,OAAO,gBAAgB,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,CAAwB;IACpD,MAAM,eAAe,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;IAEtE,IAAI,eAAI,CAAC,sBAAsB,CAAC,eAAe,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,aAAa,EAAE,0BAA0B,EAAE,aAAa,CAAC,CAAC,QAAQ,CACxE,eAAe,CAAC,OAAO,EAAE,CAC1B,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,CAAwB;IACvD,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;AACnC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-doc/builder",
3
- "version": "20.1.1",
3
+ "version": "21.0.0",
4
4
  "type": "commonjs",
5
5
  "builders": "./builders.json",
6
6
  "schematics": "./schematics/collection.json",
@@ -11,10 +11,10 @@
11
11
  ]
12
12
  },
13
13
  "dependencies": {
14
- "@ng-doc/core": "20.1.1",
15
- "@ng-doc/utils": "20.1.1",
16
- "@angular-devkit/architect": ">=0.2000.0 < 0.2100.0",
17
- "@angular-devkit/build-angular": ">=20.0.0 < 21.0.0",
14
+ "@ng-doc/core": "21.0.0",
15
+ "@ng-doc/utils": "21.0.0",
16
+ "@angular-devkit/architect": ">=0.2100.0 < 0.2200.0",
17
+ "@angular-devkit/build-angular": ">=21.0.0 < 22.0.0",
18
18
  "minimatch": "9.0.1",
19
19
  "rxjs": "^7.0.0",
20
20
  "ts-morph": "22.0.0",
@@ -23,16 +23,16 @@
23
23
  "@orama/plugin-parsedoc": "2.0.17",
24
24
  "posthtml-parser": "0.11.0",
25
25
  "prettier": "<4.0.0",
26
- "fast-glob": "3.3.2",
26
+ "fast-glob": "3.3.3",
27
27
  "gray-matter": "4.0.3",
28
28
  "marked": "12.0.1",
29
- "esbuild": "0.19.12",
29
+ "esbuild": "0.27.2",
30
30
  "cosmiconfig": "8.2.0",
31
31
  "@prettier/sync": "0.5.2",
32
32
  "cosmiconfig-typescript-loader": "5.0.0",
33
33
  "find-cache-dir": "3.3.2",
34
34
  "tslib": "^2.6.2",
35
- "ng-morph": "4.0.3",
35
+ "ng-morph": "^4.0.3",
36
36
  "parsimmon": "^1.18.1",
37
37
  "@parcel/watcher": "2.4.1",
38
38
  "@microsoft/tsdoc": "0.15.1"
@@ -1,4 +1,4 @@
1
- import { ProjectDefinition, WorkspaceDefinition } from '@angular-devkit/core/src/workspace';
1
+ import { ProjectDefinition, WorkspaceDefinition } from '@schematics/angular/utility';
2
2
  /**
3
3
  *
4
4
  * @param workspace
@@ -1 +1 @@
1
- {"version":3,"file":"get-project.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/utils/get-project.ts"],"names":[],"mappings":";;AAMA,wCAOC;AAMD,gCAIC;AArBD;;;GAGG;AACH,SAAgB,cAAc,CAAC,SAA8B;IAC5D,MAAM,YAAY,GAAuB,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