@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.
Files changed (39) hide show
  1. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  2. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  3. package/dist/angular/index.js +285 -136
  4. package/dist/angular/index.js.map +6 -5
  5. package/dist/angular/server.js +267 -118
  6. package/dist/angular/server.js.map +6 -5
  7. package/dist/build.js +736 -584
  8. package/dist/build.js.map +17 -16
  9. package/dist/dev/client/handlers/angularHmrShim.ts +4 -1
  10. package/dist/dev/client/handlers/angularRemount.ts +2 -2
  11. package/dist/dev/client/handlers/angularRemountWiring.ts +1 -4
  12. package/dist/dev/client/vendor/lview/lViewOps.ts +8 -6
  13. package/dist/index.js +854 -651
  14. package/dist/index.js.map +21 -19
  15. package/dist/islands/index.js +105 -2
  16. package/dist/islands/index.js.map +5 -4
  17. package/dist/react/index.js +167 -18
  18. package/dist/react/index.js.map +6 -5
  19. package/dist/react/server.js +63 -17
  20. package/dist/react/server.js.map +3 -3
  21. package/dist/src/core/normalizeIslandProps.d.ts +15 -0
  22. package/dist/src/core/vueServerModule.d.ts +1 -0
  23. package/dist/src/utils/defineConvention.d.ts +3 -0
  24. package/dist/src/utils/index.d.ts +1 -0
  25. package/dist/src/vue/Island.browser.d.ts +36 -12
  26. package/dist/src/vue/Island.d.ts +35 -11
  27. package/dist/src/vue/pageHandler.d.ts +8 -0
  28. package/dist/svelte/index.js +167 -18
  29. package/dist/svelte/index.js.map +6 -5
  30. package/dist/svelte/server.js +63 -17
  31. package/dist/svelte/server.js.map +3 -3
  32. package/dist/types/conventions.d.ts +5 -0
  33. package/dist/vue/browser.js +57 -4
  34. package/dist/vue/browser.js.map +5 -4
  35. package/dist/vue/index.js +234 -24
  36. package/dist/vue/index.js.map +9 -7
  37. package/dist/vue/server.js +73 -20
  38. package/dist/vue/server.js.map +4 -4
  39. package/package.json +1 -1
@@ -59,7 +59,10 @@ const installAngularHmrShim = (): AngularHmrBus => {
59
59
  try {
60
60
  cb(data);
61
61
  } catch (err) {
62
- console.error('[absolutejs] angular HMR listener threw', err);
62
+ console.error(
63
+ '[absolutejs] angular HMR listener threw',
64
+ err
65
+ );
63
66
  }
64
67
  }
65
68
  }
@@ -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 } }).constructor
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) parentLView[CHILD_HEAD] = newLView;
72
- if (parentLView[CHILD_TAIL] === oldLView) parentLView[CHILD_TAIL] = newLView;
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>)[propKey];
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) {