@gem-sdk/core 2.0.0-dev.852 → 2.0.0-dev.863
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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const globalEvent={subscribe(e){document.addEventListener(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const globalEvent={subscribe(e,t){document.addEventListener(e,e=>t(e.detail))},dispatch(e,t){document.dispatchEvent(new CustomEvent(e,{detail:t}))},remove(e,t){document.removeEventListener(e,t)}};exports.default=globalEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let globalEvent={subscribe(e){document.addEventListener(
|
|
1
|
+
let globalEvent={subscribe(e,t){document.addEventListener(e,e=>t(e.detail))},dispatch(e,t){document.dispatchEvent(new CustomEvent(e,{detail:t}))},remove(e,t){document.removeEventListener(e,t)}};export{globalEvent as default};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7666,11 +7666,18 @@ type PostPurchaseTypo = {
|
|
|
7666
7666
|
textTransform?: PostPurchaseTextTransform;
|
|
7667
7667
|
textColor?: PostPurchaseTextColor;
|
|
7668
7668
|
};
|
|
7669
|
+
type PostPurchaseTypoLabel = {
|
|
7670
|
+
fontSize?: string;
|
|
7671
|
+
fontWeight?: string;
|
|
7672
|
+
textTransform?: string;
|
|
7673
|
+
textColor?: string;
|
|
7674
|
+
};
|
|
7669
7675
|
type SettingIDType = keyof PostPurchaseTypo;
|
|
7670
7676
|
type TypographyPostPurchaseControlType<T> = SharedControlType<T> & {
|
|
7671
7677
|
type: 'typography-post-purchase';
|
|
7672
7678
|
default?: PostPurchaseTypo;
|
|
7673
7679
|
hiddenSetting?: SettingIDType[];
|
|
7680
|
+
configLabel?: PostPurchaseTypoLabel;
|
|
7674
7681
|
};
|
|
7675
7682
|
|
|
7676
7683
|
type ProductOffersControlType<T> = SharedControlType<T> & {
|
|
@@ -27917,9 +27924,9 @@ declare const isColumnDirectionExist: (layout: ObjectDevices<ObjectLayoutValue>,
|
|
|
27917
27924
|
declare function getShortName(name: string): string;
|
|
27918
27925
|
|
|
27919
27926
|
declare const globalEvent: {
|
|
27920
|
-
subscribe(callback: (detail: any) => void): void;
|
|
27921
|
-
dispatch(
|
|
27922
|
-
remove(callback: (
|
|
27927
|
+
subscribe(eventName: string, callback: (detail: any) => void): void;
|
|
27928
|
+
dispatch(eventName: string, detail: any): void;
|
|
27929
|
+
remove(eventName: string, callback: (detail: any) => void): void;
|
|
27923
27930
|
};
|
|
27924
27931
|
|
|
27925
27932
|
declare function isBrowser(): boolean;
|