@delopay/sdk 0.19.0 → 0.20.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.
- package/dist/{chunk-ICBLNJN7.js → chunk-QGQR2OBR.js} +2 -6
- package/dist/{chunk-ICBLNJN7.js.map → chunk-QGQR2OBR.js.map} +1 -1
- package/dist/index.cjs +1 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +1 -5
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3661,7 +3661,7 @@ interface EncodedBranding {
|
|
|
3661
3661
|
sdk_ui_rules: Record<string, Record<string, string>>;
|
|
3662
3662
|
branding_visibility: boolean;
|
|
3663
3663
|
}
|
|
3664
|
-
declare function encodeBranding<TBase extends
|
|
3664
|
+
declare function encodeBranding<TBase extends object | null | undefined>(branding: CheckoutBranding, base?: TBase): EncodedBranding & (TBase extends object ? TBase : Record<string, never>);
|
|
3665
3665
|
declare const BRANDING_EXPORT_FORMAT = "delopay-checkout-branding";
|
|
3666
3666
|
declare const BRANDING_EXPORT_VERSION = 1;
|
|
3667
3667
|
interface BrandingExport {
|
package/dist/index.d.ts
CHANGED
|
@@ -3661,7 +3661,7 @@ interface EncodedBranding {
|
|
|
3661
3661
|
sdk_ui_rules: Record<string, Record<string, string>>;
|
|
3662
3662
|
branding_visibility: boolean;
|
|
3663
3663
|
}
|
|
3664
|
-
declare function encodeBranding<TBase extends
|
|
3664
|
+
declare function encodeBranding<TBase extends object | null | undefined>(branding: CheckoutBranding, base?: TBase): EncodedBranding & (TBase extends object ? TBase : Record<string, never>);
|
|
3665
3665
|
declare const BRANDING_EXPORT_FORMAT = "delopay-checkout-branding";
|
|
3666
3666
|
declare const BRANDING_EXPORT_VERSION = 1;
|
|
3667
3667
|
interface BrandingExport {
|
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -3338,11 +3338,7 @@ function decodeBranding(source) {
|
|
|
3338
3338
|
["sm", "md", "lg"],
|
|
3339
3339
|
DEFAULT_BRANDING.buttonSize
|
|
3340
3340
|
),
|
|
3341
|
-
layout: pickEnum(
|
|
3342
|
-
extras["layout"],
|
|
3343
|
-
["compact", "split"],
|
|
3344
|
-
DEFAULT_BRANDING.layout
|
|
3345
|
-
),
|
|
3341
|
+
layout: pickEnum(extras["layout"], ["compact", "split"], DEFAULT_BRANDING.layout),
|
|
3346
3342
|
summaryPosition: pickEnum(
|
|
3347
3343
|
extras["summaryPosition"],
|
|
3348
3344
|
["left", "right"],
|