@absolutejs/absolute 0.20.0-beta.181 → 0.20.0-beta.182

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.
Files changed (120) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/changelog.json +54 -0
  3. package/dist/angular/browser.js +2 -2
  4. package/dist/angular/browser.js.map +4 -4
  5. package/dist/angular/components/constants.js +4 -0
  6. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  7. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  8. package/dist/angular/index.js +344 -48
  9. package/dist/angular/index.js.map +10 -10
  10. package/dist/angular/server.js +344 -48
  11. package/dist/angular/server.js.map +10 -10
  12. package/dist/build.js +431 -78
  13. package/dist/build.js.map +15 -15
  14. package/dist/cli/{add-8gw9mk2b.js → add-jft96bp4.js} +9 -9
  15. package/dist/cli/{analyze-e57zz9x8.js → analyze-5w46d1f0.js} +3 -3
  16. package/dist/cli/{androidEmulatorController-vqc5m2rp.js → androidEmulatorController-gbf9r660.js} +6 -6
  17. package/dist/cli/{androidNativeWatcher-s03aczxv.js → androidNativeWatcher-3astrxxz.js} +6 -6
  18. package/dist/cli/{api-8ppxw487.js → api-zmvnvdsf.js} +8 -8
  19. package/dist/cli/{build-fz7qbdn3.js → build-mskrk9zb.js} +3 -3
  20. package/dist/cli/{build-ptx5a72p.js → build-p3qra1nj.js} +64 -6
  21. package/dist/cli/{buildDepVendor-qnwfct22.js → buildDepVendor-36d1aa7c.js} +2 -2
  22. package/dist/cli/{buildReactServerComponents-01s87hnk.js → buildReactServerComponents-vc9hh2rd.js} +5 -5
  23. package/dist/cli/{compile-54rb8szn.js → compile-7mjd739p.js} +10 -6
  24. package/dist/cli/config/server.js +18 -17
  25. package/dist/cli/{db-qbzjw3en.js → db-mpmj37jq.js} +2 -2
  26. package/dist/cli/{dev-6s6g5tnk.js → dev-9d6d7757.js} +14 -14
  27. package/dist/cli/{doctor-m36tmx4d.js → doctor-nng9szw6.js} +3 -3
  28. package/dist/cli/{emulatorDoctor-s1z5tkp7.js → emulatorDoctor-3eszsqs8.js} +5 -5
  29. package/dist/cli/{emulatorInstaller-pgkdswvq.js → emulatorInstaller-1r6cawm0.js} +6 -6
  30. package/dist/cli/{env-5nz1qm8e.js → env-bfa7vs35.js} +3 -3
  31. package/dist/cli/{expoDevController-018anvbm.js → expoDevController-s0msdwbm.js} +6 -6
  32. package/dist/cli/{generate-5vyz1s44.js → generate-xk3a7qnc.js} +8 -8
  33. package/dist/cli/{heapDiff-kncvdtn8.js → heapDiff-3ba8p8wf.js} +3 -3
  34. package/dist/cli/{htmx-26hs6jdm.js → htmx-an2x3gpx.js} +6 -6
  35. package/dist/cli/{index-7854xf0m.js → index-1bszxtdj.js} +1 -1
  36. package/dist/cli/{index-kx2d067c.js → index-3066eqr3.js} +8 -5
  37. package/dist/cli/{index-8khbn8qr.js → index-3a9h87v5.js} +3 -3
  38. package/dist/cli/{index-9djrap79.js → index-3pz5sjaz.js} +1 -1
  39. package/dist/cli/{index-50ag35xg.js → index-3ys9tz53.js} +2 -2
  40. package/dist/cli/{index-6f448d7m.js → index-4ynx0cq6.js} +26 -12
  41. package/dist/cli/{index-btp4fyf1.js → index-785hpa2r.js} +2 -2
  42. package/dist/cli/{index-5w8arh3m.js → index-7zwzyymv.js} +2 -2
  43. package/dist/cli/{index-kes8he5s.js → index-9sqqzeq4.js} +1 -1
  44. package/dist/cli/{index-pr1skxen.js → index-akseq9ps.js} +1 -1
  45. package/dist/cli/{index-23hvdyxf.js → index-c6j2727a.js} +1 -1
  46. package/dist/cli/{index-pkw3jktb.js → index-eh786rj4.js} +2 -2
  47. package/dist/cli/{index-aemhvvwb.js → index-eydgkr7w.js} +1 -1
  48. package/dist/cli/{index-rz56x932.js → index-fbmfpqk8.js} +1 -1
  49. package/dist/cli/{index-c8rcfe5a.js → index-fy4th3n0.js} +1 -1
  50. package/dist/cli/{index-prza6tkp.js → index-gx6pjzzk.js} +3 -3
  51. package/dist/cli/{index-125cfzvn.js → index-hker5fs4.js} +2 -2
  52. package/dist/cli/{index-cgmp9d02.js → index-hqkcxa2p.js} +1 -1
  53. package/dist/cli/{index-jkg2h10c.js → index-mmm6d3k5.js} +3 -3
  54. package/dist/cli/{index-enbw9484.js → index-wpgsermq.js} +1 -1
  55. package/dist/cli/{index-0z5fgb80.js → index-wqpg377f.js} +1 -1
  56. package/dist/cli/{index-3sfcmb49.js → index-x7h6w6td.js} +1 -1
  57. package/dist/cli/{index-a6xx0p9e.js → index-ydaxsftq.js} +1 -1
  58. package/dist/cli/{index-3ewt17wm.js → index-yhkg5by0.js} +1 -1
  59. package/dist/cli/{index-aqe25w4h.js → index-zeeep92g.js} +1 -1
  60. package/dist/cli/index.js +32 -32
  61. package/dist/cli/{info-k124sh7g.js → info-5rwsbhe2.js} +4 -4
  62. package/dist/cli/{inspect-n6pcfvfw.js → inspect-nmwb0q5k.js} +5 -5
  63. package/dist/cli/{iosNativeWatcher-wdq2fvj1.js → iosNativeWatcher-7r9gnk87.js} +7 -7
  64. package/dist/cli/{iosSimulatorController-n97dpa8p.js → iosSimulatorController-w963vv9r.js} +7 -7
  65. package/dist/cli/{islands-17tfx8jf.js → islands-w9xrehpk.js} +3 -3
  66. package/dist/cli/{logs-shg23fbt.js → logs-m793x8a7.js} +3 -3
  67. package/dist/cli/{ls-0wr74w0b.js → ls-k31npd5b.js} +3 -3
  68. package/dist/cli/{mem-16sy1707.js → mem-jm6kw6gr.js} +5 -5
  69. package/dist/cli/{migrate-k91k050s.js → migrate-95bjkqkr.js} +2 -2
  70. package/dist/cli/{mobile-hpqpy61f.js → mobile-cpp8vfn7.js} +13 -13
  71. package/dist/cli/prerender-26pzynh4.js +13 -0
  72. package/dist/cli/{prettier-dh5fh786.js → prettier-0ws9pbc1.js} +1 -1
  73. package/dist/cli/{ps-pk7ncjac.js → ps-fx8mz3e3.js} +6 -6
  74. package/dist/cli/{psTui-50wf0b72.js → psTui-0e9c7an6.js} +7 -7
  75. package/dist/cli/{remoteMacProtocol-g10s408w.js → remoteMacProtocol-y7h79gr8.js} +7 -7
  76. package/dist/cli/{remove-x987pvd3.js → remove-xhvph8bz.js} +8 -8
  77. package/dist/cli/{routes-mc3ymp8t.js → routes-hq9yje5z.js} +3 -3
  78. package/dist/cli/{start-mbn2zgs2.js → start-5mjh9hh2.js} +5 -5
  79. package/dist/cli/{typecheck-ynzw2eep.js → typecheck-yjme4fv1.js} +36 -14
  80. package/dist/cli/{workspace-7sbyyc59.js → workspace-xeb6abxj.js} +5 -5
  81. package/dist/index.js +446 -90
  82. package/dist/index.js.map +17 -17
  83. package/dist/islands/index.js +312 -23
  84. package/dist/islands/index.js.map +5 -5
  85. package/dist/mobile/index.js +2 -2
  86. package/dist/mobile/index.js.map +3 -3
  87. package/dist/react/browser.js +18 -1
  88. package/dist/react/browser.js.map +6 -4
  89. package/dist/react/components/index.js +2 -2
  90. package/dist/react/components/index.js.map +3 -3
  91. package/dist/react/index.js +361 -61
  92. package/dist/react/index.js.map +13 -12
  93. package/dist/react/server.js +42 -35
  94. package/dist/react/server.js.map +9 -9
  95. package/dist/src/angular/components/constants.d.ts +1 -0
  96. package/dist/src/angular/components/defer-slot-payload.d.ts +5 -0
  97. package/dist/src/cli/scripts/manifestKeysEditorHint.d.ts +9 -0
  98. package/dist/src/constants.d.ts +1 -0
  99. package/dist/src/core/prerender.d.ts +10 -0
  100. package/dist/src/react/browser.d.ts +1 -0
  101. package/dist/src/react/index.d.ts +1 -0
  102. package/dist/src/svelte/lowerAwaitSlotSyntax.d.ts +23 -0
  103. package/dist/src/utils/pageCspNonce.d.ts +14 -0
  104. package/dist/svelte/index.js +363 -68
  105. package/dist/svelte/index.js.map +10 -10
  106. package/dist/svelte/server.js +354 -59
  107. package/dist/svelte/server.js.map +10 -10
  108. package/dist/types/manifest.d.ts +3 -2
  109. package/dist/types/svelte.d.ts +3 -0
  110. package/dist/vue/components/Image.js +2 -2
  111. package/dist/vue/components/Image.js.map +3 -3
  112. package/dist/vue/components/index.js +2 -2
  113. package/dist/vue/components/index.js.map +3 -3
  114. package/dist/vue/index.js +355 -60
  115. package/dist/vue/index.js.map +10 -10
  116. package/dist/vue/server.js +45 -39
  117. package/dist/vue/server.js.map +8 -8
  118. package/package.json +1 -1
  119. package/dist/cli/prerender-w65xp6h8.js +0 -11
  120. /package/dist/cli/{index-t8jmj8w1.js → index-fm9x6sjs.js} +0 -0
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import"./index-71gchbzt.js";
3
- import"./index-t8jmj8w1.js";
3
+ import"./index-fm9x6sjs.js";
4
4
  import {
5
5
  colors,
6
6
  padLine
7
- } from "./index-9djrap79.js";
7
+ } from "./index-3pz5sjaz.js";
8
8
  import {
9
9
  discoverInstances,
10
10
  enrichInstances
11
- } from "./index-aemhvvwb.js";
11
+ } from "./index-eydgkr7w.js";
12
12
 
