native-fn 1.0.32 → 1.0.33

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 CHANGED
@@ -11,9 +11,11 @@ declare interface NativeBase extends ModuleBase {
11
11
  Version: string;
12
12
  extends: <T>(plugin: NativePlugin<T>) => NativeInstance;
13
13
  }
14
- declare type NativeInstance = NativeBase & Record<Exclude<string, keyof NativeBase>, any>;
14
+ interface NativePlugins {
15
+ }
16
+ type NativeInstance = NativeBase & NativePlugins;
15
17
 
16
18
  declare const Native: NativeInstance;
17
19
 
18
20
  export { Native as default };
19
- export type { ModuleBase, NativeBase, NativeInstance, NativePlugin };
21
+ export type { ModuleBase, NativeBase, NativeInstance, NativePlugin, NativePlugins };
package/dist/native.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.0.31";
3
+ var version = "1.0.33";
4
4
  var packageJSON = {
5
5
  version: version};
6
6
 
@@ -1 +1 @@
1
- "use strict";function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var s=Object(t[0]),o=1;o<t.length;o++){var n=t[o];if(null!=n)for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(s[e]=n[e])}return s}var r={Version:"1.0.31",Constants:{},Errors:{},extends:function(r){return r.installed||(this.Constants=t(this.Constants,r.Constants),this.Errors=t(this.Errors,r.Errors),this[r.name]=r.module,r.installed=!0),this}};module.exports=r;
1
+ "use strict";function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var s=Object(t[0]),o=1;o<t.length;o++){var n=t[o];if(null!=n)for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(s[e]=n[e])}return s}var r={Version:"1.0.33",Constants:{},Errors:{},extends:function(r){return r.installed||(this.Constants=t(this.Constants,r.Constants),this.Errors=t(this.Errors,r.Errors),this[r.name]=r.module,r.installed=!0),this}};module.exports=r;
@@ -1 +1 @@
1
- function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=Object(t[0]),o=1;o<t.length;o++){var s=t[o];if(null!=s)for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(n[e]=s[e])}return n}var r={Version:"1.0.31",Constants:{},Errors:{},extends:function(r){return r.installed||(this.Constants=t(this.Constants,r.Constants),this.Errors=t(this.Errors,r.Errors),this[r.name]=r.module,r.installed=!0),this}};export{r as default};
1
+ function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=Object(t[0]),o=1;o<t.length;o++){var s=t[o];if(null!=s)for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(n[e]=s[e])}return n}var r={Version:"1.0.33",Constants:{},Errors:{},extends:function(r){return r.installed||(this.Constants=t(this.Constants,r.Constants),this.Errors=t(this.Errors,r.Errors),this[r.name]=r.module,r.installed=!0),this}};export{r as default};
package/dist/native.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var version = "1.0.31";
1
+ var version = "1.0.33";
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.31";
7
+ var version = "1.0.33";
8
8
  var packageJSON = {
9
9
  version: version};
10
10
 
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Native=e()}(this,(function(){"use strict";function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Object(t[0]),o=1;o<t.length;o++){var r=t[o];if(null!=r)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&(n[s]=r[s])}return n}return{Version:"1.0.31",Constants:{},Errors:{},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}}}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Native=e()}(this,(function(){"use strict";function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Object(t[0]),o=1;o<t.length;o++){var r=t[o];if(null!=r)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&(n[s]=r[s])}return n}return{Version:"1.0.33",Constants:{},Errors:{},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}}}));
@@ -82,6 +82,12 @@ declare interface AppInstance {
82
82
  messenger: Messenger;
83
83
  }
84
84
 
85
+ declare module '../../../types/native' {
86
+ interface NativePlugins {
87
+ App: AppInstance;
88
+ }
89
+ }
90
+
85
91
  declare const NativeAppPlugin: NativePlugin<AppInstance>;
86
92
 
87
93
  export { NativeAppPlugin as default };
@@ -1 +1,7 @@
1
1
  export * from './app';
2
+ import type { AppInstance } from './app';
3
+ declare module '../../../types/native' {
4
+ interface NativePlugins {
5
+ App: AppInstance;
6
+ }
7
+ }
@@ -1 +1,7 @@
1
1
  export * from './platform';
2
+ import type { PlatformInstance } from './platform';
3
+ declare module '../../../types/native' {
4
+ interface NativePlugins {
5
+ Platform: PlatformInstance;
6
+ }
7
+ }
@@ -1,3 +1,9 @@
1
1
  export * from './color';
2
2
  export * from './easing-syntax';
3
3
  export * from './theme';
4
+ import type { ThemeInstance } from './theme';
5
+ declare module '../../../types/native' {
6
+ interface NativePlugins {
7
+ Theme: ThemeInstance;
8
+ }
9
+ }
@@ -11,4 +11,6 @@ export declare interface NativeBase extends ModuleBase {
11
11
  Version: string;
12
12
  extends: <T>(plugin: NativePlugin<T>) => NativeInstance;
13
13
  }
