react-native-klarna-inapp-sdk
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -9,4 +9,4 @@ "use strict"; | ||
var _KlarnaCheckoutViewNativeComponent = _interopRequireWildcard(require("./specs/KlarnaCheckoutViewNativeComponent")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
class KlarnaCheckoutView extends _react.Component { | ||
@@ -66,3 +66,3 @@ constructor(props) { | ||
if (view != null) { | ||
_KlarnaCheckoutViewNativeComponent.RNKlarnaCheckoutViewCommands.setSnippet(view, snippet); | ||
_KlarnaCheckoutViewNativeComponent.Commands.setSnippet(view, snippet); | ||
} | ||
@@ -73,3 +73,3 @@ }; | ||
if (view != null) { | ||
_KlarnaCheckoutViewNativeComponent.RNKlarnaCheckoutViewCommands.suspend(view); | ||
_KlarnaCheckoutViewNativeComponent.Commands.suspend(view); | ||
} | ||
@@ -80,3 +80,3 @@ }; | ||
if (view != null) { | ||
_KlarnaCheckoutViewNativeComponent.RNKlarnaCheckoutViewCommands.resume(view); | ||
_KlarnaCheckoutViewNativeComponent.Commands.resume(view); | ||
} | ||
@@ -86,4 +86,3 @@ }; | ||
exports.KlarnaCheckoutView = KlarnaCheckoutView; | ||
var _default = KlarnaCheckoutView; | ||
exports.default = _default; | ||
var _default = exports.default = KlarnaCheckoutView; | ||
//# sourceMappingURL=KlarnaCheckoutView.js.map |
@@ -9,4 +9,4 @@ "use strict"; | ||
var _KlarnaPaymentViewNativeComponent = _interopRequireWildcard(require("./specs/KlarnaPaymentViewNativeComponent")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
class KlarnaPaymentView extends _react.Component { | ||
@@ -132,63 +132,41 @@ constructor(props) { | ||
} | ||
initialize = (() => { | ||
var _this = this; | ||
return function (clientToken) { | ||
let returnUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
const view = _this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.RNKlarnaPaymentViewCommands.initialize(view, clientToken, returnUrl || ''); | ||
} | ||
}; | ||
})(); | ||
load = (() => { | ||
var _this2 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this2.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.RNKlarnaPaymentViewCommands.load(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
initialize = (clientToken, returnUrl = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.initialize(view, clientToken, returnUrl || ''); | ||
} | ||
}; | ||
load = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.load(view, sessionData || ''); | ||
} | ||
}; | ||
loadPaymentReview = () => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.RNKlarnaPaymentViewCommands.loadPaymentReview(view); | ||
_KlarnaPaymentViewNativeComponent.Commands.loadPaymentReview(view); | ||
} | ||
}; | ||
authorize = (() => { | ||
var _this3 = this; | ||
return function () { | ||
let autoFinalize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | ||
let sessionData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
const view = _this3.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.RNKlarnaPaymentViewCommands.authorize(view, autoFinalize || true, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
reauthorize = (() => { | ||
var _this4 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this4.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.RNKlarnaPaymentViewCommands.reauthorize(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
finalize = (() => { | ||
var _this5 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this5.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.RNKlarnaPaymentViewCommands.finalize(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
authorize = (autoFinalize = true, sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.authorize(view, autoFinalize || true, sessionData || ''); | ||
} | ||
}; | ||
reauthorize = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.reauthorize(view, sessionData || ''); | ||
} | ||
}; | ||
finalize = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.finalize(view, sessionData || ''); | ||
} | ||
}; | ||
} | ||
exports.KlarnaPaymentView = KlarnaPaymentView; | ||
var _default = KlarnaPaymentView; | ||
exports.default = _default; | ||
var _default = exports.default = KlarnaPaymentView; | ||
//# sourceMappingURL=KlarnaPaymentView.js.map |
@@ -9,4 +9,4 @@ "use strict"; | ||
var _KlarnaStandaloneWebViewNativeComponent = _interopRequireWildcard(require("./specs/KlarnaStandaloneWebViewNativeComponent")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
class KlarnaStandaloneWebView extends _react.Component { | ||
@@ -65,3 +65,3 @@ constructor(props) { | ||
if (view != null) { | ||
_KlarnaStandaloneWebViewNativeComponent.RNKlarnaStandaloneWebViewCommands.load(view, url); | ||
_KlarnaStandaloneWebViewNativeComponent.Commands.load(view, url); | ||
} | ||
@@ -72,3 +72,3 @@ }; | ||
if (view != null) { | ||
_KlarnaStandaloneWebViewNativeComponent.RNKlarnaStandaloneWebViewCommands.goForward(view); | ||
_KlarnaStandaloneWebViewNativeComponent.Commands.goForward(view); | ||
} | ||
@@ -79,3 +79,3 @@ }; | ||
if (view != null) { | ||
_KlarnaStandaloneWebViewNativeComponent.RNKlarnaStandaloneWebViewCommands.goBack(view); | ||
_KlarnaStandaloneWebViewNativeComponent.Commands.goBack(view); | ||
} | ||
@@ -86,3 +86,3 @@ }; | ||
if (view != null) { | ||
_KlarnaStandaloneWebViewNativeComponent.RNKlarnaStandaloneWebViewCommands.reload(view); | ||
_KlarnaStandaloneWebViewNativeComponent.Commands.reload(view); | ||
} | ||
@@ -92,4 +92,3 @@ }; | ||
exports.KlarnaStandaloneWebView = KlarnaStandaloneWebView; | ||
var _default = KlarnaStandaloneWebView; | ||
exports.default = _default; | ||
var _default = exports.default = KlarnaStandaloneWebView; | ||
//# sourceMappingURL=KlarnaStandaloneWebView.js.map |
@@ -6,12 +6,10 @@ "use strict"; | ||
}); | ||
exports.default = exports.RNKlarnaCheckoutViewCommands = void 0; | ||
exports.default = exports.Commands = void 0; | ||
var _codegenNativeCommands = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands")); | ||
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const RNKlarnaCheckoutViewCommands = (0, _codegenNativeCommands.default)({ | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const Commands = exports.Commands = (0, _codegenNativeCommands.default)({ | ||
supportedCommands: ['setSnippet', 'suspend', 'resume'] | ||
}); | ||
exports.RNKlarnaCheckoutViewCommands = RNKlarnaCheckoutViewCommands; | ||
var _default = (0, _codegenNativeComponent.default)('RNKlarnaCheckoutView'); | ||
exports.default = _default; | ||
var _default = exports.default = (0, _codegenNativeComponent.default)('RNKlarnaCheckoutView'); | ||
//# sourceMappingURL=KlarnaCheckoutViewNativeComponent.js.map |
@@ -6,12 +6,10 @@ "use strict"; | ||
}); | ||
exports.default = exports.RNKlarnaPaymentViewCommands = void 0; | ||
exports.default = exports.Commands = void 0; | ||
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent")); | ||
var _codegenNativeCommands = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const RNKlarnaPaymentViewCommands = (0, _codegenNativeCommands.default)({ | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const Commands = exports.Commands = (0, _codegenNativeCommands.default)({ | ||
supportedCommands: ['initialize', 'load', 'loadPaymentReview', 'authorize', 'reauthorize', 'finalize'] | ||
}); | ||
exports.RNKlarnaPaymentViewCommands = RNKlarnaPaymentViewCommands; | ||
var _default = (0, _codegenNativeComponent.default)('RNKlarnaPaymentView'); | ||
exports.default = _default; | ||
var _default = exports.default = (0, _codegenNativeComponent.default)('RNKlarnaPaymentView'); | ||
//# sourceMappingURL=KlarnaPaymentViewNativeComponent.js.map |
@@ -6,12 +6,10 @@ "use strict"; | ||
}); | ||
exports.default = exports.RNKlarnaStandaloneWebViewCommands = void 0; | ||
exports.default = exports.Commands = void 0; | ||
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent")); | ||
var _codegenNativeCommands = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const RNKlarnaStandaloneWebViewCommands = (0, _codegenNativeCommands.default)({ | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const Commands = exports.Commands = (0, _codegenNativeCommands.default)({ | ||
supportedCommands: ['load', 'goBack', 'goForward', 'reload'] | ||
}); | ||
exports.RNKlarnaStandaloneWebViewCommands = RNKlarnaStandaloneWebViewCommands; | ||
var _default = (0, _codegenNativeComponent.default)('RNKlarnaStandaloneWebView'); | ||
exports.default = _default; | ||
var _default = exports.default = (0, _codegenNativeComponent.default)('RNKlarnaStandaloneWebView'); | ||
//# sourceMappingURL=KlarnaStandaloneWebViewNativeComponent.js.map |
import React, { Component } from 'react'; | ||
import RNKlarnaCheckoutView, { RNKlarnaCheckoutViewCommands } from './specs/KlarnaCheckoutViewNativeComponent'; | ||
import RNKlarnaCheckoutView, { Commands as RNKlarnaCheckoutViewCommands } from './specs/KlarnaCheckoutViewNativeComponent'; | ||
export class KlarnaCheckoutView extends Component { | ||
@@ -4,0 +4,0 @@ constructor(props) { |
import React, { Component } from 'react'; | ||
import RNKlarnaPaymentView, { RNKlarnaPaymentViewCommands } from './specs/KlarnaPaymentViewNativeComponent'; | ||
import RNKlarnaPaymentView, { Commands as RNKlarnaPaymentViewCommands } from './specs/KlarnaPaymentViewNativeComponent'; | ||
export class KlarnaPaymentView extends Component { | ||
@@ -123,22 +123,14 @@ constructor(props) { | ||
} | ||
initialize = (() => { | ||
var _this = this; | ||
return function (clientToken) { | ||
let returnUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
const view = _this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.initialize(view, clientToken, returnUrl || ''); | ||
} | ||
}; | ||
})(); | ||
load = (() => { | ||
var _this2 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this2.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.load(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
initialize = (clientToken, returnUrl = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.initialize(view, clientToken, returnUrl || ''); | ||
} | ||
}; | ||
load = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.load(view, sessionData || ''); | ||
} | ||
}; | ||
loadPaymentReview = () => { | ||
@@ -150,35 +142,22 @@ const view = this.paymentViewRef.current; | ||
}; | ||
authorize = (() => { | ||
var _this3 = this; | ||
return function () { | ||
let autoFinalize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | ||
let sessionData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
const view = _this3.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.authorize(view, autoFinalize || true, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
reauthorize = (() => { | ||
var _this4 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this4.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.reauthorize(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
finalize = (() => { | ||
var _this5 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this5.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.finalize(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
authorize = (autoFinalize = true, sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.authorize(view, autoFinalize || true, sessionData || ''); | ||
} | ||
}; | ||
reauthorize = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.reauthorize(view, sessionData || ''); | ||
} | ||
}; | ||
finalize = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.finalize(view, sessionData || ''); | ||
} | ||
}; | ||
} | ||
export default KlarnaPaymentView; | ||
//# sourceMappingURL=KlarnaPaymentView.js.map |
import React, { Component } from 'react'; | ||
import RNKlarnaStandaloneWebView, { RNKlarnaStandaloneWebViewCommands } from './specs/KlarnaStandaloneWebViewNativeComponent'; | ||
import RNKlarnaStandaloneWebView, { Commands as RNKlarnaStandaloneWebViewCommands } from './specs/KlarnaStandaloneWebViewNativeComponent'; | ||
export class KlarnaStandaloneWebView extends Component { | ||
@@ -4,0 +4,0 @@ constructor(props) { |
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands'; | ||
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; | ||
export const RNKlarnaCheckoutViewCommands = codegenNativeCommands({ | ||
export const Commands = codegenNativeCommands({ | ||
supportedCommands: ['setSnippet', 'suspend', 'resume'] | ||
@@ -5,0 +5,0 @@ }); |
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; | ||
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands'; | ||
export const RNKlarnaPaymentViewCommands = codegenNativeCommands({ | ||
export const Commands = codegenNativeCommands({ | ||
supportedCommands: ['initialize', 'load', 'loadPaymentReview', 'authorize', 'reauthorize', 'finalize'] | ||
@@ -5,0 +5,0 @@ }); |
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; | ||
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands'; | ||
export const RNKlarnaStandaloneWebViewCommands = codegenNativeCommands({ | ||
export const Commands = codegenNativeCommands({ | ||
supportedCommands: ['load', 'goBack', 'goForward', 'reload'] | ||
@@ -5,0 +5,0 @@ }); |
@@ -0,1 +1,3 @@ | ||
/// <reference types="react-native/types/modules/Codegen" /> | ||
/// <reference types="react-native/modules/Codegen" /> | ||
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; | ||
@@ -30,5 +32,5 @@ import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes'; | ||
} | ||
export declare const RNKlarnaCheckoutViewCommands: RNKlarnaCheckoutViewNativeCommands; | ||
export declare const Commands: RNKlarnaCheckoutViewNativeCommands; | ||
declare const _default: KlarnaCheckoutViewNativeComponentType; | ||
export default _default; | ||
//# sourceMappingURL=KlarnaCheckoutViewNativeComponent.d.ts.map |
@@ -0,1 +1,3 @@ | ||
/// <reference types="react-native/types/modules/Codegen" /> | ||
/// <reference types="react-native/modules/Codegen" /> | ||
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; | ||
@@ -46,5 +48,5 @@ import type { HostComponent } from 'react-native'; | ||
} | ||
export declare const RNKlarnaPaymentViewCommands: RNKlarnaPaymentViewNativeCommands; | ||
export declare const Commands: RNKlarnaPaymentViewNativeCommands; | ||
declare const _default: KlarnaPaymentViewNativeComponentType; | ||
export default _default; | ||
//# sourceMappingURL=KlarnaPaymentViewNativeComponent.d.ts.map |
@@ -0,1 +1,3 @@ | ||
/// <reference types="react-native/types/modules/Codegen" /> | ||
/// <reference types="react-native/modules/Codegen" /> | ||
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; | ||
@@ -63,5 +65,5 @@ import type { HostComponent } from 'react-native'; | ||
} | ||
export declare const RNKlarnaStandaloneWebViewCommands: RNKlarnaStandaloneWebViewNativeCommands; | ||
export declare const Commands: RNKlarnaStandaloneWebViewNativeCommands; | ||
declare const _default: KlarnaStandaloneWebViewNativeComponentType; | ||
export default _default; | ||
//# sourceMappingURL=KlarnaStandaloneWebViewNativeComponent.d.ts.map |
{ | ||
"name": "react-native-klarna-inapp-sdk", | ||
"title": "Klarna Mobile SDK React Native", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "This library wraps Klarna Mobile SDK and exposes its functionality as React Native components.", | ||
@@ -86,3 +86,2 @@ "main": "lib/commonjs/index", | ||
"react-native-builder-bob": "^0.20.0", | ||
"turbo": "^1.10.7", | ||
"typescript": "^5.0.2" | ||
@@ -93,3 +92,3 @@ }, | ||
}, | ||
"packageManager": "yarn@1.22.22", | ||
"packageManager": "yarn@3.6.4", | ||
"react-native-builder-bob": { | ||
@@ -96,0 +95,0 @@ "source": "src", |
@@ -51,3 +51,3 @@ import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; | ||
export const RNKlarnaCheckoutViewCommands: RNKlarnaCheckoutViewNativeCommands = | ||
export const Commands: RNKlarnaCheckoutViewNativeCommands = | ||
codegenNativeCommands<RNKlarnaCheckoutViewNativeCommands>({ | ||
@@ -54,0 +54,0 @@ supportedCommands: ['setSnippet', 'suspend', 'resume'], |
@@ -85,3 +85,3 @@ import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; | ||
export const RNKlarnaPaymentViewCommands: RNKlarnaPaymentViewNativeCommands = | ||
export const Commands: RNKlarnaPaymentViewNativeCommands = | ||
codegenNativeCommands<RNKlarnaPaymentViewNativeCommands>({ | ||
@@ -88,0 +88,0 @@ supportedCommands: [ |
@@ -88,3 +88,3 @@ import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; | ||
export const RNKlarnaStandaloneWebViewCommands: RNKlarnaStandaloneWebViewNativeCommands = | ||
export const Commands: RNKlarnaStandaloneWebViewNativeCommands = | ||
codegenNativeCommands<RNKlarnaStandaloneWebViewNativeCommands>({ | ||
@@ -91,0 +91,0 @@ supportedCommands: ['load', 'goBack', 'goForward', 'reload'], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18
346699
124
1912