native-fn 1.0.73 → 1.0.75

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 (80) hide show
  1. package/dist/index.d.ts +5 -5
  2. package/dist/native.cjs +1 -1
  3. package/dist/native.min.cjs +1 -1
  4. package/dist/native.min.mjs +1 -1
  5. package/dist/native.mjs +1 -1
  6. package/dist/native.umd.js +1 -1
  7. package/dist/native.umd.min.js +1 -1
  8. package/dist/plugin/app/index.cjs +357 -178
  9. package/dist/plugin/app/index.min.cjs +1 -1
  10. package/dist/plugin/app/index.min.mjs +1 -1
  11. package/dist/plugin/app/index.mjs +357 -178
  12. package/dist/plugin/app/index.umd.js +357 -178
  13. package/dist/plugin/app/index.umd.min.js +1 -1
  14. package/dist/plugin/app/src/plugin/platform/constants/index.d.ts +1 -1
  15. package/dist/plugin/app/src/plugin/platform/cores/index.d.ts +12 -0
  16. package/dist/plugin/app/src/plugin/platform/types/platform.d.ts +16 -6
  17. package/dist/plugin/app/src/types/native.d.ts +5 -5
  18. package/dist/plugin/appearance/index.cjs +346 -167
  19. package/dist/plugin/appearance/index.min.cjs +1 -1
  20. package/dist/plugin/appearance/index.min.mjs +1 -1
  21. package/dist/plugin/appearance/index.mjs +346 -167
  22. package/dist/plugin/appearance/index.umd.js +346 -167
  23. package/dist/plugin/appearance/index.umd.min.js +1 -1
  24. package/dist/plugin/appearance/src/plugin/platform/constants/index.d.ts +1 -1
  25. package/dist/plugin/appearance/src/plugin/platform/cores/index.d.ts +12 -0
  26. package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +16 -6
  27. package/dist/plugin/appearance/src/types/native.d.ts +5 -5
  28. package/dist/plugin/camera/index.cjs +2 -2
  29. package/dist/plugin/camera/index.min.cjs +1 -1
  30. package/dist/plugin/camera/index.min.mjs +1 -1
  31. package/dist/plugin/camera/index.mjs +2 -2
  32. package/dist/plugin/camera/index.umd.js +2 -2
  33. package/dist/plugin/camera/index.umd.min.js +1 -1
  34. package/dist/plugin/camera/src/plugin/platform/constants/index.d.ts +1 -1
  35. package/dist/plugin/clipboard/index.cjs +341 -162
  36. package/dist/plugin/clipboard/index.min.cjs +1 -1
  37. package/dist/plugin/clipboard/index.min.mjs +1 -1
  38. package/dist/plugin/clipboard/index.mjs +341 -162
  39. package/dist/plugin/clipboard/index.umd.js +341 -162
  40. package/dist/plugin/clipboard/index.umd.min.js +1 -1
  41. package/dist/plugin/clipboard/src/plugin/platform/constants/index.d.ts +1 -1
  42. package/dist/plugin/clipboard/src/plugin/platform/cores/index.d.ts +12 -0
  43. package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +16 -6
  44. package/dist/plugin/clipboard/src/types/native.d.ts +5 -5
  45. package/dist/plugin/fullscreen/index.cjs +350 -171
  46. package/dist/plugin/fullscreen/index.min.cjs +1 -1
  47. package/dist/plugin/fullscreen/index.min.mjs +1 -1
  48. package/dist/plugin/fullscreen/index.mjs +350 -171
  49. package/dist/plugin/fullscreen/index.umd.js +350 -171
  50. package/dist/plugin/fullscreen/index.umd.min.js +1 -1
  51. package/dist/plugin/fullscreen/src/plugin/platform/constants/index.d.ts +1 -1
  52. package/dist/plugin/fullscreen/src/plugin/platform/cores/index.d.ts +12 -0
  53. package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +16 -6
  54. package/dist/plugin/fullscreen/src/types/native.d.ts +5 -5
  55. package/dist/plugin/platform/index.cjs +341 -162
  56. package/dist/plugin/platform/index.d.ts +18 -8
  57. package/dist/plugin/platform/index.min.cjs +1 -1
  58. package/dist/plugin/platform/index.min.mjs +1 -1
  59. package/dist/plugin/platform/index.mjs +341 -162
  60. package/dist/plugin/platform/index.umd.js +341 -162
  61. package/dist/plugin/platform/index.umd.min.js +1 -1
  62. package/dist/plugin/platform/src/plugin/platform/constants/index.d.ts +1 -1
  63. package/dist/plugin/platform/src/plugin/platform/cores/index.d.ts +12 -0
  64. package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +16 -6
  65. package/dist/plugin/platform/src/types/native.d.ts +5 -5
  66. package/dist/plugin/theme/index.cjs +341 -162
  67. package/dist/plugin/theme/index.min.cjs +1 -1
  68. package/dist/plugin/theme/index.min.mjs +1 -1
  69. package/dist/plugin/theme/index.mjs +341 -162
  70. package/dist/plugin/theme/index.umd.js +341 -162
  71. package/dist/plugin/theme/index.umd.min.js +1 -1
  72. package/dist/plugin/theme/src/plugin/platform/constants/index.d.ts +1 -1
  73. package/dist/plugin/theme/src/plugin/platform/cores/index.d.ts +12 -0
  74. package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +16 -6
  75. package/dist/plugin/theme/src/types/native.d.ts +5 -5
  76. package/dist/src/plugin/platform/constants/index.d.ts +1 -1
  77. package/dist/src/plugin/platform/cores/index.d.ts +12 -0
  78. package/dist/src/plugin/platform/types/platform.d.ts +16 -6
  79. package/dist/src/types/native.d.ts +5 -5
  80. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  declare const PluginNotExtendedError: ErrorConstructor;
