native-fn 1.1.4 → 1.1.6

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 (61) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/native.cjs +9 -1
  3. package/dist/native.min.cjs +1 -1
  4. package/dist/native.min.mjs +1 -1
  5. package/dist/native.mjs +9 -1
  6. package/dist/native.umd.js +9 -1
  7. package/dist/native.umd.min.js +1 -1
  8. package/dist/plugin/appearance/src/plugin/open/types/open.d.ts +2 -1
  9. package/dist/plugin/appearance/src/plugin/permission/constants/index.d.ts +1 -0
  10. package/dist/plugin/appearance/src/plugin/permission/index.d.ts +1 -0
  11. package/dist/plugin/badge/src/plugin/open/types/open.d.ts +2 -1
  12. package/dist/plugin/badge/src/plugin/permission/constants/index.d.ts +1 -0
  13. package/dist/plugin/badge/src/plugin/permission/index.d.ts +1 -0
  14. package/dist/plugin/battery/src/plugin/open/types/open.d.ts +2 -1
  15. package/dist/plugin/battery/src/plugin/permission/constants/index.d.ts +1 -0
  16. package/dist/plugin/battery/src/plugin/permission/index.d.ts +1 -0
  17. package/dist/plugin/clipboard/src/plugin/open/types/open.d.ts +2 -1
  18. package/dist/plugin/clipboard/src/plugin/permission/constants/index.d.ts +1 -0
  19. package/dist/plugin/clipboard/src/plugin/permission/index.d.ts +1 -0
  20. package/dist/plugin/dimension/src/plugin/open/types/open.d.ts +2 -1
  21. package/dist/plugin/dimension/src/plugin/permission/constants/index.d.ts +1 -0
  22. package/dist/plugin/dimension/src/plugin/permission/index.d.ts +1 -0
  23. package/dist/plugin/fullscreen/src/plugin/open/types/open.d.ts +2 -1
  24. package/dist/plugin/fullscreen/src/plugin/permission/constants/index.d.ts +1 -0
  25. package/dist/plugin/fullscreen/src/plugin/permission/index.d.ts +1 -0
  26. package/dist/plugin/geolocation/index.cjs +8 -0
  27. package/dist/plugin/geolocation/index.mjs +8 -0
  28. package/dist/plugin/geolocation/src/plugin/open/types/open.d.ts +2 -1
  29. package/dist/plugin/geolocation/src/plugin/permission/constants/index.d.ts +1 -0
  30. package/dist/plugin/geolocation/src/plugin/permission/index.d.ts +1 -0
  31. package/dist/plugin/notification/index.cjs +8 -0
  32. package/dist/plugin/notification/index.mjs +8 -0
  33. package/dist/plugin/notification/src/plugin/open/types/open.d.ts +2 -1
  34. package/dist/plugin/notification/src/plugin/permission/constants/index.d.ts +1 -0
  35. package/dist/plugin/notification/src/plugin/permission/index.d.ts +1 -0
  36. package/dist/plugin/open/index.d.ts +3 -2
  37. package/dist/plugin/open/src/plugin/open/types/open.d.ts +2 -1
  38. package/dist/plugin/open/src/plugin/permission/constants/index.d.ts +1 -0
  39. package/dist/plugin/open/src/plugin/permission/index.d.ts +1 -0
  40. package/dist/plugin/permission/index.cjs +39 -28
  41. package/dist/plugin/permission/index.d.ts +3 -1
  42. package/dist/plugin/permission/index.mjs +9 -1
  43. package/dist/plugin/permission/src/plugin/open/types/open.d.ts +2 -1
  44. package/dist/plugin/permission/src/plugin/permission/constants/index.d.ts +1 -0
  45. package/dist/plugin/permission/src/plugin/permission/index.d.ts +1 -0
  46. package/dist/plugin/pip/src/plugin/open/types/open.d.ts +2 -1
  47. package/dist/plugin/pip/src/plugin/permission/constants/index.d.ts +1 -0
  48. package/dist/plugin/pip/src/plugin/permission/index.d.ts +1 -0
  49. package/dist/plugin/platform/src/plugin/open/types/open.d.ts +2 -1
  50. package/dist/plugin/platform/src/plugin/permission/constants/index.d.ts +1 -0
  51. package/dist/plugin/platform/src/plugin/permission/index.d.ts +1 -0
  52. package/dist/plugin/theme/src/plugin/open/types/open.d.ts +2 -1
  53. package/dist/plugin/theme/src/plugin/permission/constants/index.d.ts +1 -0
  54. package/dist/plugin/theme/src/plugin/permission/index.d.ts +1 -0
  55. package/dist/plugin/vibration/src/plugin/open/types/open.d.ts +2 -1
  56. package/dist/plugin/vibration/src/plugin/permission/constants/index.d.ts +1 -0
  57. package/dist/plugin/vibration/src/plugin/permission/index.d.ts +1 -0
  58. package/dist/src/plugin/open/types/open.d.ts +2 -1
  59. package/dist/src/plugin/permission/constants/index.d.ts +1 -0
  60. package/dist/src/plugin/permission/index.d.ts +1 -0
  61. package/package.json +1 -1