13
13
  // src/cli/scripts/routes.ts
14
14
  var METHOD_COLOR = {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  start2
4
- } from "./index-kx2d067c.js";
4
+ } from "./index-3066eqr3.js";
5
5
  import"./index-js2hksgv.js";
6
6
  import"./index-42xjh6gg.js";
7
7
  import"./index-w6xsk8cv.js";
@@ -14,10 +14,10 @@ import"./index-0gd30trc.js";
14
14
  import"./index-ycqdxy55.js";
15
15
  import"./index-4j1twret.js";
16
16
  import"./index-pch0v1z6.js";
17
- import"./index-125cfzvn.js";
18
- import"./index-3ewt17wm.js";
19
- import"./index-pr1skxen.js";
20
- import"./index-t8jmj8w1.js";
17
+ import"./index-hker5fs4.js";
18
+ import"./index-yhkg5by0.js";
19
+ import"./index-akseq9ps.js";
20
+ import"./index-fm9x6sjs.js";
21
21
  export {
22
22
  start2 as start
23
23
  };
@@ -10,15 +10,15 @@ import {
10
10
  } from "./index-4j1twret.js";
11
11
  import {
12
12
  ANSI_ESCAPE_CODE
13
- } from "./index-t8jmj8w1.js";
13
+ } from "./index-fm9x6sjs.js";
14
14
  import {
15
15
  ensureFileRouteModule
16
16
  } from "./index-47e8fwha.js";
