@powerlines/plugin-alloy 0.25.69 → 0.26.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 +1 -1
- package/dist/core/components/index.cjs +3 -1
- package/dist/core/components/index.d.cts +3 -2
- package/dist/core/components/index.d.mts +3 -2
- package/dist/core/components/index.mjs +3 -2
- package/dist/core/components/infrastructure-file.cjs +48 -0
- package/dist/core/components/infrastructure-file.d.cts +28 -0
- package/dist/core/components/infrastructure-file.d.cts.map +1 -0
- package/dist/core/components/infrastructure-file.d.mts +28 -0
- package/dist/core/components/infrastructure-file.d.mts.map +1 -0
- package/dist/core/components/infrastructure-file.mjs +46 -0
- package/dist/core/components/infrastructure-file.mjs.map +1 -0
- package/dist/core/components/output.d.cts +2 -2
- package/dist/core/components/output.d.cts.map +1 -1
- package/dist/core/components/output.d.mts +2 -2
- package/dist/core/components/output.d.mts.map +1 -1
- package/dist/core/components/single-line-comment.cjs +1 -1
- package/dist/core/components/single-line-comment.d.cts +3 -3
- package/dist/core/components/single-line-comment.d.cts.map +1 -1
- package/dist/core/components/single-line-comment.d.mts +3 -3
- package/dist/core/components/single-line-comment.d.mts.map +1 -1
- package/dist/core/components/single-line-comment.mjs +1 -1
- package/dist/core/components/single-line-comment.mjs.map +1 -1
- package/dist/core/components/source-file.d.cts +2 -2
- package/dist/core/components/source-file.d.cts.map +1 -1
- package/dist/core/components/source-file.d.mts +2 -2
- package/dist/core/components/source-file.d.mts.map +1 -1
- package/dist/core/components/spacing.d.cts +2 -2
- package/dist/core/components/spacing.d.cts.map +1 -1
- package/dist/core/components/spacing.d.mts +2 -2
- package/dist/core/components/spacing.d.mts.map +1 -1
- package/dist/core/contexts/index.cjs +2 -1
- package/dist/core/contexts/index.d.cts +2 -2
- package/dist/core/contexts/index.d.mts +2 -2
- package/dist/core/contexts/index.mjs +2 -2
- package/dist/core/contexts/reflection.cjs +13 -2
- package/dist/core/contexts/reflection.d.cts +14 -3
- package/dist/core/contexts/reflection.d.cts.map +1 -1
- package/dist/core/contexts/reflection.d.mts +14 -3
- package/dist/core/contexts/reflection.d.mts.map +1 -1
- package/dist/core/contexts/reflection.mjs +12 -2
- package/dist/core/contexts/reflection.mjs.map +1 -1
- package/dist/core/index.cjs +5 -2
- package/dist/core/index.d.cts +4 -3
- package/dist/core/index.d.mts +4 -3
- package/dist/core/index.mjs +4 -3
- package/dist/hcl/components/block-declaration.cjs +34 -0
- package/dist/hcl/components/block-declaration.d.cts +22 -0
- package/dist/hcl/components/block-declaration.d.cts.map +1 -0
- package/dist/hcl/components/block-declaration.d.mts +22 -0
- package/dist/hcl/components/block-declaration.d.mts.map +1 -0
- package/dist/hcl/components/block-declaration.mjs +33 -0
- package/dist/hcl/components/block-declaration.mjs.map +1 -0
- package/dist/hcl/components/hcl-file.cjs +83 -0
- package/dist/hcl/components/hcl-file.d.cts +27 -0
- package/dist/hcl/components/hcl-file.d.cts.map +1 -0
- package/dist/hcl/components/hcl-file.d.mts +27 -0
- package/dist/hcl/components/hcl-file.d.mts.map +1 -0
- package/dist/hcl/components/hcl-file.mjs +81 -0
- package/dist/hcl/components/hcl-file.mjs.map +1 -0
- package/dist/hcl/components/index.cjs +11 -0
- package/dist/hcl/components/index.d.cts +5 -0
- package/dist/hcl/components/index.d.mts +5 -0
- package/dist/hcl/components/index.mjs +6 -0
- package/dist/hcl/components/packer-file.cjs +29 -0
- package/dist/hcl/components/packer-file.d.cts +19 -0
- package/dist/hcl/components/packer-file.d.cts.map +1 -0
- package/dist/hcl/components/packer-file.d.mts +19 -0
- package/dist/hcl/components/packer-file.d.mts.map +1 -0
- package/dist/hcl/components/packer-file.mjs +28 -0
- package/dist/hcl/components/packer-file.mjs.map +1 -0
- package/dist/hcl/components/terraform-file.cjs +30 -0
- package/dist/hcl/components/terraform-file.d.cts +20 -0
- package/dist/hcl/components/terraform-file.d.cts.map +1 -0
- package/dist/hcl/components/terraform-file.d.mts +20 -0
- package/dist/hcl/components/terraform-file.d.mts.map +1 -0
- package/dist/hcl/components/terraform-file.mjs +29 -0
- package/dist/hcl/components/terraform-file.mjs.map +1 -0
- package/dist/hcl/index.cjs +12 -0
- package/dist/hcl/index.d.cts +5 -0
- package/dist/hcl/index.d.mts +5 -0
- package/dist/hcl/index.mjs +7 -0
- package/dist/helpers/capnp.cjs +2 -2
- package/dist/helpers/capnp.mjs +2 -2
- package/dist/helpers/typescript.cjs +1 -1
- package/dist/helpers/typescript.mjs +1 -1
- package/dist/markdown/components/front-matter.d.cts +2 -2
- package/dist/markdown/components/front-matter.d.cts.map +1 -1
- package/dist/markdown/components/front-matter.d.mts +2 -2
- package/dist/markdown/components/front-matter.d.mts.map +1 -1
- package/dist/markdown/components/markdown-file.cjs +1 -1
- package/dist/markdown/components/markdown-file.d.cts +3 -3
- package/dist/markdown/components/markdown-file.d.cts.map +1 -1
- package/dist/markdown/components/markdown-file.d.mts +3 -3
- package/dist/markdown/components/markdown-file.d.mts.map +1 -1
- package/dist/markdown/components/markdown-file.mjs +1 -1
- package/dist/markdown/components/markdown-table.d.cts +4 -4
- package/dist/markdown/components/markdown-table.d.cts.map +1 -1
- package/dist/markdown/components/markdown-table.d.mts +4 -4
- package/dist/markdown/components/markdown-table.d.mts.map +1 -1
- package/dist/typescript/components/builtin-file.d.cts +2 -2
- package/dist/typescript/components/builtin-file.d.cts.map +1 -1
- package/dist/typescript/components/builtin-file.d.mts +2 -2
- package/dist/typescript/components/builtin-file.d.mts.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.mts.map +1 -1
- package/dist/typescript/components/entry-file.cjs +1 -1
- package/dist/typescript/components/entry-file.d.cts +2 -2
- package/dist/typescript/components/entry-file.d.cts.map +1 -1
- package/dist/typescript/components/entry-file.d.mts +2 -2
- package/dist/typescript/components/entry-file.d.mts.map +1 -1
- package/dist/typescript/components/entry-file.mjs +1 -1
- package/dist/typescript/components/index.cjs +0 -2
- package/dist/typescript/components/index.d.cts +1 -2
- package/dist/typescript/components/index.d.mts +1 -2
- package/dist/typescript/components/index.mjs +1 -2
- package/dist/typescript/components/interface-declaration.cjs +16 -6
- package/dist/typescript/components/interface-declaration.d.cts +6 -5
- package/dist/typescript/components/interface-declaration.d.cts.map +1 -1
- package/dist/typescript/components/interface-declaration.d.mts +5 -4
- package/dist/typescript/components/interface-declaration.d.mts.map +1 -1
- package/dist/typescript/components/interface-declaration.mjs +16 -6
- package/dist/typescript/components/interface-declaration.mjs.map +1 -1
- package/dist/typescript/components/object-declaration.cjs +8 -2
- package/dist/typescript/components/object-declaration.d.cts +7 -7
- package/dist/typescript/components/object-declaration.d.cts.map +1 -1
- package/dist/typescript/components/object-declaration.d.mts +6 -6
- package/dist/typescript/components/object-declaration.d.mts.map +1 -1
- package/dist/typescript/components/object-declaration.mjs +8 -2
- package/dist/typescript/components/object-declaration.mjs.map +1 -1
- package/dist/typescript/components/property-name.d.cts +2 -2
- package/dist/typescript/components/property-name.d.cts.map +1 -1
- package/dist/typescript/components/property-name.d.mts +2 -2
- package/dist/typescript/components/property-name.d.mts.map +1 -1
- package/dist/typescript/components/tsdoc-reflection.cjs +15 -4
- package/dist/typescript/components/tsdoc-reflection.d.cts +8 -7
- package/dist/typescript/components/tsdoc-reflection.d.cts.map +1 -1
- package/dist/typescript/components/tsdoc-reflection.d.mts +8 -7
- package/dist/typescript/components/tsdoc-reflection.d.mts.map +1 -1
- package/dist/typescript/components/tsdoc-reflection.mjs +16 -5
- package/dist/typescript/components/tsdoc-reflection.mjs.map +1 -1
- package/dist/typescript/components/tsdoc.d.cts +1 -1
- package/dist/typescript/components/type-declaration.d.cts +2 -2
- package/dist/typescript/components/type-declaration.d.cts.map +1 -1
- package/dist/typescript/components/type-declaration.d.mts +2 -2
- package/dist/typescript/components/type-declaration.d.mts.map +1 -1
- package/dist/typescript/components/typescript-file.cjs +2 -2
- package/dist/typescript/components/typescript-file.mjs +2 -2
- package/dist/typescript/contexts/lexical-scope.d.cts +2 -2
- package/dist/typescript/contexts/lexical-scope.d.cts.map +1 -1
- package/dist/typescript/contexts/lexical-scope.d.mts +2 -2
- package/dist/typescript/contexts/lexical-scope.d.mts.map +1 -1
- package/dist/typescript/index.cjs +0 -2
- package/dist/typescript/index.d.cts +1 -2
- package/dist/typescript/index.d.mts +1 -2
- package/dist/typescript/index.mjs +1 -2
- package/dist/yaml/components/yaml-file.cjs +1 -1
- package/dist/yaml/components/yaml-file.mjs +1 -1
- package/package.json +104 -20
- package/dist/typescript/components/infrastructure-file.cjs +0 -40
- package/dist/typescript/components/infrastructure-file.d.cts +0 -21
- package/dist/typescript/components/infrastructure-file.d.cts.map +0 -1
- package/dist/typescript/components/infrastructure-file.d.mts +0 -21
- package/dist/typescript/components/infrastructure-file.d.mts.map +0 -1
- package/dist/typescript/components/infrastructure-file.mjs +0 -38
- package/dist/typescript/components/infrastructure-file.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-alloy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various Alloy framework components and helper utilities.",
|
|
6
6
|
"repository": {
|
|
@@ -83,6 +83,20 @@
|
|
|
83
83
|
"default": "./dist/core/components/index.mjs"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
+
"./core/components/infrastructure-file": {
|
|
87
|
+
"require": {
|
|
88
|
+
"types": "./dist/core/components/infrastructure-file.d.cts",
|
|
89
|
+
"default": "./dist/core/components/infrastructure-file.cjs"
|
|
90
|
+
},
|
|
91
|
+
"import": {
|
|
92
|
+
"types": "./dist/core/components/infrastructure-file.d.mts",
|
|
93
|
+
"default": "./dist/core/components/infrastructure-file.mjs"
|
|
94
|
+
},
|
|
95
|
+
"default": {
|
|
96
|
+
"types": "./dist/core/components/infrastructure-file.d.mts",
|
|
97
|
+
"default": "./dist/core/components/infrastructure-file.mjs"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
86
100
|
"./core/components/output": {
|
|
87
101
|
"require": {
|
|
88
102
|
"types": "./dist/core/components/output.d.cts",
|
|
@@ -223,6 +237,90 @@
|
|
|
223
237
|
"default": "./dist/core/helpers/code.mjs"
|
|
224
238
|
}
|
|
225
239
|
},
|
|
240
|
+
"./hcl": {
|
|
241
|
+
"require": {
|
|
242
|
+
"types": "./dist/hcl/index.d.cts",
|
|
243
|
+
"default": "./dist/hcl/index.cjs"
|
|
244
|
+
},
|
|
245
|
+
"import": {
|
|
246
|
+
"types": "./dist/hcl/index.d.mts",
|
|
247
|
+
"default": "./dist/hcl/index.mjs"
|
|
248
|
+
},
|
|
249
|
+
"default": {
|
|
250
|
+
"types": "./dist/hcl/index.d.mts",
|
|
251
|
+
"default": "./dist/hcl/index.mjs"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"./hcl/components": {
|
|
255
|
+
"require": {
|
|
256
|
+
"types": "./dist/hcl/components/index.d.cts",
|
|
257
|
+
"default": "./dist/hcl/components/index.cjs"
|
|
258
|
+
},
|
|
259
|
+
"import": {
|
|
260
|
+
"types": "./dist/hcl/components/index.d.mts",
|
|
261
|
+
"default": "./dist/hcl/components/index.mjs"
|
|
262
|
+
},
|
|
263
|
+
"default": {
|
|
264
|
+
"types": "./dist/hcl/components/index.d.mts",
|
|
265
|
+
"default": "./dist/hcl/components/index.mjs"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"./hcl/components/block-declaration": {
|
|
269
|
+
"require": {
|
|
270
|
+
"types": "./dist/hcl/components/block-declaration.d.cts",
|
|
271
|
+
"default": "./dist/hcl/components/block-declaration.cjs"
|
|
272
|
+
},
|
|
273
|
+
"import": {
|
|
274
|
+
"types": "./dist/hcl/components/block-declaration.d.mts",
|
|
275
|
+
"default": "./dist/hcl/components/block-declaration.mjs"
|
|
276
|
+
},
|
|
277
|
+
"default": {
|
|
278
|
+
"types": "./dist/hcl/components/block-declaration.d.mts",
|
|
279
|
+
"default": "./dist/hcl/components/block-declaration.mjs"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"./hcl/components/hcl-file": {
|
|
283
|
+
"require": {
|
|
284
|
+
"types": "./dist/hcl/components/hcl-file.d.cts",
|
|
285
|
+
"default": "./dist/hcl/components/hcl-file.cjs"
|
|
286
|
+
},
|
|
287
|
+
"import": {
|
|
288
|
+
"types": "./dist/hcl/components/hcl-file.d.mts",
|
|
289
|
+
"default": "./dist/hcl/components/hcl-file.mjs"
|
|
290
|
+
},
|
|
291
|
+
"default": {
|
|
292
|
+
"types": "./dist/hcl/components/hcl-file.d.mts",
|
|
293
|
+
"default": "./dist/hcl/components/hcl-file.mjs"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"./hcl/components/packer-file": {
|
|
297
|
+
"require": {
|
|
298
|
+
"types": "./dist/hcl/components/packer-file.d.cts",
|
|
299
|
+
"default": "./dist/hcl/components/packer-file.cjs"
|
|
300
|
+
},
|
|
301
|
+
"import": {
|
|
302
|
+
"types": "./dist/hcl/components/packer-file.d.mts",
|
|
303
|
+
"default": "./dist/hcl/components/packer-file.mjs"
|
|
304
|
+
},
|
|
305
|
+
"default": {
|
|
306
|
+
"types": "./dist/hcl/components/packer-file.d.mts",
|
|
307
|
+
"default": "./dist/hcl/components/packer-file.mjs"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"./hcl/components/terraform-file": {
|
|
311
|
+
"require": {
|
|
312
|
+
"types": "./dist/hcl/components/terraform-file.d.cts",
|
|
313
|
+
"default": "./dist/hcl/components/terraform-file.cjs"
|
|
314
|
+
},
|
|
315
|
+
"import": {
|
|
316
|
+
"types": "./dist/hcl/components/terraform-file.d.mts",
|
|
317
|
+
"default": "./dist/hcl/components/terraform-file.mjs"
|
|
318
|
+
},
|
|
319
|
+
"default": {
|
|
320
|
+
"types": "./dist/hcl/components/terraform-file.d.mts",
|
|
321
|
+
"default": "./dist/hcl/components/terraform-file.mjs"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
226
324
|
"./helpers": {
|
|
227
325
|
"require": {
|
|
228
326
|
"types": "./dist/helpers/index.d.cts",
|
|
@@ -532,20 +630,6 @@
|
|
|
532
630
|
"default": "./dist/typescript/components/entry-file.mjs"
|
|
533
631
|
}
|
|
534
632
|
},
|
|
535
|
-
"./typescript/components/infrastructure-file": {
|
|
536
|
-
"require": {
|
|
537
|
-
"types": "./dist/typescript/components/infrastructure-file.d.cts",
|
|
538
|
-
"default": "./dist/typescript/components/infrastructure-file.cjs"
|
|
539
|
-
},
|
|
540
|
-
"import": {
|
|
541
|
-
"types": "./dist/typescript/components/infrastructure-file.d.mts",
|
|
542
|
-
"default": "./dist/typescript/components/infrastructure-file.mjs"
|
|
543
|
-
},
|
|
544
|
-
"default": {
|
|
545
|
-
"types": "./dist/typescript/components/infrastructure-file.d.mts",
|
|
546
|
-
"default": "./dist/typescript/components/infrastructure-file.mjs"
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
633
|
"./typescript/components/interface-declaration": {
|
|
550
634
|
"require": {
|
|
551
635
|
"types": "./dist/typescript/components/interface-declaration.d.cts",
|
|
@@ -809,8 +893,8 @@
|
|
|
809
893
|
"@alloy-js/json": "0.23.0-dev.2",
|
|
810
894
|
"@alloy-js/markdown": "0.23.0-dev.1",
|
|
811
895
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
812
|
-
"@powerlines/deepkit": "^0.6.
|
|
813
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
896
|
+
"@powerlines/deepkit": "^0.6.163",
|
|
897
|
+
"@powerlines/plugin-babel": "^0.12.380",
|
|
814
898
|
"@storm-software/config-tools": "^1.189.60",
|
|
815
899
|
"@stryke/capnp": "^0.12.90",
|
|
816
900
|
"@stryke/convert": "^0.6.57",
|
|
@@ -823,14 +907,14 @@
|
|
|
823
907
|
"@stryke/types": "^0.11.2",
|
|
824
908
|
"@stryke/unique-id": "^0.3.75",
|
|
825
909
|
"defu": "^6.1.4",
|
|
826
|
-
"powerlines": "^0.42.
|
|
910
|
+
"powerlines": "^0.42.25",
|
|
827
911
|
"prettier": "^3.8.1",
|
|
828
912
|
"unctx": "^2.5.0"
|
|
829
913
|
},
|
|
830
914
|
"devDependencies": {
|
|
831
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
915
|
+
"@powerlines/plugin-plugin": "^0.12.335",
|
|
832
916
|
"@types/node": "^25.5.0"
|
|
833
917
|
},
|
|
834
918
|
"publishConfig": { "access": "public" },
|
|
835
|
-
"gitHead": "
|
|
919
|
+
"gitHead": "fdfc30e0bc726abf8e14067cbd334da51070d5a6"
|
|
836
920
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
const require_core_contexts_context = require('../../core/contexts/context.cjs');
|
|
4
|
-
const require_typescript_components_typescript_file = require('./typescript-file.cjs');
|
|
5
|
-
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
6
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
7
|
-
let _alloy_js_core = require("@alloy-js/core");
|
|
8
|
-
let _stryke_path_append = require("@stryke/path/append");
|
|
9
|
-
let defu = require("defu");
|
|
10
|
-
defu = require_runtime.__toESM(defu);
|
|
11
|
-
let _stryke_path_replace = require("@stryke/path/replace");
|
|
12
|
-
|
|
13
|
-
//#region src/typescript/components/infrastructure-file.tsx
|
|
14
|
-
/**
|
|
15
|
-
* A base component representing a Powerlines generated Typescript infrastructure file.
|
|
16
|
-
*
|
|
17
|
-
* @param props - The properties for the infrastructure file.
|
|
18
|
-
* @returns The rendered infrastructure file component.
|
|
19
|
-
*/
|
|
20
|
-
function InfrastructureFile(props) {
|
|
21
|
-
const [{ children, meta, id }, rest] = (0, _alloy_js_core.splitProps)(props, [
|
|
22
|
-
"children",
|
|
23
|
-
"meta",
|
|
24
|
-
"id"
|
|
25
|
-
]);
|
|
26
|
-
const context = require_core_contexts_context.usePowerlinesSafe();
|
|
27
|
-
const fullPath = (0, _alloy_js_core.computed)(() => context ? (0, _stryke_path_append.appendPath)((0, _stryke_path_file_path_fns.hasFileExtension)(id) ? "" : ".ts", (0, _stryke_path_replace.replacePath)(context.infrastructurePath, context.workspaceConfig.workspaceRoot)) : id);
|
|
28
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_typescript_components_typescript_file.TypescriptFile, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
29
|
-
get path() {
|
|
30
|
-
return fullPath.value;
|
|
31
|
-
},
|
|
32
|
-
get meta() {
|
|
33
|
-
return (0, defu.default)({ kind: "infrastructure" }, meta ?? {});
|
|
34
|
-
},
|
|
35
|
-
children
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
//#endregion
|
|
40
|
-
exports.InfrastructureFile = InfrastructureFile;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
2
|
-
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/infrastructure-file.d.ts
|
|
5
|
-
type InfrastructureFileProps = Omit<TypescriptFileProps, "path"> & {
|
|
6
|
-
/**
|
|
7
|
-
* The infrastructure module identifier.
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* A base component representing a Powerlines generated Typescript infrastructure file.
|
|
13
|
-
*
|
|
14
|
-
* @param props - The properties for the infrastructure file.
|
|
15
|
-
* @returns The rendered infrastructure file component.
|
|
16
|
-
*/
|
|
17
|
-
declare function InfrastructureFile(props: InfrastructureFileProps): _alloy_js_core0.Children;
|
|
18
|
-
declare type __ΩInfrastructureFileProps = any[];
|
|
19
|
-
//#endregion
|
|
20
|
-
export { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps };
|
|
21
|
-
//# sourceMappingURL=infrastructure-file.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"infrastructure-file.d.cts","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"mappings":";;;;KA0BY,uBAAA,GAA0B,IAAA,CAAK,mBAAA;;;AAA3C;EAIE,EAAA;AAAA;;;;;;;iBASc,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TypescriptFileProps } from "./typescript-file.mjs";
|
|
2
|
-
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region src/typescript/components/infrastructure-file.d.ts
|
|
5
|
-
type InfrastructureFileProps = Omit<TypescriptFileProps, "path"> & {
|
|
6
|
-
/**
|
|
7
|
-
* The infrastructure module identifier.
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* A base component representing a Powerlines generated Typescript infrastructure file.
|
|
13
|
-
*
|
|
14
|
-
* @param props - The properties for the infrastructure file.
|
|
15
|
-
* @returns The rendered infrastructure file component.
|
|
16
|
-
*/
|
|
17
|
-
declare function InfrastructureFile(props: InfrastructureFileProps): _alloy_js_core0.Children;
|
|
18
|
-
declare type __ΩInfrastructureFileProps = any[];
|
|
19
|
-
//#endregion
|
|
20
|
-
export { InfrastructureFile, InfrastructureFileProps, __ΩInfrastructureFileProps };
|
|
21
|
-
//# sourceMappingURL=infrastructure-file.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"infrastructure-file.d.mts","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"mappings":";;;;KA0BY,uBAAA,GAA0B,IAAA,CAAK,mBAAA;;;AAA3C;EAIE,EAAA;AAAA;;;;;;;iBASc,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,eAAA,CAAA,QAAA;AAAA"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { usePowerlinesSafe } from "../../core/contexts/context.mjs";
|
|
2
|
-
import { TypescriptFile } from "./typescript-file.mjs";
|
|
3
|
-
import { hasFileExtension } from "@stryke/path/file-path-fns";
|
|
4
|
-
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
|
-
import { computed, splitProps } from "@alloy-js/core";
|
|
6
|
-
import { appendPath } from "@stryke/path/append";
|
|
7
|
-
import defu from "defu";
|
|
8
|
-
import { replacePath } from "@stryke/path/replace";
|
|
9
|
-
|
|
10
|
-
//#region src/typescript/components/infrastructure-file.tsx
|
|
11
|
-
/**
|
|
12
|
-
* A base component representing a Powerlines generated Typescript infrastructure file.
|
|
13
|
-
*
|
|
14
|
-
* @param props - The properties for the infrastructure file.
|
|
15
|
-
* @returns The rendered infrastructure file component.
|
|
16
|
-
*/
|
|
17
|
-
function InfrastructureFile(props) {
|
|
18
|
-
const [{ children, meta, id }, rest] = splitProps(props, [
|
|
19
|
-
"children",
|
|
20
|
-
"meta",
|
|
21
|
-
"id"
|
|
22
|
-
]);
|
|
23
|
-
const context = usePowerlinesSafe();
|
|
24
|
-
const fullPath = computed(() => context ? appendPath(hasFileExtension(id) ? "" : ".ts", replacePath(context.infrastructurePath, context.workspaceConfig.workspaceRoot)) : id);
|
|
25
|
-
return createComponent(TypescriptFile, mergeProps(rest, {
|
|
26
|
-
get path() {
|
|
27
|
-
return fullPath.value;
|
|
28
|
-
},
|
|
29
|
-
get meta() {
|
|
30
|
-
return defu({ kind: "infrastructure" }, meta ?? {});
|
|
31
|
-
},
|
|
32
|
-
children
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
export { InfrastructureFile };
|
|
38
|
-
//# sourceMappingURL=infrastructure-file.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"infrastructure-file.mjs","names":[],"sources":["../../../src/typescript/components/infrastructure-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, splitProps } from \"@alloy-js/core\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport defu from \"defu\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport { TypescriptFile, TypescriptFileProps } from \"./typescript-file\";\n\nexport type InfrastructureFileProps = Omit<TypescriptFileProps, \"path\"> & {\n /**\n * The infrastructure module identifier.\n */\n id: string;\n};\n\n/**\n * A base component representing a Powerlines generated Typescript infrastructure file.\n *\n * @param props - The properties for the infrastructure file.\n * @returns The rendered infrastructure file component.\n */\nexport function InfrastructureFile(props: InfrastructureFileProps) {\n const [{ children, meta, id }, rest] = splitProps(props, [\n \"children\",\n \"meta\",\n \"id\"\n ]);\n\n const context = usePowerlinesSafe();\n const fullPath = computed(() =>\n context\n ? appendPath(\n hasFileExtension(id) ? \"\" : \".ts\",\n replacePath(\n context.infrastructurePath,\n context.workspaceConfig.workspaceRoot\n )\n )\n : id\n );\n\n return (\n <TypescriptFile\n {...rest}\n path={fullPath.value}\n meta={defu(\n {\n kind: \"infrastructure\"\n },\n meta ?? {}\n )}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAuCA,SAAgB,mBAAmB,OAAgC;CACjE,MAAM,CAAC,EACL,UACA,MACA,MACA,QAAA,WAAA,OAAA;EAAA;EAAA;EAAA;EAAA,CAAA;;CAEF,MAAM,WAAU,eAAA,UAAmB,WAAA,iBAAA,GAAA,GAAA,KAAA,OAAA,YAAA,QAAA,oBAAA,QAAA,gBAAA,cAAA,CAAA,GAAA,GAAA;AACnC,QAAM,gBAAmB,gBAAK,WAAA,MAAA;EAC5B,IAAA,OAAA;AACE,UAAE,SAAU;;EAEd,IAAI,OAAE;AACJ,UAAM,KAAA,EACJ,MAAI,kBACL,EAAE,QAAC,EAAA,CAAA;;EAEF;EACL,CAAA,CAAA"}
|