@antscorp/antsomi-ui 1.3.5-beta.929 → 1.3.5-beta.930
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.
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.d.ts +0 -1
- package/es/components/molecules/TagifyInput/constants.d.ts +3 -1
- package/es/components/molecules/TagifyInput/constants.js +3 -1
- package/es/components/molecules/TagifyInput/utils.js +2 -1
- package/es/components/template/TemplateListing/Loadable.d.ts +0 -1
- package/package.json +1 -1
|
@@ -57,8 +57,9 @@ export declare const TAG_TYPE: {
|
|
|
57
57
|
readonly SHORT_LINK_V2: "shortlink_v2";
|
|
58
58
|
readonly DETECT_LINK: "detect_link";
|
|
59
59
|
readonly CONTENT_SOURCE_GROUP: "groups";
|
|
60
|
+
readonly ALLOCATED_CODE: "allocated_code";
|
|
60
61
|
};
|
|
61
|
-
export declare const CUSTOMER: "customer", VISITOR: "visitor", EVENT: "event", JOURNEY: "story", CAMPAIGN: "campaign", VARIANT: "variant", PROMOTION_CODE: "promotion_code", CUSTOM_FN: "custom", EMOJI: "emoji", DETECT_LINK: "detect_link", SHORT_LINK: "shortlink", SHORT_LINK_V2: "shortlink_v2", OBJECT_WIDGET: "objectWidget", CONTENT_SOURCE_GROUP: "groups";
|
|
62
|
+
export declare const CUSTOMER: "customer", VISITOR: "visitor", EVENT: "event", JOURNEY: "story", CAMPAIGN: "campaign", VARIANT: "variant", PROMOTION_CODE: "promotion_code", CUSTOM_FN: "custom", EMOJI: "emoji", DETECT_LINK: "detect_link", SHORT_LINK: "shortlink", SHORT_LINK_V2: "shortlink_v2", OBJECT_WIDGET: "objectWidget", CONTENT_SOURCE_GROUP: "groups", ALLOCATED_CODE: "allocated_code";
|
|
62
63
|
export declare const SHORT_LINK_TYPE: {
|
|
63
64
|
readonly INDIVIDUAL: "shortlink";
|
|
64
65
|
readonly GENERAL: "shortlink_static";
|
|
@@ -88,6 +89,7 @@ export declare const TAG_COLOR: {
|
|
|
88
89
|
readonly custom: "#bbefbe";
|
|
89
90
|
readonly groups: "#ffdd9f";
|
|
90
91
|
readonly emoji: "transparent";
|
|
92
|
+
readonly allocated_code: "#DAA7F8";
|
|
91
93
|
};
|
|
92
94
|
export declare const EMOJI_COLLECTIONS: {
|
|
93
95
|
readonly COMMON: "common";
|
|
@@ -72,8 +72,9 @@ export const TAG_TYPE = {
|
|
|
72
72
|
SHORT_LINK_V2: 'shortlink_v2',
|
|
73
73
|
DETECT_LINK: 'detect_link',
|
|
74
74
|
CONTENT_SOURCE_GROUP: 'groups',
|
|
75
|
+
ALLOCATED_CODE: 'allocated_code',
|
|
75
76
|
};
|
|
76
|
-
export const { CUSTOMER, VISITOR, EVENT, JOURNEY, CAMPAIGN, VARIANT, PROMOTION_CODE, CUSTOM_FN, EMOJI, DETECT_LINK, SHORT_LINK, SHORT_LINK_V2, OBJECT_WIDGET, CONTENT_SOURCE_GROUP, } = TAG_TYPE;
|
|
77
|
+
export const { CUSTOMER, VISITOR, EVENT, JOURNEY, CAMPAIGN, VARIANT, PROMOTION_CODE, CUSTOM_FN, EMOJI, DETECT_LINK, SHORT_LINK, SHORT_LINK_V2, OBJECT_WIDGET, CONTENT_SOURCE_GROUP, ALLOCATED_CODE, } = TAG_TYPE;
|
|
77
78
|
export const SHORT_LINK_TYPE = {
|
|
78
79
|
INDIVIDUAL: 'shortlink', // Individual link
|
|
79
80
|
GENERAL: 'shortlink_static', // General link
|
|
@@ -103,6 +104,7 @@ export const TAG_COLOR = {
|
|
|
103
104
|
[CUSTOM_FN]: '#bbefbe',
|
|
104
105
|
[CONTENT_SOURCE_GROUP]: '#ffdd9f',
|
|
105
106
|
[EMOJI]: 'transparent',
|
|
107
|
+
[ALLOCATED_CODE]: '#DAA7F8',
|
|
106
108
|
};
|
|
107
109
|
export const EMOJI_COLLECTIONS = {
|
|
108
110
|
COMMON: 'common',
|
|
@@ -5,7 +5,7 @@ import { EMOJI_COLLECTIONS, PREFIX_PATTERN_LINE_MESSAGE, READONLY_TAG, SHORT_LIN
|
|
|
5
5
|
import { iconsViber } from './iconsViber';
|
|
6
6
|
// Utils
|
|
7
7
|
import { acceptablePatternChecking, detectURLRegex, getCachedRegex, patternHandlers, tagRegexStringPattern, } from './patternHandlers';
|
|
8
|
-
const { CUSTOMER, VISITOR, EVENT, JOURNEY, CAMPAIGN, VARIANT, PROMOTION_CODE, CUSTOM_FN, OBJECT_WIDGET, CONTENT_SOURCE_GROUP, } = TAG_TYPE;
|
|
8
|
+
const { CUSTOMER, VISITOR, EVENT, JOURNEY, CAMPAIGN, VARIANT, PROMOTION_CODE, CUSTOM_FN, OBJECT_WIDGET, CONTENT_SOURCE_GROUP, ALLOCATED_CODE, } = TAG_TYPE;
|
|
9
9
|
/*
|
|
10
10
|
* Custom error type for JSON parse errors
|
|
11
11
|
*/
|
|
@@ -400,6 +400,7 @@ export const isPersonalizeTagType = (type) => [
|
|
|
400
400
|
OBJECT_WIDGET,
|
|
401
401
|
CUSTOM_FN,
|
|
402
402
|
CONTENT_SOURCE_GROUP,
|
|
403
|
+
ALLOCATED_CODE,
|
|
403
404
|
].includes(type);
|
|
404
405
|
export const isShortLinkTagType = (type) => [SHORT_LINK_V2].includes(type);
|
|
405
406
|
export const generateTagContent = (params) => {
|