@wavemaker/app-rn-runtime 11.12.0-rc.219 → 11.12.0-rc.6240

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.
Files changed (67) hide show
  1. package/components/basic/audio/audio.component.js +47 -52
  2. package/components/basic/audio/audio.component.js.map +1 -1
  3. package/components/basic/video/video.component.js +64 -89
  4. package/components/basic/video/video.component.js.map +1 -1
  5. package/components/device/barcodescanner/barcodescanner.component.js +18 -26
  6. package/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  7. package/components/device/camera/camera.component.js +19 -28
  8. package/components/device/camera/camera.component.js.map +1 -1
  9. package/components/input/fileupload/fileupload.component.js +13 -17
  10. package/components/input/fileupload/fileupload.component.js.map +1 -1
  11. package/components/page/page-content/page-content.component.js +18 -2
  12. package/components/page/page-content/page-content.component.js.map +1 -1
  13. package/components/page/tabbar/tabbar.component.js +4 -3
  14. package/components/page/tabbar/tabbar.component.js.map +1 -1
  15. package/core/base.component.js +2 -1
  16. package/core/base.component.js.map +1 -1
  17. package/core/device/calendar-service.js +1 -7
  18. package/core/device/calendar-service.js.map +1 -1
  19. package/core/device/camera-service.js +0 -6
  20. package/core/device/camera-service.js.map +1 -1
  21. package/core/device/contacts-service.js +1 -7
  22. package/core/device/contacts-service.js.map +1 -1
  23. package/core/device/location-service.js +1 -7
  24. package/core/device/location-service.js.map +1 -1
  25. package/core/device/scan-service.js +0 -6
  26. package/core/device/scan-service.js.map +1 -1
  27. package/core/utils.js +6 -0
  28. package/core/utils.js.map +1 -1
  29. package/npm-shrinkwrap.json +52 -48
  30. package/package-lock.json +52 -48
  31. package/package.json +2 -2
  32. package/runtime/services/device/calendar-service.js +5 -9
  33. package/runtime/services/device/calendar-service.js.map +1 -1
  34. package/runtime/services/device/camera-service.js +22 -39
  35. package/runtime/services/device/camera-service.js.map +1 -1
  36. package/runtime/services/device/contacts-service.js +5 -6
  37. package/runtime/services/device/contacts-service.js.map +1 -1
  38. package/runtime/services/device/location-service.js +4 -4
  39. package/runtime/services/device/location-service.js.map +1 -1
  40. package/runtime/services/device/permissions.js +39 -34
  41. package/runtime/services/device/permissions.js.map +1 -1
  42. package/runtime/services/device/scan-service.js +3 -4
  43. package/runtime/services/device/scan-service.js.map +1 -1
  44. package/variables/device/calendar/create-event.operation.js +1 -12
  45. package/variables/device/calendar/create-event.operation.js.map +1 -1
  46. package/variables/device/calendar/delete-event.operation.js +1 -12
  47. package/variables/device/calendar/delete-event.operation.js.map +1 -1
  48. package/variables/device/calendar/get-events.operation.js +1 -12
  49. package/variables/device/calendar/get-events.operation.js.map +1 -1
  50. package/variables/device/camera/capture-image.operation.js +1 -8
  51. package/variables/device/camera/capture-image.operation.js.map +1 -1
  52. package/variables/device/camera/capture-video.operation.js +1 -7
  53. package/variables/device/camera/capture-video.operation.js.map +1 -1
  54. package/variables/device/contacts/get-contacts.operation.js +1 -12
  55. package/variables/device/contacts/get-contacts.operation.js.map +1 -1
  56. package/variables/device/device/current-geo-position.operation.js +1 -12
  57. package/variables/device/device/current-geo-position.operation.js.map +1 -1
  58. package/variables/device/file/upload-file.operation.js +3 -17
  59. package/variables/device/file/upload-file.operation.js.map +1 -1
  60. package/variables/device/scan/scan.operation.js +1 -12
  61. package/variables/device/scan/scan.operation.js.map +1 -1
  62. package/core/device/av-service.js +0 -8
  63. package/core/device/av-service.js.map +0 -1
  64. package/core/device/fileupload-service.js +0 -8
  65. package/core/device/fileupload-service.js.map +0 -1
  66. package/runtime/services/device/permission-service.js +0 -5
  67. package/runtime/services/device/permission-service.js.map +0 -1