@@ -87,6 +87,7 @@ var PermissionType;
87
87
  PermissionType["Notification"] = "notifications";
88
88
  PermissionType["Geolocation"] = "geolocation";
89
89
  PermissionType["Camera"] = "camera";
90
+ PermissionType["ClipboardRead"] = "clipboard-read";
90
91
  PermissionType["Microphone"] = "microphone";
91
92
  PermissionType["MIDI"] = "midi";
92
93
  })(PermissionType || (PermissionType = {}));
@@ -177,6 +178,13 @@ function request$1(type) {
177
178
  })
178
179
  .catch(resolveAfterCheck);
179
180
  break;
181
+ case PermissionType.ClipboardRead:
182
+ if (typeof globalThis.navigator.clipboard === 'undefined' || typeof globalThis.navigator.clipboard.read === 'undefined')
183
+ return resolve(PermissionState.Unsupported);
184
+ globalThis.navigator.clipboard.read()
185
+ .then(resolveAfterCheck)
186
+ .catch(resolveAfterCheck);
187
+ break;
180
188
  case PermissionType.MIDI:
181
189
  if (typeof globalThis.navigator.requestMIDIAccess === 'undefined')
182
190
  return resolve(PermissionState.Unsupported);
@@ -58,9 +58,10 @@ export interface ContactOptions {
58
58
  }
59
59
  export type FileExtension = `.${string}`;
60
60
  export type FileMimeType = `${string}/${string}`;
61
+ export type FileAccept = (FileExtension | FileMimeType)[];
61
62
  export interface FileOptions {
62
63
  multiple?: boolean;
63
- accept?: (FileExtension | FileMimeType)[];
64
+ accept?: FileAccept;
64
65
  id?: string;
65
66
  startIn?: ExplorerStartIn;
66
67
  }
@@ -10,6 +10,7 @@ export declare enum PermissionType {
10
10
  Notification = "notifications",
11
11
  Geolocation = "geolocation",
12
12
  Camera = "camera",
13
+ ClipboardRead = "clipboard-read",
13
14
  Microphone = "microphone",
14
15
  MIDI = "midi"
15
16
  }
@@ -1,3 +1,4 @@
1
1
  import Permission from "./cores";
2
2
  export * from "./types";
3
+ export * from "./constants";
3
4
  export default Permission;
@@ -89,6 +89,7 @@ var PermissionType;
89
89
  PermissionType["Notification"] = "notifications";
90
90
  PermissionType["Geolocation"] = "geolocation";
91
91
  PermissionType["Camera"] = "camera";
92
+ PermissionType["ClipboardRead"] = "clipboard-read";
92
93
  PermissionType["Microphone"] = "microphone";
93
94
  PermissionType["MIDI"] = "midi";
94
95
  })(PermissionType || (PermissionType = {}));
@@ -179,6 +180,13 @@ function request(type) {
179
180
  })
180
181
  .catch(resolveAfterCheck);
181
182
  break;
183
+ case PermissionType.ClipboardRead:
184
+ if (typeof globalThis.navigator.clipboard === 'undefined' || typeof globalThis.navigator.clipboard.read === 'undefined')
185
+ return resolve(PermissionState.Unsupported);
186
+ globalThis.navigator.clipboard.read()
187
+ .then(resolveAfterCheck)
188
+ .catch(resolveAfterCheck);
189
+ break;
182
190
  case PermissionType.MIDI:
183
191
  if (typeof globalThis.navigator.requestMIDIAccess === 'undefined')
184
192
  return resolve(PermissionState.Unsupported);
@@ -87,6 +87,7 @@ var PermissionType;
87
87
  PermissionType["Notification"] = "notifications";
88
88
  PermissionType["Geolocation"] = "geolocation";
89
89
  PermissionType["Camera"] = "camera";
90
+ PermissionType["ClipboardRead"] = "clipboard-read";
90
91
  PermissionType["Microphone"] = "microphone";
91
92
  PermissionType["MIDI"] = "midi";
92
93
  })(PermissionType || (PermissionType = {}));
@@ -177,6 +178,13 @@ function request(type) {
177
178
  })
178
179
  .catch(resolveAfterCheck);
179
180
  break;
181
+ case PermissionType.ClipboardRead:
182
+ if (typeof globalThis.navigator.clipboard === 'undefined' || typeof globalThis.navigator.clipboard.read === 'undefined')
183
+ return resolve(PermissionState.Unsupported);
184
+ globalThis.navigator.clipboard.read()
185
+ .then(resolveAfterCheck)
186
+ .catch(resolveAfterCheck);
187
+ break;
180
188
  case PermissionType.MIDI:
181
189
  if (typeof globalThis.navigator.requestMIDIAccess === 'undefined')
182
190
  return resolve(PermissionState.Unsupported);
@@ -58,9 +58,10 @@ export interface ContactOptions {
58
58
  }
59
59
  export type FileExtension = `.${string}`;
60
60
  export type FileMimeType = `${string}/${string}`;
61
+ export type FileAccept = (FileExtension | FileMimeType)[];
61
62
  export interface FileOptions {
62
63
  multiple?: boolean;
63
- accept?: (FileExtension | FileMimeType)[];
64
+ accept?: FileAccept;
64
65
  id?: string;
65
66
  startIn?: ExplorerStartIn;
66
67
  }
@@ -10,6 +10,7 @@ export declare enum PermissionType {
10
10
  Notification = "notifications",
11
11
  Geolocation = "geolocation",
12
12
  Camera = "camera",
13
+ ClipboardRead = "clipboard-read",
13
14
  Microphone = "microphone",
14
15
  MIDI = "midi"
15
16
  }
@@ -1,3 +1,4 @@
1
1
  import Permission from "./cores";
2
2
  export * from "./types";
3
+ export * from "./constants";
3
4
  export default Permission;
@@ -249,9 +249,10 @@ interface ContactOptions {
249
249
  }
250
250
  type FileExtension = `.${string}`;
251
251
  type FileMimeType = `${string}/${string}`;
252
+ type FileAccept = (FileExtension | FileMimeType)[];
252
253
  interface FileOptions {
253
254
  multiple?: boolean;
254
- accept?: (FileExtension | FileMimeType)[];
255
+ accept?: FileAccept;
255
256
  id?: string;
256
257
  startIn?: ExplorerStartIn;
257
258
  }