14
- export declare type NativeInstance = NativeBase & Record<Exclude<string, keyof NativeBase>, any>;
14
+ export interface NativePlugins {
15
+ }
16
+ export type NativeInstance = NativeBase & NativePlugins;
@@ -47,6 +47,12 @@ declare interface PlatformInstance {
47
47
  isDesktop: boolean;
48
48
  }
49
49
 
50
+ declare module '../../../types/native' {
51
+ interface NativePlugins {
52
+ Platform: PlatformInstance;
53
+ }
54
+ }
55
+
50
56
  declare const NativePlatformPlugin: NativePlugin<PlatformInstance>;
51
57
 
52
58
  export { NativePlatformPlugin as default };
@@ -1 +1,7 @@
1
1
  export * from './app';
2
+ import type { AppInstance } from './app';
3
+ declare module '../../../types/native' {
4
+ interface NativePlugins {
5
+ App: AppInstance;
6
+ }
7
+ }
@@ -1 +1,7 @@
1
1
  export * from './platform';
2
+ import type { PlatformInstance } from './platform';
3
+ declare module '../../../types/native' {
4
+ interface NativePlugins {
5
+ Platform: PlatformInstance;
6
+ }
7
+ }
@@ -1,3 +1,9 @@
1
1
  export * from './color';
2
2
  export * from './easing-syntax';
3
3
  export * from './theme';
4
+ import type { ThemeInstance } from './theme';
5
+ declare module '../../../types/native' {
6
+ interface NativePlugins {
7
+ Theme: ThemeInstance;
8
+ }
9
+ }
@@ -11,4 +11,6 @@ export declare interface NativeBase extends ModuleBase {
11
11
  Version: string;
12
12
  extends: <T>(plugin: NativePlugin<T>) => NativeInstance;
13
13
  }
14
- export declare type NativeInstance = NativeBase & Record<Exclude<string, keyof NativeBase>, any>;
14
+ export interface NativePlugins {
15
+ }
16
+ export type NativeInstance = NativeBase & NativePlugins;
@@ -71,6 +71,12 @@ declare interface ThemeInstance {
71
71
  onAppearanceChange: (listener: (appearance?: Appearances) => any, options?: boolean | AddEventListenerOptions) => () => void;
72
72
  }
73
73
 
74
+ declare module '../../../types/native' {
75
+ interface NativePlugins {
76
+ Theme: ThemeInstance;
77
+ }
78
+ }
79
+
74
80
  declare const NativeThemePlugin: NativePlugin<ThemeInstance>;
75
81
 
76
82
  export { NativeThemePlugin as default };
@@ -1 +1,7 @@
1
1
  export * from './app';
2
+ import type { AppInstance } from './app';
3
+ declare module '../../../types/native' {
4
+ interface NativePlugins {
5
+ App: AppInstance;
6
+ }
7
+ }
@@ -1 +1,7 @@
1
1
  export * from './platform';
2
+ import type { PlatformInstance } from './platform';
3
+ declare module '../../../types/native' {
4
+ interface NativePlugins {
5
+ Platform: PlatformInstance;
6
+ }
7
+ }
@@ -1,3 +1,9 @@
1
1
  export * from './color';
2
2
  export * from './easing-syntax';
3
3
  export * from './theme';
4
+ import type { ThemeInstance } from './theme';
5
+ declare module '../../../types/native' {
6
+ interface NativePlugins {
7
+ Theme: ThemeInstance;
8
+ }
9
+ }
@@ -11,4 +11,6 @@ export declare interface NativeBase extends ModuleBase {
11
11
  Version: string;
12
12
  extends: <T>(plugin: NativePlugin<T>) => NativeInstance;
13
13
  }
14
- export declare type NativeInstance = NativeBase & Record<Exclude<string, keyof NativeBase>, any>;
14
+ export interface NativePlugins {
15
+ }
16
+ export type NativeInstance = NativeBase & NativePlugins;
@@ -1 +1,7 @@
1
1
  export * from './app';
2
+ import type { AppInstance } from './app';
3
+ declare module '../../../types/native' {
4
+ interface NativePlugins {
5
+ App: AppInstance;
6
+ }
7
+ }
@@ -1 +1,7 @@
1
1
  export * from './platform';
2
+ import type { PlatformInstance } from './platform';
3
+ declare module '../../../types/native' {
4
+ interface NativePlugins {
5
+ Platform: PlatformInstance;
6
+ }
7
+ }
@@ -1,3 +1,9 @@
1
1
  export * from './color';
2
2
  export * from './easing-syntax';
3
3
  export * from './theme';
4
+ import type { ThemeInstance } from './theme';
5
+ declare module '../../../types/native' {
6
+ interface NativePlugins {
7
+ Theme: ThemeInstance;
8
+ }
9
+ }
@@ -11,4 +11,6 @@ export declare interface NativeBase extends ModuleBase {
11
11
  Version: string;
12
12
  extends: <T>(plugin: NativePlugin<T>) => NativeInstance;
13
13
  }
14
- export declare type NativeInstance = NativeBase & Record<Exclude<string, keyof NativeBase>, any>;
14
+ export interface NativePlugins {
15
+ }
16
+ export type NativeInstance = NativeBase & NativePlugins;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-fn",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": " ",
5
5
  "type": "module",
6
6