@@ -1,20 +1,9 @@
1
- import React from 'react';
2
- import { ScanPluginConsumer } from "@wavemaker/app-rn-runtime/core/device/scan-service";
3
- import { PermissionConsumer } from "@wavemaker/app-rn-runtime/runtime/services/device/permission-service";
4
1
  export class ScanOperation {
5
2
  constructor(scan) {
6
3
  this.scan = scan;
7
4
  }
8
5
  invoke(params) {
9
- return /*#__PURE__*/React.createElement(PermissionConsumer, null, permissionService => {
10
- return /*#__PURE__*/React.createElement(ScanPluginConsumer, null, scanPluginService => {
11
- return this.scan.scanBarcode({
12
- ...params,
13
- scanPluginService,
14
- permissionService
15
- });
16
- });
17
- });
6
+ return this.scan.scanBarcode(params);
18
7
  }
19
8
  }
20
9
  //# sourceMappingURL=scan.operation.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","ScanPluginConsumer","PermissionConsumer","ScanOperation","constructor","scan","invoke","params","createElement","permissionService","scanPluginService","scanBarcode"],"sources":["scan.operation.tsx"],"sourcesContent":["import React from 'react';\nimport { ScanPluginConsumer, ScanPluginService, ScanService } from \"@wavemaker/app-rn-runtime/core/device/scan-service\";\nimport { Operation, Input, Output } from '../operation.provider';\nimport { PermissionConsumer, PermissionService } from \"@wavemaker/app-rn-runtime/runtime/services/device/permission-service\";\n\nexport interface ScanInput extends Input {\n barcodeFormat: string;\n scanPluginService: any;\n permissionService: any;\n}\n\nexport interface ScanOutput extends Output {\n text : string;\n format : string;\n cancelled : boolean;\n}\n\nexport class ScanOperation implements Operation {\n\n constructor(private scan: ScanService) {}\n\n public invoke(params: ScanInput): any {\n return (\n <PermissionConsumer>\n {(permissionService: PermissionService) => {\n return (\n <ScanPluginConsumer>\n {(scanPluginService: ScanPluginService) => {\n return this.scan.scanBarcode({ ...params, scanPluginService, permissionService });\n }}\n </ScanPluginConsumer>\n );\n }}\n </PermissionConsumer>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,QAAwC,oDAAoD;AAEvH,SAASC,kBAAkB,QAA2B,sEAAsE;AAc5H,OAAO,MAAMC,aAAa,CAAsB;EAE9CC,WAAWA,CAASC,IAAiB,EAAE;IAAA,KAAnBA,IAAiB,GAAjBA,IAAiB;EAAG;EAEjCC,MAAMA,CAACC,MAAiB,EAAO;IACpC,oBACEP,KAAA,CAAAQ,aAAA,CAACN,kBAAkB,QACfO,iBAAoC,IAAK;MACzC,oBACET,KAAA,CAAAQ,aAAA,CAACP,kBAAkB,QACfS,iBAAoC,IAAK;QACzC,OAAO,IAAI,CAACL,IAAI,CAACM,WAAW,CAAC;UAAE,GAAGJ,MAAM;UAAEG,iBAAiB;UAAED;QAAkB,CAAC,CAAC;MACnF,CACkB,CAAC;IAEzB,CACkB,CAAC;EAEzB;AACF","ignoreList":[]}