@@ -432,4 +433,4 @@ interface ContactsManager {
432
433
  declare const Open: OpenInstance;
433
434
 
434
435
  export { AppOpenState, CameraType, CaptureType, DirectoryExploreMode, ExplorerStartIn, SETTING_URL, SettingType, Open as default };
435
- export type { AndroidAppInfo, AppInfo, AppOpenOptions, BundleId, CalendarAlarmOptions, CalendarAlarmTrigger, CalendarOptions, CalendarRecurDayValue, CalendarRecurLimit, CalendarRecurOptions, CalendarRecurWeekDay, CameraOptions, Contact, ContactOptions, DirectoryOptions, FileExtension, FileMimeType, FileOptions, FileWithPath, IOSAppInfo, MacOSAppInfo, MailOptions, MessageOptions, OpenInstance, PackageName, ProductId, StoreInfo, TelephoneOptions, TrackId, URLCandidate, URLCandidateOrFallback, URLStringOrFallback, WindowsAppInfo };
436
+ export type { AndroidAppInfo, AppInfo, AppOpenOptions, BundleId, CalendarAlarmOptions, CalendarAlarmTrigger, CalendarOptions, CalendarRecurDayValue, CalendarRecurLimit, CalendarRecurOptions, CalendarRecurWeekDay, CameraOptions, Contact, ContactOptions, DirectoryOptions, FileAccept, FileExtension, FileMimeType, FileOptions, FileWithPath, IOSAppInfo, MacOSAppInfo, MailOptions, MessageOptions, OpenInstance, PackageName, ProductId, StoreInfo, TelephoneOptions, TrackId, URLCandidate, URLCandidateOrFallback, URLStringOrFallback, WindowsAppInfo };
@@ -58,9 +58,10 @@ export interface ContactOptions {
58
58
  }
59
59
  export type FileExtension = `.${string}`;
60
60
  export type FileMimeType = `${string}/${string}`;
61
+ export type FileAccept = (FileExtension | FileMimeType)[];
61
62
  export interface FileOptions {
62
63
  multiple?: boolean;
63
- accept?: (FileExtension | FileMimeType)[];
64
+ accept?: FileAccept;
64
65
  id?: string;
65
66
  startIn?: ExplorerStartIn;
66
67
  }
@@ -10,6 +10,7 @@ export declare enum PermissionType {
10
10
  Notification = "notifications",
11
11
  Geolocation = "geolocation",
12
12
  Camera = "camera",
13
+ ClipboardRead = "clipboard-read",
13
14
  Microphone = "microphone",
14
15
  MIDI = "midi"
15
16
  }
@@ -1,3 +1,4 @@
1
1
  import Permission from "./cores";
2
2
  export * from "./types";
3
+ export * from "./constants";
3
4
  export default Permission;
@@ -1,20 +1,23 @@
1
1
  'use strict';
2
2
 
3
- var PermissionType;
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ exports.PermissionType = void 0;
4
6
  (function (PermissionType) {
5
7
  PermissionType["Notification"] = "notifications";
6
8
  PermissionType["Geolocation"] = "geolocation";
7
9
  PermissionType["Camera"] = "camera";
10
+ PermissionType["ClipboardRead"] = "clipboard-read";
8
11
  PermissionType["Microphone"] = "microphone";
9
12
  PermissionType["MIDI"] = "midi";
10
- })(PermissionType || (PermissionType = {}));
11
- var PermissionState;
13
+ })(exports.PermissionType || (exports.PermissionType = {}));
14
+ exports.PermissionState = void 0;
12
15
  (function (PermissionState) {
13
16
  PermissionState["Grant"] = "grant";
14
17
  PermissionState["Denied"] = "denied";
15
18
  PermissionState["Prompt"] = "prompt";
16
19
  PermissionState["Unsupported"] = "unsupported";
17
- })(PermissionState || (PermissionState = {}));
20
+ })(exports.PermissionState || (exports.PermissionState = {}));
18
21
  var GET_USER_MEDIA = (function () {
19
22
  if (typeof globalThis.navigator.mediaDevices !== 'undefined' && typeof globalThis.navigator.mediaDevices.getUserMedia !== 'undefined')
20
23
  return globalThis.navigator.mediaDevices.getUserMedia.bind(globalThis.navigator.mediaDevices);
@@ -42,8 +45,8 @@ var Permission = {
42
45
  request: request,
43
46
  check: check,
44
47
  Constants: {
45
- PermissionType: PermissionType,
46
- PermissionState: PermissionState,
48
+ PermissionType: exports.PermissionType,
49
+ PermissionState: exports.PermissionState,
47
50
  },
48
51
  Errors: {},
49
52
  };
@@ -55,37 +58,37 @@ function request(type) {
55
58
  }
56
59
  instance.check(type)
57
60
  .then(function (state) {
58
- if (state === PermissionState.Grant)
61
+ if (state === exports.PermissionState.Grant)
59
62
  return resolve(state);
60
63
  switch (type) {
61
- case PermissionType.Notification:
64
+ case exports.PermissionType.Notification:
62
65
  if (typeof globalThis.Notification === 'undefined')
63
- return resolve(PermissionState.Unsupported);
66
+ return resolve(exports.PermissionState.Unsupported);
64
67
  globalThis.Notification.requestPermission().then(function (value) {
65
68
  switch (value) {
66
69
  case 'default':
67
- return resolve(PermissionState.Prompt);
70
+ return resolve(exports.PermissionState.Prompt);
68
71
  case 'granted':
69
- return resolve(PermissionState.Grant);
72
+ return resolve(exports.PermissionState.Grant);
70
73
  case 'denied':
71
- return resolve(PermissionState.Denied);
74
+ return resolve(exports.PermissionState.Denied);
72
75
  default:
73
76
  resolveAfterCheck();
74
77
  }
75
78
  });
76
79
  break;
77
- case PermissionType.Geolocation:
80
+ case exports.PermissionType.Geolocation:
78
81
  if (typeof globalThis.navigator.geolocation === 'undefined')
79
- return resolve(PermissionState.Unsupported);
82
+ return resolve(exports.PermissionState.Unsupported);
80
83
  globalThis.navigator.geolocation.getCurrentPosition(resolveAfterCheck, resolveAfterCheck);
81
84
  break;
82
- case PermissionType.Microphone:
83
- case PermissionType.Camera:
85
+ case exports.PermissionType.Microphone:
86
+ case exports.PermissionType.Camera:
84
87
  if (typeof GET_USER_MEDIA === 'undefined')
85
- return resolve(PermissionState.Unsupported);
88
+ return resolve(exports.PermissionState.Unsupported);
86
89
  GET_USER_MEDIA({
87
- video: type === PermissionType.Camera,
88
- audio: type === PermissionType.Microphone,
90
+ video: type === exports.PermissionType.Camera,
91
+ audio: type === exports.PermissionType.Microphone,
89
92
  })
90
93
  .then(function (stream) {
91
94
  var tracks = stream.getTracks();
@@ -95,15 +98,22 @@ function request(type) {
95
98
  })
96
99
  .catch(resolveAfterCheck);
97
100
  break;
98
- case PermissionType.MIDI:
101
+ case exports.PermissionType.ClipboardRead:
102
+ if (typeof globalThis.navigator.clipboard === 'undefined' || typeof globalThis.navigator.clipboard.read === 'undefined')
103
+ return resolve(exports.PermissionState.Unsupported);
104
+ globalThis.navigator.clipboard.read()
105
+ .then(resolveAfterCheck)
106
+ .catch(resolveAfterCheck);
107
+ break;
108
+ case exports.PermissionType.MIDI:
99
109
  if (typeof globalThis.navigator.requestMIDIAccess === 'undefined')
100
- return resolve(PermissionState.Unsupported);
110
+ return resolve(exports.PermissionState.Unsupported);
101
111
  globalThis.navigator.requestMIDIAccess()
102
112
  .then(resolveAfterCheck)
103
113
  .catch(resolveAfterCheck);
104
114
  break;
105
115
  default:
106
- return resolve(PermissionState.Unsupported);
116
+ return resolve(exports.PermissionState.Unsupported);
107
117
  }
108
118
  });
109
119
  });
@@ -111,21 +121,22 @@ function request(type) {
111
121
  function check(type) {
112
122
  return new Promise(function (resolve) {
113
123
  if (typeof globalThis.navigator.permissions === 'undefined')
114
- return resolve(PermissionState.Unsupported);
124
+ return resolve(exports.PermissionState.Unsupported);
115
125
  globalThis.navigator.permissions.query({ name: type })
116
126
  .then(function (status) {
117
127
  switch (status.state) {
118
128
  case 'prompt':
119
- return resolve(PermissionState.Prompt);
129
+ return resolve(exports.PermissionState.Prompt);
120
130
  case 'granted':
121
- return resolve(PermissionState.Grant);
131
+ return resolve(exports.PermissionState.Grant);
122
132
  case 'denied':
123
- return resolve(PermissionState.Denied);
133
+ return resolve(exports.PermissionState.Denied);
124
134
  default:
125
- return resolve(PermissionState.Unsupported);
135
+ return resolve(exports.PermissionState.Unsupported);
126
136
  }
127
137
  });
128
138
  });
129
139
  }
130
140
 
131
- module.exports = Permission;
141
+ exports.GET_USER_MEDIA = GET_USER_MEDIA;
142
+ exports.default = Permission;
@@ -10,6 +10,7 @@ declare enum PermissionType {
10
10
  Notification = "notifications",
11
11
  Geolocation = "geolocation",
12
12
  Camera = "camera",
13
+ ClipboardRead = "clipboard-read",
13
14
  Microphone = "microphone",
14
15
  MIDI = "midi"
15
16
  }
@@ -19,6 +20,7 @@ declare enum PermissionState {
19
20
  Prompt = "prompt",
20
21
  Unsupported = "unsupported"
21
22
  }
23
+ declare const GET_USER_MEDIA: ((constraints?: MediaStreamConstraints) => Promise<MediaStream>) | undefined;
22
24
 
23
25
  declare interface PermissionInstance {
24
26
  request(type: PermissionType): Promise<PermissionState>;
@@ -32,5 +34,5 @@ declare interface PermissionInstance {
32
34
 
33
35
  declare const Permission: PermissionInstance;
34
36
 
35
- export { Permission as default };
37
+ export { GET_USER_MEDIA, PermissionState, PermissionType, Permission as default };
36
38
  export type { PermissionInstance };
@@ -3,6 +3,7 @@ var PermissionType;
3
3
  PermissionType["Notification"] = "notifications";
4
4
  PermissionType["Geolocation"] = "geolocation";
5
5
  PermissionType["Camera"] = "camera";
6
+ PermissionType["ClipboardRead"] = "clipboard-read";
6
7
  PermissionType["Microphone"] = "microphone";
7
8
  PermissionType["MIDI"] = "midi";
8
9
  })(PermissionType || (PermissionType = {}));
@@ -93,6 +94,13 @@ function request(type) {
93
94
  })
94
95
  .catch(resolveAfterCheck);
95
96
  break;
97
+ case PermissionType.ClipboardRead:
98
+ if (typeof globalThis.navigator.clipboard === 'undefined' || typeof globalThis.navigator.clipboard.read === 'undefined')
99
+ return resolve(PermissionState.Unsupported);
100
+ globalThis.navigator.clipboard.read()
101
+ .then(resolveAfterCheck)
102
+ .catch(resolveAfterCheck);
103
+ break;
96
104
  case PermissionType.MIDI:
97
105
  if (typeof globalThis.navigator.requestMIDIAccess === 'undefined')
98
106
  return resolve(PermissionState.Unsupported);
@@ -126,4 +134,4 @@ function check(type) {
126
134
  });
