@absolutejs/absolute 0.19.0-beta.931 → 0.19.0-beta.932
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/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +285 -136
- package/dist/angular/index.js.map +6 -5
- package/dist/angular/server.js +267 -118
- package/dist/angular/server.js.map +6 -5
- package/dist/build.js +736 -584
- package/dist/build.js.map +17 -16
- package/dist/dev/client/handlers/angularHmrShim.ts +4 -1
- package/dist/dev/client/handlers/angularRemount.ts +2 -2
- package/dist/dev/client/handlers/angularRemountWiring.ts +1 -4
- package/dist/dev/client/vendor/lview/lViewOps.ts +8 -6
- package/dist/index.js +854 -651
- package/dist/index.js.map +21 -19
- package/dist/islands/index.js +105 -2
- package/dist/islands/index.js.map +5 -4
- package/dist/react/index.js +167 -18
- package/dist/react/index.js.map +6 -5
- package/dist/react/server.js +63 -17
- package/dist/react/server.js.map +3 -3
- package/dist/src/core/normalizeIslandProps.d.ts +15 -0
- package/dist/src/core/vueServerModule.d.ts +1 -0
- package/dist/src/utils/defineConvention.d.ts +3 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/vue/Island.browser.d.ts +36 -12
- package/dist/src/vue/Island.d.ts +35 -11
- package/dist/src/vue/pageHandler.d.ts +8 -0
- package/dist/svelte/index.js +167 -18
- package/dist/svelte/index.js.map +6 -5
- package/dist/svelte/server.js +63 -17
- package/dist/svelte/server.js.map +3 -3
- package/dist/types/conventions.d.ts +5 -0
- package/dist/vue/browser.js +57 -4
- package/dist/vue/browser.js.map +5 -4
- package/dist/vue/index.js +234 -24
- package/dist/vue/index.js.map +9 -7
- package/dist/vue/server.js +73 -20
- package/dist/vue/server.js.map +4 -4
- package/package.json +1 -1
|
@@ -226,8 +226,8 @@ const copyInputsFromOldToNew = (
|
|
|
226
226
|
newInstance: unknown
|
|
227
227
|
): void => {
|
|
228
228
|
if (!oldInstance || !newInstance) return;
|
|
229
|
-
const def = (newInstance as { constructor?: { ɵcmp?: unknown } })
|
|
230
|
-
?.ɵcmp as { inputs?: Record<string, unknown> } | undefined;
|
|
229
|
+
const def = (newInstance as { constructor?: { ɵcmp?: unknown } })
|
|
230
|
+
.constructor?.ɵcmp as { inputs?: Record<string, unknown> } | undefined;
|
|
231
231
|
const inputs = def?.inputs;
|
|
232
232
|
if (!inputs) return;
|
|
233
233
|
|
|
@@ -6,10 +6,7 @@ import type {} from '../../../types/globals';
|
|
|
6
6
|
* else is generic, so the implementation is shared rather than baked
|
|
7
7
|
* into every component bundle. */
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
remountComponentClass,
|
|
11
|
-
type RemountResult
|
|
12
|
-
} from './angularRemount';
|
|
9
|
+
import { remountComponentClass, type RemountResult } from './angularRemount';
|
|
13
10
|
|
|
14
11
|
declare global {
|
|
15
12
|
// eslint-disable-next-line no-var
|
|
@@ -68,8 +68,10 @@ export const replaceLViewInTree = (
|
|
|
68
68
|
break;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
if (parentLView[CHILD_HEAD] === oldLView)
|
|
72
|
-
|
|
71
|
+
if (parentLView[CHILD_HEAD] === oldLView)
|
|
72
|
+
parentLView[CHILD_HEAD] = newLView;
|
|
73
|
+
if (parentLView[CHILD_TAIL] === oldLView)
|
|
74
|
+
parentLView[CHILD_TAIL] = newLView;
|
|
73
75
|
newLView[NEXT] = oldLView[NEXT];
|
|
74
76
|
oldLView[NEXT] = null;
|
|
75
77
|
parentLView[index] = newLView;
|
|
@@ -105,7 +107,9 @@ export const executeOnDestroys = (tView: TView, lView: LView): void => {
|
|
|
105
107
|
for (let j = 0; j < toCall.length; j += 2) {
|
|
106
108
|
const propKey = toCall[j] as string;
|
|
107
109
|
const hook = toCall[j + 1] as () => void;
|
|
108
|
-
const callContext = (context as Record<string, unknown>)[
|
|
110
|
+
const callContext = (context as Record<string, unknown>)[
|
|
111
|
+
propKey
|
|
112
|
+
];
|
|
109
113
|
try {
|
|
110
114
|
hook.call(callContext);
|
|
111
115
|
} catch (err) {
|
|
@@ -170,9 +174,7 @@ export const processCleanups = (tView: TView, lView: LView): void => {
|
|
|
170
174
|
lView[CLEANUP] = null;
|
|
171
175
|
}
|
|
172
176
|
|
|
173
|
-
const onDestroyHooks = lView[ON_DESTROY_HOOKS] as
|
|
174
|
-
| Array<() => void>
|
|
175
|
-
| null;
|
|
177
|
+
const onDestroyHooks = lView[ON_DESTROY_HOOKS] as Array<() => void> | null;
|
|
176
178
|
if (onDestroyHooks !== null) {
|
|
177
179
|
lView[ON_DESTROY_HOOKS] = null;
|
|
178
180
|
for (const hook of onDestroyHooks) {
|