@gem-sdk/analytics 1.0.2-dev.1 → 1.0.2-dev.2

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.
Files changed (26) hide show
  1. package/dist/esm/components/OrderAnalytic/OrderListingLatestTable.d.ts +1 -1
  2. package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingTable.d.ts +1 -1
  3. package/dist/esm/index.d.ts +3 -0
  4. package/dist/esm/index.js +261 -258
  5. package/dist/esm/index.mjs +261 -258
  6. package/dist/esm/shared/reports/ui/ReportTable/ReportTable.d.ts +4 -4
  7. package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.d.ts +1 -1
  8. package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/Cell.d.ts +3 -2
  9. package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.d.ts +1 -1
  10. package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/type.d.ts +2 -1
  11. package/dist/esm/shared/reports/ui/ReportTable/components/Body/Row.d.ts +1 -1
  12. package/dist/esm/shared/reports/ui/ReportTable/context/ReportTableActionsContext.d.ts +1 -1
  13. package/dist/esm/shared/reports/ui/ReportTable/types/index.d.ts +1 -0
  14. package/dist/umd/esm/components/OrderAnalytic/OrderListingLatestTable.d.ts +1 -1
  15. package/dist/umd/esm/components/OrderAnalytic/components/OrderListing/OrderListingTable.d.ts +1 -1
  16. package/dist/umd/esm/index.d.ts +3 -0
  17. package/dist/umd/esm/shared/reports/ui/ReportTable/ReportTable.d.ts +4 -4
  18. package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.d.ts +1 -1
  19. package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Cell/Cell.d.ts +3 -2
  20. package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.d.ts +1 -1
  21. package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Cell/type.d.ts +2 -1
  22. package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Row.d.ts +1 -1
  23. package/dist/umd/esm/shared/reports/ui/ReportTable/context/ReportTableActionsContext.d.ts +1 -1
  24. package/dist/umd/esm/shared/reports/ui/ReportTable/types/index.d.ts +1 -0
  25. package/dist/umd/index.js +1 -1
  26. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import type { OrderByFields, OrderCellProps, ReportColumnLayout, ReportColumnLayoutMap } from './types';
2
- import type { ReportTableSkeletonProps } from './ReportTableSkeleton';
1
+ import type { GPaginationProps } from '@/core/gemxql';
3
2
  import type { IReportTable } from '../../common/Visualization/types';
4
3
  import type { IReportHeaderSummary } from './components';
