fk-platform-sdk 1.0.40 → 1.0.41

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.
@@ -10,5 +10,4 @@ export interface NativeModuleManagerProvider {
10
10
  AppVersionModule: NativeModuleManager;
11
11
  DownloaderModule: NativeModuleManager;
12
12
  FontModule: NativeModuleManager;
13
- GenericUltraShareModule: NativeModuleManager;
14
13
  }
@@ -8,7 +8,6 @@ import { LocationModule } from "../interfaces/modules/LocationModule";
8
8
  import { AppVersionModule } from "../interfaces/modules/AppVersionModule";
9
9
  import { DownloaderModule } from "../interfaces/modules/DownloaderModule";
10
10
  import { FontModule } from "../interfaces/modules/FontModule";
11
- import { GenericUltraShareModule } from "../interfaces/modules/GenericUltraShareModule";
12
11
  export declare class ModuleManager {
13
12
  private moduleMap;
14
13
  constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
@@ -21,7 +20,6 @@ export declare class ModuleManager {
21
20
  getAppVersionModule(): AppVersionModule;
22
21
  getDownloaderModule(): DownloaderModule;
23
22
  getFontModule(): FontModule;
24
- getShareModule(): GenericUltraShareModule;
25
23
  private addModule;
26
24
  private getModule;
27
25
  }
@@ -9,7 +9,6 @@ var LocationModuleImpl_1 = require("../modules/LocationModuleImpl");
9
9
  var AppVersionModuleImpl_1 = require("../modules/AppVersionModuleImpl");
10
10
  var DownloaderModuleImpl_1 = require("../modules/DownloaderModuleImpl");
11
11
  var FontModuleImpl_1 = require("../modules/FontModuleImpl");
12
- var ShareModuleImpl_1 = require("../modules/ShareModuleImpl");
13
12
  var MODULE_NAME;
14
13
  (function (MODULE_NAME) {
15
14
  MODULE_NAME[MODULE_NAME["PERMISSION_MODULE"] = 0] = "PERMISSION_MODULE";
@@ -21,7 +20,6 @@ var MODULE_NAME;
21
20
  MODULE_NAME[MODULE_NAME["APP_VERSION_MODULE"] = 6] = "APP_VERSION_MODULE";
22
21
  MODULE_NAME[MODULE_NAME["DOWNLOADER_MODULE"] = 7] = "DOWNLOADER_MODULE";
23
22
  MODULE_NAME[MODULE_NAME["FONT_MODULE"] = 8] = "FONT_MODULE";
24
- MODULE_NAME[MODULE_NAME["SHARE_MODULE"] = 9] = "SHARE_MODULE";
25
23
  })(MODULE_NAME || (MODULE_NAME = {}));
26
24
  var ModuleManager = /** @class */ (function () {
27
25
  function ModuleManager(nativeModuleCallbackManager) {
@@ -35,7 +33,6 @@ var ModuleManager = /** @class */ (function () {
35
33
  this.addModule(MODULE_NAME.APP_VERSION_MODULE, new AppVersionModuleImpl_1.AppVersionModuleImpl(nativeModuleCallbackManager));
36
34
  this.addModule(MODULE_NAME.DOWNLOADER_MODULE, new DownloaderModuleImpl_1.DownloaderModuleImpl(nativeModuleCallbackManager));
37
35
  this.addModule(MODULE_NAME.FONT_MODULE, new FontModuleImpl_1.FontModuleImpl(nativeModuleCallbackManager));
38
- this.addModule(MODULE_NAME.SHARE_MODULE, new ShareModuleImpl_1.ShareModuleImpl(nativeModuleCallbackManager));
39
36
  }
40
37
  ModuleManager.prototype.getNavigationModule = function () {
41
38
  return this.getModule(MODULE_NAME.NAVIGATION_MODULE);
@@ -64,9 +61,6 @@ var ModuleManager = /** @class */ (function () {
64
61
  ModuleManager.prototype.getFontModule = function () {
65
62
  return this.getModule(MODULE_NAME.FONT_MODULE);
66
63
  };
67
- ModuleManager.prototype.getShareModule = function () {
68
- return this.getModule(MODULE_NAME.SHARE_MODULE);
69
- };
70
64
  ModuleManager.prototype.addModule = function (moduleName, nativeModule) {
71
65
  this.moduleMap[moduleName] = nativeModule;
72
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fk-platform-sdk",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
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",
@@ -1,5 +0,0 @@
1
- import { NativeModuleResponse } from "../NativeModuleResponse";
2
- import { GenericShareManagerResponse } from "../../types/GenericShareManagerResponse";
3
- export interface GenericUltraShareModule {
4
- share: (title: string, text: string, url: string, fileContentUri: string) => Promise<NativeModuleResponse<GenericShareManagerResponse>>;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { NativeModuleResponse } from "../interfaces/NativeModuleResponse";
2
- import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
3
- import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
4
- import { GenericUltraShareModule } from "../interfaces/modules/GenericUltraShareModule";
5
- import { GenericShareManagerResponse } from "../types/GenericShareManagerResponse";
6
- export declare class ShareModuleImpl extends NativeModule<NativeModuleManager> implements GenericUltraShareModule {
7
- constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
8
- share(title: string, text: string, url: string, fileContentUri: string): Promise<NativeModuleResponse<GenericShareManagerResponse>>;
9
- }
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return function (d, b) {
7
- extendStatics(d, b);
8
- function __() { this.constructor = d; }
9
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10
- };
11
- })();
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
14
- var ShareModuleImpl = /** @class */ (function (_super) {
15
- __extends(ShareModuleImpl, _super);
16
- function ShareModuleImpl(nativeModuleCallbackManager) {
17
- return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider()
18
- .GenericUltraShareModule, nativeModuleCallbackManager) || this;
19
- }
20
- ShareModuleImpl.prototype.share = function (title, text, url, fileContentUri) {
21
- var _this = this;
22
- return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
23
- _this.postMessage({
24
- methodName: "share",
25
- requestId: requestId,
26
- title: title,
27
- text: text,
28
- url: url,
29
- fileContentUri: fileContentUri
30
- });
31
- });
32
- };
33
- return ShareModuleImpl;
34
- }(NativeModuleHelper_1.NativeModule));
35
- exports.ShareModuleImpl = ShareModuleImpl;
@@ -1,3 +0,0 @@
1
- export interface GenericShareManagerResponse {
2
- message: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });