@antscorp/antsomi-ui 1.3.5-beta.842 → 1.3.5-beta.844

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 = {
@@ -53,4 +53,9 @@ export declare const CalendarSelectionUtils: {
53
53
  todayUptoCount: (val: number) => string;
54
54
  yesterdayUptoCount: (val: number) => string;
55
55
  };
56
+ getRangeValue: ({ rangeInfo, currentRangeValue, limitNumOfDays, }: {
57
+ rangeInfo: import("./types").RangeInfo;
58
+ currentRangeValue?: import("./types").RangeValue[] | undefined;
59
+ limitNumOfDays?: number | undefined;
60
+ }) => import("./types").RangeValue[];
56
61
  };
@@ -1,5 +1,5 @@
1
1
  import { TRIGGER_OUT_MODE, SELECTION_KEY, AUTO_UPDATE_TO_KEY } from './constants';
2
- import { getDefaultDate } from './utils';
2
+ import { getDefaultDate, getRangeValue } from './utils';
3
3
  export { CalendarSelection } from './CalendarSelection';
4
4
  export const CalendarSelectionConstants = {
5
5
  TRIGGER_OUT_MODE,
@@ -8,4 +8,5 @@ export const CalendarSelectionConstants = {
8
8
  };
9
9
  export const CalendarSelectionUtils = {
10
10
  getDefaultDate,
11
+ getRangeValue,
11
12
  };
@@ -40,9 +40,9 @@ export declare const TAG_TYPE: {
40
40
  readonly CUSTOMER: "customer";
41
41
  readonly VISITOR: "visitor";
42
42
  readonly EVENT: "event";
43
- readonly JOURNEY: "journey_attr";
44
- readonly CAMPAIGN: "campaign_attr";
45
- readonly VARIANT: "variant_attr";
43
+ readonly JOURNEY: "story";
44
+ readonly CAMPAIGN: "campaign";
45
+ readonly VARIANT: "variant";
46
46
  readonly OBJECT_WIDGET: "objectWidget";
47
47
  readonly PROMOTION_CODE: "promotion_code";
48
48
  readonly CUSTOM_FN: "custom";
@@ -51,7 +51,7 @@ export declare const TAG_TYPE: {
51
51
  readonly DETECT_LINK: "detect_link";
52
52
  readonly CONTENT_SOURCE_GROUP: "groups";
53
53
  };
54
- export declare const CUSTOMER: "customer", VISITOR: "visitor", EVENT: "event", JOURNEY: "journey_attr", CAMPAIGN: "campaign_attr", VARIANT: "variant_attr", PROMOTION_CODE: "promotion_code", CUSTOM_FN: "custom", EMOJI: "emoji", DETECT_LINK: "detect_link", SHORT_LINK: "shortlink", OBJECT_WIDGET: "objectWidget", CONTENT_SOURCE_GROUP: "groups";
54
+ 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", OBJECT_WIDGET: "objectWidget", CONTENT_SOURCE_GROUP: "groups";
55
55
  export declare const SHORT_LINK_TYPE: {
56
56
  readonly INDIVIDUAL: "shortlink";
57
57
  readonly GENERAL: "shortlink_static";
@@ -65,9 +65,9 @@ export declare const TAG_COLOR: {
65
65
  };
66
66
  readonly visitor: "#e8feca";
67
67
  readonly event: "#fecaca";
68
- readonly journey_attr: "#FAFAAF";
69
- readonly campaign_attr: "#FBCBE8";
70
- readonly variant_attr: "#FFD8DB";
68
+ readonly story: "#FAFAAF";
69
+ readonly campaign: "#FBCBE8";
70
+ readonly variant: "#FFD8DB";
71
71
  readonly promotion_code: "#d8cafe";
72
72
  readonly objectWidget: "#cafedd";
73
73
  readonly custom: "#bbefbe";
@@ -53,9 +53,9 @@ export const TAG_TYPE = {
53
53
  CUSTOMER: 'customer',
54
54
  VISITOR: 'visitor',
55
55
  EVENT: 'event',
56
- JOURNEY: 'journey_attr',
57
- CAMPAIGN: 'campaign_attr',
58
- VARIANT: 'variant_attr',
56
+ JOURNEY: 'story',
57
+ CAMPAIGN: 'campaign',
58
+ VARIANT: 'variant',
59
59
  OBJECT_WIDGET: 'objectWidget',
60
60
  PROMOTION_CODE: 'promotion_code',
61
61
  CUSTOM_FN: 'custom',
@@ -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.842",
3
+ "version": "1.3.5-beta.844",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",