native-fn 1.0.86 → 1.0.88
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.
- package/dist/index.d.ts +2 -9
- package/dist/native.cjs +1 -1
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +1 -1
- package/dist/native.umd.js +1 -1
- package/dist/native.umd.min.js +1 -1
- package/dist/plugin/app/src/types/native.d.ts +1 -1
- package/dist/plugin/appearance/src/types/native.d.ts +1 -1
- package/dist/plugin/clipboard/src/types/native.d.ts +1 -1
- package/dist/plugin/dimension/src/types/native.d.ts +1 -1
- package/dist/plugin/fullscreen/src/types/native.d.ts +1 -1
- package/dist/plugin/platform/src/types/native.d.ts +1 -1
- package/dist/plugin/theme/src/types/native.d.ts +1 -1
- package/dist/src/types/native.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,20 +21,13 @@ declare type NativeBase<Plugins, AssignedConstants extends Record<string, any> =
|
|
|
21
21
|
Version: string;
|
|
22
22
|
Constants: AssignedConstants;
|
|
23
23
|
Errors: AssignedErrors;
|
|
24
|
-
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => NativeBase<Plugins & {
|
|
24
|
+
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => asserts this is NativeBase<Plugins & {
|
|
25
25
|
[Plugin in Key]: Module;
|
|
26
26
|
}, AssignedConstants & Constants, AssignedErrors & Errors>;
|
|
27
27
|
} & Plugins;
|
|
28
28
|
type NativeInstance = NativeBase<NativePlugins, NativeConstants, NativeErrors>;
|
|
29
29
|
|
|
30
|
-
declare const Native:
|
|
31
|
-
Version: string;
|
|
32
|
-
Constants: {};
|
|
33
|
-
Errors: {
|
|
34
|
-
PluginNotExtendedError: ErrorConstructor;
|
|
35
|
-
};
|
|
36
|
-
extends<Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<any, any, any>, plugin: NativePlugin<Key, Module, Constants, Errors>): ExtendedNativeBase<Key, Module, Constants, Errors>;
|
|
37
|
-
};
|
|
30
|
+
declare const Native: NativeInstance;
|
|
38
31
|
|
|
39
32
|
export { Native as default };
|
|
40
33
|
export type { ExtendedNativeBase, NativeBase, NativeConstants, NativeErrors, NativeInstance, NativePlugin, NativePlugins };
|
package/dist/native.cjs
CHANGED
package/dist/native.min.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t="1.0.
|
|
1
|
+
"use strict";var t="1.0.88";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 a=t[o];if(null!=a)for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(r[n]=a[n])}return r}var r=function(t,e){function r(o){if(!(this instanceof r))return new r(o);var a=new e(o||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(a,r.prototype):a.__proto__=r.prototype,a.name=t,void 0!==o&&(a.message=o),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(a,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(a,r);else if(e.captureStackTrace&&"function"==typeof e.captureStackTrace)e.captureStackTrace(a,r);else try{var n=new e;n.stack&&(a.stack=n.stack)}catch(t){}return a}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={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}};module.exports=o;
|
package/dist/native.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t="1.0.
|
|
1
|
+
var t="1.0.88";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 a=t[o];if(null!=a)for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(r[n]=a[n])}return r}var r=function(t,e){function r(o){if(!(this instanceof r))return new r(o);var a=new e(o||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(a,r.prototype):a.__proto__=r.prototype,a.name=t,void 0!==o&&(a.message=o),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(a,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0})}catch(t){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(a,r);else if(e.captureStackTrace&&"function"==typeof e.captureStackTrace)e.captureStackTrace(a,r);else try{var n=new e;n.stack&&(a.stack=n.stack)}catch(t){}return a}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={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}};export{o as default};
|
package/dist/native.mjs
CHANGED
package/dist/native.umd.js
CHANGED
package/dist/native.umd.min.js
CHANGED
|
@@ -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.
|
|
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.88";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__}}}(),{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}}}));
|
|
@@ -20,7 +20,7 @@ export declare type NativeBase<Plugins, AssignedConstants extends Record<string,
|
|
|
20
20
|
Version: string;
|
|
21
21
|
Constants: AssignedConstants;
|
|
22
22
|
Errors: AssignedErrors;
|
|
23
|
-
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => NativeBase<Plugins & {
|
|
23
|
+
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => asserts this is NativeBase<Plugins & {
|
|
24
24
|
[Plugin in Key]: Module;
|
|
25
25
|
}, AssignedConstants & Constants, AssignedErrors & Errors>;
|
|
26
26
|
} & Plugins;
|
|
@@ -20,7 +20,7 @@ export declare type NativeBase<Plugins, AssignedConstants extends Record<string,
|
|
|
20
20
|
Version: string;
|
|
21
21
|
Constants: AssignedConstants;
|
|
22
22
|
Errors: AssignedErrors;
|
|
23
|
-
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => NativeBase<Plugins & {
|
|
23
|
+
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => asserts this is NativeBase<Plugins & {
|
|
24
24
|
[Plugin in Key]: Module;
|
|
25
25
|
}, AssignedConstants & Constants, AssignedErrors & Errors>;
|
|
26
26
|
} & Plugins;
|
|
@@ -20,7 +20,7 @@ export declare type NativeBase<Plugins, AssignedConstants extends Record<string,
|
|
|
20
20
|
Version: string;
|
|
21
21
|
Constants: AssignedConstants;
|
|
22
22
|
Errors: AssignedErrors;
|
|
23
|
-
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => NativeBase<Plugins & {
|
|
23
|
+
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => asserts this is NativeBase<Plugins & {
|
|
24
24
|
[Plugin in Key]: Module;
|
|
25
25
|
}, AssignedConstants & Constants, AssignedErrors & Errors>;
|
|
26
26
|
} & Plugins;
|
|
@@ -20,7 +20,7 @@ export declare type NativeBase<Plugins, AssignedConstants extends Record<string,
|
|
|
20
20
|
Version: string;
|
|
21
21
|
Constants: AssignedConstants;
|
|
22
22
|
Errors: AssignedErrors;
|
|
23
|
-
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => NativeBase<Plugins & {
|
|
23
|
+
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => asserts this is NativeBase<Plugins & {
|
|
24
24
|
[Plugin in Key]: Module;
|
|
25
25
|
}, AssignedConstants & Constants, AssignedErrors & Errors>;
|
|
26
26
|
} & Plugins;
|
|
@@ -20,7 +20,7 @@ export declare type NativeBase<Plugins, AssignedConstants extends Record<string,
|
|
|
20
20
|
Version: string;
|
|
21
21
|
Constants: AssignedConstants;
|
|
22
22
|
Errors: AssignedErrors;
|
|
23
|
-
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => NativeBase<Plugins & {
|
|
23
|
+
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => asserts this is NativeBase<Plugins & {
|
|
24
24
|
[Plugin in Key]: Module;
|
|
25
25
|
}, AssignedConstants & Constants, AssignedErrors & Errors>;
|
|
26
26
|
} & Plugins;
|
|
@@ -20,7 +20,7 @@ export declare type NativeBase<Plugins, AssignedConstants extends Record<string,
|
|
|
20
20
|
Version: string;
|
|
21
21
|
Constants: AssignedConstants;
|
|
22
22
|
Errors: AssignedErrors;
|
|
23
|
-
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => NativeBase<Plugins & {
|
|
23
|
+
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => asserts this is NativeBase<Plugins & {
|
|
24
24
|
[Plugin in Key]: Module;
|
|
25
25
|
}, AssignedConstants & Constants, AssignedErrors & Errors>;
|
|
26
26
|
} & Plugins;
|
|
@@ -20,7 +20,7 @@ export declare type NativeBase<Plugins, AssignedConstants extends Record<string,
|
|
|
20
20
|
Version: string;
|
|
21
21
|
Constants: AssignedConstants;
|
|
22
22
|
Errors: AssignedErrors;
|
|
23
|
-
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => NativeBase<Plugins & {
|
|
23
|
+
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => asserts this is NativeBase<Plugins & {
|
|
24
24
|
[Plugin in Key]: Module;
|
|
25
25
|
}, AssignedConstants & Constants, AssignedErrors & Errors>;
|
|
26
26
|
} & Plugins;
|
|
@@ -20,7 +20,7 @@ export declare type NativeBase<Plugins, AssignedConstants extends Record<string,
|
|
|
20
20
|
Version: string;
|
|
21
21
|
Constants: AssignedConstants;
|
|
22
22
|
Errors: AssignedErrors;
|
|
23
|
-
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => NativeBase<Plugins & {
|
|
23
|
+
extends: <Key extends string, Module, Constants extends Record<string, any> = Record<string, any>, Errors extends Record<string, ErrorConstructor> = Record<string, ErrorConstructor>>(this: NativeBase<Plugins, AssignedConstants, AssignedErrors>, plugin: NativePlugin<Key, Module, Constants, Errors>) => asserts this is NativeBase<Plugins & {
|
|
24
24
|
[Plugin in Key]: Module;
|
|
25
25
|
}, AssignedConstants & Constants, AssignedErrors & Errors>;
|
|
26
26
|
} & Plugins;
|