@monetize.software/sdk-extension 3.0.0-alpha.11 → 3.0.0-alpha.13
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,4 +1,4 @@
|
|
|
1
|
-
import { PaywallUI as BasePaywallUI, PaywallUIOptions } from '
|
|
1
|
+
import { PaywallUI as BasePaywallUI, PaywallUIOptions } from '@monetize.software/sdk';
|
|
2
2
|
/** Опции extension'овского PaywallUI. Убраны:
|
|
3
3
|
* - `client` — RemoteBillingClient создаётся автоматически
|
|
4
4
|
* - `storage` — storage живёт в offscreen'е, content его не видит
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthChangeEvent, AuthSession, AuthUser, LastLogin, OAuthProvider, OtpVerifyType, SignUpResult } from '
|
|
1
|
+
import { AuthChangeEvent, AuthSession, AuthUser, LastLogin, OAuthProvider, OtpVerifyType, SignUpResult } from '@monetize.software/sdk';
|
|
2
2
|
import { TransportClient } from '../shared/transport-client';
|
|
3
3
|
export type AuthChangeListener = (event: AuthChangeEvent, session: AuthSession | null) => void;
|
|
4
4
|
export interface RemoteAuthClientOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Balance, CheckoutResult, Identity, PaywallBootstrap, PaywallOffer, PaywallPrice, PaywallPurchaseDetailed, PaywallUser, TrialConfig } from '
|
|
2
|
-
import { StorageAdapter } from '
|
|
3
|
-
import { TrialStore } from '
|
|
1
|
+
import { Balance, CheckoutResult, Identity, PaywallBootstrap, PaywallOffer, PaywallPrice, PaywallPurchaseDetailed, PaywallUser, TrialConfig } from '@monetize.software/sdk';
|
|
2
|
+
import { StorageAdapter } from '@monetize.software/sdk';
|
|
3
|
+
import { TrialStore } from '@monetize.software/sdk';
|
|
4
4
|
import { TransportClient } from '../shared/transport-client';
|
|
5
5
|
export type UserListener = (user: PaywallUser) => void;
|
|
6
6
|
export type BalanceListener = (balances: Balance[]) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TrialStore } from '
|
|
2
|
-
import { TrialConfig, TrialStatus } from '
|
|
1
|
+
import { TrialStore } from '@monetize.software/sdk';
|
|
2
|
+
import { TrialConfig, TrialStatus } from '@monetize.software/sdk';
|
|
3
3
|
import { TransportClient } from '../shared/transport-client';
|
|
4
4
|
export declare class RemoteTrialStore implements TrialStore {
|
|
5
5
|
private readonly transport;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BillingClient } from '
|
|
2
|
-
import { AuthClient } from '
|
|
3
|
-
import { EventTracker } from '
|
|
1
|
+
import { BillingClient } from '@monetize.software/sdk';
|
|
2
|
+
import { AuthClient } from '@monetize.software/sdk';
|
|
3
|
+
import { EventTracker } from '@monetize.software/sdk';
|
|
4
4
|
import { OffscreenServerOptions } from './index';
|
|
5
5
|
export declare class OffscreenServer {
|
|
6
6
|
readonly billing: BillingClient;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Balance, CheckoutResult, Identity, PaywallBootstrap, PaywallPrice, PaywallPurchaseDetailed, PaywallUser, TrialConfig, TrialStatus } from '
|
|
2
|
-
import { AuthChangeEvent, AuthSession, LastLogin, OAuthProvider, OtpVerifyType, SignUpResult } from '
|
|
1
|
+
import { Balance, CheckoutResult, Identity, PaywallBootstrap, PaywallPrice, PaywallPurchaseDetailed, PaywallUser, TrialConfig, TrialStatus } from '@monetize.software/sdk';
|
|
2
|
+
import { AuthChangeEvent, AuthSession, LastLogin, OAuthProvider, OtpVerifyType, SignUpResult } from '@monetize.software/sdk';
|
|
3
3
|
declare module './protocol' {
|
|
4
4
|
interface RequestParamsMap {
|
|
5
5
|
handshake: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monetize.software/sdk-extension",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.13",
|
|
4
4
|
"description": "Monetize SDK for Chrome extensions — single source of truth via offscreen document, drop-in compatible with @monetize.software/sdk public API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|