fk-platform-sdk 1.0.38-beta1 → 1.0.38

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,5 +1,5 @@
1
1
  import { NativeModuleResponse } from "../NativeModuleResponse";
2
2
  import { GenericShareManagerResponse } from "../../types/GenericShareManagerResponse";
3
3
  export interface GenericUltraShareModule {
4
- share: (title: string, text: string, url: string) => Promise<NativeModuleResponse<GenericShareManagerResponse>>;
4
+ share: (title: string, text: string, url: string, fileContentUri: string) => Promise<NativeModuleResponse<GenericShareManagerResponse>>;
5
5
  }
@@ -5,5 +5,5 @@ import { GenericUltraShareModule } from "../interfaces/modules/GenericUltraShare
5
5
  import { GenericShareManagerResponse } from "../types/GenericShareManagerResponse";
6
6
  export declare class ShareModuleImpl extends NativeModule<NativeModuleManager> implements GenericUltraShareModule {
7
7
  constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
8
- share(title: string, text: string, url: string): Promise<NativeModuleResponse<GenericShareManagerResponse>>;
8
+ share(title: string, text: string, url: string, fileContentUri: string): Promise<NativeModuleResponse<GenericShareManagerResponse>>;
9
9
  }
@@ -17,7 +17,7 @@ var ShareModuleImpl = /** @class */ (function (_super) {
17
17
  return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider()
18
18
  .GenericUltraShareModule, nativeModuleCallbackManager) || this;
19
19
  }
20
- ShareModuleImpl.prototype.share = function (title, text, url) {
20
+ ShareModuleImpl.prototype.share = function (title, text, url, fileContentUri) {
21
21
  var _this = this;
22
22
  return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
23
23
  _this.postMessage({
@@ -26,6 +26,7 @@ var ShareModuleImpl = /** @class */ (function (_super) {
26
26
  title: title,
27
27
  text: text,
28
28
  url: url,
29
+ fileContentUri: fileContentUri
29
30
  });
30
31
  });
31
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fk-platform-sdk",
3
- "version": "1.0.38-beta1",
3
+ "version": "1.0.38",
4
4
  "description": "SDK to enable external experience integration within flipkart app.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",