@billgangcom/theme-lib 1.75.0 → 1.76.1
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/dist/App.d.ts +4 -1
- package/dist/builder/constants/notification.d.ts +11 -0
- package/dist/builder/ui/Notification/index.d.ts +2 -0
- package/dist/builder.cjs.js +3 -3
- package/dist/builder.es.js +166 -152
- package/dist/{index-l1TErdyv.cjs → index-BpzsK4Qg.cjs} +22 -22
- package/dist/{index-DeijfCOT.js → index-DywuD4hr.js} +5316 -5314
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +8 -7
- package/dist/storefront/utils/showNotification.d.ts +2 -2
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +2 -2
- package/package.json +1 -1
package/dist/App.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RouteObject } from 'react-router-dom';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import 'non.geist';
|
|
3
4
|
import './styles/main.scss';
|
|
@@ -7,14 +8,16 @@ interface AppProps {
|
|
|
7
8
|
header: any;
|
|
8
9
|
footer: any;
|
|
9
10
|
announcement: any;
|
|
11
|
+
routes?: RouteObject[];
|
|
10
12
|
}
|
|
11
13
|
export declare const App: React.FC<AppProps>;
|
|
12
14
|
export * from './abstractions';
|
|
13
15
|
export { hotReload, splitTextIntoSpans, useCreateTicket, useBuilderPages } from './lib';
|
|
14
16
|
export { iconNames, type IconNames, ColorVariables, type AspectRatio, aspectRatioOptions, } from '@builder/constants';
|
|
17
|
+
export type { Notification, NotificationComponentProps } from './builder/constants';
|
|
15
18
|
export { ReCaptchaProvider, useReCaptcha } from './storefront/utils/recapcha';
|
|
16
19
|
export { useCart } from './storefront/utils/useCart';
|
|
17
|
-
export { showNotification } from './storefront/utils/showNotification';
|
|
20
|
+
export { showNotification, removeNotification } from './storefront/utils/showNotification';
|
|
18
21
|
export { useAdaptiveStyles } from './storefront/utils/useAdaptiveStyles';
|
|
19
22
|
export { formatPrice } from './storefront/utils';
|
|
20
23
|
export type { TypeFontKeys } from './builder/constants/text-font-keys';
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface NotificationComponentProps {
|
|
3
|
+
type: 'warning' | 'error' | 'success';
|
|
4
|
+
message: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
padding?: number;
|
|
7
|
+
timer: number;
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
1
10
|
export type Notification = {
|
|
2
11
|
id: string;
|
|
3
12
|
message: string;
|
|
4
13
|
status: 'success' | 'error' | 'warning';
|
|
14
|
+
component?: React.FC<NotificationComponentProps>;
|
|
15
|
+
timer?: number;
|
|
5
16
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { NotificationComponentProps } from '@builder/constants';
|
|
2
3
|
interface Props {
|
|
3
4
|
type: 'warning' | 'error' | 'success';
|
|
4
5
|
message: string;
|
|
@@ -6,6 +7,7 @@ interface Props {
|
|
|
6
7
|
padding?: number;
|
|
7
8
|
timer: number;
|
|
8
9
|
id: string;
|
|
10
|
+
element?: React.FC<NotificationComponentProps>;
|
|
9
11
|
}
|
|
10
12
|
export declare const Notification: React.FC<Props>;
|
|
11
13
|
export {};
|