2
2
 
3
- interface NativePlugins {
3
+ declare interface NativePlugins {
4
4
  }
5
- interface NativeConstants extends Record<string, any> {
5
+ declare interface NativeConstants extends Record<string, any> {
6
6
  }
7
- interface NativeErrors extends Record<string, ErrorConstructor> {
7
+ declare interface NativeErrors extends Record<string, ErrorConstructor> {
8
8
  PluginNotExtendedError: typeof PluginNotExtendedError;
9
9
  }
10
10
  declare interface NativePlugin<Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>> {
@@ -14,10 +14,10 @@ declare interface NativePlugin<Key extends string, Module, Constants extends Rec
14
14
  Constants: Constants;
15
15
  Errors: Errors;
16
16
  }
17
- type ExtendedNativeBase<Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>> = NativeBase<NativePlugins & {
17
+ declare type ExtendedNativeBase<Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>> = NativeBase<NativePlugins & {
18
18
  [Plugin in Key]: Module;
19
19
  }, NativeConstants & Constants, NativeErrors & Errors>;
20
- type NativeBase<Plugins, AssignedConstants extends Record<string, any> = Record<string, any>, AssignedErrors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>> = {
20
+ declare type NativeBase<Plugins, AssignedConstants extends Record<string, any> = Record<string, any>, AssignedErrors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>> = {
21
21
  Version: string;
22
22
  Constants: AssignedConstants;
23
23
  Errors: AssignedErrors;
package/dist/native.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.0.73";
3
+ var version = "1.0.75";
4
4
  var packageJSON = {
5
5
  version: version};
6
6
 
@@ -1 +1 @@
1
- "use strict";var t="1.0.73";function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=Object(t[0]),o=1;o<t.length;o++){var n=t[o];if(null!=n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&(r[a]=n[a])}return r}var r=function(t,e){function r(o){if(!(this instanceof r))return new r(o);var n=new e(o||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n,r.prototype):n.__proto__=r.prototype,n.name=t,void 0!==o&&(n.message=o),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(n,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(n,r);else if(e.captureStackTrace&&"function"==typeof e.captureStackTrace)e.captureStackTrace(n,r);else try{var a=new e;a.stack&&(n.stack=a.stack)}catch(t){}return n}void 0===e&&(e=Error),r.prototype=Object.create(e.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(r.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0})}catch(e){try{r.prototype.name=t}catch(t){}}try{Object.defineProperty(r,"name",{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}return r}("PluginNotExtendedError");!function(){if("object"!=typeof globalThis){Object.defineProperty(Object.prototype,"__getGlobalThis__",{get:function(){return this},configurable:!0});try{var t=__getGlobalThis__;Object.defineProperty(t,"globalThis",{value:t,writable:!0,configurable:!0})}finally{delete Object.prototype.__getGlobalThis__}}}();var o=new Proxy({Version:t,Constants:{},Errors:{PluginNotExtendedError:r},extends:function(t){return t.installed||(this.Constants=e(this.Constants,t.Constants),this.Errors=e(this.Errors,t.Errors),this[t.name]=t.module,t.installed=!0),this}},{get:function(t,e,o){if(e in t)return Reflect.get(t,e,o);throw new r(e.toString()+" is not extended yet. Call Native.extends(plugin) first.")}});module.exports=o;
1
+ "use strict";var t="1.0.75";function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=Object(t[0]),o=1;o<t.length;o++){var n=t[o];if(null!=n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&(r[a]=n[a])}return r}var r=function(t,e){function r(o){if(!(this instanceof r))return new r(o);var n=new e(o||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n,r.prototype):n.__proto__=r.prototype,n.name=t,void 0!==o&&(n.message=o),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(n,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(n,r);else if(e.captureStackTrace&&"function"==typeof e.captureStackTrace)e.captureStackTrace(n,r);else try{var a=new e;a.stack&&(n.stack=a.stack)}catch(t){}return n}void 0===e&&(e=Error),r.prototype=Object.create(e.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(r.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0})}catch(e){try{r.prototype.name=t}catch(t){}}try{Object.defineProperty(r,"name",{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}return r}("PluginNotExtendedError");!function(){if("object"!=typeof globalThis){Object.defineProperty(Object.prototype,"__getGlobalThis__",{get:function(){return this},configurable:!0});try{var t=__getGlobalThis__;Object.defineProperty(t,"globalThis",{value:t,writable:!0,configurable:!0})}finally{delete Object.prototype.__getGlobalThis__}}}();var o=new Proxy({Version:t,Constants:{},Errors:{PluginNotExtendedError:r},extends:function(t){return t.installed||(this.Constants=e(this.Constants,t.Constants),this.Errors=e(this.Errors,t.Errors),this[t.name]=t.module,t.installed=!0),this}},{get:function(t,e,o){if(e in t)return Reflect.get(t,e,o);throw new r(e.toString()+" is not extended yet. Call Native.extends(plugin) first.")}});module.exports=o;
@@ -1 +1 @@
1
- var t="1.0.73";function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=Object(t[0]),o=1;o<t.length;o++){var n=t[o];if(null!=n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&(r[a]=n[a])}return r}var r=function(t,e){function r(o){if(!(this instanceof r))return new r(o);var n=new e(o||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n,r.prototype):n.__proto__=r.prototype,n.name=t,void 0!==o&&(n.message=o),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(n,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(n,r);else if(e.captureStackTrace&&"function"==typeof e.captureStackTrace)e.captureStackTrace(n,r);else try{var a=new e;a.stack&&(n.stack=a.stack)}catch(t){}return n}void 0===e&&(e=Error),r.prototype=Object.create(e.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(r.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0})}catch(e){try{r.prototype.name=t}catch(t){}}try{Object.defineProperty(r,"name",{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}return r}("PluginNotExtendedError");!function(){if("object"!=typeof globalThis){Object.defineProperty(Object.prototype,"__getGlobalThis__",{get:function(){return this},configurable:!0});try{var t=__getGlobalThis__;Object.defineProperty(t,"globalThis",{value:t,writable:!0,configurable:!0})}finally{delete Object.prototype.__getGlobalThis__}}}();var o=new Proxy({Version:t,Constants:{},Errors:{PluginNotExtendedError:r},extends:function(t){return t.installed||(this.Constants=e(this.Constants,t.Constants),this.Errors=e(this.Errors,t.Errors),this[t.name]=t.module,t.installed=!0),this}},{get:function(t,e,o){if(e in t)return Reflect.get(t,e,o);throw new r(e.toString()+" is not extended yet. Call Native.extends(plugin) first.")}});export{o as default};
1
+ var t="1.0.75";function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=Object(t[0]),o=1;o<t.length;o++){var n=t[o];if(null!=n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&(r[a]=n[a])}return r}var r=function(t,e){function r(o){if(!(this instanceof r))return new r(o);var n=new e(o||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n,r.prototype):n.__proto__=r.prototype,n.name=t,void 0!==o&&(n.message=o),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(n,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(n,r);else if(e.captureStackTrace&&"function"==typeof e.captureStackTrace)e.captureStackTrace(n,r);else try{var a=new e;a.stack&&(n.stack=a.stack)}catch(t){}return n}void 0===e&&(e=Error),r.prototype=Object.create(e.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(r.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0})}catch(e){try{r.prototype.name=t}catch(t){}}try{Object.defineProperty(r,"name",{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}return r}("PluginNotExtendedError");!function(){if("object"!=typeof globalThis){Object.defineProperty(Object.prototype,"__getGlobalThis__",{get:function(){return this},configurable:!0});try{var t=__getGlobalThis__;Object.defineProperty(t,"globalThis",{value:t,writable:!0,configurable:!0})}finally{delete Object.prototype.__getGlobalThis__}}}();var o=new Proxy({Version:t,Constants:{},Errors:{PluginNotExtendedError:r},extends:function(t){return t.installed||(this.Constants=e(this.Constants,t.Constants),this.Errors=e(this.Errors,t.Errors),this[t.name]=t.module,t.installed=!0),this}},{get:function(t,e,o){if(e in t)return Reflect.get(t,e,o);throw new r(e.toString()+" is not extended yet. Call Native.extends(plugin) first.")}});export{o as default};
package/dist/native.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var version = "1.0.73";
1
+ var version = "1.0.75";
2
2
  var packageJSON = {
3
3
  version: version};
4
4
 
@@ -4,7 +4,7 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Native = factory());
5
5
  })(this, (function () { 'use strict';
6
6
 
7
- var version = "1.0.73";
7
+ var version = "1.0.75";
8
8
  var packageJSON = {
9
9
  version: version};
10
10
 
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Native=t()}(this,(function(){"use strict";var e="1.0.73";function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=Object(e[0]),o=1;o<e.length;o++){var n=e[o];if(null!=n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&(r[a]=n[a])}return r}var r=function(e,t){function r(o){if(!(this instanceof r))return new r(o);var n=new t(o||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n,r.prototype):n.__proto__=r.prototype,n.name=e,void 0!==o&&(n.message=o),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(n,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(n,r);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(n,r);else try{var a=new t;a.stack&&(n.stack=a.stack)}catch(e){}return n}void 0===t&&(t=Error),r.prototype=Object.create(t.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(r.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{r.prototype.name=e}catch(e){}}try{Object.defineProperty(r,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return r}("PluginNotExtendedError");return function(){if("object"!=typeof globalThis){Object.defineProperty(Object.prototype,"__getGlobalThis__",{get:function(){return this},configurable:!0});try{var e=__getGlobalThis__;Object.defineProperty(e,"globalThis",{value:e,writable:!0,configurable:!0})}finally{delete Object.prototype.__getGlobalThis__}}}(),new Proxy({Version:e,Constants:{},Errors:{PluginNotExtendedError:r},extends:function(e){return e.installed||(this.Constants=t(this.Constants,e.Constants),this.Errors=t(this.Errors,e.Errors),this[e.name]=e.module,e.installed=!0),this}},{get:function(e,t,o){if(t in e)return Reflect.get(e,t,o);throw new r(t.toString()+" is not extended yet. Call Native.extends(plugin) first.")}})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Native=t()}(this,(function(){"use strict";var e="1.0.75";function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=Object(e[0]),o=1;o<e.length;o++){var n=e[o];if(null!=n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&(r[a]=n[a])}return r}var r=function(e,t){function r(o){if(!(this instanceof r))return new r(o);var n=new t(o||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n,r.prototype):n.__proto__=r.prototype,n.name=e,void 0!==o&&(n.message=o),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(n,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(n,r);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(n,r);else try{var a=new t;a.stack&&(n.stack=a.stack)}catch(e){}return n}void 0===t&&(t=Error),r.prototype=Object.create(t.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(r.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{r.prototype.name=e}catch(e){}}try{Object.defineProperty(r,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return r}("PluginNotExtendedError");return function(){if("object"!=typeof globalThis){Object.defineProperty(Object.prototype,"__getGlobalThis__",{get:function(){return this},configurable:!0});try{var e=__getGlobalThis__;Object.defineProperty(e,"globalThis",{value:e,writable:!0,configurable:!0})}finally{delete Object.prototype.__getGlobalThis__}}}(),new Proxy({Version:e,Constants:{},Errors:{PluginNotExtendedError:r},extends:function(e){return e.installed||(this.Constants=t(this.Constants,e.Constants),this.Errors=t(this.Errors,e.Errors),this[e.name]=e.module,e.installed=!0),this}},{get:function(e,t,o){if(t in e)return Reflect.get(e,t,o);throw new r(t.toString()+" is not extended yet. Call Native.extends(plugin) first.")}})}));