@wavemaker/app-rn-runtime 11.12.0-next.28188 → 11.12.1-next.28204

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 (71) 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 +62 -65
  4. package/components/basic/video/video.component.js.map +1 -1
  5. package/components/container/container.component.js +2 -5
  6. package/components/container/container.component.js.map +1 -1
  7. package/components/device/barcodescanner/barcodescanner.component.js +18 -26
  8. package/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  9. package/components/device/camera/camera.component.js +19 -28
  10. package/components/device/camera/camera.component.js.map +1 -1
  11. package/components/input/fileupload/fileupload.component.js +13 -17
  12. package/components/input/fileupload/fileupload.component.js.map +1 -1
  13. package/components/navigation/appnavbar/appnavbar.component.js +2 -5
  14. package/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  15. package/components/page/left-panel/left-panel.component.js +2 -3
  16. package/components/page/left-panel/left-panel.component.js.map +1 -1
  17. package/components/page/page-content/page-content.component.js +18 -23
  18. package/components/page/page-content/page-content.component.js.map +1 -1
  19. package/components/page/tabbar/tabbar.component.js +2 -5
  20. package/components/page/tabbar/tabbar.component.js.map +1 -1
  21. package/core/device/calendar-service.js +1 -7
  22. package/core/device/calendar-service.js.map +1 -1
  23. package/core/device/camera-service.js +0 -6
  24. package/core/device/camera-service.js.map +1 -1
  25. package/core/device/contacts-service.js +1 -7
  26. package/core/device/contacts-service.js.map +1 -1
  27. package/core/device/location-service.js +1 -7
  28. package/core/device/location-service.js.map +1 -1
  29. package/core/device/scan-service.js +0 -6
  30. package/core/device/scan-service.js.map +1 -1
  31. package/core/utils.js +6 -0
  32. package/core/utils.js.map +1 -1
  33. package/npm-shrinkwrap.json +94 -94
  34. package/package-lock.json +94 -94
  35. package/package.json +2 -2
  36. package/runtime/services/device/calendar-service.js +5 -9
  37. package/runtime/services/device/calendar-service.js.map +1 -1
  38. package/runtime/services/device/camera-service.js +22 -39
  39. package/runtime/services/device/camera-service.js.map +1 -1
  40. package/runtime/services/device/contacts-service.js +5 -6
  41. package/runtime/services/device/contacts-service.js.map +1 -1
  42. package/runtime/services/device/location-service.js +4 -4
  43. package/runtime/services/device/location-service.js.map +1 -1
  44. package/runtime/services/device/permissions.js +39 -34
  45. package/runtime/services/device/permissions.js.map +1 -1
  46. package/runtime/services/device/scan-service.js +3 -4
  47. package/runtime/services/device/scan-service.js.map +1 -1
  48. package/variables/device/calendar/create-event.operation.js +1 -12
  49. package/variables/device/calendar/create-event.operation.js.map +1 -1
  50. package/variables/device/calendar/delete-event.operation.js +1 -12
  51. package/variables/device/calendar/delete-event.operation.js.map +1 -1
  52. package/variables/device/calendar/get-events.operation.js +1 -12
  53. package/variables/device/calendar/get-events.operation.js.map +1 -1
  54. package/variables/device/camera/capture-image.operation.js +1 -8
  55. package/variables/device/camera/capture-image.operation.js.map +1 -1
  56. package/variables/device/camera/capture-video.operation.js +1 -7
  57. package/variables/device/camera/capture-video.operation.js.map +1 -1
  58. package/variables/device/contacts/get-contacts.operation.js +1 -12
  59. package/variables/device/contacts/get-contacts.operation.js.map +1 -1
  60. package/variables/device/device/current-geo-position.operation.js +1 -12
  61. package/variables/device/device/current-geo-position.operation.js.map +1 -1
  62. package/variables/device/file/upload-file.operation.js +3 -17
  63. package/variables/device/file/upload-file.operation.js.map +1 -1
  64. package/variables/device/scan/scan.operation.js +1 -12
  65. package/variables/device/scan/scan.operation.js.map +1 -1
  66. package/core/device/av-service.js +0 -8
  67. package/core/device/av-service.js.map +0 -1
  68. package/core/device/fileupload-service.js +0 -8
  69. package/core/device/fileupload-service.js.map +0 -1
  70. package/runtime/services/device/permission-service.js +0 -5
  71. package/runtime/services/device/permission-service.js.map +0 -1
@@ -1,20 +1,9 @@
1
- import React from 'react';
2
- import { PermissionConsumer } from '@wavemaker/app-rn-runtime/runtime/services/device/permission-service';
3
- import { CalendarPluginConsumer } from "@wavemaker/app-rn-runtime/core/device/calendar-service";
4
1
  export class GetEventsOperation {
5
2
  constructor(calendar) {
6
3
  this.calendar = calendar;
7
4
  }
8
5
  invoke(params) {
9
- return /*#__PURE__*/React.createElement(PermissionConsumer, null, permissionService => {
10
- return /*#__PURE__*/React.createElement(CalendarPluginConsumer, null, calendarPluginService => {
11
- return this.calendar.getEvents({
12
- ...params,
13
- calendarPluginService,
14
- permissionService
15
- });
16
- });
17
- });
6
+ return this.calendar.getEvents(params);
18
7
  }
19
8
  }
