@capillarytech/creatives-library 7.17.33-alpha.7 → 7.17.33-alpha.9
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.
|
@@ -13,7 +13,8 @@ import React from 'react';
|
|
|
13
13
|
import _ from 'lodash';
|
|
14
14
|
// import messages from './messages';
|
|
15
15
|
const loadScript = require('load-script');
|
|
16
|
-
|
|
16
|
+
// fetching ckeditor from s3 by rerouting through arya whitelisted services
|
|
17
|
+
const defaultScriptUrl = `${window.location.origin}/arya/ui/library/ckeditor/ckeditor.js`;
|
|
17
18
|
const user = localStorage.getItem('user');
|
|
18
19
|
let locale = 'en';
|
|
19
20
|
if (user && JSON.parse(user).lang) {
|
|
@@ -11,6 +11,7 @@ export const CUSTOM_TAG = 'CustomTagMessage';
|
|
|
11
11
|
export const CUSTOMER_EXTENDED_FIELD = 'Customer extended fields';
|
|
12
12
|
export const EXTENDED_TAG = 'ExtendedTagMessage';
|
|
13
13
|
export const JP_LOCALE_HIDE_FEATURE = 'JP_LOCALE_HIDE_FEATURE';
|
|
14
|
+
export const ENABLE_CUSTOMER_BARCODE_TAG = "ENABLE_CUSTOMER_BARCODE_TAG";
|
|
14
15
|
|
|
15
16
|
export const CARD_RELATED_TAGS = [
|
|
16
17
|
'card_series',
|
|
@@ -43,5 +44,4 @@ export const HOSPITALITY_RELATED_TAGS = [
|
|
|
43
44
|
"resID_Source",
|
|
44
45
|
];
|
|
45
46
|
|
|
46
|
-
export const ENABLE_CUSTOMER_BARCODE_TAG = "ENABLE_CUSTOMER_BARCODE_TAG";
|
|
47
47
|
export const CUSTOMER_BAR_TAG = "customer_barcode";
|
package/package.json
CHANGED
|
@@ -13,7 +13,10 @@ import React from 'react';
|
|
|
13
13
|
import _ from 'lodash';
|
|
14
14
|
// import messages from './messages';
|
|
15
15
|
const loadScript = require('load-script');
|
|
16
|
-
const defaultScriptUrl =
|
|
16
|
+
const defaultScriptUrl = `${window.location.origin}/arya/ui/library/ckeditor/ckeditor.js`;
|
|
17
|
+
/*const defaultScriptUrl = 'https://nightly.intouch.capillarytech.com/arya/ui/library/ckeditor/ckeditor.js';
|
|
18
|
+
**Uncomment the above line to use CKEDITOR in local
|
|
19
|
+
*/
|
|
17
20
|
const user = localStorage.getItem('user');
|
|
18
21
|
let locale = 'en';
|
|
19
22
|
if (user && JSON.parse(user).lang) {
|
|
@@ -1136,7 +1136,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1136
1136
|
}
|
|
1137
1137
|
});
|
|
1138
1138
|
});
|
|
1139
|
-
const regex = /{{[(A-Z\w\(\)@!#$%^&*~.,/\\]+}}/g;
|
|
1139
|
+
const regex = /{{[(A-Z\w+(\s\w+)*$\(\)@!#$%^&*~.,/\\]+}}/g;
|
|
1140
1140
|
let match = regex.exec(content);
|
|
1141
1141
|
const regexImgSrc=/<img[^>]*\bsrc\s*=\s*"[^"]*{{customer_barcode}}[^"]*"/;
|
|
1142
1142
|
let matchImg = regexImgSrc.exec(content);
|