@mulmochat-plugin/quiz 0.2.0 → 0.3.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/README.ja.md +99 -36
- package/README.md +99 -36
- package/README.npm.md +39 -5
- package/dist/core/definition.d.ts +6 -0
- package/dist/core/index.d.ts +4 -2
- package/dist/core/plugin.d.ts +2 -4
- package/dist/core/samples.d.ts +5 -0
- package/dist/core/types.d.ts +3 -222
- package/dist/react/Preview.d.ts +8 -0
- package/dist/react/View.d.ts +8 -0
- package/dist/react/index.d.ts +24 -0
- package/dist/react.cjs +8 -0
- package/dist/react.js +398 -0
- package/dist/style.css +1 -1
- package/dist/vue/Preview.vue.d.ts +1 -1
- package/dist/vue/View.vue.d.ts +1 -1
- package/dist/vue/index.d.ts +7 -5
- package/dist/vue.cjs +2 -2
- package/dist/vue.js +7 -6
- package/package.json +35 -6
- package/dist/vue/types.d.ts +0 -32
package/dist/vue/types.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MulmoChat Plugin Vue Types
|
|
3
|
-
*
|
|
4
|
-
* Vue-specific types that extend the core plugin interface.
|
|
5
|
-
*/
|
|
6
|
-
import type { Component } from "vue";
|
|
7
|
-
import type { ToolPluginCore } from "../core/types";
|
|
8
|
-
type VueComponent = Component<any>;
|
|
9
|
-
/**
|
|
10
|
-
* Legacy Vue component-based config
|
|
11
|
-
* @deprecated Use PluginConfigSchema instead
|
|
12
|
-
*/
|
|
13
|
-
export interface ToolPluginConfig {
|
|
14
|
-
key: string;
|
|
15
|
-
defaultValue: unknown;
|
|
16
|
-
component: VueComponent;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Vue plugin interface - extends core with Vue components
|
|
20
|
-
*/
|
|
21
|
-
export interface ToolPlugin<T = unknown, J = unknown, A extends object = object> extends ToolPluginCore<T, J, A> {
|
|
22
|
-
/** Vue component for full view */
|
|
23
|
-
viewComponent?: VueComponent;
|
|
24
|
-
/** Vue component for preview/thumbnail */
|
|
25
|
-
previewComponent?: VueComponent;
|
|
26
|
-
/**
|
|
27
|
-
* Legacy Vue component-based config (for backward compatibility)
|
|
28
|
-
* @deprecated Use configSchema instead
|
|
29
|
-
*/
|
|
30
|
-
config?: ToolPluginConfig;
|
|
31
|
-
}
|
|
32
|
-
export type { BackendType, ToolContextApp, ToolContext, ToolResult, ToolResultComplete, JsonSchemaProperty, ToolDefinition, StartApiResponse, ToolSample, InputHandler, FileInputHandler, ClipboardImageInputHandler, UrlInputHandler, TextInputHandler, FileUploadConfig, ConfigValue, ConfigFieldSchema, PluginConfigSchema, ViewComponentProps, PreviewComponentProps, ToolPluginCore, QuizQuestion, QuizData, QuizArgs, } from "../core/types";
|