@gamelearn/arcade-components 0.4.1-beta-terminal → 0.4.2-beta-terminal

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.
@@ -23,7 +23,7 @@ var FilesGroup = function FilesGroup(_ref) {
23
23
  className: "puzzle--terminal__folder__list desktop"
24
24
  }, file.children.map(function (item) {
25
25
  return /*#__PURE__*/_react.default.createElement(_Item.default, {
26
- key: item.id,
26
+ key: item.fileId,
27
27
  selectItem: selectItem,
28
28
  item: item
29
29
  });
@@ -31,7 +31,7 @@ var FilesGroup = function FilesGroup(_ref) {
31
31
  className: "puzzle--terminal__folder__list desktop"
32
32
  }, initFile.children.map(function (item) {
33
33
  return /*#__PURE__*/_react.default.createElement(_Item.default, {
34
- key: item.id,
34
+ key: item.fileId,
35
35
  selectItem: selectItem,
36
36
  item: item
37
37
  });
@@ -63,7 +63,7 @@ var FilesGroup = function FilesGroup(_ref) {
63
63
  className: "puzzle--terminal__folder__list"
64
64
  }, file.children.map(function (item) {
65
65
  return /*#__PURE__*/_react.default.createElement(_Item.default, {
66
- key: item.id,
66
+ key: item.fileId,
67
67
  selectItem: selectItem,
68
68
  item: item
69
69
  });
@@ -43,17 +43,17 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
43
 
44
44
  var DEFAULT_IMG = 'https://min.gamelearn.io/css-resources/gamelearn/resources/cosmos-bg-min.jpg';
45
45
  var FIXED_ITEMS = [{
46
- id: 'ids1',
46
+ fileId: 'ids1',
47
47
  type: 'world',
48
48
  fixed: true,
49
49
  name: 'Web builder 3.0'
50
50
  }, {
51
- id: 'ids2',
51
+ fileId: 'ids2',
52
52
  type: 'cracker',
53
53
  fixed: true,
54
54
  name: 'Decoder.exe'
55
55
  }, {
56
- id: 'ids3',
56
+ fileId: 'ids3',
57
57
  type: 'terminal',
58
58
  fixed: true,
59
59
  name: 'terminal'
@@ -42,7 +42,7 @@ var Visor = function Visor(_ref) {
42
42
  resolvePuzzle = _ref.resolvePuzzle,
43
43
  backFile = _ref.backFile,
44
44
  translate = _ref.translate;
45
- var fileId = file.id;
45
+ var fileId = file.fileId;
46
46
  var url = ((_file$document = file.document) === null || _file$document === void 0 ? void 0 : _file$document.url) || '';
47
47
  var COMPONENTS = {
48
48
  image: {
@@ -87,7 +87,7 @@ var Visor = function Visor(_ref) {
87
87
  var viewProps = COMPONENTS[file.type].props;
88
88
  var filename = file.name;
89
89
  var title = filename.replace(/.jpg|.png|.pdf|.mp4/gi, '');
90
- var solutionId = solution.id;
90
+ var solutionId = solution.fileId;
91
91
 
92
92
  var Feedback = function Feedback(_ref2) {
93
93
  var status = _ref2.status,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "license": "Gamelearn",
4
- "version": "0.4.1-beta-terminal",
4
+ "version": "0.4.2-beta-terminal",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist",