insert-affiliate-react-native-sdk 1.6.3 → 1.6.5

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,7 +1,10 @@
1
1
  {
2
2
  "permissions": {
3
3
  "allow": [
4
- "WebFetch(domain:github.com)"
4
+ "WebFetch(domain:github.com)",
5
+ "Bash(npm run build:*)",
6
+ "Bash(npm install:*)",
7
+ "Bash(npm view:*)"
5
8
  ],
6
9
  "deny": []
7
10
  }
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  type T_DEEPLINK_IAP_PROVIDER = {
3
3
  children: React.ReactNode;
4
4
  };
5
+ export type InsertAffiliateIdentifierChangeCallback = (identifier: string | null) => void;
5
6
  type CustomPurchase = {
6
7
  [key: string]: any;
7
8
  };
@@ -16,7 +17,9 @@ type T_DEEPLINK_IAP_CONTEXT = {
16
17
  trackEvent: (eventName: string) => Promise<void>;
17
18
  setShortCode: (shortCode: string) => Promise<void>;
18
19
  setInsertAffiliateIdentifier: (referringLink: string) => Promise<void | string>;
19
- initialize: (code: string | null, verboseLogging?: boolean) => Promise<void>;
20
+ setInsertAffiliateIdentifierChangeCallback: (callback: InsertAffiliateIdentifierChangeCallback | null) => void;
21
+ handleInsertLinks: (url: string) => Promise<boolean>;
22
+ initialize: (code: string | null, verboseLogging?: boolean, insertLinksEnabled?: boolean, insertLinksClipboardEnabled?: boolean) => Promise<void>;
20
23
  isInitialized: boolean;
21
24
  };
22
25
  export declare const DeepLinkIapContext: React.Context<T_DEEPLINK_IAP_CONTEXT>;