20
9
  //# sourceMappingURL=get-events.operation.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","PermissionConsumer","CalendarPluginConsumer","GetEventsOperation","constructor","calendar","invoke","params","createElement","permissionService","calendarPluginService","getEvents"],"sources":["get-events.operation.tsx"],"sourcesContent":["import React from 'react';\nimport { PermissionConsumer, PermissionService } from '@wavemaker/app-rn-runtime/runtime/services/device/permission-service';\nimport { Operation, Output } from '../operation.provider';\nimport { CalendarInput, CalendarPluginConsumer, CalendarPluginService, CalendarService } from \"@wavemaker/app-rn-runtime/core/device/calendar-service\";\n\nexport interface CalendarEvent extends Output {\n title: string;\n message: string;\n location: string;\n startDate: string | Date;\n endDate: string | Date;\n}\n\nexport class GetEventsOperation implements Operation {\n constructor(private calendar: CalendarService) {}\n\n public invoke(params: CalendarInput): any {\n return (\n <PermissionConsumer>\n {(permissionService: PermissionService) => {\n return (\n <CalendarPluginConsumer>\n {(calendarPluginService: CalendarPluginService) => {\n return this.calendar.getEvents({ ...params, calendarPluginService, permissionService });\n }}\n </CalendarPluginConsumer>\n );\n }}\n </PermissionConsumer>\n );\n }\n}\n\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,QAA2B,sEAAsE;AAE5H,SAAwBC,sBAAsB,QAAgD,wDAAwD;AAUtJ,OAAO,MAAMC,kBAAkB,CAAsB;EACnDC,WAAWA,CAASC,QAAyB,EAAE;IAAA,KAA3BA,QAAyB,GAAzBA,QAAyB;EAAG;EAEzCC,MAAMA,CAACC,MAAqB,EAAO;IACxC,oBACEP,KAAA,CAAAQ,aAAA,CAACP,kBAAkB,QACfQ,iBAAoC,IAAK;MACzC,oBACET,KAAA,CAAAQ,aAAA,CAACN,sBAAsB,QACnBQ,qBAA4C,IAAK;QACjD,OAAO,IAAI,CAACL,QAAQ,CAACM,SAAS,CAAC;UAAE,GAAGJ,MAAM;UAAEG,qBAAqB;UAAED;QAAkB,CAAC,CAAC;MACzF,CACsB,CAAC;IAE7B,CACkB,CAAC;EAEzB;AACF","ignoreList":[]}
1
+ {"version":3,"names":["GetEventsOperation","constructor","calendar","invoke","params","getEvents"],"sources":["get-events.operation.tsx"],"sourcesContent":["import { Operation, Output } from '../operation.provider';\nimport { CalendarInput, CalendarService } from \"@wavemaker/app-rn-runtime/core/device/calendar-service\";\n\nexport interface CalendarEvent extends Output {\n title: string;\n message: string;\n location: string;\n startDate: string | Date;\n endDate: string | Date;\n}\n\nexport class GetEventsOperation implements Operation {\n constructor(private calendar: CalendarService) {}\n\n public invoke(params: CalendarInput): Promise<Array<CalendarEvent>> {\n return this.calendar.getEvents(params);\n }\n}\n\n"],"mappings":"AAWA,OAAO,MAAMA,kBAAkB,CAAsB;EACnDC,WAAWA,CAASC,QAAyB,EAAE;IAAA,KAA3BA,QAAyB,GAAzBA,QAAyB;EAAG;EAEzCC,MAAMA,CAACC,MAAqB,EAAiC;IAClE,OAAO,IAAI,CAACF,QAAQ,CAACG,SAAS,CAACD,MAAM,CAAC;EACxC;AACF","ignoreList":[]}
@@ -1,16 +1,9 @@
1
- import React from 'react';
2
- import { PermissionConsumer } from "@wavemaker/app-rn-runtime/runtime/services/device/permission-service";
3
1
  export class CaptureImageOperation {
4
2
  constructor(camera) {
5
3
  this.camera = camera;
6
4
  }
7
5
  invoke(params) {
8
- return /*#__PURE__*/React.createElement(PermissionConsumer, null, permissionService => {
9
- return this.camera.captureImage({
10
- ...params,
11
- permissionService
12
- });
13
- });
6
+ return this.camera.captureImage(params);
14
7
  }
15
8
  }