127
135
  }
128
136
 
129
- export { Permission as default };
137
+ export { GET_USER_MEDIA, PermissionState, PermissionType, Permission as default };
@@ -58,9 +58,10 @@ export interface ContactOptions {
58
58
  }
59
59
  export type FileExtension = `.${string}`;
60
60
  export type FileMimeType = `${string}/${string}`;
61
+ export type FileAccept = (FileExtension | FileMimeType)[];
61
62
  export interface FileOptions {
62
63
  multiple?: boolean;
63
- accept?: (FileExtension | FileMimeType)[];
64
+ accept?: FileAccept;
64
65
  id?: string;
65
66
  startIn?: ExplorerStartIn;
66
67
  }
@@ -10,6 +10,7 @@ export declare enum PermissionType {
10
10
  Notification = "notifications",
11
11
  Geolocation = "geolocation",
12
12
  Camera = "camera",
13
+ ClipboardRead = "clipboard-read",
13
14
  Microphone = "microphone",
14
15
  MIDI = "midi"
15
16
  }
@@ -1,3 +1,4 @@
1
1
  import Permission from "./cores";
2
2
  export * from "./types";
3
+ export * from "./constants";
3
4
  export default Permission;
@@ -58,9 +58,10 @@ export interface ContactOptions {
58
58
  }
