@speakableio/core 1.0.27 → 1.0.29

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.
@@ -93,6 +93,11 @@ interface PageActivity {
93
93
  completed?: boolean;
94
94
  media_area_id?: string | null;
95
95
  media_area_layout?: 'left' | 'right' | null;
96
+ media_mode?: 'single' | 'media_area' | 'none' | null;
97
+ media?: {
98
+ type: 'image' | 'video';
99
+ url: string;
100
+ } | null;
96
101
  score?: number;
97
102
  verificationStatus?: VerificationCardStatus;
98
103
  native_text?: string;
@@ -191,6 +196,11 @@ declare function useCards({ cardIds, enabled, asObject, }: {
191
196
  completed?: boolean;
192
197
  media_area_id?: string | null;
193
198
  media_area_layout?: "left" | "right" | null;
199
+ media_mode?: "single" | "media_area" | "none" | null;
200
+ media?: {
201
+ type: "image" | "video";
202
+ url: string;
203
+ } | null;
194
204
  score?: number;
195
205
  verificationStatus?: VerificationCardStatus;
196
206
  native_text?: string;
@@ -266,6 +276,11 @@ declare function useCreateCards(): {
266
276
  completed?: boolean;
267
277
  media_area_id?: string | null;
268
278
  media_area_layout?: "left" | "right" | null;
279
+ media_mode?: "single" | "media_area" | "none" | null;
280
+ media?: {
281
+ type: "image" | "video";
282
+ url: string;
283
+ } | null;
269
284
  score?: number;
270
285
  verificationStatus?: VerificationCardStatus;
271
286
  native_text?: string;
@@ -349,6 +364,11 @@ declare function useGetCard({ cardId, enabled }: {
349
364
  completed?: boolean;
350
365
  media_area_id?: string | null;
351
366
  media_area_layout?: "left" | "right" | null;
367
+ media_mode?: "single" | "media_area" | "none" | null;
368
+ media?: {
369
+ type: "image" | "video";
370
+ url: string;
371
+ } | null;
352
372
  score?: number;
353
373
  verificationStatus?: VerificationCardStatus;
354
374
  native_text?: string;
@@ -424,6 +444,11 @@ declare const createCardRepo: () => {
424
444
  completed?: boolean;
425
445
  media_area_id?: string | null;
426
446
  media_area_layout?: "left" | "right" | null;
447
+ media_mode?: "single" | "media_area" | "none" | null;
448
+ media?: {
449
+ type: "image" | "video";
450
+ url: string;
451
+ } | null;
427
452
  score?: number;
428
453
  verificationStatus?: VerificationCardStatus;
429
454
  native_text?: string;
@@ -494,6 +519,11 @@ declare const createCardRepo: () => {
494
519
  completed?: boolean;
495
520
  media_area_id?: string | null;
496
521
  media_area_layout?: "left" | "right" | null;
522
+ media_mode?: "single" | "media_area" | "none" | null;
523
+ media?: {
524
+ type: "image" | "video";
525
+ url: string;
526
+ } | null;
497
527
  score?: number;
498
528
  verificationStatus?: VerificationCardStatus;
499
529
  native_text?: string;
@@ -587,6 +617,29 @@ declare const getLabelPage: (pageType: ActivityPageType | undefined) => {
587
617
  long: string;
588
618
  };
589
619
 
620
+ declare function getPageMediaData(page: PageActivityWithId): {
621
+ direction: "left" | "right";
622
+ mode: string | null;
623
+ singleMedia: {
624
+ rawObject: {
625
+ type: "image" | "video";
626
+ url: string;
627
+ };
628
+ type: "image" | "video";
629
+ content: string;
630
+ } | undefined;
631
+ isMediaPage: boolean;
632
+ hasMediaData: boolean;
633
+ };
634
+ declare function getSingleMediaPageData(page: PageActivityWithId): {
635
+ rawObject: {
636
+ type: "image" | "video";
637
+ url: string;
638
+ };
639
+ type: "image" | "video";
640
+ content: string;
641
+ } | undefined;
642
+
590
643
  interface Assignment {
591
644
  name: string;
592
645
  description: string;
@@ -1318,6 +1371,11 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
1318
1371
  completed?: boolean;
1319
1372
  media_area_id?: string | null;
1320
1373
  media_area_layout?: "left" | "right" | null;
1374
+ media_mode?: "single" | "media_area" | "none" | null;
1375
+ media?: {
1376
+ type: "image" | "video";
1377
+ url: string;
1378
+ } | null;
1321
1379
  score?: number;
1322
1380
  verificationStatus?: VerificationCardStatus;
1323
1381
  native_text?: string;
@@ -1388,6 +1446,11 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
1388
1446
  completed?: boolean;
1389
1447
  media_area_id?: string | null;
1390
1448
  media_area_layout?: "left" | "right" | null;
1449
+ media_mode?: "single" | "media_area" | "none" | null;
1450
+ media?: {
1451
+ type: "image" | "video";
1452
+ url: string;
1453
+ } | null;
1391
1454
  score?: number;
1392
1455
  verificationStatus?: VerificationCardStatus;
1393
1456
  native_text?: string;
@@ -1641,6 +1704,11 @@ declare function useActivity({ id, isAssignment, onAssignmentSubmitted, ltiData,
1641
1704
  completed?: boolean;
1642
1705
  media_area_id?: string | null;
1643
1706
  media_area_layout?: "left" | "right" | null;
1707
+ media_mode?: "single" | "media_area" | "none" | null;
1708
+ media?: {
1709
+ type: "image" | "video";
1710
+ url: string;
1711
+ } | null;
1644
1712
  score?: number;
1645
1713
  verificationStatus?: VerificationCardStatus;
1646
1714
  native_text?: string;
@@ -2856,7 +2924,7 @@ declare const useBaseOpenAI: ({ onTranscriptSuccess, onTranscriptError, onComple
2856
2924
  noFeedbackAvailable: boolean;
2857
2925
  success: boolean;
2858
2926
  reason: string;
2859
- accessType: "ai_enabled" | "teacher_preview" | "student_with_teacher_plan" | "none";
2927
+ accessType: "none" | "ai_enabled" | "teacher_preview" | "student_with_teacher_plan";
2860
2928
  } | {
2861
2929
  noFeedbackAvailable: boolean;
2862
2930
  success: boolean;
@@ -3182,6 +3250,11 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
3182
3250
  completed?: boolean;
3183
3251
  media_area_id?: string | null;
3184
3252
  media_area_layout?: "left" | "right" | null;
3253
+ media_mode?: "single" | "media_area" | "none" | null;
3254
+ media?: {
3255
+ type: "image" | "video";
3256
+ url: string;
3257
+ } | null;
3185
3258
  score?: number;
3186
3259
  verificationStatus?: VerificationCardStatus;
3187
3260
  native_text?: string;
@@ -3252,6 +3325,11 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
3252
3325
  completed?: boolean;
3253
3326
  media_area_id?: string | null;
3254
3327
  media_area_layout?: "left" | "right" | null;
3328
+ media_mode?: "single" | "media_area" | "none" | null;
3329
+ media?: {
3330
+ type: "image" | "video";
3331
+ url: string;
3332
+ } | null;
3255
3333
  score?: number;
3256
3334
  verificationStatus?: VerificationCardStatus;
3257
3335
  native_text?: string;
@@ -3314,4 +3392,4 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
3314
3392
  };
3315
3393
  };
3316
3394
 
3317
- export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
3395
+ export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPageMediaData, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getSingleMediaPageData, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
@@ -93,6 +93,11 @@ interface PageActivity {
93
93
  completed?: boolean;
94
94
  media_area_id?: string | null;
95
95
  media_area_layout?: 'left' | 'right' | null;
96
+ media_mode?: 'single' | 'media_area' | 'none' | null;
97
+ media?: {
98
+ type: 'image' | 'video';
99
+ url: string;
100
+ } | null;
96
101
  score?: number;
97
102
  verificationStatus?: VerificationCardStatus;
98
103
  native_text?: string;
@@ -191,6 +196,11 @@ declare function useCards({ cardIds, enabled, asObject, }: {
191
196
  completed?: boolean;
192
197
  media_area_id?: string | null;
193
198
  media_area_layout?: "left" | "right" | null;
199
+ media_mode?: "single" | "media_area" | "none" | null;
200
+ media?: {
201
+ type: "image" | "video";
202
+ url: string;
203
+ } | null;
194
204
  score?: number;
195
205
  verificationStatus?: VerificationCardStatus;
196
206
  native_text?: string;
@@ -266,6 +276,11 @@ declare function useCreateCards(): {
266
276
  completed?: boolean;
267
277
  media_area_id?: string | null;
268
278
  media_area_layout?: "left" | "right" | null;
279
+ media_mode?: "single" | "media_area" | "none" | null;
280
+ media?: {
281
+ type: "image" | "video";
282
+ url: string;
283
+ } | null;
269
284
  score?: number;
270
285
  verificationStatus?: VerificationCardStatus;
271
286
  native_text?: string;
@@ -349,6 +364,11 @@ declare function useGetCard({ cardId, enabled }: {
349
364
  completed?: boolean;
350
365
  media_area_id?: string | null;
351
366
  media_area_layout?: "left" | "right" | null;
367
+ media_mode?: "single" | "media_area" | "none" | null;
368
+ media?: {
369
+ type: "image" | "video";
370
+ url: string;
371
+ } | null;
352
372
  score?: number;
353
373
  verificationStatus?: VerificationCardStatus;
354
374
  native_text?: string;
@@ -424,6 +444,11 @@ declare const createCardRepo: () => {
424
444
  completed?: boolean;
425
445
  media_area_id?: string | null;
426
446
  media_area_layout?: "left" | "right" | null;
447
+ media_mode?: "single" | "media_area" | "none" | null;
448
+ media?: {
449
+ type: "image" | "video";
450
+ url: string;
451
+ } | null;
427
452
  score?: number;
428
453
  verificationStatus?: VerificationCardStatus;
429
454
  native_text?: string;
@@ -494,6 +519,11 @@ declare const createCardRepo: () => {
494
519
  completed?: boolean;
495
520
  media_area_id?: string | null;
496
521
  media_area_layout?: "left" | "right" | null;
522
+ media_mode?: "single" | "media_area" | "none" | null;
523
+ media?: {
524
+ type: "image" | "video";
525
+ url: string;
526
+ } | null;
497
527
  score?: number;
498
528
  verificationStatus?: VerificationCardStatus;
499
529
  native_text?: string;
@@ -587,6 +617,29 @@ declare const getLabelPage: (pageType: ActivityPageType | undefined) => {
587
617
  long: string;
588
618
  };
589
619
 
620
+ declare function getPageMediaData(page: PageActivityWithId): {
621
+ direction: "left" | "right";
622
+ mode: string | null;
623
+ singleMedia: {
624
+ rawObject: {
625
+ type: "image" | "video";
626
+ url: string;
627
+ };
628
+ type: "image" | "video";
629
+ content: string;
630
+ } | undefined;
631
+ isMediaPage: boolean;
632
+ hasMediaData: boolean;
633
+ };
634
+ declare function getSingleMediaPageData(page: PageActivityWithId): {
635
+ rawObject: {
636
+ type: "image" | "video";
637
+ url: string;
638
+ };
639
+ type: "image" | "video";
640
+ content: string;
641
+ } | undefined;
642
+
590
643
  interface Assignment {
591
644
  name: string;
592
645
  description: string;
@@ -1318,6 +1371,11 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
1318
1371
  completed?: boolean;
1319
1372
  media_area_id?: string | null;
1320
1373
  media_area_layout?: "left" | "right" | null;
1374
+ media_mode?: "single" | "media_area" | "none" | null;
1375
+ media?: {
1376
+ type: "image" | "video";
1377
+ url: string;
1378
+ } | null;
1321
1379
  score?: number;
1322
1380
  verificationStatus?: VerificationCardStatus;
1323
1381
  native_text?: string;
@@ -1388,6 +1446,11 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
1388
1446
  completed?: boolean;
1389
1447
  media_area_id?: string | null;
1390
1448
  media_area_layout?: "left" | "right" | null;
1449
+ media_mode?: "single" | "media_area" | "none" | null;
1450
+ media?: {
1451
+ type: "image" | "video";
1452
+ url: string;
1453
+ } | null;
1391
1454
  score?: number;
1392
1455
  verificationStatus?: VerificationCardStatus;
1393
1456
  native_text?: string;
@@ -1641,6 +1704,11 @@ declare function useActivity({ id, isAssignment, onAssignmentSubmitted, ltiData,
1641
1704
  completed?: boolean;
1642
1705
  media_area_id?: string | null;
1643
1706
  media_area_layout?: "left" | "right" | null;
1707
+ media_mode?: "single" | "media_area" | "none" | null;
1708
+ media?: {
1709
+ type: "image" | "video";
1710
+ url: string;
1711
+ } | null;
1644
1712
  score?: number;
1645
1713
  verificationStatus?: VerificationCardStatus;
1646
1714
  native_text?: string;
@@ -2856,7 +2924,7 @@ declare const useBaseOpenAI: ({ onTranscriptSuccess, onTranscriptError, onComple
2856
2924
  noFeedbackAvailable: boolean;
2857
2925
  success: boolean;
2858
2926
  reason: string;
2859
- accessType: "ai_enabled" | "teacher_preview" | "student_with_teacher_plan" | "none";
2927
+ accessType: "none" | "ai_enabled" | "teacher_preview" | "student_with_teacher_plan";
2860
2928
  } | {
2861
2929
  noFeedbackAvailable: boolean;
2862
2930
  success: boolean;
@@ -3182,6 +3250,11 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
3182
3250
  completed?: boolean;
3183
3251
  media_area_id?: string | null;
3184
3252
  media_area_layout?: "left" | "right" | null;
3253
+ media_mode?: "single" | "media_area" | "none" | null;
3254
+ media?: {
3255
+ type: "image" | "video";
3256
+ url: string;
3257
+ } | null;
3185
3258
  score?: number;
3186
3259
  verificationStatus?: VerificationCardStatus;
3187
3260
  native_text?: string;
@@ -3252,6 +3325,11 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
3252
3325
  completed?: boolean;
3253
3326
  media_area_id?: string | null;
3254
3327
  media_area_layout?: "left" | "right" | null;
3328
+ media_mode?: "single" | "media_area" | "none" | null;
3329
+ media?: {
3330
+ type: "image" | "video";
3331
+ url: string;
3332
+ } | null;
3255
3333
  score?: number;
3256
3334
  verificationStatus?: VerificationCardStatus;
3257
3335
  native_text?: string;
@@ -3314,4 +3392,4 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
3314
3392
  };
3315
3393
  };
3316
3394
 
3317
- export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
3395
+ export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPageMediaData, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getSingleMediaPageData, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
@@ -67,10 +67,12 @@ __export(index_native_exports, {
67
67
  debounce: () => debounce,
68
68
  getCardFromCache: () => getCardFromCache,
69
69
  getLabelPage: () => getLabelPage,
70
+ getPageMediaData: () => getPageMediaData,
70
71
  getPagePrompt: () => getPagePrompt,
71
72
  getPhraseLength: () => getPhraseLength,
72
73
  getRespondCardTool: () => getRespondCardTool,
73
74
  getSetFromCache: () => getSetFromCache,
75
+ getSingleMediaPageData: () => getSingleMediaPageData,
74
76
  getTotalCompletedCards: () => getTotalCompletedCards,
75
77
  getTranscript: () => getTranscript,
76
78
  getTranscriptCycle: () => getTranscriptCycle,
@@ -2193,6 +2195,35 @@ var getLabelPage = (pageType) => {
2193
2195
  };
2194
2196
  };
2195
2197
 
2198
+ // src/domains/cards/utils/get-page-media-data.ts
2199
+ function getPageMediaData(page) {
2200
+ var _a, _b;
2201
+ const direction = (_a = page.media_area_layout) != null ? _a : "left";
2202
+ const { isMediaPage } = checkTypePageActivity(page.type);
2203
+ const mode = ((_b = page.media_mode) != null ? _b : page.media_area_id) ? "media_area" : null;
2204
+ const singleMedia = getSingleMediaPageData(page);
2205
+ const hasMediaData = isMediaPage && singleMedia !== void 0;
2206
+ return {
2207
+ direction,
2208
+ mode,
2209
+ singleMedia,
2210
+ isMediaPage,
2211
+ hasMediaData
2212
+ };
2213
+ }
2214
+ function getSingleMediaPageData(page) {
2215
+ const isSingleMode = page.media_mode === "single";
2216
+ if (!isSingleMode || !page.media) return void 0;
2217
+ const media = {
2218
+ type: page.media.type,
2219
+ content: page.media.url
2220
+ };
2221
+ return {
2222
+ ...media,
2223
+ rawObject: page.media
2224
+ };
2225
+ }
2226
+
2196
2227
  // src/domains/sets/set.hooks.ts
2197
2228
  var import_react_query4 = require("@tanstack/react-query");
2198
2229