@ai-matrx/content-ir-react 0.21.0 → 0.23.0
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/CHANGELOG.md +39 -0
- package/dist/db-component.cjs +39 -1
- package/dist/db-component.cjs.map +1 -1
- package/dist/db-component.d.cts +54 -9
- package/dist/db-component.d.ts +54 -9
- package/dist/db-component.js +39 -1
- package/dist/db-component.js.map +1 -1
- package/dist/{directive-host-CtFMuSZc.d.cts → directive-host-QjoZEeik.d.cts} +3 -3
- package/dist/{directive-host-CtFMuSZc.d.ts → directive-host-QjoZEeik.d.ts} +3 -3
- package/dist/directives.d.cts +9 -9
- package/dist/directives.d.ts +9 -9
- package/dist/{host-types-mMFt5-hQ.d.cts → host-types-B2Q8fiU8.d.cts} +1 -1
- package/dist/{host-types-CGcK8Nib.d.ts → host-types-DvZukz6J.d.ts} +1 -1
- package/dist/host.d.cts +5 -5
- package/dist/host.d.ts +5 -5
- package/dist/kind-kit.cjs +1035 -0
- package/dist/kind-kit.cjs.map +1 -0
- package/dist/kind-kit.d.cts +377 -0
- package/dist/kind-kit.d.ts +377 -0
- package/dist/kind-kit.js +1011 -0
- package/dist/kind-kit.js.map +1 -0
- package/dist/react.d.cts +11 -11
- package/dist/react.d.ts +11 -11
- package/package.json +15 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { DecodedDirective, DirectiveNounCatalog, DirectiveItemKindLookup } from '@ai-matrx/content-ir';
|
|
4
4
|
|
|
@@ -241,13 +241,13 @@ interface DirectiveScope {
|
|
|
241
241
|
*/
|
|
242
242
|
declare function DirectiveScopeProvider({ conversationId, children, }: DirectiveScope & {
|
|
243
243
|
children: ReactNode;
|
|
244
|
-
}):
|
|
244
|
+
}): React.JSX.Element;
|
|
245
245
|
declare function useDirectiveScope(): DirectiveScope;
|
|
246
246
|
interface DirectiveHostProviderProps {
|
|
247
247
|
host: DirectiveHost;
|
|
248
248
|
children: ReactNode;
|
|
249
249
|
}
|
|
250
|
-
declare function DirectiveHostProvider({ host, children }: DirectiveHostProviderProps):
|
|
250
|
+
declare function DirectiveHostProvider({ host, children }: DirectiveHostProviderProps): React.JSX.Element;
|
|
251
251
|
/**
|
|
252
252
|
* The wired directive host. Unlike the render host this does NOT throw when
|
|
253
253
|
* unwired: a directive still renders (named, itemised, copy-less, apply-less)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { DecodedDirective, DirectiveNounCatalog, DirectiveItemKindLookup } from '@ai-matrx/content-ir';
|
|
4
4
|
|
|
@@ -241,13 +241,13 @@ interface DirectiveScope {
|
|
|
241
241
|
*/
|
|
242
242
|
declare function DirectiveScopeProvider({ conversationId, children, }: DirectiveScope & {
|
|
243
243
|
children: ReactNode;
|
|
244
|
-
}):
|
|
244
|
+
}): React.JSX.Element;
|
|
245
245
|
declare function useDirectiveScope(): DirectiveScope;
|
|
246
246
|
interface DirectiveHostProviderProps {
|
|
247
247
|
host: DirectiveHost;
|
|
248
248
|
children: ReactNode;
|
|
249
249
|
}
|
|
250
|
-
declare function DirectiveHostProvider({ host, children }: DirectiveHostProviderProps):
|
|
250
|
+
declare function DirectiveHostProvider({ host, children }: DirectiveHostProviderProps): React.JSX.Element;
|
|
251
251
|
/**
|
|
252
252
|
* The wired directive host. Unlike the render host this does NOT throw when
|
|
253
253
|
* unwired: a directive still renders (named, itemised, copy-less, apply-less)
|
package/dist/directives.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as DirectiveHost, a as DirectiveFailure, b as DirectiveFailureWords, c as DirectiveRecordRef } from './directive-host-
|
|
2
|
-
export { d as DirectiveApplyResult, e as DirectiveApplyState, f as DirectiveAskRequest, g as DirectiveCopyProps, h as DirectiveHostProvider, i as DirectiveHostProviderProps, j as DirectiveOpenItemOptions, k as DirectiveRecordProps, l as DirectiveScope, m as DirectiveScopeProvider, n as DirectiveShell, o as DirectiveValueRef, u as useDirectiveHost, p as useDirectiveScope } from './directive-host-
|
|
3
|
-
import * as
|
|
1
|
+
import { D as DirectiveHost, a as DirectiveFailure, b as DirectiveFailureWords, c as DirectiveRecordRef } from './directive-host-QjoZEeik.cjs';
|
|
2
|
+
export { d as DirectiveApplyResult, e as DirectiveApplyState, f as DirectiveAskRequest, g as DirectiveCopyProps, h as DirectiveHostProvider, i as DirectiveHostProviderProps, j as DirectiveOpenItemOptions, k as DirectiveRecordProps, l as DirectiveScope, m as DirectiveScopeProvider, n as DirectiveShell, o as DirectiveValueRef, u as useDirectiveHost, p as useDirectiveScope } from './directive-host-QjoZEeik.cjs';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
import { ComponentType } from 'react';
|
|
5
5
|
import { DecodedDirective, DirectiveClass } from '@ai-matrx/content-ir';
|
|
6
6
|
|
|
@@ -75,7 +75,7 @@ interface ApplyDirectiveButtonProps {
|
|
|
75
75
|
*/
|
|
76
76
|
nothingToChange?: boolean;
|
|
77
77
|
}
|
|
78
|
-
declare function ApplyDirectiveButton({ directive, label, itemCount, onApplied, onPhase, nothingToChange, }: ApplyDirectiveButtonProps):
|
|
78
|
+
declare function ApplyDirectiveButton({ directive, label, itemCount, onApplied, onPhase, nothingToChange, }: ApplyDirectiveButtonProps): React.JSX.Element | null;
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
81
|
* WHAT A DIRECTIVE ITEM WILL DO TO AN EXISTING RECORD — for the card, the
|
|
@@ -200,15 +200,15 @@ declare function directiveValueWord(host: Pick<DirectiveHost, "valueLabel">, nou
|
|
|
200
200
|
declare function DirectiveChangeList({ changes, className, }: {
|
|
201
201
|
changes: ItemChange[];
|
|
202
202
|
className?: string;
|
|
203
|
-
}):
|
|
204
|
-
declare function SideEffectDirectiveCard({ directive }: SideEffectDirectiveCardProps):
|
|
203
|
+
}): React.JSX.Element;
|
|
204
|
+
declare function SideEffectDirectiveCard({ directive }: SideEffectDirectiveCardProps): React.JSX.Element;
|
|
205
205
|
|
|
206
206
|
interface DirectiveFallbackCardProps {
|
|
207
207
|
directive: DecodedDirective;
|
|
208
208
|
/** Short, human explanation of why the rich renderer degraded. */
|
|
209
209
|
reason?: string;
|
|
210
210
|
}
|
|
211
|
-
declare function DirectiveFallbackCard({ directive, reason }: DirectiveFallbackCardProps):
|
|
211
|
+
declare function DirectiveFallbackCard({ directive, reason }: DirectiveFallbackCardProps): React.JSX.Element;
|
|
212
212
|
|
|
213
213
|
/** The directive slug of a partial document, once its closing quote has arrived. */
|
|
214
214
|
declare function provisionalDirectiveSlug(content: string): string | null;
|
|
@@ -222,7 +222,7 @@ interface DirectiveProvisionalCardProps {
|
|
|
222
222
|
streaming: boolean;
|
|
223
223
|
className?: string | undefined;
|
|
224
224
|
}
|
|
225
|
-
declare function DirectiveProvisionalCard({ content, streaming, className }: DirectiveProvisionalCardProps):
|
|
225
|
+
declare function DirectiveProvisionalCard({ content, streaming, className }: DirectiveProvisionalCardProps): React.JSX.Element;
|
|
226
226
|
|
|
227
227
|
interface DirectiveRenderProps {
|
|
228
228
|
/** The fence body (JSON string) or an already-parsed shell / value. */
|
|
@@ -242,7 +242,7 @@ interface DirectiveRenderProps {
|
|
|
242
242
|
*/
|
|
243
243
|
conversationId?: string | null;
|
|
244
244
|
}
|
|
245
|
-
declare function DirectiveRender({ conversationId, ...props }: DirectiveRenderProps):
|
|
245
|
+
declare function DirectiveRender({ conversationId, ...props }: DirectiveRenderProps): React.JSX.Element;
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
248
|
* THE WORDS A FAILED APPLY SHOWS A PERSON.
|
package/dist/directives.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as DirectiveHost, a as DirectiveFailure, b as DirectiveFailureWords, c as DirectiveRecordRef } from './directive-host-
|
|
2
|
-
export { d as DirectiveApplyResult, e as DirectiveApplyState, f as DirectiveAskRequest, g as DirectiveCopyProps, h as DirectiveHostProvider, i as DirectiveHostProviderProps, j as DirectiveOpenItemOptions, k as DirectiveRecordProps, l as DirectiveScope, m as DirectiveScopeProvider, n as DirectiveShell, o as DirectiveValueRef, u as useDirectiveHost, p as useDirectiveScope } from './directive-host-
|
|
3
|
-
import * as
|
|
1
|
+
import { D as DirectiveHost, a as DirectiveFailure, b as DirectiveFailureWords, c as DirectiveRecordRef } from './directive-host-QjoZEeik.js';
|
|
2
|
+
export { d as DirectiveApplyResult, e as DirectiveApplyState, f as DirectiveAskRequest, g as DirectiveCopyProps, h as DirectiveHostProvider, i as DirectiveHostProviderProps, j as DirectiveOpenItemOptions, k as DirectiveRecordProps, l as DirectiveScope, m as DirectiveScopeProvider, n as DirectiveShell, o as DirectiveValueRef, u as useDirectiveHost, p as useDirectiveScope } from './directive-host-QjoZEeik.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
import { ComponentType } from 'react';
|
|
5
5
|
import { DecodedDirective, DirectiveClass } from '@ai-matrx/content-ir';
|
|
6
6
|
|
|
@@ -75,7 +75,7 @@ interface ApplyDirectiveButtonProps {
|
|
|
75
75
|
*/
|
|
76
76
|
nothingToChange?: boolean;
|
|
77
77
|
}
|
|
78
|
-
declare function ApplyDirectiveButton({ directive, label, itemCount, onApplied, onPhase, nothingToChange, }: ApplyDirectiveButtonProps):
|
|
78
|
+
declare function ApplyDirectiveButton({ directive, label, itemCount, onApplied, onPhase, nothingToChange, }: ApplyDirectiveButtonProps): React.JSX.Element | null;
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
81
|
* WHAT A DIRECTIVE ITEM WILL DO TO AN EXISTING RECORD — for the card, the
|
|
@@ -200,15 +200,15 @@ declare function directiveValueWord(host: Pick<DirectiveHost, "valueLabel">, nou
|
|
|
200
200
|
declare function DirectiveChangeList({ changes, className, }: {
|
|
201
201
|
changes: ItemChange[];
|
|
202
202
|
className?: string;
|
|
203
|
-
}):
|
|
204
|
-
declare function SideEffectDirectiveCard({ directive }: SideEffectDirectiveCardProps):
|
|
203
|
+
}): React.JSX.Element;
|
|
204
|
+
declare function SideEffectDirectiveCard({ directive }: SideEffectDirectiveCardProps): React.JSX.Element;
|
|
205
205
|
|
|
206
206
|
interface DirectiveFallbackCardProps {
|
|
207
207
|
directive: DecodedDirective;
|
|
208
208
|
/** Short, human explanation of why the rich renderer degraded. */
|
|
209
209
|
reason?: string;
|
|
210
210
|
}
|
|
211
|
-
declare function DirectiveFallbackCard({ directive, reason }: DirectiveFallbackCardProps):
|
|
211
|
+
declare function DirectiveFallbackCard({ directive, reason }: DirectiveFallbackCardProps): React.JSX.Element;
|
|
212
212
|
|
|
213
213
|
/** The directive slug of a partial document, once its closing quote has arrived. */
|
|
214
214
|
declare function provisionalDirectiveSlug(content: string): string | null;
|
|
@@ -222,7 +222,7 @@ interface DirectiveProvisionalCardProps {
|
|
|
222
222
|
streaming: boolean;
|
|
223
223
|
className?: string | undefined;
|
|
224
224
|
}
|
|
225
|
-
declare function DirectiveProvisionalCard({ content, streaming, className }: DirectiveProvisionalCardProps):
|
|
225
|
+
declare function DirectiveProvisionalCard({ content, streaming, className }: DirectiveProvisionalCardProps): React.JSX.Element;
|
|
226
226
|
|
|
227
227
|
interface DirectiveRenderProps {
|
|
228
228
|
/** The fence body (JSON string) or an already-parsed shell / value. */
|
|
@@ -242,7 +242,7 @@ interface DirectiveRenderProps {
|
|
|
242
242
|
*/
|
|
243
243
|
conversationId?: string | null;
|
|
244
244
|
}
|
|
245
|
-
declare function DirectiveRender({ conversationId, ...props }: DirectiveRenderProps):
|
|
245
|
+
declare function DirectiveRender({ conversationId, ...props }: DirectiveRenderProps): React.JSX.Element;
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
248
|
* THE WORDS A FAILED APPLY SHOWS A PERSON.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { KindDefinition } from '@ai-matrx/content-ir';
|
|
3
3
|
import { d as ComponentResolutionSource, a as ContentIrErrorReporter } from './component-resolution.types-BQa2ik3i.cjs';
|
|
4
|
-
import { D as DirectiveHost } from './directive-host-
|
|
4
|
+
import { D as DirectiveHost } from './directive-host-QjoZEeik.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* THE HOST CONTRACT — everything this package refuses to decide.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { KindDefinition } from '@ai-matrx/content-ir';
|
|
3
3
|
import { d as ComponentResolutionSource, a as ContentIrErrorReporter } from './component-resolution.types-BQa2ik3i.js';
|
|
4
|
-
import { D as DirectiveHost } from './directive-host-
|
|
4
|
+
import { D as DirectiveHost } from './directive-host-QjoZEeik.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* THE HOST CONTRACT — everything this package refuses to decide.
|
package/dist/host.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export { b as ContentIrErrorReport, a as ContentIrErrorReporter, c as consoleErrorReporter } from './component-resolution.types-BQa2ik3i.cjs';
|
|
2
|
-
import { C as ContentIrHost, K as KindRouteEnv } from './host-types-
|
|
3
|
-
export { a as ContentIrRenderSeams, I as IrRenderBlock, b as IrRoutableBlock, c as KindDefinitionSource, S as StructuredValueRenderProps, r as routeEnvOf } from './host-types-
|
|
4
|
-
import * as
|
|
2
|
+
import { C as ContentIrHost, K as KindRouteEnv } from './host-types-B2Q8fiU8.cjs';
|
|
3
|
+
export { a as ContentIrRenderSeams, I as IrRenderBlock, b as IrRoutableBlock, c as KindDefinitionSource, S as StructuredValueRenderProps, r as routeEnvOf } from './host-types-B2Q8fiU8.cjs';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import '@ai-matrx/content-ir';
|
|
7
|
-
import './directive-host-
|
|
7
|
+
import './directive-host-QjoZEeik.cjs';
|
|
8
8
|
|
|
9
9
|
interface ContentIrRenderProviderProps {
|
|
10
10
|
host: ContentIrHost;
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
}
|
|
13
|
-
declare function ContentIrRenderProvider({ host, children, }: ContentIrRenderProviderProps):
|
|
13
|
+
declare function ContentIrRenderProvider({ host, children, }: ContentIrRenderProviderProps): React.JSX.Element;
|
|
14
14
|
/**
|
|
15
15
|
* The wired host, or null. For the rare consumer that can legitimately run
|
|
16
16
|
* without a provider because it was handed its sources explicitly (see
|
package/dist/host.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export { b as ContentIrErrorReport, a as ContentIrErrorReporter, c as consoleErrorReporter } from './component-resolution.types-BQa2ik3i.js';
|
|
2
|
-
import { C as ContentIrHost, K as KindRouteEnv } from './host-types-
|
|
3
|
-
export { a as ContentIrRenderSeams, I as IrRenderBlock, b as IrRoutableBlock, c as KindDefinitionSource, S as StructuredValueRenderProps, r as routeEnvOf } from './host-types-
|
|
4
|
-
import * as
|
|
2
|
+
import { C as ContentIrHost, K as KindRouteEnv } from './host-types-DvZukz6J.js';
|
|
3
|
+
export { a as ContentIrRenderSeams, I as IrRenderBlock, b as IrRoutableBlock, c as KindDefinitionSource, S as StructuredValueRenderProps, r as routeEnvOf } from './host-types-DvZukz6J.js';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import '@ai-matrx/content-ir';
|
|
7
|
-
import './directive-host-
|
|
7
|
+
import './directive-host-QjoZEeik.js';
|
|
8
8
|
|
|
9
9
|
interface ContentIrRenderProviderProps {
|
|
10
10
|
host: ContentIrHost;
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
}
|
|
13
|
-
declare function ContentIrRenderProvider({ host, children, }: ContentIrRenderProviderProps):
|
|
13
|
+
declare function ContentIrRenderProvider({ host, children, }: ContentIrRenderProviderProps): React.JSX.Element;
|
|
14
14
|
/**
|
|
15
15
|
* The wired host, or null. For the rare consumer that can legitimately run
|
|
16
16
|
* without a provider because it was handed its sources explicitly (see
|