16
9
  //# sourceMappingURL=capture-image.operation.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","PermissionConsumer","CaptureImageOperation","constructor","camera","invoke","params","createElement","permissionService","captureImage"],"sources":["capture-image.operation.tsx"],"sourcesContent":["import React from 'react';\nimport {CameraInput, CameraService} from \"@wavemaker/app-rn-runtime/core/device/camera-service\";\nimport { Operation, Output } from '../operation.provider';\nimport { PermissionConsumer, PermissionService } from \"@wavemaker/app-rn-runtime/runtime/services/device/permission-service\";\n\nexport interface CaptureImageOutput extends Output {\n imagePath: string;\n content: string;\n}\n\nexport class CaptureImageOperation implements Operation {\n constructor(private camera: CameraService) {}\n\n public invoke(params: CameraInput): any {\n return (\n <PermissionConsumer>\n {(permissionService: PermissionService) => {\n return this.camera.captureImage({...params, permissionService});\n }}\n </PermissionConsumer>\n )\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAASC,kBAAkB,QAA2B,sEAAsE;AAO5H,OAAO,MAAMC,qBAAqB,CAAsB;EACtDC,WAAWA,CAASC,MAAqB,EAAE;IAAA,KAAvBA,MAAqB,GAArBA,MAAqB;EAAG;EAErCC,MAAMA,CAACC,MAAmB,EAAO;IACtC,oBACEN,KAAA,CAAAO,aAAA,CAACN,kBAAkB,QACfO,iBAAoC,IAAK;MACzC,OAAO,IAAI,CAACJ,MAAM,CAACK,YAAY,CAAC;QAAC,GAAGH,MAAM;QAAEE;MAAiB,CAAC,CAAC;IACjE,CACkB,CAAC;EAEzB;AACF","ignoreList":[]}
1
+ {"version":3,"names":["CaptureImageOperation","constructor","camera","invoke","params","captureImage"],"sources":["capture-image.operation.tsx"],"sourcesContent":["import {CameraInput, CameraService} from \"@wavemaker/app-rn-runtime/core/device/camera-service\";\nimport { Operation, Output } from '../operation.provider';\n\nexport interface CaptureImageOutput extends Output {\n imagePath: string;\n content: string;\n}\n\nexport class CaptureImageOperation implements Operation {\n constructor(private camera: CameraService) {}\n\n public invoke(params: CameraInput): Promise<CaptureImageOutput> {\n return this.camera.captureImage(params);\n }\n}\n"],"mappings":"AAQA,OAAO,MAAMA,qBAAqB,CAAsB;EACtDC,WAAWA,CAASC,MAAqB,EAAE;IAAA,KAAvBA,MAAqB,GAArBA,MAAqB;EAAG;EAErCC,MAAMA,CAACC,MAAmB,EAA+B;IAC9D,OAAO,IAAI,CAACF,MAAM,CAACG,YAAY,CAACD,MAAM,CAAC;EACzC;AACF","ignoreList":[]}
@@ -1,15 +1,9 @@
1
- import React from 'react';
2
- import { PermissionConsumer } from "@wavemaker/app-rn-runtime/runtime/services/device/permission-service";
3
1
  export class CaptureVideoOperation {
4
2
  constructor(camera) {
5
3
  this.camera = camera;
6
4
  }
7
5
  invoke() {
8
- return /*#__PURE__*/React.createElement(PermissionConsumer, null, permissionService => {
9
- return this.camera.captureVideo({
10
- permissionService
11
- });
12
- });
6
+ return this.camera.captureVideo();
13
7
  }
14
8
  }
15
9
  //# sourceMappingURL=capture-video.operation.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","PermissionConsumer","CaptureVideoOperation","constructor","camera","invoke","createElement","permissionService","captureVideo"],"sources":["capture-video.operation.tsx"],"sourcesContent":["import React from 'react';\nimport { CameraService } from \"@wavemaker/app-rn-runtime/core/device/camera-service\";\nimport { Operation, Output } from '../operation.provider';\nimport { PermissionConsumer, PermissionService } from \"@wavemaker/app-rn-runtime/runtime/services/device/permission-service\";\n\nexport interface CaptureVideoOutput extends Output {\n videoPath: string;\n content: string;\n}\n\nexport class CaptureVideoOperation implements Operation {\n constructor(private camera: CameraService) {\n }\n\n public invoke(): any {\n return (\n <PermissionConsumer>\n {(permissionService: PermissionService) => {\n return this.camera.captureVideo({permissionService});\n }}\n </PermissionConsumer>\n )\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAASC,kBAAkB,QAA2B,sEAAsE;AAO5H,OAAO,MAAMC,qBAAqB,CAAsB;EACtDC,WAAWA,CAASC,MAAqB,EAAE;IAAA,KAAvBA,MAAqB,GAArBA,MAAqB;EACzC;EAEOC,MAAMA,CAAA,EAAQ;IACnB,oBACEL,KAAA,CAAAM,aAAA,CAACL,kBAAkB,QACfM,iBAAoC,IAAK;MACzC,OAAO,IAAI,CAACH,MAAM,CAACI,YAAY,CAAC;QAACD;MAAiB,CAAC,CAAC;IACtD,CACkB,CAAC;EAEzB;AACF","ignoreList":[]}
