@starfish-codes/hellgate 3.1.0 → 3.2.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/card/card-handler.d.ts +3 -1
- package/dist/card/typings.d.ts +3 -2
- package/dist/card/ui/elements/base-element.d.ts +1 -0
- package/dist/card/ui/styles.d.ts +3 -3
- package/dist/card/ui/typings.d.ts +1 -0
- package/dist/hellgate-sdk.mjs +388 -381
- package/dist/hellgate-sdk.umd.js +5 -5
- package/package.json +1 -1
|
@@ -21,7 +21,9 @@ export declare class HellgateCardHandler {
|
|
|
21
21
|
securityCode: CardVerificationCodeElement;
|
|
22
22
|
};
|
|
23
23
|
createTextField: (options?: ElementBaseOptions) => TextElement;
|
|
24
|
-
tokenize: () => Promise<TokenizedData
|
|
24
|
+
tokenize: () => Promise<TokenizedData | {
|
|
25
|
+
token_id: string;
|
|
26
|
+
} | null>;
|
|
25
27
|
onStateChange: (fn: (state: FormFieldState) => void) => void;
|
|
26
28
|
clear: () => void;
|
|
27
29
|
reset: () => void;
|
package/dist/card/typings.d.ts
CHANGED
|
@@ -30,11 +30,12 @@ export type ElementsCardData = {
|
|
|
30
30
|
};
|
|
31
31
|
export type TokenizedData = {
|
|
32
32
|
enc_payload: string;
|
|
33
|
+
} | {
|
|
34
|
+
token_id: string;
|
|
33
35
|
};
|
|
34
36
|
export type TokenizeCardActionDTO = {
|
|
35
37
|
action: 'tokenize_card';
|
|
36
|
-
result: {
|
|
37
|
-
enc_payload: string;
|
|
38
|
+
result: TokenizedData & {
|
|
38
39
|
additional_data?: PaymentAdditionalData;
|
|
39
40
|
};
|
|
40
41
|
};
|
|
@@ -2,6 +2,7 @@ import { Explicit } from '../iframe/utils';
|
|
|
2
2
|
import { CardElementEvents, ElementBaseOptions, ElementType, EventType, FindByType, Subscription } from '../typings';
|
|
3
3
|
export declare abstract class CardElementBase<Value, IframeValue = string> {
|
|
4
4
|
readonly options: ElementBaseOptions<Value>;
|
|
5
|
+
private IFRAME_BASE_URL;
|
|
5
6
|
private iframe;
|
|
6
7
|
private subscriptions;
|
|
7
8
|
protected abstract type: ElementType;
|
package/dist/card/ui/styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Properties as CSSProperties } from 'csstype';
|
|
2
|
-
declare const SAFE_CSS_PROPERTIES: readonly ["backgroundColor", "color", "fontFamily", "fontSize", "fontSmooth", "fontStyle", "fontVariant", "fontWeight", "lineHeight", "letterSpacing", "textAlign", "padding", "textDecoration", "textShadow", "textTransform"];
|
|
2
|
+
declare const SAFE_CSS_PROPERTIES: readonly ["backgroundColor", "color", "fontFamily", "fontSize", "fontSmooth", "fontStyle", "fontVariant", "fontWeight", "lineHeight", "letterSpacing", "textAlign", "padding", "textDecoration", "textShadow", "textTransform", "height"];
|
|
3
3
|
type SafeCSSProperty = (typeof SAFE_CSS_PROPERTIES)[number];
|
|
4
4
|
declare const SAFE_CSS_PROPERTIES_ALTERNATES: Partial<Record<SafeCSSProperty, string[]>>;
|
|
5
5
|
declare const SAFE_CSS_PROPERTIES_WITH_ALTERNATES: string[];
|
|
@@ -16,5 +16,5 @@ type FontSources = FontSource[];
|
|
|
16
16
|
type Fonts = Record<CardElementStyleFontAttr, FontSources>;
|
|
17
17
|
type CardElementStyle = Partial<Record<CardElementStyleVariant, CardElementStyleVariantStyle> & Fonts>;
|
|
18
18
|
type ElementStyle = CardElementStyle;
|
|
19
|
-
export { CARD_ELEMENT_STYLE_FONTS_ATTR,
|
|
20
|
-
export type { CardElementStyle, CardElementStyleVariant, CardElementStyleVariantSelector, CardElementStyleVariantStyle, ElementStyle,
|
|
19
|
+
export { CARD_ELEMENT_STYLE_FONTS_ATTR, CARD_ELEMENT_STYLE_VARIANT_SELECTORS, CARD_ELEMENT_STYLE_VARIANTS, SAFE_CSS_PROPERTIES, SAFE_CSS_PROPERTIES_ALTERNATES, SAFE_CSS_PROPERTIES_WITH_ALTERNATES, };
|
|
20
|
+
export type { CardElementStyle, CardElementStyleVariant, CardElementStyleVariantSelector, CardElementStyleVariantStyle, ElementStyle, Fonts, FontSources, SafeCSSProperty, SafeStyle, };
|