@billgangcom/theme-lib 1.59.1 → 1.61.0

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.
@@ -1,3 +1,4 @@
1
+ import { ShopGeneralInfo } from '@constants';
1
2
  import { ListingData } from '../ui';
2
3
  type Listing = ListingData<'PRODUCT'> | ListingData<'GROUP'> | ListingData<'POST'>;
3
4
  export interface Product {
@@ -102,7 +103,7 @@ export interface PageContext {
102
103
  reviews: any;
103
104
  categories: Category[] | null;
104
105
  faqs: Faq[] | null;
105
- general: any;
106
+ general: ShopGeneralInfo | null;
106
107
  fullPosts: any;
107
108
  posts: any;
108
109
  }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ }
4
+ export declare const ThemeSettingsCurrentColors: React.FC<Props>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ }
4
+ export declare const TipCurrentColors: React.FC<Props>;
5
+ export {};
@@ -13,7 +13,7 @@ export interface ShopGeneralInfo {
13
13
  info: {
14
14
  logo?: {
15
15
  id: number;
16
- cdId: string;
16
+ cfId: string;
17
17
  };
18
18
  id: string;
19
19
  name: string;
@@ -8,6 +8,8 @@ interface Options {
8
8
  updateFont: (deviceType: 'mobile' | 'tablet' | 'desktop', fontType: FontType, id: FontTypeHeading | FontTypeParagraph, field: keyof FontFields, newValue: string | number) => void;
9
9
  updateBorder: (field: keyof BorderFields, newValue: string | number) => void;
10
10
  updateButton: (category: keyof ThemeSettings['buttons'], field: keyof ButtonFields, newValue: string | number | boolean | object) => void;
11
+ activeColorCategory: keyof ThemeSettings['colors'] | null;
12
+ setActiveColorCategory: (activeColorCategory: keyof ThemeSettings['colors'] | null) => void;
11
13
  activeFont: FontTypeHeading | FontTypeParagraph | null;
12
14
  setActiveFont: (activeFont: FontTypeHeading | FontTypeParagraph | null) => void;
13
15
  updateInput: (category: keyof ThemeSettings['inputs'], value: string | number | boolean, field: keyof ThemeSettings['inputs']['general'] | keyof ThemeSettings['inputs']['border'] | keyof ThemeSettings['inputs']['label'] | keyof ThemeSettings['inputs']['field']) => void;