1
+ {"version":3,"names":["CaptureVideoOperation","constructor","camera","invoke","captureVideo"],"sources":["capture-video.operation.tsx"],"sourcesContent":["import { CameraService } from \"@wavemaker/app-rn-runtime/core/device/camera-service\";\nimport { Operation, Output } from '../operation.provider';\n\nexport interface CaptureVideoOutput extends Output {\n videoPath: string;\n content: string;\n}\n\nexport class CaptureVideoOperation implements Operation {\n constructor(private camera: CameraService) {\n }\n\n public invoke(): Promise<CaptureVideoOutput> {\n return this.camera.captureVideo();\n }\n}\n"],"mappings":"AAQA,OAAO,MAAMA,qBAAqB,CAAsB;EACtDC,WAAWA,CAASC,MAAqB,EAAE;IAAA,KAAvBA,MAAqB,GAArBA,MAAqB;EACzC;EAEOC,MAAMA,CAAA,EAAgC;IAC3C,OAAO,IAAI,CAACD,MAAM,CAACE,YAAY,CAAC,CAAC;EACnC;AACF","ignoreList":[]}
@@ -1,20 +1,9 @@
1
- import React from 'react';
2
- import { ContactsPluginConsumer } from "@wavemaker/app-rn-runtime/core/device/contacts-service";
3
- import { PermissionConsumer } from "@wavemaker/app-rn-runtime/runtime/services/device/permission-service";
4
1
  export class GetContactsOperation {
5
2
  constructor(contacts) {
6
3
  this.contacts = contacts;
7
4
  }
8
5
  invoke(params) {
9
- /*#__PURE__*/React.createElement(PermissionConsumer, null, permissionService => {
10
- return /*#__PURE__*/React.createElement(ContactsPluginConsumer, null, contactsPluginService => {
11
- return this.contacts.getContacts({
12
- ...params,
13
- contactsPluginService,
14
- permissionService
15
- });
16
- });
17
- });
6
+ return this.contacts.getContacts(params);
18
7
  }
19
8
  }
20
9
  //# sourceMappingURL=get-contacts.operation.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","ContactsPluginConsumer","PermissionConsumer","GetContactsOperation","constructor","contacts","invoke","params","createElement","permissionService","contactsPluginService","getContacts"],"sources":["get-contacts.operation.tsx"],"sourcesContent":["import React from 'react';\nimport { Output, Operation } from '../operation.provider';\nimport { ContactsInput, ContactsPluginConsumer, ContactsPluginService, ContactsService } from \"@wavemaker/app-rn-runtime/core/device/contacts-service\";\nimport { PermissionConsumer, PermissionService } from \"@wavemaker/app-rn-runtime/runtime/services/device/permission-service\";\n\nexport interface PhoneNumber {\n value: string;\n}\n\nexport interface ContactsOutput extends Output{\n id: number;\n displayName: string;\n phoneNumbers: Array<PhoneNumber>;\n}\n\nexport class GetContactsOperation implements Operation {\n constructor(private contacts: ContactsService) {}\n\n public invoke(params: ContactsInput): any {\n <PermissionConsumer>\n {(permissionService: PermissionService) => {\n return (\n <ContactsPluginConsumer>\n {(contactsPluginService: ContactsPluginService) => {\n return this.contacts.getContacts({ ...params, contactsPluginService, permissionService });\n }}\n </ContactsPluginConsumer>\n )\n }}\n </PermissionConsumer>\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAAwBC,sBAAsB,QAAgD,wDAAwD;AACtJ,SAASC,kBAAkB,QAA2B,sEAAsE;AAY5H,OAAO,MAAMC,oBAAoB,CAAsB;EACrDC,WAAWA,CAASC,QAAyB,EAAE;IAAA,KAA3BA,QAAyB,GAAzBA,QAAyB;EAAG;EAEzCC,MAAMA,CAACC,MAAqB,EAAO;IACxC,aAAAP,KAAA,CAAAQ,aAAA,CAACN,kBAAkB,QACfO,iBAAoC,IAAK;MACzC,oBACET,KAAA,CAAAQ,aAAA,CAACP,sBAAsB,QACnBS,qBAA4C,IAAK;QACjD,OAAO,IAAI,CAACL,QAAQ,CAACM,WAAW,CAAC;UAAE,GAAGJ,MAAM;UAAEG,qBAAqB;UAAED;QAAkB,CAAC,CAAC;MAC3F,CACsB,CAAC;IAE7B,CACkB,CAAC;EACvB;AACF","ignoreList":[]}
