@antscorp/antsomi-ui 1.3.5-beta.26 → 1.3.5-beta.28

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.
@@ -4,7 +4,7 @@ import styled, { css } from 'styled-components';
4
4
  import { Flex } from '@antscorp/antsomi-ui/es/components/atoms';
5
5
  export const ChatBarWrapper = styled(Flex) `
6
6
  position: relative;
7
- height: ${props => (props.$size === 'medium' ? 45 : 84)}px;
7
+ height: ${props => (props.$size === 'medium' ? 65 : 84)}px;
8
8
  padding: 10px 20px;
9
9
  background-color: #fff;
10
10
  z-index: 10;
@@ -4,7 +4,7 @@ import { useGetTemplateCategoryList, useGetObjectTemplateList, } from '@antscorp
4
4
  // Hooks
5
5
  import { useDeepCompareEffect, useDeepCompareMemo } from '@antscorp/antsomi-ui/es/hooks';
6
6
  // Constants
7
- import { CATEGORY_SPLIT_KEY } from '@antscorp/antsomi-ui/es/constants/templateListing';
7
+ import { CATEGORY_SPLIT_KEY } from '@antscorp/antsomi-ui/es/constants';
8
8
  /**
9
9
  * Custom React Hook for managing state and data fetching logic related to a template listing.
10
10
  *
@@ -8,7 +8,7 @@ import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
8
8
  // Hooks
9
9
  import { useDeepCompareEffect, useDeepCompareMemo } from '@antscorp/antsomi-ui/es/hooks';
10
10
  // Constants
11
- import { CATEGORY_SPLIT_KEY, TEMPLATE_STATUS, } from '@antscorp/antsomi-ui/es/constants/templateListing';
11
+ import { CATEGORY_SPLIT_KEY, TEMPLATE_STATUS } from '@antscorp/antsomi-ui/es/constants';
12
12
  import { translations } from '@antscorp/antsomi-ui/es/locales/translations';
13
13
  import { getShuffleArray } from '@antscorp/antsomi-ui/es/utils';
14
14
  /**
@@ -5,3 +5,4 @@ export * from './datetime';
5
5
  export * from './keyCode';
6
6
  export * from './templateListing';
7
7
  export * from './theme';
8
+ export * from './variables';
@@ -5,3 +5,4 @@ export * from './datetime';
5
5
  export * from './keyCode';
6
6
  export * from './templateListing';
7
7
  export * from './theme';
8
+ export * from './variables';
@@ -1,9 +1,3 @@
1
- export declare const OBJECT_TYPES: {
2
- readonly MEDIA_TEMPLATE: 1;
3
- readonly EMAIL_TEMPLATE: 2;
4
- readonly JOURNEY_TEMPLATE: 3;
5
- readonly RICH_MENU_TEMPLATE: 4;
6
- };
7
1
  export declare const PUBLIC_LEVEL: {
8
2
  readonly RESTRICTED: 0;
9
3
  readonly PUBLIC: 1;
@@ -1,9 +1,3 @@
1
- export const OBJECT_TYPES = {
2
- MEDIA_TEMPLATE: 1,
3
- EMAIL_TEMPLATE: 2,
4
- JOURNEY_TEMPLATE: 3,
5
- RICH_MENU_TEMPLATE: 4,
6
- };
7
1
  export const PUBLIC_LEVEL = {
8
2
  RESTRICTED: 0,
9
3
  PUBLIC: 1,
@@ -0,0 +1,13 @@
1
+ export declare const OBJECT_TYPES: {
2
+ readonly DASHBOARD: 1;
3
+ readonly JOURNEY_OVERVIEW: 2;
4
+ readonly SEGMENT: 3;
5
+ readonly BUSINESS_OBJECT: 4;
6
+ readonly VIEW: 5;
7
+ readonly DESTINATION: 6;
8
+ readonly EXPLORATION: 7;
9
+ readonly MEDIA_TEMPLATE: 8;
10
+ readonly EMAIL_TEMPLATE: 9;
11
+ readonly JOURNEY_TEMPLATE: 10;
12
+ readonly RICH_MENU_TEMPLATE: 11;
13
+ };
@@ -0,0 +1,13 @@
1
+ export const OBJECT_TYPES = {
2
+ DASHBOARD: 1,
3
+ JOURNEY_OVERVIEW: 2,
4
+ SEGMENT: 3,
5
+ BUSINESS_OBJECT: 4,
6
+ VIEW: 5,
7
+ DESTINATION: 6,
8
+ EXPLORATION: 7,
9
+ MEDIA_TEMPLATE: 8,
10
+ EMAIL_TEMPLATE: 9,
11
+ JOURNEY_TEMPLATE: 10,
12
+ RICH_MENU_TEMPLATE: 11,
13
+ };
@@ -3,8 +3,7 @@ import dayjs from 'dayjs';
3
3
  // Models
4
4
  import { Model } from './model';
5
5
  // Constants
6
- import { LAYOUT_TEMPLATE } from '../constants/templateListing';
7
- import { DATE_TIME_FORMAT } from '../constants';
6
+ import { DATE_TIME_FORMAT, LAYOUT_TEMPLATE } from '../constants';
8
7
  export class ObjectTemplate extends Model {
9
8
  get id() {
10
9
  return this.model.template_id || '';
@@ -1,4 +1,4 @@
1
- import { TEMPLATE_CATEGORY_KEYS, OBJECT_TYPES, PUBLIC_LEVEL, TEMPLATE_STATUS } from '../constants/templateListing';
1
+ import { TEMPLATE_CATEGORY_KEYS, OBJECT_TYPES, PUBLIC_LEVEL, TEMPLATE_STATUS } from '../constants';
2
2
  export type TObjectType = (typeof OBJECT_TYPES)[keyof typeof OBJECT_TYPES];
3
3
  export type TPublicLevel = (typeof PUBLIC_LEVEL)[keyof typeof PUBLIC_LEVEL];
4
4
  export type TTemplateStatus = (typeof TEMPLATE_STATUS)[keyof typeof TEMPLATE_STATUS];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.26",
3
+ "version": "1.3.5-beta.28",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",