@polyv/answer-card-ui-launch 2.5.0-rc-20260604.4 → 2.6.0-rc-20260625.1

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.
Files changed (5) hide show
  1. package/index.es.d.ts +40 -50
  2. package/index.es.js +13434 -12610
  3. package/index.umd.js +179 -171
  4. package/package.json +1 -1
  5. package/index.cjs.js +0 -1531
package/index.es.d.ts CHANGED
@@ -86,10 +86,10 @@ default: number;
86
86
  }, {
87
87
  refreshDetail: () => Promise<void>;
88
88
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
89
+ start: (arg: string) => void;
89
90
  input: (arg: boolean) => void;
90
91
  stop: (arg: string) => void;
91
92
  close: (arg?: void | undefined) => void;
92
- start: (arg: string) => void;
93
93
  }, string, Readonly<ExtractPropTypes< {
94
94
  answerCardTarget: VueTypeValidableDef<AnswerCard, ValidatorFunction<AnswerCard>> & {
95
95
  required: true;
@@ -227,6 +227,8 @@ export declare interface AnswerCardLaunchEventPayload {
227
227
 
228
228
  export declare interface AnswerCardLaunchExportPayload {
229
229
  questionId: string;
230
+ exportTaskId?: number;
231
+ /** @deprecated 导出已改为异步任务,后端不再同步返回下载链接。 */
230
232
  url?: string;
231
233
  }
232
234
 
@@ -577,6 +579,11 @@ default: boolean;
577
579
  } & {
578
580
  default: boolean;
579
581
  };
582
+ respondWebviewParams: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
583
+ default: boolean;
584
+ } & {
585
+ default: boolean;
586
+ };
580
587
  value: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
581
588
  default: boolean;
582
589
  } & {
@@ -605,6 +612,11 @@ default: boolean;
605
612
  } & {
606
613
  default: boolean;
607
614
  };
615
+ respondWebviewParams: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
616
+ default: boolean;
617
+ } & {
618
+ default: boolean;
619
+ };
608
620
  value: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
609
621
  default: boolean;
610
622
  } & {
@@ -615,6 +627,7 @@ defaultLimitTimeAnswer: boolean;
615
627
  value: boolean;
616
628
  canStart: boolean;
617
629
  cantStartTips: string;
630
+ respondWebviewParams: boolean;
618
631
  }>;
619
632
 