59
59
  export type FileExtension = `.${string}`;
60
60
  export type FileMimeType = `${string}/${string}`;
61
+ export type FileAccept = (FileExtension | FileMimeType)[];
61
62
  export interface FileOptions {
62
63
  multiple?: boolean;
63
- accept?: (FileExtension | FileMimeType)[];
64
+ accept?: FileAccept;
64
65
  id?: string;
65
66
  startIn?: ExplorerStartIn;
66
67
  }
@@ -10,6 +10,7 @@ export declare enum PermissionType {
10
10
  Notification = "notifications",
11
11
  Geolocation = "geolocation",
12
12
  Camera = "camera",
13
+ ClipboardRead = "clipboard-read",
13
14
  Microphone = "microphone",
14
15
  MIDI = "midi"
15
16
  }
@@ -1,3 +1,4 @@
1
1
  import Permission from "./cores";
2
2
  export * from "./types";
3
+ export * from "./constants";
3
4
  export default Permission;
@@ -58,9 +58,10 @@ export interface ContactOptions {
58
58
  }
59
59
  export type FileExtension = `.${string}`;
60
60
  export type FileMimeType = `${string}/${string}`;
61
+ export type FileAccept = (FileExtension | FileMimeType)[];
61
62
  export interface FileOptions {
62
63
  multiple?: boolean;
63
- accept?: (FileExtension | FileMimeType)[];
64
+ accept?: FileAccept;
64
65
  id?: string;
65
66
  startIn?: ExplorerStartIn;
66
67
  }
