@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.
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.js +1 -1
- package/es/components/molecules/TemplateSaveAs/hooks/useTemplateSave.js +1 -1
- package/es/components/template/TemplateListing/hooks/useTemplateListing.js +1 -1
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.js +1 -0
- package/es/constants/templateListing.d.ts +0 -6
- package/es/constants/templateListing.js +0 -6
- package/es/constants/variables.d.ts +13 -0
- package/es/constants/variables.js +13 -0
- package/es/models/ObjectTemplate.js +1 -2
- package/es/types/templateListing.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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' ?
|
|
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
|
|
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
|
|
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
|
/**
|
package/es/constants/index.d.ts
CHANGED
package/es/constants/index.js
CHANGED
|
@@ -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
|
+
};
|
|
@@ -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
|
|
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
|
|
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];
|