@elice/material-exercise 1.260515.0 → 1.260515.1

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.
@@ -6,6 +6,7 @@ var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabel
6
6
  var tslib = require('tslib');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
  var React = require('react');
9
+ var intl = require('@elice/intl');
9
10
  var mcuBridge = require('@elice/mcu-bridge');
10
11
  var overlayKit = require('overlay-kit');
11
12
  var _context = require('./_context.js');
@@ -33,6 +34,7 @@ var ArduinoBridgeProvider = function ArduinoBridgeProvider(_ref) {
33
34
  var xtermRef = _ref.xtermRef,
34
35
  apiRef = _ref.apiRef,
35
36
  children = _ref.children;
37
+ var intl$1 = intl.useRawEliceIntl();
36
38
  var _useFlash = mcuBridge.useFlash(),
37
39
  isFlashing = _useFlash.isFlashing;
38
40
  var _useConnection = mcuBridge.useConnection(),
@@ -101,19 +103,22 @@ var ArduinoBridgeProvider = function ArduinoBridgeProvider(_ref) {
101
103
  var isOpen = _ref4.isOpen,
102
104
  close = _ref4.close,
103
105
  unmount = _ref4.unmount;
104
- return jsxRuntime.jsx(ArduinoConnectionPreflightDialog.default, {
105
- open: isOpen,
106
- intent: intent,
107
- onClose: function onClose() {
108
- return close(false);
109
- },
110
- onConfirm: function onConfirm() {
111
- return close(true);
112
- },
113
- onTransitionExited: unmount,
114
- onSaveDontShowAgain: function onSaveDontShowAgain() {
115
- sessionStorage.setItem(PREFLIGHT_DISMISS_KEY, PREFLIGHT_DISMISS_VALUE);
116
- }
106
+ return jsxRuntime.jsx(intl.RawEliceIntlProvider, {
107
+ value: intl$1,
108
+ children: jsxRuntime.jsx(ArduinoConnectionPreflightDialog.default, {
109
+ open: isOpen,
110
+ intent: intent,
111
+ onClose: function onClose() {
112
+ return close(false);
113
+ },
114
+ onConfirm: function onConfirm() {
115
+ return close(true);
116
+ },
117
+ onTransitionExited: unmount,
118
+ onSaveDontShowAgain: function onSaveDontShowAgain() {
119
+ sessionStorage.setItem(PREFLIGHT_DISMISS_KEY, PREFLIGHT_DISMISS_VALUE);
120
+ }
121
+ })
117
122
  });
118
123
  });
119
124
  case 2:
@@ -131,7 +136,7 @@ var ArduinoBridgeProvider = function ArduinoBridgeProvider(_ref) {
131
136
  return function (_x) {
132
137
  return _ref2.apply(this, arguments);
133
138
  };
134
- }(), []);
139
+ }(), [intl$1]);
135
140
  //
136
141
  // setup the MCU Bridge once on mount
137
142
  //
@@ -2,6 +2,7 @@ import { slicedToArray as _slicedToArray, asyncToGenerator as _asyncToGenerator,
2
2
  import { __rest } from 'tslib';
3
3
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
4
4
  import React, { useEffect } from 'react';
5
+ import { useRawEliceIntl, RawEliceIntlProvider } from '@elice/intl';
5
6
  import { useFlash, useConnection, setupMCUBridge, ArduinoUnoDriver, ArduinoMegaDriver } from '@elice/mcu-bridge';
6
7
  import { overlay } from 'overlay-kit';
7
8
  import { ArduinoBridgeContext } from './_context.js';
@@ -25,6 +26,7 @@ var ArduinoBridgeProvider = function ArduinoBridgeProvider(_ref) {
25
26
  var xtermRef = _ref.xtermRef,
26
27
  apiRef = _ref.apiRef,
27
28
  children = _ref.children;
29
+ var intl = useRawEliceIntl();
28
30
  var _useFlash = useFlash(),
29
31
  isFlashing = _useFlash.isFlashing;
30
32
  var _useConnection = useConnection(),
@@ -93,19 +95,22 @@ var ArduinoBridgeProvider = function ArduinoBridgeProvider(_ref) {
93
95
  var isOpen = _ref4.isOpen,
94
96
  close = _ref4.close,
95
97
  unmount = _ref4.unmount;
96
- return jsx(ArduinoConnectionPreflightDialog, {
97
- open: isOpen,
98
- intent: intent,
99
- onClose: function onClose() {
100
- return close(false);
101
- },
102
- onConfirm: function onConfirm() {
103
- return close(true);
104
- },
105
- onTransitionExited: unmount,
106
- onSaveDontShowAgain: function onSaveDontShowAgain() {
107
- sessionStorage.setItem(PREFLIGHT_DISMISS_KEY, PREFLIGHT_DISMISS_VALUE);
108
- }
98
+ return jsx(RawEliceIntlProvider, {
99
+ value: intl,
100
+ children: jsx(ArduinoConnectionPreflightDialog, {
101
+ open: isOpen,
102
+ intent: intent,
103
+ onClose: function onClose() {
104
+ return close(false);
105
+ },
106
+ onConfirm: function onConfirm() {
107
+ return close(true);
108
+ },
109
+ onTransitionExited: unmount,
110
+ onSaveDontShowAgain: function onSaveDontShowAgain() {
111
+ sessionStorage.setItem(PREFLIGHT_DISMISS_KEY, PREFLIGHT_DISMISS_VALUE);
112
+ }
113
+ })
109
114
  });
110
115
  });
111
116
  case 2:
@@ -123,7 +128,7 @@ var ArduinoBridgeProvider = function ArduinoBridgeProvider(_ref) {
123
128
  return function (_x) {
124
129
  return _ref2.apply(this, arguments);
125
130
  };
126
- }(), []);
131
+ }(), [intl]);
127
132
  //
128
133
  // setup the MCU Bridge once on mount
129
134
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-exercise",
3
- "version": "1.260515.0",
3
+ "version": "1.260515.1",
4
4
  "description": "User view and editing components of Elice material exercise",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -39,8 +39,8 @@
39
39
  "overlay-kit": "^1.8.0",
40
40
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
41
41
  "react-use": "^17.0.0",
42
- "@elice/material-shared-types": "1.260515.0",
43
- "@elice/material-shared-utils": "1.260515.0"
42
+ "@elice/material-shared-utils": "1.260515.1",
43
+ "@elice/material-shared-types": "1.260515.1"
44
44
  },
45
45
  "dependencies": {
46
46
  "@novnc/novnc": "^1.3.0",
@@ -115,8 +115,8 @@
115
115
  "rollup": "^4.0.0",
116
116
  "typescript": "~5.9.3",
117
117
  "vite": "^4.4.9",
118
- "@elice/material-shared-types": "1.260515.0",
119
- "@elice/material-shared-utils": "1.260515.0"
118
+ "@elice/material-shared-utils": "1.260515.1",
119
+ "@elice/material-shared-types": "1.260515.1"
120
120
  },
121
121
  "scripts": {
122
122
  "start": "run-s watch",