@cuemath/leap 2.8.57-rj-5 → 2.8.57

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 (30) hide show
  1. package/dist/constants/api.js +6 -5
  2. package/dist/constants/api.js.map +1 -1
  3. package/dist/features/circle-games/game-launcher/api/update-circle-onboarding/constants.js +5 -0
  4. package/dist/features/circle-games/game-launcher/api/update-circle-onboarding/constants.js.map +1 -0
  5. package/dist/features/circle-games/game-launcher/api/update-circle-onboarding/post-circle-coachmark-api.js +9 -0
  6. package/dist/features/circle-games/game-launcher/api/update-circle-onboarding/post-circle-coachmark-api.js.map +1 -0
  7. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js +85 -77
  8. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js.map +1 -1
  9. package/dist/features/circle-games/game-launcher/dal/use-post-update-circle-journey-dal/use-post-update-circle-journey-dal.js +23 -0
  10. package/dist/features/circle-games/game-launcher/dal/use-post-update-circle-journey-dal/use-post-update-circle-journey-dal.js.map +1 -0
  11. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +27 -27
  12. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  13. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +35 -35
  14. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
  15. package/dist/features/journey/journey-progress-api/journey-progress-api.js +12 -0
  16. package/dist/features/journey/journey-progress-api/journey-progress-api.js.map +1 -0
  17. package/dist/features/journey/use-get-eligible-journeys.js +11 -0
  18. package/dist/features/journey/use-get-eligible-journeys.js.map +1 -0
  19. package/dist/features/journey/use-journey/journey-context-provider.js +65 -67
  20. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  21. package/dist/features/journey/use-journey/journey-styled.js +1 -1
  22. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  23. package/dist/index.d.ts +30 -12
  24. package/dist/index.js +187 -185
  25. package/dist/index.js.map +1 -1
  26. package/package.json +1 -1
  27. package/dist/features/journey/hooks/use-get-eligible-journeys-via-route.js +0 -13
  28. package/dist/features/journey/hooks/use-get-eligible-journeys-via-route.js.map +0 -1
  29. package/dist/features/journey/user-journey-api/user-journey-api.js +0 -12
  30. package/dist/features/journey/user-journey-api/user-journey-api.js.map +0 -1
@@ -1,13 +0,0 @@
1
- import { useMemo as i } from "react";
2
- import { useJourney as s } from "../use-journey/use-journey.js";
3
- const n = (e) => {
4
- const { userCompletedJourneyIds: o } = s();
5
- return i(
6
- () => e.filter((r) => !o.includes(r)),
7
- [e, o]
8
- );
9
- };
10
- export {
11
- n as useGetEligibleJourneysViaRoute
12
- };
13
- //# sourceMappingURL=use-get-eligible-journeys-via-route.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-get-eligible-journeys-via-route.js","sources":["../../../../src/features/journey/hooks/use-get-eligible-journeys-via-route.tsx"],"sourcesContent":["import type { TJourneyId } from '../journey-id/journey-id-types';\n\nimport { useMemo } from 'react';\n\nimport { useJourney } from '../use-journey/use-journey';\n\nexport const useGetEligibleJourneysViaRoute = (routeJourneyIds: TJourneyId[]) => {\n const { userCompletedJourneyIds } = useJourney();\n\n const eligibleJourneys = useMemo(\n () => routeJourneyIds.filter(journeyId => !userCompletedJourneyIds.includes(journeyId)),\n [routeJourneyIds, userCompletedJourneyIds],\n );\n\n return eligibleJourneys;\n};\n"],"names":["useGetEligibleJourneysViaRoute","routeJourneyIds","userCompletedJourneyIds","useJourney","useMemo","journeyId"],"mappings":";;AAMa,MAAAA,IAAiC,CAACC,MAAkC;AACzE,QAAA,EAAE,yBAAAC,MAA4BC;AAO7B,SALkBC;AAAA,IACvB,MAAMH,EAAgB,OAAO,CAAAI,MAAa,CAACH,EAAwB,SAASG,CAAS,CAAC;AAAA,IACtF,CAACJ,GAAiBC,CAAuB;AAAA,EAAA;AAI7C;"}
@@ -1,12 +0,0 @@
1
- import { createGetAPI as o, createPostAPI as u } from "@cuemath/rest-api";
2
- import { BASE_URL_V1 as e } from "../../../constants/api.js";
3
- const { useGet: p } = o({
4
- getURL: (n, { app_id: t, journey_status: s, user_id: r }) => `${e}/task/user-journey/?app_id=${t}&journey_status=${s}&user_id=${r}`
5
- }), { usePost: y } = u({
6
- getURL: () => `${e}/task/user-journey/`
7
- });
8
- export {
9
- p as useGetUserJourney,
10
- y as usePostUserJourney
11
- };
12
- //# sourceMappingURL=user-journey-api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-journey-api.js","sources":["../../../../src/features/journey/user-journey-api/user-journey-api.ts"],"sourcesContent":["import type {\n TGetJourneyProgressPayloadModel,\n TGetJourneyProgressResponseModel,\n TPostJourneyProgressPayloadModel,\n TPostJourneyProgressResponseModel,\n} from './user-journey-api-types';\n\nimport { createGetAPI, createPostAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\n\nconst { useGet: useGetUserJourney } = createGetAPI<\n TGetJourneyProgressResponseModel,\n TGetJourneyProgressPayloadModel\n>({\n getURL: (_, { app_id, journey_status, user_id }) =>\n `${BASE_URL_V1}/task/user-journey/?app_id=${app_id}&journey_status=${journey_status}&user_id=${user_id}`,\n});\n\nconst { usePost: usePostUserJourney } = createPostAPI<\n TPostJourneyProgressResponseModel,\n TPostJourneyProgressPayloadModel\n>({\n getURL: () => `${BASE_URL_V1}/task/user-journey/`,\n});\n\nexport { useGetUserJourney, usePostUserJourney };\n"],"names":["useGetUserJourney","createGetAPI","_","app_id","journey_status","user_id","BASE_URL_V1","usePostUserJourney","createPostAPI"],"mappings":";;AAWA,MAAM,EAAE,QAAQA,EAAkB,IAAIC,EAGpC;AAAA,EACA,QAAQ,CAACC,GAAG,EAAE,QAAAC,GAAQ,gBAAAC,GAAgB,SAAAC,EAAA,MACpC,GAAGC,CAAW,8BAA8BH,CAAM,mBAAmBC,CAAc,YAAYC,CAAO;AAC1G,CAAC,GAEK,EAAE,SAASE,EAAmB,IAAIC,EAGtC;AAAA,EACA,QAAQ,MAAM,GAAGF,CAAW;AAC9B,CAAC;"}