1
+ {"version":3,"names":["GetContactsOperation","constructor","contacts","invoke","params","getContacts"],"sources":["get-contacts.operation.ts"],"sourcesContent":["import { Output, Operation } from '../operation.provider';\nimport { ContactsInput, ContactsService } from \"@wavemaker/app-rn-runtime/core/device/contacts-service\";\n\nexport interface PhoneNumber {\n value: string;\n}\n\nexport interface ContactsOutput extends Output{\n id: number;\n displayName: string;\n phoneNumbers: Array<PhoneNumber>;\n}\n\nexport class GetContactsOperation implements Operation {\n constructor(private contacts: ContactsService) {}\n\n public invoke(params: ContactsInput): Promise<Array<ContactsOutput>> {\n return this.contacts.getContacts(params);\n }\n}\n"],"mappings":"AAaA,OAAO,MAAMA,oBAAoB,CAAsB;EACrDC,WAAWA,CAASC,QAAyB,EAAE;IAAA,KAA3BA,QAAyB,GAAzBA,QAAyB;EAAG;EAEzCC,MAAMA,CAACC,MAAqB,EAAkC;IACnE,OAAO,IAAI,CAACF,QAAQ,CAACG,WAAW,CAACD,MAAM,CAAC;EAC1C;AACF","ignoreList":[]}
@@ -1,20 +1,9 @@
1
- import React from 'react';
2
- import { LocationPluginConsumer } from "@wavemaker/app-rn-runtime/core/device/location-service";
3
- import { PermissionConsumer } from "@wavemaker/app-rn-runtime/runtime/services/device/permission-service";
4
1
  export class CurrentGeoPositionOperation {
5
2
  constructor(location) {
6
3
  this.location = location;
7
4
  }
8
5
  invoke(params) {
9
- return /*#__PURE__*/React.createElement(PermissionConsumer, null, permissionService => {
10
- return /*#__PURE__*/React.createElement(LocationPluginConsumer, null, locationPluginService => {
11
- return this.location.getCurrentGeoPosition({
12
- ...params,
13
- locationPluginService,
14
- permissionService
15
- });
16
- });
17
- });
6
+ return this.location.getCurrentGeoPosition(params);
18
7
  }
19
8
  }
20
9
  //# sourceMappingURL=current-geo-position.operation.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","LocationPluginConsumer","PermissionConsumer","CurrentGeoPositionOperation","constructor","location","invoke","params","createElement","permissionService","locationPluginService","getCurrentGeoPosition"],"sources":["current-geo-position.operation.tsx"],"sourcesContent":["import React from 'react';\nimport { Input, Operation, Output } from \"@wavemaker/app-rn-runtime/variables/device/operation.provider\";\nimport { LocationPluginConsumer, LocationPluginService, LocationService } from \"@wavemaker/app-rn-runtime/core/device/location-service\";\nimport { PermissionConsumer, PermissionService } from \"@wavemaker/app-rn-runtime/runtime/services/device/permission-service\";\n\nexport interface coordsOutput {\n latitude: number | null;\n longitude: number | null;\n altitude: number | null;\n accuracy: number | null;\n altitudeAccuracy: number | null;\n heading: number | null;\n speed: number | null;\n}\n\nexport interface GeoPositionOutput extends Output {\n coords: coordsOutput;\n timestamp: number | null;\n}\n\nexport interface GeoPositionInput extends Input {\n maximumAge: number;\n timeout: number;\n enableHighAccuracy: boolean;\n permissionService: any;\n locationPluginService: any;\n}\n\nexport class CurrentGeoPositionOperation implements Operation {\n constructor(private location: LocationService) {\n }\n\n public invoke(params: GeoPositionInput): any {\n return (\n <PermissionConsumer>\n {(permissionService: PermissionService) => {\n return (\n <LocationPluginConsumer>\n {(locationPluginService: LocationPluginService) => {\n return this.location.getCurrentGeoPosition({...params, locationPluginService, permissionService});\n }}\n </LocationPluginConsumer>\n );\n }}\n </PermissionConsumer>\n )\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,sBAAsB,QAAgD,wDAAwD;AACvI,SAASC,kBAAkB,QAA2B,sEAAsE;AAyB5H,OAAO,MAAMC,2BAA2B,CAAsB;EAC5DC,WAAWA,CAASC,QAAyB,EAAE;IAAA,KAA3BA,QAAyB,GAAzBA,QAAyB;EAC7C;EAEOC,MAAMA,CAACC,MAAwB,EAAO;IAC3C,oBACEP,KAAA,CAAAQ,aAAA,CAACN,kBAAkB,QACfO,iBAAoC,IAAK;MACzC,oBACET,KAAA,CAAAQ,aAAA,CAACP,sBAAsB,QACnBS,qBAA4C,IAAK;QACjD,OAAO,IAAI,CAACL,QAAQ,CAACM,qBAAqB,CAAC;UAAC,GAAGJ,MAAM;UAAEG,qBAAqB;UAAED;QAAiB,CAAC,CAAC;MACnG,CACoB,CAAC;IAE3B,CACkB,CAAC;EAEzB;AACF","ignoreList":[]}
