@elice/material-external 1.260514.0 → 1.260515.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import type { GetOrgMaterialExternalGetResponses } from '@elice/types/es/typings
3
3
  export interface MaterialExternalIframeSDKCommunicationProps {
4
4
  hasPreviousLecturePage?: boolean;
5
5
  hasNextLecturePage?: boolean;
6
- onNavigate?: (materialId: number) => void;
6
+ onNavigate?: (lecturePageId: number) => void;
7
7
  onNavigatePreviousLecturePage?: () => void;
8
8
  onNavigateNextLecturePage?: () => void;
9
9
  }
@@ -72,12 +72,12 @@ var MaterialExternalIframe = function MaterialExternalIframe(_ref) {
72
72
  var _a, _b, _c, _d, _e;
73
73
  if (e.data.from === 'eliceio-contents-sdk') {
74
74
  switch (e.data.type) {
75
- // navigation - by material id
75
+ // navigation - by lecture page id
76
76
  case 'navigate':
77
77
  {
78
- var materialId = Number((_a = e.data.payload) === null || _a === void 0 ? void 0 : _a.materialId);
79
- if (Number.isFinite(materialId)) {
80
- (_b = onNavigate.current) === null || _b === void 0 ? void 0 : _b.call(onNavigate, materialId);
78
+ var lecturePageId = Number((_a = e.data.payload) === null || _a === void 0 ? void 0 : _a.lecturePageId);
79
+ if (Number.isFinite(lecturePageId)) {
80
+ (_b = onNavigate.current) === null || _b === void 0 ? void 0 : _b.call(onNavigate, lecturePageId);
81
81
  }
82
82
  break;
83
83
  }
@@ -3,7 +3,7 @@ import type { GetOrgMaterialExternalGetResponses } from '@elice/types/es/typings
3
3
  export interface MaterialExternalIframeSDKCommunicationProps {
4
4
  hasPreviousLecturePage?: boolean;
5
5
  hasNextLecturePage?: boolean;
6
- onNavigate?: (materialId: number) => void;
6
+ onNavigate?: (lecturePageId: number) => void;
7
7
  onNavigatePreviousLecturePage?: () => void;
8
8
  onNavigateNextLecturePage?: () => void;
9
9
  }
@@ -63,12 +63,12 @@ var MaterialExternalIframe = function MaterialExternalIframe(_ref) {
63
63
  var _a, _b, _c, _d, _e;
64
64
  if (e.data.from === 'eliceio-contents-sdk') {
65
65
  switch (e.data.type) {
66
- // navigation - by material id
66
+ // navigation - by lecture page id
67
67
  case 'navigate':
68
68
  {
69
- var materialId = Number((_a = e.data.payload) === null || _a === void 0 ? void 0 : _a.materialId);
70
- if (Number.isFinite(materialId)) {
71
- (_b = onNavigate.current) === null || _b === void 0 ? void 0 : _b.call(onNavigate, materialId);
69
+ var lecturePageId = Number((_a = e.data.payload) === null || _a === void 0 ? void 0 : _a.lecturePageId);
70
+ if (Number.isFinite(lecturePageId)) {
71
+ (_b = onNavigate.current) === null || _b === void 0 ? void 0 : _b.call(onNavigate, lecturePageId);
72
72
  }
73
73
  break;
74
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-external",
3
- "version": "1.260514.0",
3
+ "version": "1.260515.0",
4
4
  "description": "User view and editing components of Elice material external",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -31,8 +31,8 @@
31
31
  "@tanstack/react-query": "^4",
32
32
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
33
33
  "react-use": "^17.0.0",
34
- "@elice/material-shared-types": "1.260514.0",
35
- "@elice/material-shared-utils": "1.260514.0"
34
+ "@elice/material-shared-types": "1.260515.0",
35
+ "@elice/material-shared-utils": "1.260515.0"
36
36
  },
37
37
  "dependencies": {
38
38
  "classnames": "^2.2.0",
@@ -64,8 +64,8 @@
64
64
  "react-use": "^17.2.4",
65
65
  "rollup": "^4.0.0",
66
66
  "typescript": "~5.9.3",
67
- "@elice/material-shared-utils": "1.260514.0",
68
- "@elice/material-shared-types": "1.260514.0"
67
+ "@elice/material-shared-types": "1.260515.0",
68
+ "@elice/material-shared-utils": "1.260515.0"
69
69
  },
70
70
  "scripts": {
71
71
  "start": "run-s watch",