@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.
- package/dist/angular/browser.js +18 -16
- package/dist/angular/browser.js.map +5 -5
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/hmrPreserveCore.ts +83 -118
- package/dist/angular/index.js +49 -49
- package/dist/angular/index.js.map +12 -12
- package/dist/angular/server.js +34 -34
- package/dist/angular/server.js.map +10 -10
- package/dist/build.js +135 -135
- package/dist/build.js.map +26 -26
- package/dist/cli/config/client.js +1 -1
- package/dist/cli/config/server.js +43 -43
- package/dist/cli/index.js +247 -168
- package/dist/client/index.js +9 -9
- package/dist/client/index.js.map +8 -8
- package/dist/dev/client/errorOverlay.ts +4 -4
- package/dist/dev/client/handlers/angularHmrShim.ts +17 -17
- package/dist/dev/client/handlers/angularRemount.ts +6 -4
- package/dist/dev/client/handlers/angularRemountWiring.ts +1 -1
- package/dist/dev/client/hmrToast.ts +18 -18
- package/dist/index.js +149 -150
- package/dist/index.js.map +31 -31
- package/dist/islands/browser.js.map +1 -1
- package/dist/islands/index.js +5 -5
- package/dist/islands/index.js.map +6 -6
- package/dist/react/browser.js.map +1 -1
- package/dist/react/components/index.js +2 -2
- package/dist/react/components/index.js.map +3 -3
- package/dist/react/hooks/index.js.map +1 -1
- package/dist/react/index.js +21 -21
- package/dist/react/index.js.map +9 -9
- package/dist/react/server.js +17 -17
- package/dist/react/server.js.map +5 -5
- package/dist/src/angular/hmrPreserveCore.d.ts +5 -18
- package/dist/src/angular/islands.d.ts +1 -1
- package/dist/src/cli/config/packageJson/editPackageJson.d.ts +2 -2
- package/dist/src/cli/config/schema/fromJsonSchema.d.ts +1 -1
- package/dist/src/client/hydrators/react.d.ts +1 -1
- package/dist/src/client/hydrators/svelte.d.ts +1 -1
- package/dist/src/client/hydrators/vue.d.ts +1 -1
- package/dist/src/client/islandStore.d.ts +3 -3
- package/dist/src/core/devRouteRegistrationCallsite.d.ts +1 -5
- package/dist/src/dev/angular/fastHmrCompiler.d.ts +2 -2
- package/dist/src/dev/angular/hmrCompiler.d.ts +1 -1
- package/dist/src/dev/angular/resolveOwningComponents.d.ts +1 -1
- package/dist/src/svelte/router/hashMode.d.ts +1 -6
- package/dist/src/svelte/router/matchPath.d.ts +2 -22
- package/dist/src/svelte/router/page.svelte.d.ts +1 -10
- package/dist/src/svelte/router/prefetchCache.d.ts +2 -6
- package/dist/src/utils/generatedDir.d.ts +1 -1
- package/dist/src/utils/inlinePageCss.d.ts +1 -3
- package/dist/src/utils/jsonLd.d.ts +1 -1
- package/dist/src/utils/loadConfig.d.ts +2 -3
- package/dist/src/utils/resolveConvention.d.ts +1 -1
- package/dist/src/utils/runtimeMode.d.ts +1 -1
- package/dist/src/vue/defineVuePage.d.ts +1 -11
- package/dist/svelte/browser.js.map +1 -1
- package/dist/svelte/index.js +26 -26
- package/dist/svelte/index.js.map +9 -9
- package/dist/svelte/router/hashMode.ts +6 -12
- package/dist/svelte/router/matchPath.ts +23 -45
- package/dist/svelte/router/page.d.ts +1 -10
- package/dist/svelte/router/page.js +6 -6
- package/dist/svelte/router/prefetchCache.ts +12 -20
- package/dist/svelte/server.js +22 -22
- package/dist/svelte/server.js.map +5 -5
- package/dist/vue/browser.js +2 -2
- package/dist/vue/browser.js.map +4 -4
- package/dist/vue/index.js +29 -29
- package/dist/vue/index.js.map +11 -11
- package/dist/vue/server.js +24 -24
- package/dist/vue/server.js.map +6 -6
- 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
|
|
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
|
-
|
|
140
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
95
|
-
|
|
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
|
-
|
|
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');
|