17
- import"./index-aqe25w4h.js";
17
+ import"./index-zeeep92g.js";
18
18
  import {
19
19
  MANIFEST_KEYS_DECLARATION,
20
20
  writeManifestKeysDeclaration
21
- } from "./index-jkg2h10c.js";
21
+ } from "./index-mmm6d3k5.js";
22
22
  import {
23
23
  getString,
24
24
  isRecord
@@ -26,9 +26,9 @@ import {
26
26
  import"./index-w6xsk8cv.js";
27
27
  import {
28
28
  DEFAULT_SERVER_ENTRY
29
- } from "./index-125cfzvn.js";
30
- import"./index-3ewt17wm.js";
31
- import"./index-pr1skxen.js";
29
+ } from "./index-hker5fs4.js";
30
+ import"./index-yhkg5by0.js";
31
+ import"./index-akseq9ps.js";
32
32
 
33
33
  // src/cli/scripts/typecheck.ts
34
34
  import { dirname as dirname3, join as join2, parse as parse3, relative as relative2, resolve as resolve4 } from "path";
@@ -1241,6 +1241,31 @@ var svelteDeclarationRootDirs = (projectRoot, fromDir) => [
1241
1241
  ];
1242
1242
  var tsconfigHasSvelteDeclarationRoot = (rootDirs) => Array.isArray(rootDirs) && rootDirs.some((entry) => typeof entry === "string" && entry.replace(/^\.\//, "").replace(/\/$/, "") === SVELTE_DECLARATIONS_ROOT);
1243
1243
 
1244
+ // src/cli/scripts/manifestKeysEditorHint.ts
1245
+ var toEntries = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string").map((entry) => entry.trim().replace(/\\/g, "/").replace(/^(?:\.\/)+/, "").replace(/\/+$/, "")) : [];
1246
+ var escapeRegex = (text) => text.replace(/[.+^${}()|[\]\\]/g, "\\$&");
1247
+ var patternMatches = (pattern, path) => {
1248
+ const source = pattern.split("/").map((segment) => {
1249
+ if (segment === "**")
1250
+ return "(?:[^./][^/]*/)*";
1251
+ const body = escapeRegex(segment).replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]");
1252
+ return /^[*?]/.test(segment) ? `(?!\\.)${body}/` : `${body}/`;
1253
+ }).join("");
1254
+ return new RegExp(`^${source}`).test(`${path}/`);
1255
+ };
1256
+ var manifestKeysEditorHint = (config) => {
1257
+ const path = MANIFEST_KEYS_DECLARATION;
1258
+ const files = toEntries(config.files);
1259
+ if (files.includes(path))
1260
+ return null;
1261
+ const excluded = toEntries(config.exclude).some((pattern) => patternMatches(pattern, path));
1262
+ const included = toEntries(config.include).some((pattern) => patternMatches(pattern, path));
1263
+ if (included && !excluded)
1264
+ return null;
1265
+ const where = excluded ? `to "files" in tsconfig.json ("exclude" removes it from "include", but not from "files"): "files": ["${path}"]` : `to "include" in tsconfig.json`;
1266
+ return `\x1B[33mnote\x1B[0m asset(manifest, key) keys are checked by this command. For the same check in your editor, add "${path}" ${where}.`;
1267
+ };
1268
+
1244
1269
  // src/cli/scripts/typecheckDiagnostics.ts
1245
1270
  import { resolve as resolve3 } from "path";
1246
1271
  var ANSI_COLOR_REGEX = new RegExp(`${String.fromCharCode(ANSI_ESCAPE_CODE)}\\[[0-9;]*m`, "g");
@@ -1533,7 +1558,6 @@ var svelteRoots = (projectRoot, svelteDirs, svelteFiles) => {
1533
1558
  return roots.map((dir) => relative2(projectRoot, dir) || ".");
1534
1559
  };
1535
1560
  var manifestKeyDeclarations = [];
1536
- var MANIFEST_KEYS_EDITOR_HINT = `\x1B[33mnote\x1B[0m asset(manifest, key) keys are checked by this command. For the same check in your editor, add "${MANIFEST_KEYS_DECLARATION}" to include in tsconfig.json.`;
1537
1561
  var prepareManifestKeys = async (targets) => {
1538
1562
  const byRoot = new Map;
1539
1563
  for (const target of targets) {
@@ -1542,13 +1566,11 @@ var prepareManifestKeys = async (targets) => {
1542
1566
  }
1543
1567
  const written = await Promise.all([...byRoot].map(([root, configs]) => writeManifestKeysDeclaration(configs, root)));
1544
1568
  manifestKeyDeclarations = written.filter((path) => path !== null);
1545
- const config = readProjectTsconfig();
1546
- const listed = [
1547
- ...toStringArray(config.include),
1548
- ...toStringArray(config.files)
1549
- ].some((entry) => entry.replace(/^\.\//, "").startsWith(".absolutejs"));
1550
- if (manifestKeyDeclarations.length > 0 && !listed)
1551
- console.log(MANIFEST_KEYS_EDITOR_HINT);
1569
+ if (manifestKeyDeclarations.length === 0)
1570
+ return;
1571
+ const hint = manifestKeysEditorHint(readProjectTsconfig());
1572
+ if (hint)
1573
+ console.log(hint);
1552
1574
  };
1553
1575
  var svelteDeclarationsReady = false;
1554
1576
  var getTypecheckRootDirs = (cacheDir) => {
@@ -25,7 +25,7 @@ import {
25
25
  WORKSPACE_TUI_STATUS_WIDTH,
26
26
  WORKSPACE_TUI_TARGET_PADDING_WIDTH,
27
27
  WORKSPACE_TUI_VISIBILITY_WIDTH
28
- } from "./index-t8jmj8w1.js";
28
+ } from "./index-fm9x6sjs.js";
29
29
  import {
30
30
  getWorkspaceServices,
31
31
  loadRawConfig
@@ -45,16 +45,16 @@ import {
45
45
  stripAnsi,
46
46
  truncateText,
47
47
  wrapText
48
- } from "./index-9djrap79.js";
48
+ } from "./index-3pz5sjaz.js";
49
49
  import {
50
50
  DEFAULT_SERVER_ENTRY,
51
51
  isWSLEnvironment,
52
52
  killStaleProcesses
53
- } from "./index-125cfzvn.js";
54
- import"./index-3ewt17wm.js";
53
+ } from "./index-hker5fs4.js";
54
+ import"./index-yhkg5by0.js";
55
55
  import {
56
56
  getDurationString
57
- } from "./index-pr1skxen.js";
57
+ } from "./index-akseq9ps.js";
58
58
 
59
59
  // src/cli/scripts/workspace.ts
60
60
  import {