@absolutejs/absolute 0.19.0-beta.421 → 0.19.0-beta.422
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/ai/client/index.js +15 -1
- package/dist/ai/client/index.js.map +3 -3
- package/dist/ai/index.js +240 -8
- package/dist/ai/index.js.map +8 -7
- package/dist/ai-client/angular/ai/index.js +14 -0
- package/dist/ai-client/react/ai/index.js +14 -0
- package/dist/ai-client/vue/ai/index.js +14 -0
- package/dist/angular/ai/index.js +15 -1
- package/dist/angular/ai/index.js.map +3 -3
- package/dist/angular/browser.js +8 -11
- package/dist/angular/browser.js.map +3 -3
- package/dist/angular/components/defer-slot.component.js +9 -11
- package/dist/angular/index.js +8 -11
- package/dist/angular/index.js.map +3 -3
- package/dist/react/ai/index.js +15 -1
- package/dist/react/ai/index.js.map +3 -3
- package/dist/src/ai/client/ragClient.d.ts +2 -1
- package/dist/src/ai/index.d.ts +2 -2
- package/dist/src/ai/rag/chat.d.ts +1 -0
- package/dist/src/ai/rag/collection.d.ts +2 -1
- package/dist/src/ai/rag/index.d.ts +3 -2
- package/dist/src/ai/rag/ingestion.d.ts +4 -0
- package/dist/src/ai/rag/types.d.ts +1 -1
- package/dist/src/angular/components/defer-slot.component.d.ts +3 -1
- package/dist/svelte/ai/index.js +15 -1
- package/dist/svelte/ai/index.js.map +3 -3
- package/dist/types/ai.d.ts +31 -0
- package/dist/vue/ai/index.js +15 -1
- package/dist/vue/ai/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Input, inject, signal } from '@angular/core';
|
|
2
2
|
import { NgTemplateOutlet } from '@angular/common';
|
|
3
3
|
import { registerStreamingSlot } from './core/streamingSlotRegistrar.js';
|
|
4
4
|
import { isAngularDeferSlotPayload } from './defer-slot-payload.js';
|
|
@@ -54,13 +54,14 @@ export class DeferSlotComponent {
|
|
|
54
54
|
this.applyPatchPayload(payload);
|
|
55
55
|
return true;
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
}
|
|
58
|
+
ngAfterViewInit() {
|
|
59
|
+
if (typeof window === 'undefined')
|
|
60
|
+
return;
|
|
61
|
+
requestAnimationFrame(() => {
|
|
58
62
|
this.runtimeReady.set(true);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
window.__ABS_SLOT_FLUSH__?.();
|
|
62
|
-
});
|
|
63
|
-
}
|
|
63
|
+
this.cdr.markForCheck();
|
|
64
|
+
window.__ABS_SLOT_FLUSH__?.();
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
67
|
ngOnDestroy() {
|
|
@@ -88,7 +89,7 @@ export class DeferSlotComponent {
|
|
|
88
89
|
this.cdr.markForCheck();
|
|
89
90
|
}
|
|
90
91
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DeferSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
91
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.6", type: DeferSlotComponent, isStandalone: true, selector: "abs-defer-slot", inputs: { className: "className", id: "id", payload: "payload" },
|
|
92
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.6", type: DeferSlotComponent, isStandalone: true, selector: "abs-defer-slot", inputs: { className: "className", id: "id", payload: "payload" }, queries: [{ propertyName: "resolvedTemplate", first: true, predicate: DeferResolvedTemplateDirective, descendants: true }, { propertyName: "fallbackTemplate", first: true, predicate: DeferFallbackTemplateDirective, descendants: true }, { propertyName: "errorTemplate", first: true, predicate: DeferErrorTemplateDirective, descendants: true }], ngImport: i0, template: `
|
|
92
93
|
<div
|
|
93
94
|
[attr.id]="'slot-' + id"
|
|
94
95
|
[attr.class]="className"
|
|
@@ -105,9 +106,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImpor
|
|
|
105
106
|
type: Component,
|
|
106
107
|
args: [{
|
|
107
108
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
108
|
-
host: {
|
|
109
|
-
ngSkipHydration: 'true'
|
|
110
|
-
},
|
|
111
109
|
selector: 'abs-defer-slot',
|
|
112
110
|
standalone: true,
|
|
113
111
|
imports: [
|
package/dist/angular/index.js
CHANGED
|
@@ -181485,7 +181485,6 @@ init_renderIslandMarkup();
|
|
|
181485
181485
|
var renderIsland = (props) => renderIslandMarkup(requireCurrentIslandRegistry(), props);
|
|
181486
181486
|
// src/angular/components/defer-slot.component.ts
|
|
181487
181487
|
import {
|
|
181488
|
-
afterNextRender,
|
|
181489
181488
|
ChangeDetectionStrategy,
|
|
181490
181489
|
ChangeDetectorRef,
|
|
181491
181490
|
Component as Component2,
|
|
@@ -181582,13 +181581,14 @@ class DeferSlotComponent {
|
|
|
181582
181581
|
this.applyPatchPayload(payload);
|
|
181583
181582
|
return true;
|
|
181584
181583
|
};
|
|
181585
|
-
|
|
181584
|
+
}
|
|
181585
|
+
ngAfterViewInit() {
|
|
181586
|
+
if (typeof window === "undefined")
|
|
181587
|
+
return;
|
|
181588
|
+
requestAnimationFrame(() => {
|
|
181586
181589
|
this.runtimeReady.set(true);
|
|
181587
|
-
|
|
181588
|
-
|
|
181589
|
-
window.__ABS_SLOT_FLUSH__?.();
|
|
181590
|
-
});
|
|
181591
|
-
}
|
|
181590
|
+
this.cdr.markForCheck();
|
|
181591
|
+
window.__ABS_SLOT_FLUSH__?.();
|
|
181592
181592
|
});
|
|
181593
181593
|
}
|
|
181594
181594
|
ngOnDestroy() {
|
|
@@ -181641,9 +181641,6 @@ __legacyDecorateClassTS([
|
|
|
181641
181641
|
DeferSlotComponent = __legacyDecorateClassTS([
|
|
181642
181642
|
Component2({
|
|
181643
181643
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
181644
|
-
host: {
|
|
181645
|
-
ngSkipHydration: "true"
|
|
181646
|
-
},
|
|
181647
181644
|
selector: "abs-defer-slot",
|
|
181648
181645
|
standalone: true,
|
|
181649
181646
|
imports: [
|
|
@@ -181929,5 +181926,5 @@ export {
|
|
|
181929
181926
|
DeferErrorTemplateDirective
|
|
181930
181927
|
};
|
|
181931
181928
|
|
|
181932
|
-
//# debugId=
|
|
181929
|
+
//# debugId=F31195CBE3A3C4BB64756E2164756E21
|
|
181933
181930
|
//# sourceMappingURL=index.js.map
|