@farris/x-ui 0.2.5 → 0.2.7
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/bubble/src/components/bubble-think/bubble-think.props.d.ts +1 -1
- package/bubble/src/components/text-content/text-content.component.d.ts +8 -6
- package/bubble/src/components/text-content/utils/block-renderer.d.ts +3 -0
- package/dynamic-component/src/composition/use-dynamic-component-parser.d.ts +1 -1
- package/farris.x-ui.esm.js +3385 -3365
- package/farris.x-ui.umd.cjs +31 -31
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from '../../../../../vue';
|
|
2
2
|
import { ThinkContent } from '../../../../../../../composition/types';
|
|
3
|
-
import { OutputMode } from '
|
|
3
|
+
import { OutputMode } from '../../../../../../../..';
|
|
4
4
|
|
|
5
5
|
export declare const bubbleThinkProps: {
|
|
6
6
|
/** 思考内容 */
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
+
import { DynamicComponentConfig } from '../../../../../../../../../dynamic-component/src/composition/types';
|
|
2
|
+
|
|
1
3
|
declare const _default: import('../../../../../vue').DefineComponent<{
|
|
2
4
|
title: string;
|
|
3
5
|
text: string;
|
|
4
6
|
placement: import('../../../../../../../bubble.props').BubblePlacement;
|
|
5
7
|
subtitle: string;
|
|
6
8
|
textFormat: import('../../../../../../../..').BubbleTextFormatType;
|
|
7
|
-
onDynamicComponentsDetected?: ((configs:
|
|
8
|
-
onShowDynamicComponent?: ((config:
|
|
9
|
+
onDynamicComponentsDetected?: ((configs: DynamicComponentConfig[]) => void) | undefined;
|
|
10
|
+
onShowDynamicComponent?: ((config: DynamicComponentConfig) => void) | undefined;
|
|
9
11
|
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../../../vue').ComponentOptionsMixin, import('../../../../../vue').ComponentOptionsMixin, {}, string, import('../../../../../vue').PublicProps, Readonly<{
|
|
10
12
|
title: string;
|
|
11
13
|
text: string;
|
|
12
14
|
placement: import('../../../../../../../bubble.props').BubblePlacement;
|
|
13
15
|
subtitle: string;
|
|
14
16
|
textFormat: import('../../../../../../../..').BubbleTextFormatType;
|
|
15
|
-
onDynamicComponentsDetected?: ((configs:
|
|
16
|
-
onShowDynamicComponent?: ((config:
|
|
17
|
+
onDynamicComponentsDetected?: ((configs: DynamicComponentConfig[]) => void) | undefined;
|
|
18
|
+
onShowDynamicComponent?: ((config: DynamicComponentConfig) => void) | undefined;
|
|
17
19
|
}> & Readonly<{}>, {
|
|
18
20
|
title: string;
|
|
19
21
|
text: string;
|
|
20
22
|
placement: import('../../../../../../../bubble.props').BubblePlacement;
|
|
21
|
-
onDynamicComponentsDetected: (configs:
|
|
22
|
-
onShowDynamicComponent: (config:
|
|
23
|
+
onDynamicComponentsDetected: (configs: DynamicComponentConfig[]) => void;
|
|
24
|
+
onShowDynamicComponent: (config: DynamicComponentConfig) => void;
|
|
23
25
|
subtitle: string;
|
|
24
26
|
textFormat: import('../../../../../../../..').BubbleTextFormatType;
|
|
25
27
|
}, {}, {}, {}, string, import('../../../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VNode, SetupContext, ComputedRef } from '../../../../../../vue';
|
|
2
|
+
import { DynamicComponentConfig } from '../../../../../../../../../../dynamic-component/src/composition/types';
|
|
2
3
|
import { ParsedBlock, BlockType } from '../../../../../../../composition/block-type';
|
|
3
4
|
import { EmbeddedContentRenderContext } from '../../../../../../../../../composition/use-embedded-content';
|
|
4
5
|
import { EmbeddedContent } from '../../../../../../../../../composition/types';
|
|
@@ -6,6 +7,8 @@ import { EmbeddedContent } from '../../../../../../../../../composition/types';
|
|
|
6
7
|
export interface RenderContext {
|
|
7
8
|
shouldShowMarkdown: ComputedRef<boolean>;
|
|
8
9
|
emit: SetupContext['emit'];
|
|
10
|
+
/** 同一气泡实例内每个 instanceId 仅 emit 一次 dynamicComponentsDetected */
|
|
11
|
+
emitDynamicComponentsDetectedOnce: (config: DynamicComponentConfig) => void;
|
|
9
12
|
renderFileEmbeddedContent: (content: EmbeddedContent, ctx: EmbeddedContentRenderContext) => VNode;
|
|
10
13
|
}
|
|
11
14
|
export type BlockRenderer = (block: ParsedBlock, index: number, ctx: RenderContext) => VNode | VNode[] | null;
|
|
@@ -9,6 +9,6 @@ export declare function parseDynamicComponentConfig(text: string): DynamicCompon
|
|
|
9
9
|
export declare function parsePartialDynamicComponentConfig(text: string): Pick<DynamicComponentConfig, 'position'> | null;
|
|
10
10
|
/**
|
|
11
11
|
* 将文本按 ```dynamic-component ``` 代码块拆分为字符串数组。
|
|
12
|
-
*
|
|
12
|
+
* 兼容 ``` 与 dynamic-component、JSON 与闭合 ``` 之间无空白/换行。
|
|
13
13
|
*/
|
|
14
14
|
export declare function splitDynamicComponentBlocks(text: string): string[];
|