1
+ {"version":3,"names":["ScanOperation","constructor","scan","invoke","params","scanBarcode"],"sources":["scan.operation.tsx"],"sourcesContent":["import { ScanService } from \"@wavemaker/app-rn-runtime/core/device/scan-service\";\nimport { Operation, Input, Output } from '../operation.provider';\n\nexport interface ScanInput extends Input {\n barcodeFormat: string;\n}\n\nexport interface ScanOutput extends Output {\n text : string;\n format : string;\n cancelled : boolean;\n}\n\nexport class ScanOperation implements Operation {\n\n constructor(private scan: ScanService) {}\n\n public invoke(params: ScanInput): Promise<ScanOutput> {\n return this.scan.scanBarcode(params);\n }\n}\n"],"mappings":"AAaA,OAAO,MAAMA,aAAa,CAAsB;EAE9CC,WAAWA,CAASC,IAAiB,EAAE;IAAA,KAAnBA,IAAiB,GAAjBA,IAAiB;EAAG;EAEjCC,MAAMA,CAACC,MAAiB,EAAuB;IACpD,OAAO,IAAI,CAACF,IAAI,CAACG,WAAW,CAACD,MAAM,CAAC;EACtC;AACF","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- const AudioContext = /*#__PURE__*/React.createContext(null);
3
- const VideoContext = /*#__PURE__*/React.createContext(null);
4
- export const AudioProvider = AudioContext.Provider;
5
- export const AudioConsumer = AudioContext.Consumer;
6
- export const VideoProvider = VideoContext.Provider;
7
- export const VideoConsumer = VideoContext.Consumer;
8
- //# sourceMappingURL=av-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","AudioContext","createContext","VideoContext","AudioProvider","Provider","AudioConsumer","Consumer","VideoProvider","VideoConsumer"],"sources":["av-service.ts"],"sourcesContent":["import React from 'react';\n\nexport interface AudioService {\n createAudio: (source: any, params: any) => any\n}\nexport interface VideoService {\n VideoView: any;\n createVideoPlayer: (source: any) => any;\n}\nconst AudioContext = React.createContext<AudioService>(null as any);\nconst VideoContext = React.createContext<VideoService>(null as any);\n\nexport const AudioProvider = AudioContext.Provider;\nexport const AudioConsumer = AudioContext.Consumer;\nexport const VideoProvider = VideoContext.Provider;\nexport const VideoConsumer = VideoContext.Consumer;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AASzB,MAAMC,YAAY,gBAAGD,KAAK,CAACE,aAAa,CAAe,IAAW,CAAC;AACnE,MAAMC,YAAY,gBAAGH,KAAK,CAACE,aAAa,CAAe,IAAW,CAAC;AAEnE,OAAO,MAAME,aAAa,GAAGH,YAAY,CAACI,QAAQ;AAClD,OAAO,MAAMC,aAAa,GAAGL,YAAY,CAACM,QAAQ;AAClD,OAAO,MAAMC,aAAa,GAAGL,YAAY,CAACE,QAAQ;AAClD,OAAO,MAAMI,aAAa,GAAGN,YAAY,CAACI,QAAQ","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
-
3
- // * expo-document-picker plugin
4
-
5
- const FileUploadPluginContext = /*#__PURE__*/React.createContext(null);
6
- export const FileUploadPluginProvider = FileUploadPluginContext.Provider;
7
- export const FileUploadPluginConsumer = FileUploadPluginContext.Consumer;
8
- //# sourceMappingURL=fileupload-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","FileUploadPluginContext","createContext","FileUploadPluginProvider","Provider","FileUploadPluginConsumer","Consumer"],"sources":["fileupload-service.ts"],"sourcesContent":["import React from 'react';\n\n// * expo-document-picker plugin\nexport interface FileUploadPluginService {\n getDocumentAsync: any;\n}\nconst FileUploadPluginContext = React.createContext<FileUploadPluginService>(null as any);\n\nexport const FileUploadPluginProvider = FileUploadPluginContext.Provider;\nexport const FileUploadPluginConsumer = FileUploadPluginContext.Consumer;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;;AAIA,MAAMC,uBAAuB,gBAAGD,KAAK,CAACE,aAAa,CAA0B,IAAW,CAAC;AAEzF,OAAO,MAAMC,wBAAwB,GAAGF,uBAAuB,CAACG,QAAQ;AACxE,OAAO,MAAMC,wBAAwB,GAAGJ,uBAAuB,CAACK,QAAQ","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- const PermissionContext = /*#__PURE__*/React.createContext(null);
3
- export const PermissionProvider = PermissionContext.Provider;
4
- export const PermissionConsumer = PermissionContext.Consumer;
5
- //# sourceMappingURL=permission-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","PermissionContext","createContext","PermissionProvider","Provider","PermissionConsumer","Consumer"],"sources":["permission-service.ts"],"sourcesContent":["import React from 'react';\n\nexport interface PermissionService {\n requestPermissions: (type: string) => Promise<void>;\n}\n\nconst PermissionContext = React.createContext<PermissionService>(null as any);\n\nexport const PermissionProvider = PermissionContext.Provider;\nexport const PermissionConsumer = PermissionContext.Consumer;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAMzB,MAAMC,iBAAiB,gBAAGD,KAAK,CAACE,aAAa,CAAoB,IAAW,CAAC;AAE7E,OAAO,MAAMC,kBAAkB,GAAGF,iBAAiB,CAACG,QAAQ;AAC5D,OAAO,MAAMC,kBAAkB,GAAGJ,iBAAiB,CAACK,QAAQ","ignoreList":[]}