sevago-library 1.6.11 → 1.6.13

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.
@@ -2,5 +2,5 @@ import { AxiosInstance } from 'axios';
2
2
  import { AccessoryItemNoDetail, BaseResponse, FilterHtjItemNoQuery, FinishGoodImageResult, HtjItemNoDetail, HtjItemNoResult, ProductManagementFlatPaginatedResult } from './item-no.entities';
3
3
  export declare const getAccessoryItemNoByCode: (axiosProductManagement: AxiosInstance, itemNoCode: string) => Promise<BaseResponse<AccessoryItemNoDetail>>;
4
4
  export declare const getHtjItemNoByCode: (axiosProductManagement: AxiosInstance, itemNoCode: string) => Promise<BaseResponse<HtjItemNoDetail>>;
5
- export declare const getFinishGoodImagesByCode: (axiosProductManagement: AxiosInstance, itemNoCode: string) => Promise<BaseResponse<FinishGoodImageResult>>;
5
+ export declare const getFinishGoodImagesByCode: (axiosProductManagement: AxiosInstance, itemNoCode: string) => Promise<ProductManagementFlatPaginatedResult<FinishGoodImageResult>>;
6
6
  export declare const filterHtjItemNo: (axiosProductManagement: AxiosInstance, body: FilterHtjItemNoQuery) => Promise<ProductManagementFlatPaginatedResult<HtjItemNoResult>>;
@@ -44,6 +44,20 @@ export declare const APP_OBJ: {
44
44
  group: AppGroup;
45
45
  color: string;
46
46
  };
47
+ USER_GUIDE: {
48
+ path: {
49
+ local: string;
50
+ develop: string;
51
+ staging: string;
52
+ production: string;
53
+ production_vps: string;
54
+ };
55
+ icon: string;
56
+ content: string;
57
+ title: string;
58
+ group: AppGroup;
59
+ color: string;
60
+ };
47
61
  MASTER_DATA: {
48
62
  path: {
49
63
  local: string;
@@ -37,4 +37,5 @@ export declare const ICONS: {
37
37
  iconECatalogue: string;
38
38
  iconCustomerManagement: string;
39
39
  iconPromotion: string;
40
+ iconUserGuide: string;
40
41
  };
@@ -4,3 +4,4 @@ declare const meta: Meta<FinishGoodImageGalleryElementProps>;
4
4
  export default meta;
5
5
  type Story = StoryObj<FinishGoodImageGalleryElementProps>;
6
6
  export declare const Default: Story;
7
+ export declare const MultipleSearchOptions: Story;
@@ -1,9 +1,10 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
  import { ReactNode } from 'react';
3
- import { FinishGoodImageResult } from '../../../../apis/product-management';
3
+ import { FinishGoodImageResult, ProductManagementFlatPaginatedResult } from '../../../../apis/product-management';
4
4
  import { ImageGalleryElementProps, ImageGalleryItem } from '../image-gallery';
5
5
  export type { FinishGoodImageResult };
6
- export type FinishGoodImageGalleryImages = ImageGalleryItem[] | FinishGoodImageResult;
6
+ export type FinishGoodImageListResult = ProductManagementFlatPaginatedResult<FinishGoodImageResult>;
7
+ export type FinishGoodImageGalleryImages = ImageGalleryItem[] | FinishGoodImageResult | FinishGoodImageListResult;
7
8
  export type FinishGoodGalleryLauncherSide = 'left' | 'right';
8
9
  export interface FinishGoodGalleryLauncherPosition {
9
10
  side: FinishGoodGalleryLauncherSide;
@@ -1,3 +1,5 @@
1
+ import { FinishGoodImageResult } from '../../../../apis/product-management';
2
+ import { ImageGalleryItem } from '../image-gallery';
1
3
  import { FinishGoodGalleryLauncherPosition, FinishGoodGalleryLauncherSide, FinishGoodGalleryViewportSize, FinishGoodImageGalleryImages } from './finish-good-image-gallery.interface';
2
4
  interface FinishGoodGalleryPoint {
3
5
  x: number;
@@ -8,5 +10,20 @@ export declare const getFinishGoodGalleryMaxTop: (viewportHeight: number) => num
8
10
  export declare const getFinishGoodGalleryLauncherX: (side: FinishGoodGalleryLauncherSide, viewportWidth: number) => number;
9
11
  export declare const getFinishGoodGallerySnappedPosition: (point: FinishGoodGalleryPoint, viewportSize: FinishGoodGalleryViewportSize) => FinishGoodGalleryLauncherPosition;
10
12
  export declare const isFinishGoodGalleryRouteBlacklisted: (pathname: string, blacklist?: string[]) => boolean;
11
- export declare const getFinishGoodGalleryImages: (data?: FinishGoodImageGalleryImages) => import('..').ImageGalleryItem[];
13
+ export declare const getFinishGoodGalleryResultItems: (data?: FinishGoodImageGalleryImages) => FinishGoodImageResult[];
14
+ export declare const getFinishGoodGalleryItemImageCount: (item: FinishGoodImageResult) => number;
15
+ export declare const getFinishGoodGalleryItemCover: (item: FinishGoodImageResult) => string | undefined;
16
+ export declare const getFinishGoodGalleryTotalImageCount: (items: FinishGoodImageResult[]) => number;
17
+ export declare const getFinishGoodGalleryItemImages: (finishGoodImage: FinishGoodImageResult) => {
18
+ id: string;
19
+ src: string;
20
+ alt: string;
21
+ title: string;
22
+ }[];
23
+ export declare const getFinishGoodGalleryImages: (data?: FinishGoodImageGalleryImages) => ImageGalleryItem[] | {
24
+ id: string;
25
+ src: string;
26
+ alt: string;
27
+ title: string;
28
+ }[];
12
29
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sevago-library",
3
- "version": "1.6.11",
3
+ "version": "1.6.13",
4
4
  "description": "Sevago SSO Frontend Library - A comprehensive SSO solution with React components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",