@absolutejs/absolute 0.19.0-beta.1030 → 0.19.0-beta.1032

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 (74) hide show
  1. package/dist/angular/browser.js +18 -16
  2. package/dist/angular/browser.js.map +5 -5
  3. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  4. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  5. package/dist/angular/hmrPreserveCore.ts +83 -118
  6. package/dist/angular/index.js +49 -49
  7. package/dist/angular/index.js.map +12 -12
  8. package/dist/angular/server.js +34 -34
  9. package/dist/angular/server.js.map +10 -10
  10. package/dist/build.js +135 -135
  11. package/dist/build.js.map +26 -26
  12. package/dist/cli/config/client.js +1 -1
  13. package/dist/cli/config/server.js +43 -43
  14. package/dist/cli/index.js +247 -168
  15. package/dist/client/index.js +9 -9
  16. package/dist/client/index.js.map +8 -8
  17. package/dist/dev/client/errorOverlay.ts +4 -4
  18. package/dist/dev/client/handlers/angularHmrShim.ts +17 -17
  19. package/dist/dev/client/handlers/angularRemount.ts +6 -4
  20. package/dist/dev/client/handlers/angularRemountWiring.ts +1 -1
  21. package/dist/dev/client/hmrToast.ts +18 -18
  22. package/dist/index.js +149 -150
  23. package/dist/index.js.map +31 -31
  24. package/dist/islands/browser.js.map +1 -1
  25. package/dist/islands/index.js +5 -5
  26. package/dist/islands/index.js.map +6 -6
  27. package/dist/react/browser.js.map +1 -1
  28. package/dist/react/components/index.js +2 -2
  29. package/dist/react/components/index.js.map +3 -3
  30. package/dist/react/hooks/index.js.map +1 -1
  31. package/dist/react/index.js +21 -21
  32. package/dist/react/index.js.map +9 -9
  33. package/dist/react/server.js +17 -17
  34. package/dist/react/server.js.map +5 -5
  35. package/dist/src/angular/hmrPreserveCore.d.ts +5 -18
  36. package/dist/src/angular/islands.d.ts +1 -1
  37. package/dist/src/cli/config/packageJson/editPackageJson.d.ts +2 -2
  38. package/dist/src/cli/config/schema/fromJsonSchema.d.ts +1 -1
  39. package/dist/src/client/hydrators/react.d.ts +1 -1
  40. package/dist/src/client/hydrators/svelte.d.ts +1 -1
  41. package/dist/src/client/hydrators/vue.d.ts +1 -1
  42. package/dist/src/client/islandStore.d.ts +3 -3
  43. package/dist/src/core/devRouteRegistrationCallsite.d.ts +1 -5
  44. package/dist/src/dev/angular/fastHmrCompiler.d.ts +2 -2
  45. package/dist/src/dev/angular/hmrCompiler.d.ts +1 -1
  46. package/dist/src/dev/angular/resolveOwningComponents.d.ts +1 -1
  47. package/dist/src/svelte/router/hashMode.d.ts +1 -6
  48. package/dist/src/svelte/router/matchPath.d.ts +2 -22
  49. package/dist/src/svelte/router/page.svelte.d.ts +1 -10
  50. package/dist/src/svelte/router/prefetchCache.d.ts +2 -6
  51. package/dist/src/utils/generatedDir.d.ts +1 -1
  52. package/dist/src/utils/inlinePageCss.d.ts +1 -3
  53. package/dist/src/utils/jsonLd.d.ts +1 -1
  54. package/dist/src/utils/loadConfig.d.ts +2 -3
  55. package/dist/src/utils/resolveConvention.d.ts +1 -1
  56. package/dist/src/utils/runtimeMode.d.ts +1 -1
  57. package/dist/src/vue/defineVuePage.d.ts +1 -11
  58. package/dist/svelte/browser.js.map +1 -1
  59. package/dist/svelte/index.js +26 -26
  60. package/dist/svelte/index.js.map +9 -9
  61. package/dist/svelte/router/hashMode.ts +6 -12
  62. package/dist/svelte/router/matchPath.ts +23 -45
  63. package/dist/svelte/router/page.d.ts +1 -10
  64. package/dist/svelte/router/page.js +6 -6
  65. package/dist/svelte/router/prefetchCache.ts +12 -20
  66. package/dist/svelte/server.js +22 -22
  67. package/dist/svelte/server.js.map +5 -5
  68. package/dist/vue/browser.js +2 -2
  69. package/dist/vue/browser.js.map +4 -4
  70. package/dist/vue/index.js +29 -29
  71. package/dist/vue/index.js.map +11 -11
  72. package/dist/vue/server.js +24 -24
  73. package/dist/vue/server.js.map +6 -6
  74. package/package.json +38 -38
@@ -94,7 +94,7 @@ const findLiveInstances = (Class: ComponentClass): LiveInstance[] => {
94
94
 
95
95
  const slot = lContext.lView[lContext.nodeIndex];
96
96
  if (!isLView(slot)) continue;
97
- const ownLView = slot as LView;
97
+ const ownLView = slot;
98
98
  const instance = ownLView[CONTEXT];
99
99
  if (!(instance instanceof Class)) continue;
100
100
 
@@ -114,6 +114,7 @@ const findLiveInstances = (Class: ComponentClass): LiveInstance[] => {
114
114
  tNode
115
115
  });