@@ -10,6 +10,7 @@ export declare enum PermissionType {
10
10
  Notification = "notifications",
11
11
  Geolocation = "geolocation",
12
12
  Camera = "camera",
13
+ ClipboardRead = "clipboard-read",
13
14
  Microphone = "microphone",
14
15
  MIDI = "midi"
15
16
  }
@@ -1,3 +1,4 @@
1
1
  import Permission from "./cores";
2
2
  export * from "./types";
3
+ export * from "./constants";
3
4
  export default Permission;
@@ -58,9 +58,10 @@ export interface ContactOptions {
58
58
  }
59
59
  export type FileExtension = `.${string}`;
60
60
  export type FileMimeType = `${string}/${string}`;
61
+ export type FileAccept = (FileExtension | FileMimeType)[];
61
62
  export interface FileOptions {
62
63
  multiple?: boolean;
63
- accept?: (FileExtension | FileMimeType)[];
64
+ accept?: FileAccept;
64
65
  id?: string;
65
66
  startIn?: ExplorerStartIn;
66
67
  }
@@ -10,6 +10,7 @@ export declare enum PermissionType {
10
10
  Notification = "notifications",
11
11
  Geolocation = "geolocation",
12
12
  Camera = "camera",
13
+ ClipboardRead = "clipboard-read",
13
14
  Microphone = "microphone",
14
15
  MIDI = "midi"
15
16
  }
@@ -1,3 +1,4 @@
1
1
  import Permission from "./cores";
2
2
  export * from "./types";
3
+ export * from "./constants";
3
4
  export default Permission;
@@ -58,9 +58,10 @@ export interface ContactOptions {
58
58
  }
59
59
  export type FileExtension = `.${string}`;
60
60
  export type FileMimeType = `${string}/${string}`;
61
+ export type FileAccept = (FileExtension | FileMimeType)[];
61
62
  export interface FileOptions {
62
63
  multiple?: boolean;
63
- accept?: (FileExtension | FileMimeType)[];
64
+ accept?: FileAccept;
64
65
  id?: string;
65
66
  startIn?: ExplorerStartIn;
66
67
  }
@@ -10,6 +10,7 @@ export declare enum PermissionType {
10
10
  Notification = "notifications",
11
11
  Geolocation = "geolocation",
12
12
  Camera = "camera",
13
+ ClipboardRead = "clipboard-read",
13
14
  Microphone = "microphone",
14
15
  MIDI = "midi"
15
16
  }
@@ -1,3 +1,4 @@
1
1
  import Permission from "./cores";
2
2
  export * from "./types";
3
+ export * from "./constants";
3
4
  export default Permission;
@@ -58,9 +58,10 @@ export interface ContactOptions {
58
58
  }
59
59
  export type FileExtension = `.${string}`;
60
60
  export type FileMimeType = `${string}/${string}`;
61
+ export type FileAccept = (FileExtension | FileMimeType)[];
61
62
  export interface FileOptions {
62
63
  multiple?: boolean;
63
- accept?: (FileExtension | FileMimeType)[];
64
+ accept?: FileAccept;
64
65
  id?: string;
65
66
  startIn?: ExplorerStartIn;
66
67
  }
@@ -10,6 +10,7 @@ export declare enum PermissionType {
10
10
  Notification = "notifications",
11
11
  Geolocation = "geolocation",
12
12
  Camera = "camera",
13
+ ClipboardRead = "clipboard-read",
13
14
  Microphone = "microphone",
14
15
  MIDI = "midi"
15
16
  }
@@ -1,3 +1,4 @@
1
1
  import Permission from "./cores";
2
2
  export * from "./types";
3
+ export * from "./constants";
3
4
  export default Permission;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-fn",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": " ",
5
5
  "type": "module",
6
6