1
+ {"version":3,"names":["CurrentGeoPositionOperation","constructor","location","invoke","params","getCurrentGeoPosition"],"sources":["current-geo-position.operation.ts"],"sourcesContent":["import { Input, Operation, Output } from \"@wavemaker/app-rn-runtime/variables/device/operation.provider\";\nimport { LocationService } from \"@wavemaker/app-rn-runtime/core/device/location-service\";\n\nexport interface coordsOutput {\n latitude: number | null;\n longitude: number | null;\n altitude: number | null;\n accuracy: number | null;\n altitudeAccuracy: number | null;\n heading: number | null;\n speed: number | null;\n}\n\nexport interface GeoPositionOutput extends Output {\n coords: coordsOutput;\n timestamp: number | null;\n}\n\nexport interface GeoPositionInput extends Input {\n maximumAge: number;\n timeout: number;\n enableHighAccuracy: boolean;\n}\n\nexport class CurrentGeoPositionOperation implements Operation {\n constructor(private location: LocationService) {\n }\n\n public invoke(params: GeoPositionInput): Promise<GeoPositionOutput> {\n return this.location.getCurrentGeoPosition(params);\n }\n}\n"],"mappings":"AAwBA,OAAO,MAAMA,2BAA2B,CAAsB;EAC5DC,WAAWA,CAASC,QAAyB,EAAE;IAAA,KAA3BA,QAAyB,GAAzBA,QAAyB;EAC7C;EAEOC,MAAMA,CAACC,MAAwB,EAA8B;IAClE,OAAO,IAAI,CAACF,QAAQ,CAACG,qBAAqB,CAACD,MAAM,CAAC;EACpD;AACF","ignoreList":[]}
@@ -1,26 +1,15 @@
1
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
- import React from 'react';
5
1
  import axios from 'axios';
6
2
  import { endsWith } from 'lodash-es';
3
+ import * as DocumentPicker from 'expo-document-picker';
7
4
  import { FileExtensionTypesMap } from '@wavemaker/app-rn-runtime/core/file-extension-types';
8
- import { FileUploadPluginConsumer } from '@wavemaker/app-rn-runtime/core/device/fileupload-service';
9
5
  const namedParameters = {
10
6
  copyToCacheDirectory: false,
11
7
  multiple: false,
12
8
  type: '*/*'
13
9
  };