116
116
  }
117
+
117
118
  return results;
118
119
  };
119
120
 
@@ -136,8 +137,8 @@ const createFreshAt = (
136
137
  if (!envInjector) return null;
137
138
 
138
139
  const ref = core.createComponent(Class, {
139
- hostElement,
140
- environmentInjector: envInjector
140
+ environmentInjector: envInjector,
141
+ hostElement
141
142
  });
142
143
 
143
144
  const newLView = ref.hostView._lView;
@@ -146,10 +147,11 @@ const createFreshAt = (
146
147
  // internal createComponent path. If it is missing, our slot
147
148
  // constants might be off; bail to caller for fallback.
148
149
  ref.destroy();
150
+
149
151
  return null;
150
152
  }
151
153
 
152
- return { instance: ref.instance, newLView, componentRef: ref };
154
+ return { componentRef: ref, instance: ref.instance, newLView };
153
155
  };
154
156
 
155
157
  /* Splice `newLView` into `parentLView` at `slotIndex`, replacing
@@ -9,7 +9,7 @@ import type {} from '../../../types/globals';
9
9
  import { remountComponentClass, type RemountResult } from './angularRemount';
10
10
 
11
11
  declare global {
12
- // eslint-disable-next-line no-var
12
+
13
13
  var __absAngularRemount:
14
14
  | ((
15
15
  Class: new (...args: unknown[]) => unknown,
@@ -24,18 +24,18 @@ const ensureContainer = (): HTMLDivElement => {
24
24
  const container = document.createElement('div');
25
25
  container.id = CONTAINER_ID;
26
26
  Object.assign(container.style, {
27
- position: 'fixed',
28
27
  bottom: '16px',
29
- right: '16px',
30
28
  display: 'flex',
31
29
  flexDirection: 'column',
32
- gap: '8px',
33
- zIndex: '2147483646',
34
- pointerEvents: 'none',
35
30
  fontFamily:
36
31
  'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',
37
32
  fontSize: '12px',
38
- maxWidth: '420px'
33
+ gap: '8px',
34
+ maxWidth: '420px',
35
+ pointerEvents: 'none',
36
+ position: 'fixed',
37
+ right: '16px',
38
+ zIndex: '2147483646'
39
39
  });
40
40
  document.body.appendChild(container);
41
41
 
@@ -72,27 +72,27 @@ export const showHmrToast = ({
72
72
  const accent = accentForType(updateType);
73
73
  Object.assign(toast.style, {
74
74
  background: 'rgba(15, 17, 22, 0.94)',
75
- color: '#f8fafc',
76
75
  borderLeft: `3px solid ${accent}`,
77
- padding: '8px 12px',
78
76
  borderRadius: '6px',
79
77
  boxShadow: '0 6px 24px rgba(0, 0, 0, 0.35)',
78
+ color: '#f8fafc',
79
+ maxWidth: '420px',
80
80
  opacity: '0',
81
- transform: 'translateY(6px)',
82
- transition: `opacity ${FADE_MS}ms ease, transform ${FADE_MS}ms ease`,
83
- pointerEvents: 'auto',
84
- whiteSpace: 'nowrap',
85
81
  overflow: 'hidden',
82
+ padding: '8px 12px',
83
+ pointerEvents: 'auto',
86
84
  textOverflow: 'ellipsis',
87
- maxWidth: '420px'
85
+ transform: 'translateY(6px)',
86
+ transition: `opacity ${FADE_MS}ms ease, transform ${FADE_MS}ms ease`,
87
+ whiteSpace: 'nowrap'
88
88
  });
89
89
 
90
90
  const label = document.createElement('div');
91
91
  Object.assign(label.style, {
92
92
  color: accent,
93
93
  fontWeight: '600',
94
- marginBottom: '2px',
95
- letterSpacing: '0.02em'
94
+ letterSpacing: '0.02em',
95
+ marginBottom: '2px'
96
96
  });
97
97
  label.textContent = `HMR reboot — ${updateType ?? 'unknown'}`;
98
98
  toast.appendChild(label);
@@ -110,11 +110,11 @@ export const showHmrToast = ({
110
110
  const path = document.createElement('div');
111
111
  Object.assign(path.style, {
112
112
  color: '#64748b',
113
- marginTop: '2px',
114
113
  fontSize: '11px',
115
- whiteSpace: 'nowrap',
114
+ marginTop: '2px',
116
115
  overflow: 'hidden',
117
- textOverflow: 'ellipsis'
116
+ textOverflow: 'ellipsis',
117
+ whiteSpace: 'nowrap'
118
118
  });
119
119
  // Format like the server logger does: relative + leading slash.
120
120
  const cwdLike = editSourceFile.replace(/^.*?(\/src\/|\/pages\/)/, '$1');