pika-shared 1.4.7 → 1.4.9

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.
@@ -1,5 +1,5 @@
1
1
  import { UploadStatus } from '../upload-types.mjs';
2
- import { ShowToastFn, ChatUser, RecordOrUndef, UserAwsCredentials, WidgetRenderingContextType, ShareSessionState, UserPrefs, ChatAppMode, IUserWidgetDataStoreState, CustomDataUiRepresentation, ChatAppOverridableFeatures, TagDefinition, TagDefinitionWidget, ChatSession, UserDataOverrideSettings, ChatMessageForRendering, ChatApp, ChatAppActionMenu, ChatAppAction, WidgetInstance, WidgetSizing, InvokeAgentAsComponentOptions } from './chatbot-types.mjs';
2
+ import { ShowToastFn, ChatUser, RecordOrUndef, UserAwsCredentials, MarkdownRendererConfig, WidgetRenderingContextType, ShareSessionState, UserPrefs, ChatAppMode, IUserWidgetDataStoreState, CustomDataUiRepresentation, ChatAppOverridableFeatures, TagDefinition, TagDefinitionWidget, ChatSession, UserDataOverrideSettings, ChatMessageForRendering, ChatApp, ChatAppActionMenu, ChatAppAction, WidgetInstance, WidgetSizing, InvokeAgentAsComponentOptions } from './chatbot-types.mjs';
3
3
  import '@aws-sdk/client-bedrock-agent-runtime';
4
4
  import '@aws-sdk/client-bedrock-agentcore';
5
5
 
@@ -29,6 +29,14 @@ interface IAppState {
29
29
  readonly showToast: ShowToastFn;
30
30
  readonly identity: IIdentityState;
31
31
  readonly isMobile: boolean;
32
+ /**
33
+ * Convert markdown to HTML. This is a helper function for convenience.
34
+ * @param markdown - The markdown content to convert to HTML
35
+ * @param config - Optional configuration for the markdown renderer
36
+ * @returns The HTML content
37
+ * @since 0.13.0
38
+ */
39
+ convertMarkdownToHtml(markdown: string, config?: MarkdownRendererConfig): string;
32
40
  }
33
41
  /**
34
42
  * Widget Metadata API - scoped to a specific widget instance.
@@ -1,5 +1,5 @@
1
1
  import { UploadStatus } from '../upload-types.js';
2
- import { ShowToastFn, ChatUser, RecordOrUndef, UserAwsCredentials, WidgetRenderingContextType, ShareSessionState, UserPrefs, ChatAppMode, IUserWidgetDataStoreState, CustomDataUiRepresentation, ChatAppOverridableFeatures, TagDefinition, TagDefinitionWidget, ChatSession, UserDataOverrideSettings, ChatMessageForRendering, ChatApp, ChatAppActionMenu, ChatAppAction, WidgetInstance, WidgetSizing, InvokeAgentAsComponentOptions } from './chatbot-types.js';
2
+ import { ShowToastFn, ChatUser, RecordOrUndef, UserAwsCredentials, MarkdownRendererConfig, WidgetRenderingContextType, ShareSessionState, UserPrefs, ChatAppMode, IUserWidgetDataStoreState, CustomDataUiRepresentation, ChatAppOverridableFeatures, TagDefinition, TagDefinitionWidget, ChatSession, UserDataOverrideSettings, ChatMessageForRendering, ChatApp, ChatAppActionMenu, ChatAppAction, WidgetInstance, WidgetSizing, InvokeAgentAsComponentOptions } from './chatbot-types.js';
3
3
  import '@aws-sdk/client-bedrock-agent-runtime';
4
4
  import '@aws-sdk/client-bedrock-agentcore';
5
5
 
@@ -29,6 +29,14 @@ interface IAppState {
29
29
  readonly showToast: ShowToastFn;
30
30
  readonly identity: IIdentityState;
31
31
  readonly isMobile: boolean;
32
+ /**
33
+ * Convert markdown to HTML. This is a helper function for convenience.
34
+ * @param markdown - The markdown content to convert to HTML
35
+ * @param config - Optional configuration for the markdown renderer
36
+ * @returns The HTML content
37
+ * @since 0.13.0
38
+ */
39
+ convertMarkdownToHtml(markdown: string, config?: MarkdownRendererConfig): string;
32
40
  }
33
41
  /**
34
42
  * Widget Metadata API - scoped to a specific widget instance.