5
- import type { GPaginationProps } from '@/core/gemxql';
4
+ import type { ReportTableSkeletonProps } from './ReportTableSkeleton';
5
+ import type { OrderByFields, OrderCellProps, ReportColumnLayout, ReportColumnLayoutMap } from './types';
6
6
  export interface IReportTableOptions {
7
7
  summary?: IReportHeaderSummary;
8
8
  hideBorderTop?: boolean;
@@ -27,7 +27,7 @@ export interface ReportTableProps {
27
27
  isMockData?: boolean;
28
28
  onChangeOrderBy?: (field: string) => void;
29
29
  onViewAllStoreOrders?: () => void;
30
- onViewOrderJourney?: (orderId: string) => void;
30
+ onViewOrderJourney?: (orderId: string, gxId?: string) => void;
31
31
  onViewOrderDetails?: (orderId: string) => void;
32
32
  skeletons?: ReportTableSkeletonProps;
33
33
  }
@@ -1,3 +1,3 @@
1
- import type { RendererProps } from '../type';
2
1
  import type { IOrderExperiment } from '../../../../types/order';
2
+ import type { RendererProps } from '../type';
3
3
  export declare const CampaignsCell: ({ value, campaignsCellProps, }: Pick<RendererProps<IOrderExperiment[]>, "value" | "campaignsCellProps">) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +1,8 @@
1
- import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
2
1
  import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
2
+ import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
3
3
  interface ColumnProps {
4
4
  value: ReportValueType;
5
+ gxId?: string;
5
6
  previousValue?: ReportValueType;
6
7
  isMergedWithPrev: boolean;
7
8
  columnLayout: ReportColumnLayout;
@@ -14,5 +15,5 @@ interface ColumnProps {
14
15
  isTotalRow: ReportValueType;
15
16
  isMockData?: boolean;
16
17
  }
17
- export declare const Cell: ({ value, isMergedWithPrev, columnLayout, name, isDimensionCol, formatter, hasTooltipCard, previousValue, orderCellProps, campaignsCellProps, isTotalRow, isMockData, }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Cell: ({ value, gxId, isMergedWithPrev, columnLayout, name, isDimensionCol, formatter, hasTooltipCard, previousValue, orderCellProps, campaignsCellProps, isTotalRow, isMockData, }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
18
19
  export {};
@@ -1,2 +1,2 @@
1
1
  import type { RendererProps } from './type';
2
- export declare const OrderIdCell: ({ value, isMockData }: Pick<RendererProps<string>, "value" | "isMockData">) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const OrderIdCell: ({ value, isMockData, gxId, }: Pick<RendererProps<string>, "value" | "isMockData" | "gxId">) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,9 @@
1
1
  import type { IMetricFormatter } from '@/modules/analytics';
2
- import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
3
2
  import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
3
+ import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
4
4
  export type RendererProps<T = ReportValueType> = {
5
5
  value: T;
6
+ gxId?: string;
6
7
  campaignsCellProps?: CampaignsCellProps;
7
8
  name?: string;
8
9
  isMergedWithPrev: boolean;
@@ -1,4 +1,4 @@
1
- import type { ReportRowType, IReportColumn } from '@/shared/reports/common/Visualization/types';
1
+ import type { IReportColumn, ReportRowType } from '@/shared/reports/common/Visualization/types';
2
2
  import type { OrderCellProps, ReportColumnLayoutMap } from '../../types';
3
3
  interface RowProps {
4
4
  row: ReportRowType;
@@ -1,5 +1,5 @@
1
1
  interface ReportTableActionsContextValue {
2
- onViewOrderJourney?: (orderId: string) => void;
2
+ onViewOrderJourney?: (orderId: string, gxId?: string) => void;
3
3
  onViewOrderDetails?: (orderId: string) => void;
4
4
  onViewAllStoreOrders?: () => void;
5
5
  }
@@ -34,5 +34,6 @@ export type OrderCellProps = {
34
34
  };
35
35
  export interface CampaignsCellProps {
36
36
  orderId: string;
37
+ gxId: string;
37
38
  isHideCampaignContent: boolean;
38
39
  }
@@ -9,7 +9,7 @@ interface IOrderListingLatestData {
9
9
  interface IOrderListingLatestCallbacks {
10
10
  onViewAllOrders?: () => void;
11
11
  onViewAllStoreOrders?: () => void;
12
- onViewOrderJourney?: (orderId: string) => void;
12
+ onViewOrderJourney?: (orderId: string, gxId?: string) => void;
13
13
  onViewOrderDetails?: (orderId: string) => void;
14
14
  }
15
15
  interface OrderListingLatestTableProps {
@@ -25,7 +25,7 @@ export interface OrderListingTableProps {
25
25
  isFilteredByCampaign?: boolean;
26
26
  isHasControlFilters?: boolean;
27
27
  onViewAllStoreOrders?: () => void;
28
- onViewOrderJourney?: (orderId: string) => void;
28
+ onViewOrderJourney?: (orderId: string, gxId?: string) => void;
29
29
  onViewOrderDetails?: (orderId: string) => void;
30
30
  }
31
31
  declare const _default: import("react").MemoExoticComponent<({ orders, isLoading, totalStoreOrders, queryValue, paginationProps, tableOptions, isMockData, selectedColumns, columnsOrder, isFilteredByCampaign, isHasControlFilters, onViewAllStoreOrders, onViewOrderJourney, onViewOrderDetails, }: OrderListingTableProps) => import("react/jsx-runtime").JSX.Element>;
@@ -4,3 +4,6 @@ export * from './hooks/publish';
4
4
  export * from './providers';
5
5
  export * from './stores';
6
6
  export * from './utils/dayjs';
7
+ export * from './shared/reports/ui/ReportTable/ReportTable';
8
+ export { ReportTableSkeleton } from './shared/reports/ui/ReportTable/ReportTableSkeleton';
9
+ export { formatReportData } from './shared/reports/ui/ReportTable/utils/format';
@@ -1,8 +1,8 @@
1
- import type { OrderByFields, OrderCellProps, ReportColumnLayout, ReportColumnLayoutMap } from './types';
2
- import type { ReportTableSkeletonProps } from './ReportTableSkeleton';
1
+ import type { GPaginationProps } from '@/core/gemxql';
3
2
  import type { IReportTable } from '../../common/Visualization/types';
4
3
  import type { IReportHeaderSummary } from './components';
5
- import type { GPaginationProps } from '@/core/gemxql';
4
+ import type { ReportTableSkeletonProps } from './ReportTableSkeleton';
5
+ import type { OrderByFields, OrderCellProps, ReportColumnLayout, ReportColumnLayoutMap } from './types';
6
6
  export interface IReportTableOptions {
7
7
  summary?: IReportHeaderSummary;
8
8
  hideBorderTop?: boolean;
@@ -27,7 +27,7 @@ export interface ReportTableProps {
27
27
  isMockData?: boolean;
28
28
  onChangeOrderBy?: (field: string) => void;
29
29
  onViewAllStoreOrders?: () => void;
30
- onViewOrderJourney?: (orderId: string) => void;
30
+ onViewOrderJourney?: (orderId: string, gxId?: string) => void;
31
31
  onViewOrderDetails?: (orderId: string) => void;
32
32
  skeletons?: ReportTableSkeletonProps;
33
33
  }
@@ -1,3 +1,3 @@
1
- import type { RendererProps } from '../type';
2
1
  import type { IOrderExperiment } from '../../../../types/order';
2
+ import type { RendererProps } from '../type';
3
3
  export declare const CampaignsCell: ({ value, campaignsCellProps, }: Pick<RendererProps<IOrderExperiment[]>, "value" | "campaignsCellProps">) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +1,8 @@
1
- import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
2
1
  import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
2
+ import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
3
3
  interface ColumnProps {
4
4
  value: ReportValueType;
5
+ gxId?: string;
5
6
  previousValue?: ReportValueType;
6
7
  isMergedWithPrev: boolean;
7
8
  columnLayout: ReportColumnLayout;
@@ -14,5 +15,5 @@ interface ColumnProps {
14
15
  isTotalRow: ReportValueType;
15
16
  isMockData?: boolean;
16
17
  }
17
- export declare const Cell: ({ value, isMergedWithPrev, columnLayout, name, isDimensionCol, formatter, hasTooltipCard, previousValue, orderCellProps, campaignsCellProps, isTotalRow, isMockData, }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Cell: ({ value, gxId, isMergedWithPrev, columnLayout, name, isDimensionCol, formatter, hasTooltipCard, previousValue, orderCellProps, campaignsCellProps, isTotalRow, isMockData, }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
18
19
  export {};
@@ -1,2 +1,2 @@
1
1
  import type { RendererProps } from './type';
2
- export declare const OrderIdCell: ({ value, isMockData }: Pick<RendererProps<string>, "value" | "isMockData">) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const OrderIdCell: ({ value, isMockData, gxId, }: Pick<RendererProps<string>, "value" | "isMockData" | "gxId">) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,9 @@
1
1
  import type { IMetricFormatter } from '@/modules/analytics';
2
- import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
3
2
  import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
3
+ import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
4
4
  export type RendererProps<T = ReportValueType> = {
5
5
  value: T;
6
+ gxId?: string;
6
7
  campaignsCellProps?: CampaignsCellProps;
7
8
  name?: string;
8
9
  isMergedWithPrev: boolean;
@@ -1,4 +1,4 @@
1
- import type { ReportRowType, IReportColumn } from '@/shared/reports/common/Visualization/types';
1
+ import type { IReportColumn, ReportRowType } from '@/shared/reports/common/Visualization/types';
2
2
  import type { OrderCellProps, ReportColumnLayoutMap } from '../../types';
3
3
  interface RowProps {
4
4
  row: ReportRowType;
@@ -1,5 +1,5 @@
1
1
  interface ReportTableActionsContextValue {
2
- onViewOrderJourney?: (orderId: string) => void;
2
+ onViewOrderJourney?: (orderId: string, gxId?: string) => void;
3
3
  onViewOrderDetails?: (orderId: string) => void;
4
4
  onViewAllStoreOrders?: () => void;
5
5
  }
@@ -34,5 +34,6 @@ export type OrderCellProps = {
34
34
  };
35
35
  export interface CampaignsCellProps {
36
36
  orderId: string;
37
+ gxId: string;
37
38
  isHideCampaignContent: boolean;
38
39
  }