diff --git a/projects/quml-demo-app/src/app/app.component.ts b/projects/quml-demo-app/src/app/app.component.ts index 7a92e1ab..80c7e4c7 100644 --- a/projects/quml-demo-app/src/app/app.component.ts +++ b/projects/quml-demo-app/src/app/app.component.ts @@ -8,7 +8,7 @@ import { DataService } from './services/data.service'; styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { - contentId = 'do_11395276467516211211'; + contentId = 'do_214234702021410816111'; playerConfig: any; constructor(private dataService: DataService) { } diff --git a/projects/quml-demo-app/src/app/app.constant.ts b/projects/quml-demo-app/src/app/app.constant.ts index 441ba32d..5a0fc758 100644 --- a/projects/quml-demo-app/src/app/app.constant.ts +++ b/projects/quml-demo-app/src/app/app.constant.ts @@ -1,6 +1,6 @@ export const ApiEndPoints = { getContent: '/api/content/v1/read/', - getQuestionSetHierarchy: '/learner/questionset/v2/hierarchy/', - questionSetRead: '/api/questionset/v2/read/', + getQuestionSetHierarchy: '/action/questionset/v2/hierarchy/', + questionSetRead: '/action/questionset/v2/read/', questionList: '/api/question/v2/list', } \ No newline at end of file diff --git a/projects/quml-demo-app/src/app/quml-library-data.ts b/projects/quml-demo-app/src/app/quml-library-data.ts index de4c9695..90f6f5fb 100644 --- a/projects/quml-demo-app/src/app/quml-library-data.ts +++ b/projects/quml-demo-app/src/app/quml-library-data.ts @@ -1,555 +1,347 @@ const content = { - "lastStatusChangedOn": "2022-04-21T09:17:59.394+0000", - "timeLimits": "{\"maxTime\":\"120\"}", - "author": "Aparna", + "courseType": [ + "Enablers" + ], + "assessmentType": "Post Test", + "previewUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/do_21423465065426124815_html_1737628412545.html", + "subject": [ + "Data Computing/Data Entry" + ], + "channel": "scp-channel", + "downloadUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628412224_do_21423465065426124815_1.ecar", + "language": [ + "English" + ], + "program": [ + "SCP" + ], + "mimeType": "application/vnd.sunbird.questionset", + "showHints": false, + "variants": { + "spine": { + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628411654_do_21423465065426124815_1_SPINE.ecar", + "size": "6679" + }, + "online": { + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628411970_do_21423465065426124815_1_ONLINE.ecar", + "size": "3494" + }, + "full": { + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628412224_do_21423465065426124815_1.ecar", + "size": "8214" + } + }, + "objectType": "QuestionSet", + "se_mediums": [ + "Hindi" + ], + "gradeLevel": [ + "Grade 10" + ], + "appIcon": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/artifact/sunbird.thumb.jpeg", + "primaryCategory": "Practice Question Set", "children": [ { - "lastStatusChangedOn": "2022-04-21T09:17:59.384+0000", - "parent": "do_213521052524797952167", + "lastStatusChangedOn": "2025-01-23T10:33:06.699+0000", + "timeLimits": { + "questionSet": { + "max": 0, + "min": 0 + } + }, + "parent": "do_21423465065426124815", "children": [ { - "lastStatusChangedOn": "2022-04-21T09:18:00.347+0000", - "parent": "do_213521053485416448168", - "author": "Aparna", - "name": "1", - "createdOn": "2022-04-21T05:34:28.824+0000", - "channel": "01345815127107174426", - "pdfUrl": "", - "lastUpdatedOn": "2022-04-21T09:18:00.347+0000", + "lastStatusChangedOn": "2025-01-23T10:33:30.555+0000", + "parent": "do_21423465095161446416", + "author": "John", + "name": "Capital", + "createdOn": "2025-01-23T10:32:23.377+0000", + "channel": "scp-channel", + "maxScore": 1, + "lastUpdatedOn": "2025-01-23T10:33:30.555+0000", "subject": [ - "English" + "Data Computing/Data Entry" ], - "showTimer": "No", - "identifier": "do_213521053850206208170", + "showTimer": false, + "identifier": "do_21423465138894438418", "gradeLevel": [ - "Class 1" - ], - "compatibilityLevel": 4, - "audience": [ - "Audience1" + "Grade 10" ], + "compatibilityLevel": 5, "se_boards": [ - "CBSE" + "NIOS - Rajasthan" ], "primaryCategory": "Multiple Choice Question", "se_mediums": [ - "English" + "Hindi" ], - "downloadUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521053850206208170/1_1650532680175_do_213521053850206208170_1.ecar", + "downloadUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/capital_1737628409372_do_21423465138894438418_1.ecar", "se_subjects": [ - "English" + "Data Computing/Data Entry" ], "medium": [ - "English" + "Hindi" ], "interactionTypes": [ "choice" ], - "framework": "ekstep_ncert_k-12", - "versionKey": "1650519268826", + "framework": "scp-framework", + "versionKey": "1737628343385", "mimeType": "application/vnd.sunbird.question", - "code": "eb72d233-9eea-e889-eccc-b6350b11974a", + "code": "0d17f510-6820-4327-8fce-1c64399ef83c", "license": "CC BY 4.0", - "version": 1, + "qumlVersion": 1.1, "prevStatus": "Draft", + "showHints": false, "templateId": "mcq-vertical", "language": [ "English" ], - "board": "CBSE", - "showFeedback": "No", + "board": "NIOS - Rajasthan", + "showFeedback": false, "objectType": "Question", "status": "Live", - "createdBy": "c16ccf69-bd42-4dd3-a1e6-435322e78c97", + "createdBy": "15155b7a-5316-4bb2-992a-772093e85f44", "contentEncoding": "gzip", "depth": 2, + "lastPublishedBy": "15155b7a-5316-4bb2-992a-772093e85f44", "se_gradeLevels": [ - "Class 1" + "Grade 10" ], "se_FWIds": [ - "ekstep_ncert_k-12" + "scp-framework" ], "allowAnonymousAccess": "Yes", "contentDisposition": "inline", - "artifactUrl": "https://stagingdock.blob.core.windows.net/sunbird-content-dock/question/do_213521053850206208170/do_213521053850206208170_1650532680102.zip", - "visibility": "Parent", + "schemaVersion": "1.1", + "artifactUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/do_21423465138894438418_1737628404123.zip", + "visibility": "Default", "qType": "MCQ", - "showSolutions": "No", + "showSolutions": false, "variants": { "full": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521053850206208170/1_1650532680175_do_213521053850206208170_1.ecar", - "size": 94432 + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/capital_1737628409372_do_21423465138894438418_1.ecar", + "size": "2876" }, "online": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521053850206208170/1_1650532680263_do_213521053850206208170_1_ONLINE.ecar", - "size": 1498 + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/capital_1737628409758_do_21423465138894438418_1_ONLINE.ecar", + "size": "1379" } }, "index": 1, - "pkgVersion": 1 - }, - { - "lastStatusChangedOn": "2022-04-21T09:18:00.644+0000", - "parent": "do_213521053485416448168", - "author": "Aparna", - "name": "2", - "createdOn": "2022-04-21T05:37:30.411+0000", - "channel": "01345815127107174426", - "pdfUrl": "", - "lastUpdatedOn": "2022-04-21T09:18:00.644+0000", - "subject": [ - "English" - ], - "showTimer": "No", - "identifier": "do_213521055337766912172", - "gradeLevel": [ - "Class 1" - ], - "compatibilityLevel": 4, - "audience": [ - "Audience1" - ], - "se_boards": [ - "CBSE" - ], - "primaryCategory": "Multiple Choice Question", - "se_mediums": [ - "English" - ], - "downloadUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055337766912172/2_1650532680515_do_213521055337766912172_1.ecar", - "se_subjects": [ - "English" - ], - "medium": [ - "English" - ], - "interactionTypes": [ - "choice" - ], - "framework": "ekstep_ncert_k-12", - "versionKey": "1650519450412", - "mimeType": "application/vnd.sunbird.question", - "code": "cba4a5d3-fa0a-ef84-c468-bc3bd0da466c", - "license": "CC BY 4.0", - "version": 1, - "prevStatus": "Draft", - "templateId": "mcq-vertical", - "language": [ - "English" - ], - "board": "CBSE", - "showFeedback": "No", - "objectType": "Question", - "status": "Live", - "createdBy": "c16ccf69-bd42-4dd3-a1e6-435322e78c97", - "contentEncoding": "gzip", - "depth": 2, - "se_gradeLevels": [ - "Class 1" - ], - "se_FWIds": [ - "ekstep_ncert_k-12" - ], - "allowAnonymousAccess": "Yes", - "contentDisposition": "inline", - "artifactUrl": "https://stagingdock.blob.core.windows.net/sunbird-content-dock/question/do_213521055337766912172/do_213521055337766912172_1650532680472.zip", - "visibility": "Parent", - "qType": "MCQ", - "showSolutions": "No", - "variants": { - "full": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055337766912172/2_1650532680515_do_213521055337766912172_1.ecar", - "size": 101777 - }, - "online": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055337766912172/2_1650532680595_do_213521055337766912172_1_ONLINE.ecar", - "size": 1537 - } - }, - "index": 2, - "pkgVersion": 1 - }, - { - "lastStatusChangedOn": "2022-04-21T09:18:00.939+0000", - "parent": "do_213521053485416448168", - "author": "Aparna", - "name": "3", - "createdOn": "2022-04-21T05:37:50.505+0000", - "channel": "01345815127107174426", - "pdfUrl": "", - "lastUpdatedOn": "2022-04-21T09:18:00.939+0000", - "subject": [ - "English" - ], - "showTimer": "No", - "identifier": "do_213521055502376960174", - "gradeLevel": [ - "Class 1" - ], - "compatibilityLevel": 4, - "audience": [ - "Audience1" - ], - "se_boards": [ - "CBSE" - ], - "primaryCategory": "Subjective Question", - "se_mediums": [ - "English" - ], - "downloadUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055502376960174/3_1650532680793_do_213521055502376960174_1.ecar", - "se_subjects": [ - "English" - ], - "medium": [ - "English" - ], - "framework": "ekstep_ncert_k-12", - "versionKey": "1650519541827", - "mimeType": "application/vnd.sunbird.question", - "code": "aed75d95-e6c5-fefe-51be-4d501fd47b0a", - "license": "CC BY 4.0", - "version": 1, - "prevStatus": "Draft", - "language": [ - "English" - ], - "board": "CBSE", - "showFeedback": "No", - "objectType": "Question", - "status": "Live", - "createdBy": "c16ccf69-bd42-4dd3-a1e6-435322e78c97", - "contentEncoding": "gzip", - "depth": 2, - "se_gradeLevels": [ - "Class 1" - ], - "se_FWIds": [ - "ekstep_ncert_k-12" - ], - "allowAnonymousAccess": "Yes", - "contentDisposition": "inline", - "artifactUrl": "https://stagingdock.blob.core.windows.net/sunbird-content-dock/question/do_213521055502376960174/do_213521055502376960174_1650532680744.zip", - "visibility": "Parent", - "qType": "SA", - "showSolutions": "No", - "variants": { - "full": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055502376960174/3_1650532680793_do_213521055502376960174_1.ecar", - "size": 262940 - }, - "online": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055502376960174/3_1650532680888_do_213521055502376960174_1_ONLINE.ecar", - "size": 1279 - } - }, - "index": 3, - "pkgVersion": 1 - }, - { - "lastStatusChangedOn": "2022-04-21T09:18:01.237+0000", - "parent": "do_213521053485416448168", - "author": "Aparna", - "name": "4", - "createdOn": "2022-04-21T05:38:39.133+0000", - "channel": "01345815127107174426", - "pdfUrl": "", - "lastUpdatedOn": "2022-04-21T09:18:01.237+0000", - "subject": [ - "English" - ], - "showTimer": "No", - "identifier": "do_213521055900729344176", - "gradeLevel": [ - "Class 1" - ], - "compatibilityLevel": 4, - "audience": [ - "Audience1" - ], - "se_boards": [ - "CBSE" - ], - "primaryCategory": "Multiple Choice Question", - "se_mediums": [ - "English" - ], - "downloadUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055900729344176/4_1650532681075_do_213521055900729344176_1.ecar", - "se_subjects": [ - "English" - ], - "medium": [ - "English" - ], - "interactionTypes": [ - "choice" - ], - "framework": "ekstep_ncert_k-12", - "versionKey": "1650519519134", - "mimeType": "application/vnd.sunbird.question", - "code": "032b9874-4a61-77f4-c838-600f3639ef04", - "license": "CC BY 4.0", - "version": 1, - "prevStatus": "Draft", - "templateId": "mcq-vertical", - "language": [ - "English" - ], - "board": "CBSE", - "showFeedback": "No", - "objectType": "Question", - "status": "Live", - "createdBy": "c16ccf69-bd42-4dd3-a1e6-435322e78c97", - "contentEncoding": "gzip", - "depth": 2, - "se_gradeLevels": [ - "Class 1" - ], - "se_FWIds": [ - "ekstep_ncert_k-12" - ], - "allowAnonymousAccess": "Yes", - "contentDisposition": "inline", - "artifactUrl": "https://stagingdock.blob.core.windows.net/sunbird-content-dock/question/do_213521055900729344176/do_213521055900729344176_1650532681014.zip", - "visibility": "Parent", - "qType": "MCQ", - "showSolutions": "No", - "variants": { - "full": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055900729344176/4_1650532681075_do_213521055900729344176_1.ecar", - "size": 263381 - }, - "online": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/question/do_213521055900729344176/4_1650532681186_do_213521055900729344176_1_ONLINE.ecar", - "size": 1517 - } - }, - "index": 4, - "pkgVersion": 1 + "pkgVersion": 1, + "languageCode": [ + "en" + ] } ], - "name": "section-1", + "name": "Section-1", "navigationMode": "non-linear", - "createdOn": "2022-04-21T05:33:44.294+0000", - "channel": "01345815127107174426", - "lastUpdatedOn": "2022-04-21T09:17:59.384+0000", - "showTimer": "No", - "identifier": "do_213521053485416448168", - "description": "Test", + "createdOn": "2025-01-23T10:31:29.992+0000", + "channel": "scp-channel", + "generateDIALCodes": "No", + "lastUpdatedOn": "2025-01-23T10:33:06.699+0000", + "showTimer": false, + "identifier": "do_21423465095161446416", + "description": "Section-1", "containsUserData": "No", "allowSkip": "Yes", - "compatibilityLevel": 5, + "compatibilityLevel": 6, + "trackable": { + "enabled": "No", + "autoBatch": "No" + }, "primaryCategory": "Practice Question Set", "setType": "materialised", "languageCode": [ "en" ], "attributions": [], - "versionKey": "1650519224294", + "scoreCutoffType": "AssessmentLevel", + "versionKey": "1737628289992", "mimeType": "application/vnd.sunbird.questionset", - "code": "0dbb2f59-e532-ce49-be46-81b5ff78e21f", + "code": "0cfe929d-0503-4635-822c-4a59795f0b5b", "license": "CC BY 4.0", - "version": 1, + "qumlVersion": 1.1, "prevStatus": "Draft", - "showHints": "No", + "showHints": false, "language": [ "English" ], - "showFeedback": "Yes", + "showFeedback": false, "objectType": "QuestionSet", "status": "Live", "requiresSubmit": "No", "shuffle": true, "contentEncoding": "gzip", "depth": 1, + "instructions": "

Test

", "allowAnonymousAccess": "Yes", "contentDisposition": "inline", + "schemaVersion": "1.1", "allowBranching": "No", "visibility": "Parent", - "showSolutions": "Yes", + "showSolutions": false, "index": 1 } ], - "name": "Talkback-question set", - "navigationMode": "non-linear", - "createdOn": "2022-04-21T05:31:47.032+0000", - "channel": "01345815127107174426", - "pdfUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/do_213521052524797952167_pdf_1650532681744.pdf", - "maxScore": 3, - "lastUpdatedOn": "2022-04-21T09:17:59.398+0000", - "subject": [ - "English" - ], - "showTimer": "Yes", - "identifier": "do_213521052524797952167", - "description": "Test", - "gradeLevel": [ - "Class 1" - ], - "containsUserData": "No", - "unitIdentifiers": [ - "do_213520491003019264113185" - ], - "mediumIds": [ - "ekstep_ncert_k-12_medium_english" - ], - "allowSkip": "Yes", - "compatibilityLevel": 5, - "audience": [ - "Audience1" + "contentEncoding": "gzip", + "generateDIALCodes": "No", + "se_gradeLevels": [ + "Grade 10" ], - "se_boards": [ - "CBSE" + "showSolutions": false, + "trackable": { + "enabled": "No", + "autoBatch": "No" + }, + "identifier": "do_21423465065426124815", + "visibility": "Default", + "showTimer": false, + "author": "John", + "childNodes": [ + "do_21423465138894438418", + "do_21423465095161446416" ], - "primaryCategory": "Practice Question Set", - "setType": "materialised", - "appIcon": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/istockphoto-184276818-612x612.thumb.jpg", - "collectionId": "do_213520491002503168113184", - "se_mediums": [ - "English" + "lastPublishedBy": "15155b7a-5316-4bb2-992a-772093e85f44", + "languageCode": [ + "en" ], - "downloadUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/talkback-question-set_1650532681606_do_213521052524797952167_1.ecar", "se_subjects": [ - "English" + "Data Computing/Data Entry" ], - "medium": [ - "English" - ], - "attributions": [], - "framework": "ekstep_ncert_k-12", - "posterImage": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/istockphoto-184276818-612x612.jpg", - "creator": "Aparna", - "versionKey": "1650532679398", - "mimeType": "application/vnd.sunbird.questionset", - "code": "6d935b0c-7723-35d8-3bd3-d89293ec97ce", "license": "CC BY 4.0", - "version": 1, - "prevStatus": "Draft", - "showHints": "No", - "summaryType": "Duration", - "language": [ - "English" - ], - "board": "CBSE", - "showFeedback": "No", - "lastPublishedOn": "2022-04-21T09:18:01.284+0000", - "objectType": "QuestionSet", - "subjectIds": [ - "ekstep_ncert_k-12_subject_english" - ], + "size": 8214, + "lastPublishedOn": "2025-01-23T10:33:30.740+0000", + "name": "Test QuestionSet", + "allowBranching": "No", "status": "Live", - "targetFWIds": [ - "ekstep_ncert_k-12" - ], - "programId": "7396acb0-c094-11ec-bd37-a3fb6f2404bd", - "createdBy": "c16ccf69-bd42-4dd3-a1e6-435322e78c97", - "requiresSubmit": "Yes", - "keywords": [ - "Test" - ], - "shuffle": true, - "contentEncoding": "gzip", - "depth": 0, - "consumerId": "dc5ef13b-0346-467c-9f43-9a44173addbe", - "se_gradeLevels": [ - "Class 1" + "code": "f173cad0-bc98-4283-a03c-4e5e33b4a7e4", + "allowSkip": "Yes", + "containsUserData": "No", + "qumlVersion": 1.1, + "prevStatus": "Draft", + "description": "Test QuestionSet", + "medium": [ + "Hindi" ], - "se_FWIds": [ - "ekstep_ncert_k-12" + "posterImage": "https://knowlg-public.s3-ap-south-1.amazonaws.com/content/assets/do_21423465157686886414/sunbird.jpeg", + "createdOn": "2025-01-23T10:30:53.698+0000", + "pdfUrl": "", + "se_boards": [ + "NIOS - Rajasthan" ], - "allowAnonymousAccess": "Yes", + "scoreCutoffType": "AssessmentLevel", "contentDisposition": "inline", - "additionalCategories": [], - "allowBranching": "No", - "boardIds": [ - "ekstep_ncert_k-12_board_cbse" - ], - "childNodes": [ - "do_213521053850206208170", - "do_213521053485416448168", - "do_213521055337766912172", - "do_213521055502376960174", - "do_213521055900729344176" + "lastUpdatedOn": "2025-01-23T10:33:33.333+0000", + "allowAnonymousAccess": "Yes", + "lastStatusChangedOn": "2025-01-23T10:33:33.333+0000", + "schemaVersion": "1.1", + "requiresSubmit": "No", + "se_FWIds": [ + "scp-framework" ], - "visibility": "Default", - "showSolutions": "No", - "variants": { - "full": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/talkback-question-set_1650532681606_do_213521052524797952167_1.ecar", - "size": 371535 - }, - "online": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/talkback-question-set_1650532681554_do_213521052524797952167_1_ONLINE.ecar", - "size": 4552 - }, - "spine": { - "ecarUrl": "https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/questionset/do_213521052524797952167/talkback-question-set_1650532681498_do_213521052524797952167_1_SPINE.ecar", - "size": 10030 + "setType": "materialised", + "pkgVersion": 1, + "versionKey": "1737628386771", + "showFeedback": false, + "framework": "scp-framework", + "depth": 0, + "createdBy": "15155b7a-5316-4bb2-992a-772093e85f44", + "compatibilityLevel": 6, + "navigationMode": "non-linear", + "timeLimits": { + "questionSet": { + "max": 0, + "min": 0 } }, - "gradeLevelIds": [ - "ekstep_ncert_k-12_gradelevel_class1" - ], - "pkgVersion": 1 + "shuffle": true, + "board": "NIOS - Rajasthan", + "instructions": null, + "outcomeDeclaration": { + "maxScore": { + "cardinality": "single", + "type": "integer", + "defaultValue": 1 + } + }, + "level": 1, + "maxTime": null, + "maxAttempts": null, + "summaryType": null, + "maxQuestions": 1 } export const samplePlayerConfig = { - 'context': { - 'threshold': 3, - 'mode': 'play', - 'authToken': ' ', - 'sid': '913b3c6c-2874-26dd-ed0c-c23ddc00b718', - 'did': '561c348e631fd225b46a5571cbd42ad1', - 'uid': '', - 'channel': '01268904781886259221', - 'pdata': { - 'id': 'dev.sunbird.portal', - 'ver': '3.3.0', - 'pid': 'sunbird-portal.qumlplayer' + "context": { + "user": { + "id": "15155b7a-5316-4bb2-992a-772093e85f44", + "fullName": "John Doe", + "firstName": "John", + "lastName": "Doe", + "orgIds": [ + "scp-channel" + ] }, - 'contextRollup': { - 'l1': 'string', - 'l2': 'string', - 'l3': 'string', - 'l4': 'string', + "identifier": "do_21423465065426124815", + "sid": "0fb90b74-34d9-4018-8654-7d092d857b94", + "did": "1cc43bb3-432e-4b32-a042-ebbe9b641484", + "uid": "15155b7a-5316-4bb2-992a-772093e85f44", + "channel": "scp-channel", + "pdata": { + "id": "pratham.admin.portal", + "ver": "1.0.0", + "pid": "pratham-portal.questionset_editor" }, - 'tags': [], - 'cdata': [ - { - 'id': 'c0c9384a82a75f219468d363e1891963', - 'type': 'ContentSession' - }, + "contextRollup": { + "l1": "scp-channel" + }, + "tags": [ + "scp-channel" + ], + "cdata": [ { - 'id': 'a12f45a1d7078901adb27b48be4b428d', - 'type': 'PlaySession' + "id": "scp-channel", + "type": "pratham-portal" } ], - 'timeDiff': 5, - 'objectRollup': { - 'l1': 'string', - 'l2': 'string', - 'l3': 'string', - 'l4': 'string', + "timeDiff": 5, + "objectRollup": {}, + "host": "", + "defaultLicense": "CC BY 4.0", + "endpoint": "/data/v3/telemetry", + "env": "questionset_editor", + "framework": "scp-framework", + "cloudStorageUrls": [ + "https://knowlg-public.s3.ap-south-1.amazonaws.com/" + ], + "labels": { + "save_collection_btn_label": "Save as Draft" }, - 'host': '', - 'endpoint': '/data/v3/telemetry', - 'userData': { - 'firstName': 'Test', - 'lastName': 'User' - } + "correctionComments": false, + "sourcingResourceStatus": true, + "cloudStorage": { + "provider": "aws", + "presigned_headers": {} + }, + "userData": { + "firstName": "John", + "lastName": "Doe" + }, + "mode": "play", + "threshold": 2 }, 'metadata': content, - 'config': { - 'traceId': '1234', - 'sideMenu': { - 'enable': true, - 'showShare': true, - 'showDownload': true, - 'showReplay': false, - 'showExit': false, + "config": { + "traceId": "1234", + "sideMenu": { + "enable": false, + "showShare": false, + "showDownload": false, + "showReplay": true, + "showExit": false }, - warningTime: 75, - showWarningTimer: true, - nextContent: { name: 'Next content', identifier: 'do_231234332232' }, - showDeviceOrientation: true, - }, + "showDeviceOrientation": true, + } } diff --git a/projects/quml-demo-app/src/environments/environment.ts b/projects/quml-demo-app/src/environments/environment.ts index db192a50..8975042c 100644 --- a/projects/quml-demo-app/src/environments/environment.ts +++ b/projects/quml-demo-app/src/environments/environment.ts @@ -4,7 +4,7 @@ export const environment = { production: false, - baseUrl: 'https://dev.sunbirded.org', + baseUrl: 'https://dev-middleware.prathamdigital.org', }; /* diff --git a/projects/quml-demo-app/src/proxy.conf.json b/projects/quml-demo-app/src/proxy.conf.json index 80f86397..eaa0068b 100644 --- a/projects/quml-demo-app/src/proxy.conf.json +++ b/projects/quml-demo-app/src/proxy.conf.json @@ -1,18 +1,18 @@ { "/api/*": { - "target": "https://dev.sunbirded.org", + "target": "https://dev-middleware.prathamdigital.org", "secure": false, "logLevel": "debug", "changeOrigin": true }, "/action/*": { - "target": "https://dev.sunbirded.org", + "target": "https://dev-middleware.prathamdigital.org", "secure": false, "logLevel": "debug", "changeOrigin": true }, "/assets/*": { - "target": "https://dev.sunbirded.org", + "target": "https://dev-middleware.prathamdigital.org", "secure": false, "logLevel": "debug", "changeOrigin": true diff --git a/projects/quml-library/src/lib/section-player/section-player.component.spec.data.ts b/projects/quml-library/src/lib/section-player/section-player.component.spec.data.ts index bbbd4329..457b75a9 100644 --- a/projects/quml-library/src/lib/section-player/section-player.component.spec.data.ts +++ b/projects/quml-library/src/lib/section-player/section-player.component.spec.data.ts @@ -841,7 +841,7 @@ export const mockSectionMTFQuestions = [{ "id": "do_113952273632460800126", "type": "image", "src": "/assets/public/content/assets/do_113952273632460800126/test.png", - "baseUrl": "https://dev.sunbirded.org" + "baseUrl": "https://dev-middleware.prathamdigital.org" }, { "id": "do_113952273902215168128", @@ -849,7 +849,7 @@ export const mockSectionMTFQuestions = [{ "type": "video", "assetId": "do_113952273902215168128", "name": "earth", - "baseUrl": "https://dev.sunbirded.org" + "baseUrl": "https://dev-middleware.prathamdigital.org" } ], "editorState": { diff --git a/web-component-examples/react-app/README.md b/web-component-examples/react-app/README.md index 9ecf6921..a683cdda 100644 --- a/web-component-examples/react-app/README.md +++ b/web-component-examples/react-app/README.md @@ -8,7 +8,7 @@ This guide assumes you already have a React project. If you want to create a new ### Step 1: Installing packages You can use the npm command-line tool to install packages. ``` -npm install --save @project-sunbird/sunbird-quml-player-web-component +npm install --save @tekdi/sunbird-quml-player-web-component ``` ### Step 2: Installing dependencies @@ -53,8 +53,8 @@ import { useEffect, useRef } from "react"; import "./App.css"; + import $ from "jquery"; -+ import "@project-sunbird/sunbird-quml-player-web-component/styles.css"; -+ import "@project-sunbird/sunbird-quml-player-web-component/sunbird-quml-player.js"; ++ import "@tekdi/sunbird-quml-player-web-component/styles.css"; ++ import "@tekdi/sunbird-quml-player-web-component/sunbird-quml-player.js"; function App() { @@ -78,8 +78,8 @@ import { useEffect, useRef } from "react"; import "./App.css"; import $ from "jquery"; -import "@project-sunbird/sunbird-quml-player-web-component/styles.css"; -import "@project-sunbird/sunbird-quml-player-web-component/sunbird-quml-player.js"; +import "@tekdi/sunbird-quml-player-web-component/styles.css"; +import "@tekdi/sunbird-quml-player-web-component/sunbird-quml-player.js"; function App() { @@ -105,8 +105,8 @@ import { useEffect, useRef } from "react"; import "./App.css"; import $ from "jquery"; -import "@project-sunbird/sunbird-quml-player-web-component/styles.css"; -import "@project-sunbird/sunbird-quml-player-web-component/sunbird-quml-player.js"; +import "@tekdi/sunbird-quml-player-web-component/styles.css"; +import "@tekdi/sunbird-quml-player-web-component/sunbird-quml-player.js"; + import { playerConfig } from "./data"; @@ -115,7 +115,7 @@ function App() { // Assign jQuery and questionListUrl to window object window.jQuery = $; -+ window.questionListUrl = "https://dev.sunbirded.org/api/question/v2/list"; ++ window.questionListUrl = "https://dev-middleware.prathamdigital.org/api/question/v2/list"; return (
@@ -140,8 +140,8 @@ Import `useRef` hook and create player reference for output events from QuML pla import "./App.css"; import $ from "jquery"; -import "@project-sunbird/sunbird-quml-player-web-component/styles.css"; -import "@project-sunbird/sunbird-quml-player-web-component/sunbird-quml-player.js"; +import "@tekdi/sunbird-quml-player-web-component/styles.css"; +import "@tekdi/sunbird-quml-player-web-component/sunbird-quml-player.js"; import { playerConfig } from "./data"; @@ -151,7 +151,7 @@ function App() { // Assign jQuery and questionListUrl to window object window.jQuery = $; - window.questionListUrl = "https://dev.sunbirded.org/api/question/v2/list"; + window.questionListUrl = "https://dev-middleware.prathamdigital.org/api/question/v2/list"; + useEffect(() => { + const playerElement = sunbirdQumlPlayerRef.current; diff --git a/web-component-examples/react-app/package-lock.json b/web-component-examples/react-app/package-lock.json index 1176b448..0c227273 100644 --- a/web-component-examples/react-app/package-lock.json +++ b/web-component-examples/react-app/package-lock.json @@ -8,7 +8,7 @@ "name": "react-app", "version": "0.1.0", "dependencies": { - "@project-sunbird/sunbird-quml-player-web-component": "4.0.2", + "@tekdi/sunbird-quml-player-web-component": "5.0.0-beta.2", "cra-template": "1.2.0", "jquery": "^3.6.1", "react": "^18.2.0", @@ -2183,6 +2183,21 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/eslintrc/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/@eslint/eslintrc/node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -2213,6 +2228,11 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, "node_modules/@humanwhocodes/config-array": { "version": "0.10.7", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.7.tgz", @@ -3101,11 +3121,6 @@ } } }, - "node_modules/@project-sunbird/sunbird-quml-player-web-component": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@project-sunbird/sunbird-quml-player-web-component/-/sunbird-quml-player-web-component-4.0.2.tgz", - "integrity": "sha512-qTutKgBYmcvAnwA5QX8cZ8mFVamzvi9Jafl2WMc6ci8G4/cQRFkdrsz3vmQ4BWC2LErOWL+8q59BaL9+XA0naQ==" - }, "node_modules/@rollup/plugin-babel": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", @@ -3424,6 +3439,11 @@ "url": "https://github.com/sponsors/gregberge" } }, + "node_modules/@tekdi/sunbird-quml-player-web-component": { + "version": "5.0.0-beta.2", + "resolved": "https://registry.npmjs.org/@tekdi/sunbird-quml-player-web-component/-/sunbird-quml-player-web-component-5.0.0-beta.2.tgz", + "integrity": "sha512-x6rApRt+5cwITRB8p74EeJ6hcalC0UhC5bhrAnPi5A9h5bdBXtib7vDzVi+6a5NJ2lBsoTHUj4hms2oCN4RcEQ==" + }, "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -4192,14 +4212,14 @@ } }, "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" }, "funding": { "type": "github", @@ -4222,34 +4242,6 @@ } } }, - "node_modules/ajv-formats/node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -4601,6 +4593,34 @@ "webpack": ">=2" } }, + "node_modules/babel-loader/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/babel-loader/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/babel-loader/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, "node_modules/babel-loader/node_modules/schema-utils": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", @@ -5569,21 +5589,6 @@ } } }, - "node_modules/css-minimizer-webpack-plugin/node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", @@ -5595,11 +5600,6 @@ "ajv": "^8.8.2" } }, - "node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", @@ -6855,21 +6855,6 @@ "webpack": "^5.0.0" } }, - "node_modules/eslint-webpack-plugin/node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/eslint-webpack-plugin/node_modules/ajv-keywords": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", @@ -6902,11 +6887,6 @@ "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" } }, - "node_modules/eslint-webpack-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, "node_modules/eslint-webpack-plugin/node_modules/schema-utils": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", @@ -6939,6 +6919,21 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/eslint/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/eslint/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -7033,6 +7028,11 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, "node_modules/eslint/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -7299,6 +7299,21 @@ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, + "node_modules/fast-uri": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", + "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ] + }, "node_modules/fastq": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", @@ -7537,6 +7552,29 @@ } } }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, "node_modules/fork-ts-checker-webpack-plugin/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -7619,6 +7657,11 @@ "node": ">=8" } }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", @@ -10886,9 +10929,9 @@ "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" }, "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -11263,21 +11306,6 @@ "webpack": "^5.0.0" } }, - "node_modules/mini-css-extract-plugin/node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/mini-css-extract-plugin/node_modules/ajv-keywords": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", @@ -11289,11 +11317,6 @@ "ajv": "^8.8.2" } }, - "node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", @@ -14307,6 +14330,34 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/schema-utils/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/schema-utils/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/schema-utils/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, "node_modules/select-hose": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", @@ -15299,6 +15350,19 @@ "is-typedarray": "^1.0.0" } }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -15622,21 +15686,6 @@ "webpack": "^4.0.0 || ^5.0.0" } }, - "node_modules/webpack-dev-middleware/node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", @@ -15648,11 +15697,6 @@ "ajv": "^8.8.2" } }, - "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, "node_modules/webpack-dev-middleware/node_modules/schema-utils": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", @@ -15725,21 +15769,6 @@ } } }, - "node_modules/webpack-dev-server/node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/webpack-dev-server/node_modules/ajv-keywords": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", @@ -15751,11 +15780,6 @@ "ajv": "^8.8.2" } }, - "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, "node_modules/webpack-dev-server/node_modules/schema-utils": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz", @@ -16015,21 +16039,6 @@ "node": ">=10.0.0" } }, - "node_modules/workbox-build/node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/workbox-build/node_modules/fs-extra": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", @@ -16044,11 +16053,6 @@ "node": ">=10" } }, - "node_modules/workbox-build/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, "node_modules/workbox-build/node_modules/source-map": { "version": "0.8.0-beta.0", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", diff --git a/web-component-examples/react-app/package.json b/web-component-examples/react-app/package.json index 58eb4888..f3511cbc 100644 --- a/web-component-examples/react-app/package.json +++ b/web-component-examples/react-app/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@project-sunbird/sunbird-quml-player-web-component": "4.0.2", + "@tekdi/sunbird-quml-player-web-component": "5.0.0-beta.2", "cra-template": "1.2.0", "jquery": "^3.6.1", "react": "^18.2.0", diff --git a/web-component-examples/react-app/src/App.js b/web-component-examples/react-app/src/App.js index 1a8548b4..91dc2e13 100644 --- a/web-component-examples/react-app/src/App.js +++ b/web-component-examples/react-app/src/App.js @@ -3,8 +3,8 @@ import "./App.css"; import { playerConfig } from "./data"; import $ from "jquery"; -import "@project-sunbird/sunbird-quml-player-web-component/styles.css"; -import "@project-sunbird/sunbird-quml-player-web-component/sunbird-quml-player.js"; +import "@tekdi/sunbird-quml-player-web-component/styles.css"; +import "@tekdi/sunbird-quml-player-web-component/sunbird-quml-player.js"; function App() { @@ -12,7 +12,7 @@ function App() { // Assign jQuery and questionListUrl to window object window.jQuery = $; - window.questionListUrl = "https://dev.sunbirded.org/api/question/v2/list"; + window.questionListUrl = "https://dev-middleware.prathamdigital.org/api/question/v2/list"; useEffect(() => { const playerElement = sunbirdQumlPlayerRef.current; diff --git a/web-component-examples/react-app/src/data.js b/web-component-examples/react-app/src/data.js index 7de5ca86..56b7eba6 100644 --- a/web-component-examples/react-app/src/data.js +++ b/web-component-examples/react-app/src/data.js @@ -1,67 +1,95 @@ -const sectionContent = { - "copyright": "sunbird", - "lastStatusChangedOn": "2023-12-22T04:16:50.242+0000", - "timeLimits": { - "questionSet": { - "max": 0, - "min": 0 +const content = { + "courseType": [ + "Enablers" + ], + "assessmentType": "Post Test", + "previewUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/do_21423465065426124815_html_1737628412545.html", + "subject": [ + "Data Computing/Data Entry" + ], + "channel": "scp-channel", + "downloadUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628412224_do_21423465065426124815_1.ecar", + "language": [ + "English" + ], + "program": [ + "SCP" + ], + "mimeType": "application/vnd.sunbird.questionset", + "showHints": false, + "variants": { + "spine": { + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628411654_do_21423465065426124815_1_SPINE.ecar", + "size": "6679" + }, + "online": { + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628411970_do_21423465065426124815_1_ONLINE.ecar", + "size": "3494" + }, + "full": { + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/test-questionset_1737628412224_do_21423465065426124815_1.ecar", + "size": "8214" } }, - "author": "contentCreator", + "objectType": "QuestionSet", + "se_mediums": [ + "Hindi" + ], + "gradeLevel": [ + "Grade 10" + ], + "appIcon": "https://knowlg-public.s3-ap-south-1.amazonaws.com/questionset/do_21423465065426124815/artifact/sunbird.thumb.jpeg", + "primaryCategory": "Practice Question Set", "children": [ { - "lastStatusChangedOn": "2023-12-22T04:16:50.190+0000", + "lastStatusChangedOn": "2025-01-23T10:33:06.699+0000", "timeLimits": { "questionSet": { "max": 0, "min": 0 } }, - "parent": "do_11395276467516211211", + "parent": "do_21423465065426124815", "children": [ { - "copyright": "sunbird", - "lastStatusChangedOn": "2023-12-22T04:17:26.313+0000", - "parent": "do_11395276534294118411", - "author": "contentCreator", - "name": "Even", - "createdOn": "2023-12-22T04:15:08.148+0000", - "channel": "0137541424673095687", + "lastStatusChangedOn": "2025-01-23T10:33:30.555+0000", + "parent": "do_21423465095161446416", + "author": "John", + "name": "Capital", + "createdOn": "2025-01-23T10:32:23.377+0000", + "channel": "scp-channel", "maxScore": 1, - "lastUpdatedOn": "2023-12-22T04:17:26.313+0000", + "lastUpdatedOn": "2025-01-23T10:33:30.555+0000", "subject": [ - "Accountancy" + "Data Computing/Data Entry" ], "showTimer": false, - "identifier": "do_11395276601870745611", + "identifier": "do_21423465138894438418", "gradeLevel": [ - "Class 1" + "Grade 10" ], "compatibilityLevel": 5, - "audience": [ - "Administrator" - ], "se_boards": [ - "State(Tamil Nadu)" + "NIOS - Rajasthan" ], "primaryCategory": "Multiple Choice Question", "se_mediums": [ - "English" + "Hindi" ], - "downloadUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/question/do_11395276601870745611/even_1703218645713_do_11395276601870745611_1.ecar", + "downloadUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/capital_1737628409372_do_21423465138894438418_1.ecar", "se_subjects": [ - "Accountancy" + "Data Computing/Data Entry" ], "medium": [ - "English" + "Hindi" ], "interactionTypes": [ "choice" ], - "framework": "tn_k-12", - "versionKey": "1703218508733", + "framework": "scp-framework", + "versionKey": "1737628343385", "mimeType": "application/vnd.sunbird.question", - "code": "8646c6d6-8443-42e7-86b0-01181a18b7ff", + "code": "0d17f510-6820-4327-8fce-1c64399ef83c", "license": "CC BY 4.0", "qumlVersion": 1.1, "prevStatus": "Draft", @@ -70,138 +98,52 @@ const sectionContent = { "language": [ "English" ], - "board": "State(Tamil Nadu)", + "board": "NIOS - Rajasthan", "showFeedback": false, "objectType": "Question", "status": "Live", - "createdBy": "155ce3c5-713e-4749-bc1c-95d09c640914", + "createdBy": "15155b7a-5316-4bb2-992a-772093e85f44", "contentEncoding": "gzip", "depth": 2, - "lastPublishedBy": "469dc732-04f3-42d9-9a85-30957a797acc", + "lastPublishedBy": "15155b7a-5316-4bb2-992a-772093e85f44", "se_gradeLevels": [ - "Class 1" + "Grade 10" ], "se_FWIds": [ - "tn_k-12" + "scp-framework" ], "allowAnonymousAccess": "Yes", "contentDisposition": "inline", "schemaVersion": "1.1", - "artifactUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/question/do_11395276601870745611/do_11395276601870745611_1703218644890.zip", - "complexityLevel": [ - "analyse" - ], - "visibility": "Parent", + "artifactUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/do_21423465138894438418_1737628404123.zip", + "visibility": "Default", "qType": "MCQ", "showSolutions": false, "variants": { "full": { - "ecarUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/question/do_11395276601870745611/even_1703218645713_do_11395276601870745611_1.ecar", - "size": "3016" + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/capital_1737628409372_do_21423465138894438418_1.ecar", + "size": "2876" }, "online": { - "ecarUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/question/do_11395276601870745611/even_1703218645900_do_11395276601870745611_1_ONLINE.ecar", - "size": "1451" + "ecarUrl": "https://knowlg-public.s3-ap-south-1.amazonaws.com/question/do_21423465138894438418/capital_1737628409758_do_21423465138894438418_1_ONLINE.ecar", + "size": "1379" } }, "index": 1, - "pkgVersion": 1 - }, - { - "copyright": "sunbird", - "lastStatusChangedOn": "2023-12-22T04:17:26.866+0000", - "parent": "do_11395276534294118411", - "author": "contentCreator", - "name": "PM", - "createdOn": "2023-12-22T04:16:40.428+0000", - "channel": "0137541424673095687", - "maxScore": 1, - "lastUpdatedOn": "2023-12-22T04:17:26.866+0000", - "subject": [ - "Accountancy" - ], - "showTimer": false, - "identifier": "do_11395276677466521611", - "gradeLevel": [ - "Class 1" - ], - "compatibilityLevel": 5, - "audience": [ - "Administrator" - ], - "se_boards": [ - "State(Tamil Nadu)" - ], - "primaryCategory": "Multiple Choice Question", - "se_mediums": [ - "English" - ], - "downloadUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/question/do_11395276677466521611/pm_1703218646537_do_11395276677466521611_1.ecar", - "se_subjects": [ - "Accountancy" - ], - "medium": [ - "English" - ], - "interactionTypes": [ - "choice" - ], - "framework": "tn_k-12", - "versionKey": "1703218600454", - "mimeType": "application/vnd.sunbird.question", - "code": "eea9e994-346b-4fd0-99d2-9a8490a67bb5", - "license": "CC BY 4.0", - "qumlVersion": 1.1, - "prevStatus": "Draft", - "showHints": false, - "templateId": "mcq-vertical", - "language": [ - "English" - ], - "board": "State(Tamil Nadu)", - "showFeedback": false, - "objectType": "Question", - "status": "Live", - "createdBy": "155ce3c5-713e-4749-bc1c-95d09c640914", - "contentEncoding": "gzip", - "depth": 2, - "lastPublishedBy": "469dc732-04f3-42d9-9a85-30957a797acc", - "se_gradeLevels": [ - "Class 1" - ], - "se_FWIds": [ - "tn_k-12" - ], - "allowAnonymousAccess": "Yes", - "contentDisposition": "inline", - "schemaVersion": "1.1", - "artifactUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/question/do_11395276677466521611/do_11395276677466521611_1703218646415.zip", - "complexityLevel": [], - "visibility": "Parent", - "qType": "MCQ", - "showSolutions": false, - "variants": { - "full": { - "ecarUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/question/do_11395276677466521611/pm_1703218646537_do_11395276677466521611_1.ecar", - "size": "3007" - }, - "online": { - "ecarUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/question/do_11395276677466521611/pm_1703218646689_do_11395276677466521611_1_ONLINE.ecar", - "size": "1445" - } - }, - "index": 2, - "pkgVersion": 1 + "pkgVersion": 1, + "languageCode": [ + "en" + ] } ], "name": "Section-1", "navigationMode": "non-linear", - "createdOn": "2023-12-22T04:13:45.656+0000", - "channel": "0137541424673095687", + "createdOn": "2025-01-23T10:31:29.992+0000", + "channel": "scp-channel", "generateDIALCodes": "No", - "lastUpdatedOn": "2023-12-22T04:16:50.190+0000", + "lastUpdatedOn": "2025-01-23T10:33:06.699+0000", "showTimer": false, - "identifier": "do_11395276534294118411", + "identifier": "do_21423465095161446416", "description": "Section-1", "containsUserData": "No", "allowSkip": "Yes", @@ -217,9 +159,9 @@ const sectionContent = { ], "attributions": [], "scoreCutoffType": "AssessmentLevel", - "versionKey": "1703218425656", + "versionKey": "1737628289992", "mimeType": "application/vnd.sunbird.questionset", - "code": "a454255d-1ee0-48df-ae1b-66e69fcafea0", + "code": "0cfe929d-0503-4635-822c-4a59795f0b5b", "license": "CC BY 4.0", "qumlVersion": 1.1, "prevStatus": "Draft", @@ -234,6 +176,7 @@ const sectionContent = { "shuffle": true, "contentEncoding": "gzip", "depth": 1, + "instructions": "

Test

", "allowAnonymousAccess": "Yes", "contentDisposition": "inline", "schemaVersion": "1.1", @@ -243,157 +186,162 @@ const sectionContent = { "index": 1 } ], - "name": "Sample QuestionSet V2", - "navigationMode": "non-linear", - "createdOn": "2023-12-22T04:12:24.845+0000", - "createdFor": [ - "0137541424673095687" - ], - "channel": "0137541424673095687", - "pdfUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/do_11395276467516211211_pdf_1703218647645.pdf", + "contentEncoding": "gzip", "generateDIALCodes": "No", - "lastUpdatedOn": "2023-12-22T04:16:50.254+0000", - "subject": [ - "Accountancy" - ], - "size": 7123, - "showTimer": false, - "identifier": "do_11395276467516211211", - "description": "Sample QuestionSet V2", - "gradeLevel": [ - "Class 1" - ], - "containsUserData": "No", - "allowSkip": "Yes", - "compatibilityLevel": 6, - "audience": [ - "Administrator" + "se_gradeLevels": [ + "Grade 10" ], + "showSolutions": false, "trackable": { "enabled": "No", "autoBatch": "No" }, - "se_boards": [ - "State(Tamil Nadu)" + "identifier": "do_21423465065426124815", + "visibility": "Default", + "showTimer": false, + "author": "John", + "childNodes": [ + "do_21423465138894438418", + "do_21423465095161446416" ], - "primaryCategory": "Practice Question Set", - "setType": "materialised", - "appIcon": "", - "se_mediums": [ - "English" + "lastPublishedBy": "15155b7a-5316-4bb2-992a-772093e85f44", + "languageCode": [ + "en" ], - "downloadUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/sample-questionset-v2_1703218647276_do_11395276467516211211_1.ecar", "se_subjects": [ - "Accountancy" + "Data Computing/Data Entry" ], - "medium": [ - "English" - ], - "attributions": [], - "scoreCutoffType": "AssessmentLevel", - "framework": "tn_k-12", - "versionKey": "1703218610254", - "mimeType": "application/vnd.sunbird.questionset", - "code": "38c8ed0e-fc76-4c5c-a161-e8908d70bd94", "license": "CC BY 4.0", + "size": 8214, + "lastPublishedOn": "2025-01-23T10:33:30.740+0000", + "name": "Test QuestionSet", + "allowBranching": "No", + "status": "Live", + "code": "f173cad0-bc98-4283-a03c-4e5e33b4a7e4", + "allowSkip": "Yes", + "containsUserData": "No", "qumlVersion": 1.1, "prevStatus": "Draft", - "showHints": false, - "summaryType": "Complete", - "language": [ - "English" - ], - "board": "State(Tamil Nadu)", - "showFeedback": false, - "lastPublishedOn": "2023-12-22T04:17:26.925+0000", - "objectType": "QuestionSet", - "status": "Live", - "createdBy": "155ce3c5-713e-4749-bc1c-95d09c640914", - "requiresSubmit": "No", - "shuffle": true, - "contentEncoding": "gzip", - "depth": 0, - "consumerId": "bfe5883f-ac66-4744-a064-3ed88d986eba", - "lastPublishedBy": "469dc732-04f3-42d9-9a85-30957a797acc", - "se_gradeLevels": [ - "Class 1" + "description": "Test QuestionSet", + "medium": [ + "Hindi" ], - "se_FWIds": [ - "tn_k-12" + "posterImage": "https://knowlg-public.s3-ap-south-1.amazonaws.com/content/assets/do_21423465157686886414/sunbird.jpeg", + "createdOn": "2025-01-23T10:30:53.698+0000", + "pdfUrl": "", + "se_boards": [ + "NIOS - Rajasthan" ], - "allowAnonymousAccess": "Yes", + "scoreCutoffType": "AssessmentLevel", "contentDisposition": "inline", + "lastUpdatedOn": "2025-01-23T10:33:33.333+0000", + "allowAnonymousAccess": "Yes", + "lastStatusChangedOn": "2025-01-23T10:33:33.333+0000", "schemaVersion": "1.1", - "additionalCategories": [], - "allowBranching": "No", - "previewUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/do_11395276467516211211_html_1703218647645.html", - "childNodes": [ - "do_11395276601870745611", - "do_11395276534294118411", - "do_11395276677466521611" + "requiresSubmit": "No", + "se_FWIds": [ + "scp-framework" ], - "visibility": "Default", - "showSolutions": false, - "variants": { - "spine": { - "ecarUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/sample-questionset-v2_1703218647008_do_11395276467516211211_1_SPINE.ecar", - "size": "3916" - }, - "online": { - "ecarUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/sample-questionset-v2_1703218647145_do_11395276467516211211_1_ONLINE.ecar", - "size": "3917" - }, - "full": { - "ecarUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/questionset/do_11395276467516211211/sample-questionset-v2_1703218647276_do_11395276467516211211_1.ecar", - "size": "7123" + "setType": "materialised", + "pkgVersion": 1, + "versionKey": "1737628386771", + "showFeedback": false, + "framework": "scp-framework", + "depth": 0, + "createdBy": "15155b7a-5316-4bb2-992a-772093e85f44", + "compatibilityLevel": 6, + "navigationMode": "non-linear", + "timeLimits": { + "questionSet": { + "max": 0, + "min": 0 } }, - "pkgVersion": 1, - "instructions": "

Sample QuestionSet V2

", + "shuffle": true, + "board": "NIOS - Rajasthan", + "instructions": null, "outcomeDeclaration": { "maxScore": { "cardinality": "single", "type": "integer", - "defaultValue": 2 + "defaultValue": 1 } - } + }, + "level": 1, + "maxTime": null, + "maxAttempts": null, + "summaryType": null, + "maxQuestions": 1 } export const playerConfig = { "context": { - "mode": "play", - "partner": [], + "user": { + "id": "15155b7a-5316-4bb2-992a-772093e85f44", + "fullName": "John Doe", + "firstName": "John", + "lastName": "Doe", + "orgIds": [ + "scp-channel" + ] + }, + "identifier": "do_21423465065426124815", + "sid": "0fb90b74-34d9-4018-8654-7d092d857b94", + "did": "1cc43bb3-432e-4b32-a042-ebbe9b641484", + "uid": "15155b7a-5316-4bb2-992a-772093e85f44", + "channel": "scp-channel", "pdata": { - "id": "dev.sunbird.portal", - "ver": "7.0.0", - "pid": "sunbird-portal" + "id": "pratham.admin.portal", + "ver": "1.0.0", + "pid": "pratham-portal.questionset_editor" }, - "contentId": "do_11395276467516211211", - "sid": "b667b4e6-a4d5-4230-9609-9a4b97e87879", - "uid": "anonymous", - "timeDiff": -0.562, - "channel": "0138934136407244800", - "tags": [ - "0138934136407244800" - ], - "did": "f4603b26b6d4491be363e9f8ade58231", "contextRollup": { - "l1": "0138934136407244800" + "l1": "scp-channel" }, + "tags": [ + "scp-channel" + ], + "cdata": [ + { + "id": "scp-channel", + "type": "pratham-portal" + } + ], + "timeDiff": 5, "objectRollup": {}, - "threshold": 3, + "host": "", + "defaultLicense": "CC BY 4.0", + "endpoint": "/data/v3/telemetry", + "env": "questionset_editor", + "framework": "scp-framework", + "cloudStorageUrls": [ + "https://knowlg-public.s3.ap-south-1.amazonaws.com/" + ], + "labels": { + "save_collection_btn_label": "Save as Draft" + }, + "correctionComments": false, + "sourcingResourceStatus": true, + "cloudStorage": { + "provider": "aws", + "presigned_headers": {} + }, "userData": { - "firstName": "Guest", - "lastName": "" - } + "firstName": "John", + "lastName": "Doe" + }, + "mode": "play", + "threshold": 2 }, - "metadata": sectionContent, "config": { "traceId": "1234", "sideMenu": { - "showShare": true, - "showDownload": true, + "enable": false, + "showShare": false, + "showDownload": false, "showReplay": true, - "showExit": true, + "showExit": false }, - } -}; + "showDeviceOrientation": true + }, + "metadata": content +} diff --git a/web-component-examples/vanilla-js/index.html b/web-component-examples/vanilla-js/index.html index 3a46f9bb..a698433b 100644 --- a/web-component-examples/vanilla-js/index.html +++ b/web-component-examples/vanilla-js/index.html @@ -32,11 +32,10 @@