@inseefr/lunatic 2.6.0-rc.1 → 2.6.0-rc.2

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.
@@ -7,7 +7,6 @@ exports["default"] = void 0;
7
7
  var _reactMarkdown = _interopRequireDefault(require("react-markdown"));
8
8
  var _link = _interopRequireDefault(require("./link"));
9
9
  var _function = require("../../../../utils/function");
10
- var _remarkEmoji = _interopRequireDefault(require("remark-emoji"));
11
10
  var _jsxRuntime = require("react/jsx-runtime");
12
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
12
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
@@ -37,10 +36,7 @@ var MdLabel = function MdLabel(_ref) {
37
36
  children: expression,
38
37
  components: renderers({
39
38
  logFunction: logFunction
40
- }),
41
- remarkPlugins: [[_remarkEmoji["default"], {
42
- accessible: true
43
- }]]
39
+ })
44
40
  });
45
41
  };
46
42
  var _default = MdLabel;
@@ -8,8 +8,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
8
8
  (0, _vitest.describe)('md-label', function () {
9
9
  (0, _vitest.it)('should handle emoticon', function () {
10
10
  var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_mdLabel["default"], {
11
- expression: "**Demo** of a :dog:"
11
+ expression: "**Demo** of a"
12
12
  }));
13
- return (0, _vitest.expect)(obj.container.firstChild).toMatchInlineSnapshot("\n\t\t\t<p>\n\t\t\t <strong>\n\t\t\t Demo\n\t\t\t </strong>\n\t\t\t of a \n\t\t\t <span\n\t\t\t aria-label=\"dog emoji\"\n\t\t\t role=\"img\"\n\t\t\t >\n\t\t\t \uD83D\uDC36\n\t\t\t </span>\n\t\t\t</p>\n\t\t");
13
+ return (0, _vitest.expect)(obj.container.firstChild).toMatchInlineSnapshot("\n <p>\n <strong>\n Demo\n </strong>\n of a\n </p>\n ");
14
14
  });
15
15
  });
@@ -6,7 +6,7 @@
6
6
  "mandatory": false,
7
7
  "page": "3",
8
8
  "label": {
9
- "value": "\"checkboxone ONE component \"",
9
+ "value": "\"checkboxone ONE component\"",
10
10
  "type": "VTL|MD"
11
11
  },
12
12
  "description": {
@@ -18,7 +18,7 @@
18
18
  {
19
19
  "value": "1",
20
20
  "description": {
21
- "value": "Déclaration :warning:",
21
+ "value": "\"Déclaration oui\"",
22
22
  "type": "VTL|MD"
23
23
  },
24
24
  "label": { "value": "\"oui\"", "type": "VTL|MD" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inseefr/lunatic",
3
- "version": "2.6.0-rc.1",
3
+ "version": "2.6.0-rc.2",
4
4
  "workersVersion": "0.2.5-experimental",
5
5
  "description": "Library of questionnaire components",
6
6
  "repository": {
@@ -71,7 +71,6 @@
71
71
  "react-markdown": "^8.0.3",
72
72
  "react-number-format": "^5.1.3",
73
73
  "react-tooltip": "^4.2.15",
74
- "remark-emoji": "^4.0.0",
75
74
  "remove-accents": "^0.4.2",
76
75
  "sass": "^1.58.3",
77
76
  "snowball": "^0.3.1",