620
633
  export declare const AnswerCardLaunchQuickDetail: DefineComponent< {
@@ -660,10 +673,10 @@ default: boolean;
660
673
  }, {
661
674
  refreshDetail: () => Promise<void>;
662
675
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
676
+ start: (arg: string) => void;
663
677
  input: (arg: boolean) => void;
664
678
  stop: (arg: string) => void;
665
679
  close: (arg?: void | undefined) => void;
666
- start: (arg: string) => void;
667
680
  }, string, Readonly<ExtractPropTypes< {
668
681
  answerCardTarget: VueTypeValidableDef<AnswerCard, ValidatorFunction<AnswerCard>> & {
669
682
  required: true;
@@ -781,6 +794,7 @@ export declare const answerCardLaunchQuickEmits: () => {
781
794
  export declare interface AnswerCardLaunchQuickProps extends AnswerCardLaunchBaseProps {
782
795
  value?: boolean;
783
796
  checkDefaultBadwordEnabled?: boolean;
797
+ respondWebviewParams?: boolean;
784
798
  }
785
799
 
786
800
  export declare const answerCardLaunchQuickProps: () => {
@@ -806,6 +820,12 @@ export declare const answerCardLaunchQuickProps: () => {
806
820
  } & {
807
821
  default: boolean;
808
822
  };
823
+ /** 是否响应 webview 相关参数。 */
824
+ respondWebviewParams: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
825
+ default: boolean;
826
+ } & {
827
+ default: boolean;
828
+ };
809
829
  /** 快速发题弹窗显隐(v-model)。 */
810
830
  value: VueTypeValidableDef_2<boolean, ValidatorFunction<boolean>> & {
811
831
  default: boolean;
@@ -1060,10 +1080,10 @@ openQuickAnswer: () => void;
1060
1080
  openTemplateManager: typeof openTemplateManager;
1061
1081
  selectQuestion: (questionId: string) => Promise<void>;
1062
1082
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1083
+ start: (arg: AnswerCardLaunchStartPayload) => void;
1063
1084
  input: (arg: boolean) => void;
1064
1085
  stop: (arg: AnswerCardLaunchStopPayload) => void;
1065
1086
  close: (arg?: void | undefined) => void;
1066
- start: (arg: AnswerCardLaunchStartPayload) => void;
1067
1087
  ended: (arg: AnswerCardLaunchEndPayload) => void;
1068
1088
  export: (arg: AnswerCardLaunchExportPayload) => void;
1069
1089
  }, string, Readonly<ExtractPropTypes< {
@@ -1170,6 +1190,12 @@ export declare const pcAnswerCardLaunchPanelProps: () => {
1170
1190
  };
1171
1191
 
1172
1192
  export declare const PcAnswerCardQuickAnswer: DefineComponent< {
1193
+ /** 是否响应 webview 相关参数。 */
1194
+ respondWebviewParams: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1195
+ default: boolean;
1196
+ } & {
1197
+ default: boolean;
1198
+ };
1173
1199
  value: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1174
1200
  default: boolean;
1175
1201
  } & {
@@ -1209,13 +1235,19 @@ default: boolean;
1209
1235
  default: boolean;
1210
1236
  };
1211
1237
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1238
+ start: (arg: AnswerCardLaunchStartPayload) => void;
1212
1239
  input: (arg: boolean) => void;
1213
1240
  stop: (arg: AnswerCardLaunchStopPayload) => void;
1214
1241
  close: (arg?: void | undefined) => void;
1215
- start: (arg: AnswerCardLaunchStartPayload) => void;
1216
1242
  ended: (arg: AnswerCardLaunchEndPayload) => void;
1217
1243
  export: (arg: AnswerCardLaunchExportPayload) => void;
1218
1244
  }, string, Readonly<ExtractPropTypes< {
1245
+ /** 是否响应 webview 相关参数。 */
1246
+ respondWebviewParams: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1247
+ default: boolean;
1248
+ } & {
1249
+ default: boolean;
1250
+ };
1219
1251
  value: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1220
1252
  default: boolean;
1221
1253
  } & {
@@ -1262,6 +1294,7 @@ cantStartTips: string;
1262
1294
  defaultLimitDuration: number;
1263
1295
  answerContentBlankEnabled: boolean;
1264
1296
  checkDefaultBadwordEnabled: boolean;
1297
+ respondWebviewParams: boolean;
1265
1298
  }>;
1266
1299
 
1267
1300
  export declare type PcAnswerCardViewState = 'idle' | 'preview' | 'creating' | 'editing' | 'saving' | 'starting' | 'running' | 'stopping' | 'ended' | 'managing-template' | 'importing' | 'exporting';
@@ -1633,29 +1666,8 @@ export declare const usePcAnswerCardLaunchPanel: (options: {
1633
1666
  platformQuestionnaireVisible: Ref<boolean>;
1634
1667
  loadingPlatformQuestionnaires: Ref<boolean>;
1635
1668
  platformQuestionnaireKeyword: Ref<string>;
1636
- platformQuestionnairePageContent: Ref< {
1637
- pageNumber: number;
1638
- pageSize: number;
1639
- totalItems: number;
1640
- totalPages: number;
1641
- contents: {
1642
- questionnaireId: string;
1643
- userId: string;
1644
- name: string;
1645
- questionCount: number;
1646
- createdAt?: string | undefined;
1647
- creator?: string | undefined;
1648
- questions: {
1649
- questionId?: string | undefined;
1650
- title: string;
1651
- type?: string | undefined;
1652
- typeName?: string | undefined;
1653
- optionCount: number;
1654
- }[];
1655
- }[];
1656
- }>;
1669
+ platformQuestionnairePageContent: ComputedRef<PlatformQuestionnairePageContentData_2>;
1657
1670
  quickVisible: Ref<boolean>;
1658
- downloadRecordsVisible: Ref<boolean>;
1659
1671
  limitTimeEnabled: Ref<boolean>;
1660
1672
  limitDuration: Ref<number>;
1661
1673
  hasOngoing: ComputedRef<boolean>;
@@ -1694,8 +1706,6 @@ export declare const usePcAnswerCardLaunchPanel: (options: {
1694
1706
  closePanel: () => void;
1695
1707
  openQuickAnswer: () => void;
1696
1708
  closeQuickAnswer: () => void;
1697
- openDownloadRecords: () => void;
1698
- closeDownloadRecords: () => void;
1699
1709
  openTemplateManager: () => void;
1700
1710
  closeTemplateManager: () => void;
1701
1711
  openPlatformQuestionnairePopup: () => void;
@@ -1704,27 +1714,7 @@ export declare const usePcAnswerCardLaunchPanel: (options: {
1704
1714
  addPlatformQuestionnaire: (item: PlatformQuestionnaireItemData_2) => Promise<void>;
1705
1715
  refreshQuestionList: (reason?: AnswerCardLaunchRefreshReason) => Promise<void>;
1706
1716
  refreshTemplateList: (_reason?: AnswerCardLaunchRefreshReason) => Promise<void>;
1707
- refreshPlatformQuestionnaireList: (pageContent?: {
1708
- pageNumber: number;
1709
- pageSize: number;
1710
- totalItems: number;
1711
- totalPages: number;
1712
- contents: {
1713
- questionnaireId: string;
1714
- userId: string;
1715
- name: string;
1716
- questionCount: number;
1717
- createdAt?: string | undefined;
1718
- creator?: string | undefined;
1719
- questions: {
1720
- questionId?: string | undefined;
1721
- title: string;
1722
- type?: string | undefined;
1723
- typeName?: string | undefined;
1724
- optionCount: number;
1725
- }[];
1726
- }[];
1727
- }) => Promise<void>;
1717
+ refreshPlatformQuestionnaireList: (pageContent?: PlatformQuestionnairePageContentData_2) => Promise<void>;
1728
1718
  selectQuestion: (questionId: string) => Promise<void>;
1729
1719
  createQuestion: (type?: QuestionType) => Promise<void>;
1730
1720
  editSelectedQuestion: () => void;
@@ -1739,7 +1729,7 @@ export declare const usePcAnswerCardLaunchPanel: (options: {
1739
1729
  startSelectedQuestion: (isAgain?: boolean) => Promise<void>;
1740
1730
  stopSelectedQuestion: () => Promise<void>;
1741
1731
  sendSelectedResult: () => Promise<void>;
1742
- exportSelectedResult: () => void;
1732
+ exportSelectedResult: () => Promise<void>;
1743
1733
  applyTemplate: (template: AnswerCardTemplateItemData) => Promise<void>;
1744
1734
  deleteTemplate: (template: AnswerCardTemplateItemData) => Promise<void>;
1745
1735
  downloadTemplate: (templateId?: string) => Promise<void>;