14
10
  export class UploadFileOperation {
15
- constructor() {
16
- _defineProperty(this, "fileUploadService", null);
17
- }
18
- setFileUploadService(service) {
19
- this.fileUploadService = service;
20
- }
21
11
  chooseFile() {
22
- var _this$fileUploadServi;
23
- return (_this$fileUploadServi = this.fileUploadService) === null || _this$fileUploadServi === void 0 ? void 0 : _this$fileUploadServi.getDocumentAsync(namedParameters).then(response => {
12
+ return DocumentPicker.getDocumentAsync(namedParameters).then(response => {
24
13
  const assets = response === null || response === void 0 ? void 0 : response.assets[0];
25
14
  return {
26
15
  uri: assets.uri,
@@ -36,10 +25,7 @@ export class UploadFileOperation {
36
25
  }
37
26
  return Promise.resolve().then(() => {
38
27
  if (!params.localFile && params.browse) {
39
- return /*#__PURE__*/React.createElement(FileUploadPluginConsumer, null, fileUploadPluginService => {
40
- this.fileUploadService = fileUploadPluginService;
41
- return this.chooseFile();
42
- });
28
+ return this.chooseFile();
43
29
  } else {
44
30
  const name = params.localFile.split('/').pop() || '';
45
31
  return {
@@ -1 +1 @@
1
- {"version":3,"names":["React","axios","endsWith","FileExtensionTypesMap","FileUploadPluginConsumer","namedParameters","copyToCacheDirectory","multiple","type","UploadFileOperation","constructor","_defineProperty","setFileUploadService","service","fileUploadService","chooseFile","_this$fileUploadServi","getDocumentAsync","then","response","assets","uri","name","invoke","params","serverUrl","remoteFolder","Promise","resolve","localFile","browse","createElement","fileUploadPluginService","split","pop","data","fileName","arr","fileExtension","length","toLocaleLowerCase","fileObj","formData","FormData","append","url","method","headers","error"],"sources":["upload-file.operation.tsx"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport { Platform } from 'react-native';\nimport { endsWith } from 'lodash-es';\n\nimport { Operation } from '@wavemaker/app-rn-runtime/variables/device/operation.provider';\nimport { FileExtensionTypesMap } from '@wavemaker/app-rn-runtime/core/file-extension-types';\nimport { FileUploadPluginConsumer, FileUploadPluginService } from '@wavemaker/app-rn-runtime/core/device/fileupload-service';\n\nexport interface UploadFileInput {\n localFile: string;\n remoteFolder: string;\n serverUrl: string;\n browse: boolean;\n}\n\nexport interface UploadFileOutput {\n fileName: string;\n path: string;\n length: number;\n success: boolean;\n inlinePath: string;\n errorMessage: string;\n}\n\nconst namedParameters = {\n copyToCacheDirectory: false,\n multiple: false,\n type: '*/*'\n};\n\nexport class UploadFileOperation implements Operation {\n public fileUploadService: any = null as any;\n\n public setFileUploadService(service: FileUploadPluginService) {\n this.fileUploadService = service;\n }\n\n public chooseFile() {\n return this.fileUploadService?.getDocumentAsync(namedParameters).then((response: any) => {\n const assets = response?.assets[0];\n return { uri: assets.uri, name: assets.name };\n });\n }\n\n public invoke(params: UploadFileInput): any {\n params.serverUrl = endsWith(params.serverUrl, '/') ? params.serverUrl : params.serverUrl + '/';\n let serverUrl = params.serverUrl + 'services/file/uploadFile';\n if (params.remoteFolder) {\n serverUrl = serverUrl + '?relativePath=' + params.remoteFolder\n }\n return Promise.resolve().then(() => {\n if (!params.localFile && params.browse) {\n return (\n <FileUploadPluginConsumer>\n {(fileUploadPluginService: FileUploadPluginService) => {\n this.fileUploadService = fileUploadPluginService;\n return this.chooseFile();\n }}\n </FileUploadPluginConsumer>\n ) as any;\n } else {\n const name: string | undefined = params.localFile.split('/').pop() || '';\n return { uri: params.localFile, name: name };\n }\n }).then((data: { uri: string | undefined, name: string }) => {\n if (!data || !data?.uri) {\n return;\n }\n const fileName: string | undefined = data.name;\n const arr: any = fileName.split('.');\n const fileExtension: string = ('.' + arr[arr.length - 1]).toLocaleLowerCase();\n let fileObj = {\n uri: data.uri,\n type: FileExtensionTypesMap[fileExtension],\n name: fileName,\n };\n\n let formData = new FormData();\n formData.append('files', fileObj as any);\n return axios({\n url: serverUrl,\n method: 'POST',\n headers: {\n 'Content-Type': 'multipart/form-data'\n },\n data: formData\n }).then(\n (response) => {\n return response.data[0];\n }, error => error);\n });\n }\n}\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["axios","endsWith","DocumentPicker","FileExtensionTypesMap","namedParameters","copyToCacheDirectory","multiple","type","UploadFileOperation","chooseFile","getDocumentAsync","then","response","assets","uri","name","invoke","params","serverUrl","remoteFolder","Promise","resolve","localFile","browse","split","pop","data","fileName","arr","fileExtension","length","toLocaleLowerCase","fileObj","formData","FormData","append","url","method","headers","error"],"sources":["upload-file.operation.tsx"],"sourcesContent":["import axios from 'axios';\nimport { Platform } from 'react-native';\nimport { endsWith } from 'lodash-es';\nimport * as DocumentPicker from 'expo-document-picker';\n\nimport { Operation } from '@wavemaker/app-rn-runtime/variables/device/operation.provider';\nimport { FileExtensionTypesMap } from '@wavemaker/app-rn-runtime/core/file-extension-types';\n\nexport interface UploadFileInput {\n localFile: string;\n remoteFolder: string;\n serverUrl: string;\n browse: boolean;\n}\n\nexport interface UploadFileOutput {\n fileName: string;\n path: string;\n length: number;\n success: boolean;\n inlinePath: string;\n errorMessage: string;\n}\n\nconst namedParameters = {\n copyToCacheDirectory: false,\n multiple: false,\n type: '*/*'\n};\n\nexport class UploadFileOperation implements Operation {\n\n public chooseFile() {\n return DocumentPicker.getDocumentAsync(namedParameters).then((response: any) => {\n const assets = response?.assets[0];\n return { uri: assets.uri, name: assets.name };\n });\n }\n\n public invoke(params: UploadFileInput): Promise<UploadFileOutput> {\n params.serverUrl = endsWith(params.serverUrl, '/') ? params.serverUrl : params.serverUrl + '/';\n let serverUrl = params.serverUrl + 'services/file/uploadFile';\n if (params.remoteFolder) {\n serverUrl = serverUrl + '?relativePath=' + params.remoteFolder\n }\n return Promise.resolve().then(() => {\n if (!params.localFile && params.browse) {\n return this.chooseFile();\n } else {\n const name: string | undefined = params.localFile.split('/').pop() || '';\n return { uri: params.localFile, name: name };\n }\n }).then((data: { uri: string | undefined, name: string }) => {\n if (!data || !data?.uri) {\n return;\n }\n const fileName: string | undefined = data.name;\n const arr: any = fileName.split('.');\n const fileExtension: string = ('.' + arr[arr.length - 1]).toLocaleLowerCase();\n let fileObj = {\n uri: data.uri,\n type: FileExtensionTypesMap[fileExtension],\n name: fileName,\n };\n\n let formData = new FormData();\n formData.append('files', fileObj as any);\n return axios({\n url: serverUrl,\n method: 'POST',\n headers: {\n 'Content-Type': 'multipart/form-data'\n },\n data: formData\n }).then(\n (response) => {\n return response.data[0];\n }, error => error);\n });\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,QAAQ,QAAQ,WAAW;AACpC,OAAO,KAAKC,cAAc,MAAM,sBAAsB;AAGtD,SAASC,qBAAqB,QAAQ,qDAAqD;AAkB3F,MAAMC,eAAe,GAAG;EACtBC,oBAAoB,EAAE,KAAK;EAC3BC,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAMC,mBAAmB,CAAsB;EAE7CC,UAAUA,CAAA,EAAG;IAClB,OAAOP,cAAc,CAACQ,gBAAgB,CAACN,eAAe,CAAC,CAACO,IAAI,CAAEC,QAAa,IAAK;MAC9E,MAAMC,MAAM,GAAGD,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEC,MAAM,CAAC,CAAC,CAAC;MAClC,OAAO;QAAEC,GAAG,EAAED,MAAM,CAACC,GAAG;QAAEC,IAAI,EAAEF,MAAM,CAACE;MAAK,CAAC;IAC/C,CAAC,CAAC;EACJ;EAEOC,MAAMA,CAACC,MAAuB,EAA6B;IAChEA,MAAM,CAACC,SAAS,GAAGjB,QAAQ,CAACgB,MAAM,CAACC,SAAS,EAAE,GAAG,CAAC,GAAGD,MAAM,CAACC,SAAS,GAAGD,MAAM,CAACC,SAAS,GAAG,GAAG;IAC9F,IAAIA,SAAS,GAAGD,MAAM,CAACC,SAAS,GAAG,0BAA0B;IAC7D,IAAID,MAAM,CAACE,YAAY,EAAE;MACvBD,SAAS,GAAGA,SAAS,GAAG,gBAAgB,GAAGD,MAAM,CAACE,YAAY;IAChE;IACA,OAAOC,OAAO,CAACC,OAAO,CAAC,CAAC,CAACV,IAAI,CAAC,MAAM;MAClC,IAAI,CAACM,MAAM,CAACK,SAAS,IAAIL,MAAM,CAACM,MAAM,EAAE;QACtC,OAAO,IAAI,CAACd,UAAU,CAAC,CAAC;MAC1B,CAAC,MAAM;QACL,MAAMM,IAAwB,GAAGE,MAAM,CAACK,SAAS,CAACE,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,IAAI,EAAE;QACxE,OAAO;UAAEX,GAAG,EAAEG,MAAM,CAACK,SAAS;UAAEP,IAAI,EAAEA;QAAK,CAAC;MAC9C;IACF,CAAC,CAAC,CAACJ,IAAI,CAAEe,IAA+C,IAAK;MAC3D,IAAI,CAACA,IAAI,IAAI,EAACA,IAAI,aAAJA,IAAI,eAAJA,IAAI,CAAEZ,GAAG,GAAE;QACvB;MACF;MACA,MAAMa,QAA4B,GAAGD,IAAI,CAACX,IAAI;MAC9C,MAAMa,GAAQ,GAAGD,QAAQ,CAACH,KAAK,CAAC,GAAG,CAAC;MACpC,MAAMK,aAAqB,GAAG,CAAC,GAAG,GAAGD,GAAG,CAACA,GAAG,CAACE,MAAM,GAAG,CAAC,CAAC,EAAEC,iBAAiB,CAAC,CAAC;MAC7E,IAAIC,OAAO,GAAG;QACZlB,GAAG,EAAEY,IAAI,CAACZ,GAAG;QACbP,IAAI,EAAEJ,qBAAqB,CAAC0B,aAAa,CAAC;QAC1Cd,IAAI,EAAEY;MACR,CAAC;MAED,IAAIM,QAAQ,GAAG,IAAIC,QAAQ,CAAC,CAAC;MAC7BD,QAAQ,CAACE,MAAM,CAAC,OAAO,EAAEH,OAAc,CAAC;MACxC,OAAOhC,KAAK,CAAC;QACXoC,GAAG,EAAElB,SAAS;QACdmB,MAAM,EAAE,MAAM;QACdC,OAAO,EAAE;UACP,cAAc,EAAE;QAClB,CAAC;QACDZ,IAAI,EAAEO;MACR,CAAC,CAAC,CAACtB,IAAI,CACJC,QAAQ,IAAK;QACd,OAAOA,QAAQ,CAACc,IAAI,CAAC,CAAC,CAAC;MACzB,CAAC,EAAEa,KAAK,IAAIA,KAAK,CAAC;IACpB,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
@@ -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 {}\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;AAMzB,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":[]}