contentoh-components-library 21.0.62 → 21.0.65

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.
@@ -82,10 +82,9 @@ var InputFormatter = function InputFormatter(_ref) {
82
82
 
83
83
  try {
84
84
  if (h.getLength() - 1 <= maxLength) {
85
- setInputValue(function (val) {
86
- return val = valueInput.replace(/<\/?span.*?>/gm, "");
87
- });
88
- value = valueInput;
85
+ var unformattedText = valueInput.replace(/<li.*?>/gm, " - ").replace(/<\/li>/gm, "\n").replace(/<\/p><p>/gm, "\n").replaceAll(/<\/?(?!\/?strong).*?>/gm, "");
86
+ setInputValue(valueInput);
87
+ value = unformattedText;
89
88
  } else {
90
89
  quillState.deleteText(maxLength, quillState.getLength());
91
90
  setInputValue(function (val) {
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = exports.ProviderProductEditionDefault = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
12
+ var _index = require("./index");
13
+
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+
16
+ var _default = {
17
+ title: "Components/pages/ProviderProductEdition",
18
+ component: _index.ProviderProductEdition
19
+ };
20
+ exports.default = _default;
21
+
22
+ var Template = function Template(args) {
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProviderProductEdition, (0, _objectSpread2.default)({}, args));
24
+ };
25
+
26
+ var ProviderProductEditionDefault = Template.bind({});
27
+ exports.ProviderProductEditionDefault = ProviderProductEditionDefault;
28
+ ProviderProductEditionDefault.args = {
29
+ tabsSections: {
30
+ Descripción: true,
31
+ "Ficha técnica": false,
32
+ Imágenes: false
33
+ },
34
+ token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1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OtYjWvkfZ5vDRfkoOBGmBBELI9uFbKQS0cmWaLSBhd8ptbXWkAprxm-nkJnH9KQKmCsCLBthqmZTsMDw3ok0RsVpEE7_x4X0Hg0756ebqDe1kLCVuTIBpPx4ySvCdlewvi9bYA",
35
+ articleId: 238,
36
+ category: 846,
37
+ version: 2,
38
+ productSelected: {
39
+ id_article: 109492,
40
+ id_category: "636",
41
+ name: "Playera negra básica",
42
+ upc: "23802394",
43
+ timestamp: "2022-05-05T16:45:25.000Z",
44
+ status: "NULL",
45
+ categoryName: "ROPA, ACCESORIOS, FRAGANCIAS Y JOYERÍA|ROPA CABALLERO|CASUAL",
46
+ asignations: [],
47
+ version: 2,
48
+ version_status: "RF",
49
+ retailersAvailable: [{
50
+ id: 2,
51
+ name: "Walmart Mercancías Generales",
52
+ country: "México",
53
+ id_region: 1,
54
+ active: 1
55
+ }],
56
+ missing: {}
57
+ },
58
+ location: {
59
+ product: {
60
+ articleId: 109485,
61
+ versionId: 3
62
+ }
63
+ },
64
+ assignations: [{
65
+ id_user: 25,
66
+ name: "Proveedor",
67
+ last_name: "Uriel",
68
+ position: "Prov Admin"
69
+ }],
70
+ user: {
71
+ id_user: 54,
72
+ name: "ESPECIALISTA TXTS PRUEBA",
73
+ last_name: "",
74
+ email: "rlegorreta@contentoh.com",
75
+ position: null,
76
+ telephone: null,
77
+ country: null,
78
+ id_company: 2,
79
+ id_cognito: "ca1d24ab-e992-4c19-b4e1-2fe6f720c16b",
80
+ birth_Date: null,
81
+ about_me: null,
82
+ zip_code: null,
83
+ address: null,
84
+ job: null,
85
+ id_stripe: null,
86
+ id_role: 7,
87
+ active: 1,
88
+ is_retailer: 0,
89
+ membership: {
90
+ id: 2,
91
+ start_date: "2021-11-05T02:35:12.000Z",
92
+ end_date: "2022-11-05T02:34:49.000Z",
93
+ planID: 1,
94
+ plan: "prod_KtkvuFFLpOdP6e",
95
+ name: "Plan Free",
96
+ user_limit: "1",
97
+ products_limit: "3",
98
+ type: "PyMES"
99
+ },
100
+ src: "https://content-management-profile.s3.amazonaws.com/id-54/54.png?1653425316222"
101
+ }
102
+ };