@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.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { PayloadInfo } from '@antscorp/antsomi-ui/es/types';
3
2
  export type TDisplayFormat = 'number' | 'percentage' | 'currency' | 'datetime';
4
3
  type DisplayFormatProps = {
@@ -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) => {
@@ -3,5 +3,4 @@
3
3
  * Asynchronously loads the component for TemplateListing
4
4
  *
5
5
  */
6
- /// <reference types="react" />
7
6
  export declare const TemplateListing: (props: import("./types").TemplateListingProps<{}>) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.929",
3
+ "version": "1.3.5-beta.930",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",