pds-dev-kit-web-test 2.4.12 → 2.4.14

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.
@@ -474,6 +474,7 @@ declare const colorSet: {
474
474
  sys_sw_sidebar_divider_vertical: string;
475
475
  sys_cpnt_sheet_base_13: string;
476
476
  sys_cpnt_sheet_base_14: string;
477
+ sys_cpnt_white_opacity60: string;
477
478
  };
478
479
  readonly PaletteColor_Dark: {
479
480
  sys_container_background_01: string;
@@ -830,6 +831,7 @@ declare const colorSet: {
830
831
  sys_sw_sidebar_divider_vertical: string;
831
832
  sys_cpnt_sheet_base_13: string;
832
833
  sys_cpnt_sheet_base_14: string;
834
+ sys_cpnt_white_opacity60: string;
833
835
  };
834
836
  readonly UIColor: {
835
837
  ui_cpnt_button_fill_base_primary: string;
@@ -1686,6 +1688,9 @@ declare const colorSet: {
1686
1688
  ui_115: string;
1687
1689
  ui_116: string;
1688
1690
  ui_117: string;
1691
+ ui_118: string;
1692
+ ui_119: string;
1693
+ ui_120: string;
1689
1694
  };
1690
1695
  };
1691
1696
  export default colorSet;
@@ -853,4 +853,7 @@ export interface UITheme {
853
853
  ui_115: string;
854
854
  ui_116: string;
855
855
  ui_117: string;
856
+ ui_118: string;
857
+ ui_119: string;
858
+ ui_120: string;
856
859
  }
@@ -3,3 +3,4 @@ import type { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
  declare const _default: ComponentMeta<typeof MobileTabBar>;
4
4
  export default _default;
5
5
  export declare const Default: ComponentStory<typeof MobileTabBar>;
6
+ export declare const InLayout: ComponentStory<typeof MobileTabBar>;
@@ -0,0 +1,5 @@
1
+ import SandollFontsList from './headless/SandollFontsList';
2
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
3
+ declare const _default: ComponentMeta<typeof SandollFontsList>;
4
+ export default _default;
5
+ export declare const Sample: ComponentStory<typeof SandollFontsList>;
@@ -0,0 +1,4 @@
1
+ import type { FontResponse, PublHeaders, SandollFontsQueryParams } from './types';
2
+ export declare function fetchSandollFonts(baseURL: string, searchParams: SandollFontsQueryParams, publHeaders: PublHeaders): Promise<FontResponse | {
3
+ error: any;
4
+ }>;
@@ -0,0 +1,51 @@
1
+ import type { SANDOLL_CategoryType } from '../types';
2
+ export type Pagination = {
3
+ page: number;
4
+ limit: number;
5
+ };
6
+ export type Filter = {
7
+ sort: 'trending' | 'popularity' | 'date' | 'alpha';
8
+ order: 'ASC' | 'DESC';
9
+ };
10
+ export type SearchQuery = {
11
+ usecase?: 'EDITOR';
12
+ searchTerm?: string;
13
+ };
14
+ export type SandollFont = {
15
+ id: string;
16
+ distinctId: string;
17
+ fontEnumValue: string;
18
+ provider: string;
19
+ fontName: string;
20
+ fontFamilyName: string;
21
+ supportedWeights: number[];
22
+ providerFontId: string;
23
+ providerFontName: string;
24
+ providerFontFamilyId: string;
25
+ providerFontFamilyName: string;
26
+ providerCssInfoDict: CSSInfoDict;
27
+ category: SANDOLL_CategoryType;
28
+ };
29
+ export type CSSInfoDict = {
30
+ fontFamily: string;
31
+ fontWeight: number;
32
+ };
33
+ export type SupportedOptionMap = {};
34
+ export type FontResponse = {
35
+ data: {
36
+ availableFonts: SandollFont[];
37
+ supportedOptions: SupportedOptionMap;
38
+ pagination: Pagination;
39
+ };
40
+ };
41
+ export type SandollFontsQueryParams = {
42
+ pagination: Pagination;
43
+ searchQuery: SearchQuery;
44
+ filter: Filter;
45
+ categories: SANDOLL_CategoryType[];
46
+ isGlobal: boolean;
47
+ };
48
+ export type PublHeaders = {
49
+ channelToken: string;
50
+ channelId: string;
51
+ };
@@ -0,0 +1,9 @@
1
+ import type { SANDOLL_CategoryType, SANDOLL_CategoryIconType, SANDOLL_SortOptionType } from './types';
2
+ export declare const SANDOLL_SORT_OPTIONS: SANDOLL_SortOptionType[];
3
+ export declare const SANDOLL_DEFAULT_SORT: {
4
+ text: string;
5
+ value: SANDOLL_SortOptionType;
6
+ };
7
+ export declare const SANDOLL_SORT_OPTION_KEY_MAP: Record<SANDOLL_SortOptionType, string>;
8
+ export declare const SANDOLL_CATEGORIES: SANDOLL_CategoryType[];
9
+ export declare const SANDOLL_CATEGORY_ICONS: SANDOLL_CategoryIconType;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { QueryParamDispatchFunction } from '../hooks/useQueryParamsReducer';
3
+ import type { PublHeaders, SandollFontsQueryParams } from '../api/types';
4
+ import type { SANDOLL_Font } from '../types';
5
+ type HeadlessProps = {
6
+ isLoading: boolean;
7
+ fonts: SANDOLL_Font[];
8
+ queryParams: SandollFontsQueryParams;
9
+ queryParamDispatch: QueryParamDispatchFunction;
10
+ };
11
+ type Props = {
12
+ baseURL: string;
13
+ defaultQueryParams?: SandollFontsQueryParams;
14
+ publHeaders: PublHeaders;
15
+ children: (args: HeadlessProps) => JSX.Element;
16
+ };
17
+ declare function SandollFontsList({ baseURL, defaultQueryParams, publHeaders, children }: Props): JSX.Element;
18
+ export default SandollFontsList;
@@ -0,0 +1,30 @@
1
+ import { Dispatch } from 'react';
2
+ import type { SandollFontsQueryParams } from '../api/types';
3
+ import type { SANDOLL_CategoryType } from '../types';
4
+ type Filter = {
5
+ sort: 'trending' | 'popularity' | 'date' | 'alpha';
6
+ order: 'ASC' | 'DESC';
7
+ };
8
+ type Action = {
9
+ type: 'SET_PAGE';
10
+ payload: number;
11
+ } | {
12
+ type: 'SET_LIMIT';
13
+ payload: number;
14
+ } | {
15
+ type: 'SET_SEARCH_TERM';
16
+ payload: string;
17
+ } | {
18
+ type: 'SET_SORT';
19
+ payload: Filter['sort'];
20
+ } | {
21
+ type: 'SET_ORDER';
22
+ payload: Filter['order'];
23
+ } | {
24
+ type: 'TOGGLE_CATEGORIES';
25
+ payload: SANDOLL_CategoryType;
26
+ };
27
+ export type QueryParamDispatchFunction = Dispatch<Action>;
28
+ export declare const DEFAULT_QUERY_PARAMS: SandollFontsQueryParams;
29
+ export declare function useQueryParamsReducer(initialQueryParams: SandollFontsQueryParams): [SandollFontsQueryParams, Dispatch<Action>];
30
+ export {};
@@ -0,0 +1,5 @@
1
+ export { default as SandollFontsList } from './headless/SandollFontsList';
2
+ export { default as appendSandollFontTag } from './utils/appendSandollTagToHead';
3
+ export { default as getSandollFontNameInKorean } from './utils/getSandollFontNameInKorean';
4
+ export * from './types';
5
+ export * from './constants';
@@ -0,0 +1,14 @@
1
+ import type { SandollFont } from './api/types';
2
+ import type { PDSIconType } from '@common/types';
3
+ export type SANDOLL_Font = SandollFont;
4
+ export type SANDOLL_CategoryType = 'buri' | 'min-buri' | 'slab' | 'round' | 'script' | 'deco' | 'symbol' | 'blackLetter' | 'display';
5
+ export type SANDOLL_SortOptionType = 'date' | 'alpha';
6
+ export type SANDOLL_CategoryIconType = Record<SANDOLL_CategoryType, PDSIconType>;
7
+ export type SANDOLL_FilterOptionHandlerArgType = {
8
+ name: 'searchQuery';
9
+ value: string;
10
+ } | {
11
+ name: 'categories';
12
+ value: SANDOLL_CategoryType[];
13
+ };
14
+ export type SANDOLL_ChangeFilterOptionHandler = (arg: SANDOLL_FilterOptionHandlerArgType) => void;
@@ -0,0 +1 @@
1
+ export default function appendSandollTagToHead(tagString: string): void;
@@ -0,0 +1,3 @@
1
+ import type { SANDOLL_Font } from '../types';
2
+ export declare function getSandollFontNameInKorean(providerFontFamilyName: SANDOLL_Font['providerFontFamilyName']): string;
3
+ export default getSandollFontNameInKorean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.4.12",
3
+ "version": "2.4.14",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.esm.js",
@@ -13,9 +13,19 @@
13
13
  "react-dom": "^17.0.2 || ^18.0.0"
14
14
  },
15
15
  "dependencies": {
16
+ "@babel/cli": "^7.10.5",
17
+ "@babel/core": "^7.24.7",
18
+ "@babel/plugin-transform-nullish-coalescing-operator": "^7.18.6",
16
19
  "@babel/preset-env": "^7.24.7",
20
+ "@babel/preset-react": "^7.10.4",
21
+ "@babel/preset-typescript": "^7.24.7",
22
+ "@rollup/plugin-alias": "^5.1.0",
17
23
  "@rollup/plugin-babel": "^6.0.4",
24
+ "@rollup/plugin-commonjs": "^26.0.1",
18
25
  "@rollup/plugin-json": "^6.1.0",
26
+ "@rollup/plugin-node-resolve": "^15.2.3",
27
+ "@rollup/plugin-terser": "^0.4.4",
28
+ "@rollup/plugin-typescript": "^11.1.6",
19
29
  "@testing-library/jest-dom": "^5.14.1",
20
30
  "@testing-library/react": "^11.2.7",
21
31
  "@testing-library/user-event": "^12.8.3",
@@ -36,21 +46,12 @@
36
46
  "react-router-dom": "^5.2.0",
37
47
  "react-scripts": "4.0.3",
38
48
  "rollup": "^4.18.0",
49
+ "rollup-plugin-sourcemaps": "^0.6.3",
39
50
  "smoothscroll-polyfill": "^0.4.4",
40
51
  "styled-components": "^5.2.1",
41
52
  "swiper": "^8.4.5",
42
53
  "tsc-init": "^2.1.0",
43
- "web-vitals": "^1.1.2",
44
- "@babel/cli": "^7.10.5",
45
- "@babel/core": "^7.24.7",
46
- "@babel/plugin-transform-nullish-coalescing-operator": "^7.18.6",
47
- "@babel/preset-react": "^7.10.4",
48
- "@babel/preset-typescript": "^7.24.7",
49
- "@rollup/plugin-alias": "^5.1.0",
50
- "@rollup/plugin-commonjs": "^26.0.1",
51
- "@rollup/plugin-node-resolve": "^15.2.3",
52
- "@rollup/plugin-typescript": "^11.1.6",
53
- "rollup-plugin-sourcemaps": "^0.6.3"
54
+ "web-vitals": "^1.1.2"
54
55
  },
55
56
  "scripts": {
56
57
  "build": "rm -rf ./dist && rollup -c",