epos 1.14.0 → 1.15.0
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/package.json +5 -14
- package/dist/epos.d.ts +0 -154
- package/dist/epos.js +0 -7
- package/dist/libs/libs-mobx-react-lite.d.ts +0 -14
- package/dist/libs/libs-mobx-react-lite.js +0 -25
- package/dist/libs/libs-mobx.d.ts +0 -71
- package/dist/libs/libs-mobx.js +0 -139
- package/dist/libs/libs-react-dom-client.d.ts +0 -4
- package/dist/libs/libs-react-dom-client.js +0 -8
- package/dist/libs/libs-react-dom.d.ts +0 -18
- package/dist/libs/libs-react-dom.js +0 -33
- package/dist/libs/libs-react-jsx-runtime.d.ts +0 -4
- package/dist/libs/libs-react-jsx-runtime.js +0 -9
- package/dist/libs/libs-react.d.ts +0 -42
- package/dist/libs/libs-react.js +0 -81
- package/dist/vite.d.ts +0 -5
- package/dist/vite.js +0 -22
- package/epos.schema.json +0 -107
package/package.json
CHANGED
|
@@ -1,30 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epos",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "imkost",
|
|
7
7
|
"description": "",
|
|
8
8
|
"keywords": [],
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build": "tsup src --format esm --dts --clean --no-splitting",
|
|
11
10
|
"lint": "tsc --noEmit",
|
|
12
|
-
"release": "sh -c 'npm version ${1:-minor} && npm
|
|
11
|
+
"release": "sh -c 'npm version ${1:-minor} && npm publish' --"
|
|
13
12
|
},
|
|
14
13
|
"exports": {
|
|
15
|
-
".":
|
|
16
|
-
|
|
17
|
-
"import": "./dist/epos.js"
|
|
18
|
-
},
|
|
19
|
-
"./vite": {
|
|
20
|
-
"source": "./src/vite.ts",
|
|
21
|
-
"import": "./dist/vite.js"
|
|
22
|
-
}
|
|
14
|
+
".": "./src/epos.ts",
|
|
15
|
+
"./vite": "./src/vite.ts"
|
|
23
16
|
},
|
|
24
17
|
"files": [
|
|
25
|
-
"src"
|
|
26
|
-
"dist",
|
|
27
|
-
"epos.schema.json"
|
|
18
|
+
"src"
|
|
28
19
|
],
|
|
29
20
|
"dependencies": {
|
|
30
21
|
"@types/chrome": "^0.1.16",
|
package/dist/epos.d.ts
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import * as mobx from 'mobx';
|
|
2
|
-
import * as mobxReactLite from 'mobx-react-lite';
|
|
3
|
-
import * as react from 'react';
|
|
4
|
-
import * as reactDom from 'react-dom';
|
|
5
|
-
import * as reactDomClient from 'react-dom/client';
|
|
6
|
-
import * as reactJsxRuntime from 'react/jsx-runtime';
|
|
7
|
-
import * as yjs from 'yjs';
|
|
8
|
-
|
|
9
|
-
type Fn<T = any> = (...args: any[]) => T;
|
|
10
|
-
type Obj = Record<string, unknown>;
|
|
11
|
-
type Versioner = Record<number, (this: any, state: any) => void>;
|
|
12
|
-
type ClassName = string | null | boolean | undefined | ClassName[];
|
|
13
|
-
type ModelClass = new (...args: any[]) => any;
|
|
14
|
-
type Model = InstanceType<ModelClass>;
|
|
15
|
-
type Initial<T extends Obj | Model> = T | (() => T);
|
|
16
|
-
type Storage = {
|
|
17
|
-
/** Get value from the storage. */
|
|
18
|
-
get<T = unknown>(key: string): Promise<T>;
|
|
19
|
-
/** Set value in the storage. */
|
|
20
|
-
set<T = unknown>(key: string, value: T): Promise<void>;
|
|
21
|
-
/** Delete value from the storage. */
|
|
22
|
-
delete(key: string): Promise<void>;
|
|
23
|
-
/** Get all keys from the storage. */
|
|
24
|
-
keys(): Promise<string[]>;
|
|
25
|
-
/** Clear the storage. Deletes all keys and storage itself. */
|
|
26
|
-
clear(): Promise<void>;
|
|
27
|
-
};
|
|
28
|
-
interface Epos {
|
|
29
|
-
fetch: typeof window.fetch;
|
|
30
|
-
browser: typeof chrome;
|
|
31
|
-
element: HTMLDivElement;
|
|
32
|
-
render(node: react.ReactNode, container?: reactDomClient.Container): void;
|
|
33
|
-
component: {
|
|
34
|
-
<P>(Component: react.FC<P>): typeof Component;
|
|
35
|
-
<P>(name: string, Component: react.FC<P>): typeof Component;
|
|
36
|
-
};
|
|
37
|
-
bus: {
|
|
38
|
-
/** Listen for an event. */
|
|
39
|
-
on(eventName: string, callback: Fn, thisValue?: unknown): void;
|
|
40
|
-
/** Remove event listener. */
|
|
41
|
-
off(eventName: string, callback?: Fn): void;
|
|
42
|
-
/** Listen for an event once. */
|
|
43
|
-
once(eventName: string, callback: Fn, thisValue?: unknown): void;
|
|
44
|
-
/** Send an event to all remote listeners (local listeners are ignored). */
|
|
45
|
-
send<T = unknown>(eventName: string, ...args: unknown[]): Promise<T>;
|
|
46
|
-
/** Emit event locally (calls local listeners only). */
|
|
47
|
-
emit<T = unknown>(eventName: string, ...args: unknown[]): Promise<T>;
|
|
48
|
-
};
|
|
49
|
-
state: {
|
|
50
|
-
/** Connect state. */
|
|
51
|
-
connect: {
|
|
52
|
-
<T extends Obj | Model>(initial?: Initial<T>, versioner?: Versioner): Promise<T>;
|
|
53
|
-
<T extends Obj | Model>(name?: string, initial?: Initial<T>, versioner?: Versioner): Promise<T>;
|
|
54
|
-
};
|
|
55
|
-
/** Disconnect state. */
|
|
56
|
-
disconnect(name?: string): void;
|
|
57
|
-
/** Run any state changes in a batch. */
|
|
58
|
-
transaction: (fn: () => void) => void;
|
|
59
|
-
/** Create local state (no sync). */
|
|
60
|
-
local<T extends Obj = {}>(state?: T): T;
|
|
61
|
-
/** Get the list of all state names. */
|
|
62
|
-
list(filter?: {
|
|
63
|
-
connected?: boolean;
|
|
64
|
-
}): Promise<{
|
|
65
|
-
name: string | null;
|
|
66
|
-
}[]>;
|
|
67
|
-
/** Remove state and all its data. */
|
|
68
|
-
destroy(name?: string): Promise<void>;
|
|
69
|
-
/** Register models for all states. */
|
|
70
|
-
registerModels(models: Record<string, ModelClass>): void;
|
|
71
|
-
symbols: {
|
|
72
|
-
readonly parent: unique symbol;
|
|
73
|
-
readonly modelInit: unique symbol;
|
|
74
|
-
readonly modelCleanup: unique symbol;
|
|
75
|
-
readonly modelVersioner: unique symbol;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
storage: {
|
|
79
|
-
/** Get value from the storage. */
|
|
80
|
-
get<T = unknown>(key: string, storageName?: string): Promise<T>;
|
|
81
|
-
/** Set value in the storage. */
|
|
82
|
-
set<T = unknown>(key: string, value: T, storageName?: string): Promise<void>;
|
|
83
|
-
/** Delete value from the storage. */
|
|
84
|
-
delete(key: string, storageName?: string): Promise<void>;
|
|
85
|
-
/** Get all keys from the storage. */
|
|
86
|
-
keys(storageName?: string): Promise<string[]>;
|
|
87
|
-
/** Clear storage. Removes all keys and storage itself. */
|
|
88
|
-
clear(storageName?: string): Promise<void>;
|
|
89
|
-
/** Get storage API for a specific storage. */
|
|
90
|
-
use(storageName: string): Promise<Storage>;
|
|
91
|
-
/** Get this list of all storages. */
|
|
92
|
-
list(): Promise<{
|
|
93
|
-
name: string | null;
|
|
94
|
-
}[]>;
|
|
95
|
-
};
|
|
96
|
-
frame: {
|
|
97
|
-
/** Open frame in the background. */
|
|
98
|
-
open(name: string, url: string, attributes?: Record<string, unknown>): Promise<void>;
|
|
99
|
-
/** Remove background frame by its name. */
|
|
100
|
-
close(name: string): Promise<void>;
|
|
101
|
-
/** Get list of all open background frames. */
|
|
102
|
-
list(): Promise<{
|
|
103
|
-
name: string;
|
|
104
|
-
url: string;
|
|
105
|
-
}[]>;
|
|
106
|
-
};
|
|
107
|
-
assets: {
|
|
108
|
-
/** Get asset URL. The asset must be loaded first. */
|
|
109
|
-
url(path: string): string;
|
|
110
|
-
/** Load asset by path. */
|
|
111
|
-
load(path: string): Promise<Blob>;
|
|
112
|
-
/** Load all assets. */
|
|
113
|
-
loadAll(): Promise<Blob[]>;
|
|
114
|
-
/** Unload asset from memory. */
|
|
115
|
-
unload(path: string): void;
|
|
116
|
-
/** Unload all assets from memory. */
|
|
117
|
-
unloadAll(): void;
|
|
118
|
-
/** Get list of all available assets. */
|
|
119
|
-
list(filter?: {
|
|
120
|
-
loaded?: boolean;
|
|
121
|
-
}): {
|
|
122
|
-
path: string;
|
|
123
|
-
loaded: boolean;
|
|
124
|
-
}[];
|
|
125
|
-
};
|
|
126
|
-
env: {
|
|
127
|
-
tabId: number;
|
|
128
|
-
isWeb: boolean;
|
|
129
|
-
isPopup: boolean;
|
|
130
|
-
isSidePanel: boolean;
|
|
131
|
-
isBackground: boolean;
|
|
132
|
-
};
|
|
133
|
-
libs: {
|
|
134
|
-
mobx: typeof mobx;
|
|
135
|
-
mobxReactLite: typeof mobxReactLite;
|
|
136
|
-
react: typeof react;
|
|
137
|
-
reactDom: typeof reactDom;
|
|
138
|
-
reactDomClient: typeof reactDomClient;
|
|
139
|
-
reactJsxRuntime: typeof reactJsxRuntime;
|
|
140
|
-
yjs: typeof yjs;
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
declare global {
|
|
144
|
-
var epos: Epos;
|
|
145
|
-
namespace React {
|
|
146
|
-
interface HTMLAttributes<T> {
|
|
147
|
-
class?: ClassName;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
declare const _epos: Epos;
|
|
152
|
-
var epos$1 = epos;
|
|
153
|
-
|
|
154
|
-
export { type ClassName, type Epos, type Fn, type Initial, type Model, type ModelClass, type Obj, type Storage, type Versioner, epos$1 as default, _epos as epos };
|
package/dist/epos.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const {
|
|
2
|
-
enableStaticRendering,
|
|
3
|
-
isUsingStaticRendering,
|
|
4
|
-
observer,
|
|
5
|
-
Observer,
|
|
6
|
-
observerBatching,
|
|
7
|
-
useAsObservableSource,
|
|
8
|
-
useLocalObservable,
|
|
9
|
-
useLocalStore,
|
|
10
|
-
useObserver,
|
|
11
|
-
useStaticRendering,
|
|
12
|
-
} = epos.libs.mobxReactLite;
|
|
13
|
-
|
|
14
|
-
export { Observer, enableStaticRendering, isUsingStaticRendering, observer, observerBatching, useAsObservableSource, useLocalObservable, useLocalStore, useObserver, useStaticRendering };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// src/libs/libs-mobx-react-lite.js
|
|
2
|
-
var {
|
|
3
|
-
enableStaticRendering,
|
|
4
|
-
isUsingStaticRendering,
|
|
5
|
-
observer,
|
|
6
|
-
Observer,
|
|
7
|
-
observerBatching,
|
|
8
|
-
useAsObservableSource,
|
|
9
|
-
useLocalObservable,
|
|
10
|
-
useLocalStore,
|
|
11
|
-
useObserver,
|
|
12
|
-
useStaticRendering
|
|
13
|
-
} = epos.libs.mobxReactLite;
|
|
14
|
-
export {
|
|
15
|
-
Observer,
|
|
16
|
-
enableStaticRendering,
|
|
17
|
-
isUsingStaticRendering,
|
|
18
|
-
observer,
|
|
19
|
-
observerBatching,
|
|
20
|
-
useAsObservableSource,
|
|
21
|
-
useLocalObservable,
|
|
22
|
-
useLocalStore,
|
|
23
|
-
useObserver,
|
|
24
|
-
useStaticRendering
|
|
25
|
-
};
|
package/dist/libs/libs-mobx.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
const {
|
|
2
|
-
_allowStateChanges,
|
|
3
|
-
_allowStateChangesInsideComputed,
|
|
4
|
-
_allowStateReadsEnd,
|
|
5
|
-
_allowStateReadsStart,
|
|
6
|
-
_autoAction,
|
|
7
|
-
_endAction,
|
|
8
|
-
_getAdministration,
|
|
9
|
-
_getGlobalState,
|
|
10
|
-
_interceptReads,
|
|
11
|
-
_isComputingDerivation,
|
|
12
|
-
_resetGlobalState,
|
|
13
|
-
_startAction,
|
|
14
|
-
$mobx,
|
|
15
|
-
action,
|
|
16
|
-
autorun,
|
|
17
|
-
comparer,
|
|
18
|
-
computed,
|
|
19
|
-
configure,
|
|
20
|
-
createAtom,
|
|
21
|
-
defineProperty,
|
|
22
|
-
entries,
|
|
23
|
-
extendObservable,
|
|
24
|
-
FlowCancellationError,
|
|
25
|
-
flowResult,
|
|
26
|
-
get,
|
|
27
|
-
getAtom,
|
|
28
|
-
getDebugName,
|
|
29
|
-
getDependencyTree,
|
|
30
|
-
getObserverTree,
|
|
31
|
-
has,
|
|
32
|
-
intercept,
|
|
33
|
-
isAction,
|
|
34
|
-
isBoxedObservable,
|
|
35
|
-
isComputed,
|
|
36
|
-
isComputedProp,
|
|
37
|
-
isFlow,
|
|
38
|
-
isFlowCancellationError,
|
|
39
|
-
isObservable,
|
|
40
|
-
isObservableArray,
|
|
41
|
-
isObservableMap,
|
|
42
|
-
isObservableObject,
|
|
43
|
-
isObservableProp,
|
|
44
|
-
isObservableSet,
|
|
45
|
-
keys,
|
|
46
|
-
makeAutoObservable,
|
|
47
|
-
makeObservable,
|
|
48
|
-
observable,
|
|
49
|
-
ObservableMap,
|
|
50
|
-
ObservableSet,
|
|
51
|
-
observe,
|
|
52
|
-
onBecomeObserved,
|
|
53
|
-
onBecomeUnobserved,
|
|
54
|
-
onReactionError,
|
|
55
|
-
override,
|
|
56
|
-
ownKeys,
|
|
57
|
-
reaction,
|
|
58
|
-
Reaction,
|
|
59
|
-
remove,
|
|
60
|
-
runInAction,
|
|
61
|
-
set,
|
|
62
|
-
spy,
|
|
63
|
-
toJS,
|
|
64
|
-
trace,
|
|
65
|
-
transaction,
|
|
66
|
-
untracked,
|
|
67
|
-
values,
|
|
68
|
-
when,
|
|
69
|
-
} = epos.libs.mobx;
|
|
70
|
-
|
|
71
|
-
export { $mobx, FlowCancellationError, ObservableMap, ObservableSet, Reaction, _allowStateChanges, _allowStateChangesInsideComputed, _allowStateReadsEnd, _allowStateReadsStart, _autoAction, _endAction, _getAdministration, _getGlobalState, _interceptReads, _isComputingDerivation, _resetGlobalState, _startAction, action, autorun, comparer, computed, configure, createAtom, defineProperty, entries, extendObservable, flowResult, get, getAtom, getDebugName, getDependencyTree, getObserverTree, has, intercept, isAction, isBoxedObservable, isComputed, isComputedProp, isFlow, isFlowCancellationError, isObservable, isObservableArray, isObservableMap, isObservableObject, isObservableProp, isObservableSet, keys, makeAutoObservable, makeObservable, observable, observe, onBecomeObserved, onBecomeUnobserved, onReactionError, override, ownKeys, reaction, remove, runInAction, set, spy, toJS, trace, transaction, untracked, values, when };
|
package/dist/libs/libs-mobx.js
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
// src/libs/libs-mobx.js
|
|
2
|
-
var {
|
|
3
|
-
_allowStateChanges,
|
|
4
|
-
_allowStateChangesInsideComputed,
|
|
5
|
-
_allowStateReadsEnd,
|
|
6
|
-
_allowStateReadsStart,
|
|
7
|
-
_autoAction,
|
|
8
|
-
_endAction,
|
|
9
|
-
_getAdministration,
|
|
10
|
-
_getGlobalState,
|
|
11
|
-
_interceptReads,
|
|
12
|
-
_isComputingDerivation,
|
|
13
|
-
_resetGlobalState,
|
|
14
|
-
_startAction,
|
|
15
|
-
$mobx,
|
|
16
|
-
action,
|
|
17
|
-
autorun,
|
|
18
|
-
comparer,
|
|
19
|
-
computed,
|
|
20
|
-
configure,
|
|
21
|
-
createAtom,
|
|
22
|
-
defineProperty,
|
|
23
|
-
entries,
|
|
24
|
-
extendObservable,
|
|
25
|
-
FlowCancellationError,
|
|
26
|
-
flowResult,
|
|
27
|
-
get,
|
|
28
|
-
getAtom,
|
|
29
|
-
getDebugName,
|
|
30
|
-
getDependencyTree,
|
|
31
|
-
getObserverTree,
|
|
32
|
-
has,
|
|
33
|
-
intercept,
|
|
34
|
-
isAction,
|
|
35
|
-
isBoxedObservable,
|
|
36
|
-
isComputed,
|
|
37
|
-
isComputedProp,
|
|
38
|
-
isFlow,
|
|
39
|
-
isFlowCancellationError,
|
|
40
|
-
isObservable,
|
|
41
|
-
isObservableArray,
|
|
42
|
-
isObservableMap,
|
|
43
|
-
isObservableObject,
|
|
44
|
-
isObservableProp,
|
|
45
|
-
isObservableSet,
|
|
46
|
-
keys,
|
|
47
|
-
makeAutoObservable,
|
|
48
|
-
makeObservable,
|
|
49
|
-
observable,
|
|
50
|
-
ObservableMap,
|
|
51
|
-
ObservableSet,
|
|
52
|
-
observe,
|
|
53
|
-
onBecomeObserved,
|
|
54
|
-
onBecomeUnobserved,
|
|
55
|
-
onReactionError,
|
|
56
|
-
override,
|
|
57
|
-
ownKeys,
|
|
58
|
-
reaction,
|
|
59
|
-
Reaction,
|
|
60
|
-
remove,
|
|
61
|
-
runInAction,
|
|
62
|
-
set,
|
|
63
|
-
spy,
|
|
64
|
-
toJS,
|
|
65
|
-
trace,
|
|
66
|
-
transaction,
|
|
67
|
-
untracked,
|
|
68
|
-
values,
|
|
69
|
-
when
|
|
70
|
-
} = epos.libs.mobx;
|
|
71
|
-
export {
|
|
72
|
-
$mobx,
|
|
73
|
-
FlowCancellationError,
|
|
74
|
-
ObservableMap,
|
|
75
|
-
ObservableSet,
|
|
76
|
-
Reaction,
|
|
77
|
-
_allowStateChanges,
|
|
78
|
-
_allowStateChangesInsideComputed,
|
|
79
|
-
_allowStateReadsEnd,
|
|
80
|
-
_allowStateReadsStart,
|
|
81
|
-
_autoAction,
|
|
82
|
-
_endAction,
|
|
83
|
-
_getAdministration,
|
|
84
|
-
_getGlobalState,
|
|
85
|
-
_interceptReads,
|
|
86
|
-
_isComputingDerivation,
|
|
87
|
-
_resetGlobalState,
|
|
88
|
-
_startAction,
|
|
89
|
-
action,
|
|
90
|
-
autorun,
|
|
91
|
-
comparer,
|
|
92
|
-
computed,
|
|
93
|
-
configure,
|
|
94
|
-
createAtom,
|
|
95
|
-
defineProperty,
|
|
96
|
-
entries,
|
|
97
|
-
extendObservable,
|
|
98
|
-
flowResult,
|
|
99
|
-
get,
|
|
100
|
-
getAtom,
|
|
101
|
-
getDebugName,
|
|
102
|
-
getDependencyTree,
|
|
103
|
-
getObserverTree,
|
|
104
|
-
has,
|
|
105
|
-
intercept,
|
|
106
|
-
isAction,
|
|
107
|
-
isBoxedObservable,
|
|
108
|
-
isComputed,
|
|
109
|
-
isComputedProp,
|
|
110
|
-
isFlow,
|
|
111
|
-
isFlowCancellationError,
|
|
112
|
-
isObservable,
|
|
113
|
-
isObservableArray,
|
|
114
|
-
isObservableMap,
|
|
115
|
-
isObservableObject,
|
|
116
|
-
isObservableProp,
|
|
117
|
-
isObservableSet,
|
|
118
|
-
keys,
|
|
119
|
-
makeAutoObservable,
|
|
120
|
-
makeObservable,
|
|
121
|
-
observable,
|
|
122
|
-
observe,
|
|
123
|
-
onBecomeObserved,
|
|
124
|
-
onBecomeUnobserved,
|
|
125
|
-
onReactionError,
|
|
126
|
-
override,
|
|
127
|
-
ownKeys,
|
|
128
|
-
reaction,
|
|
129
|
-
remove,
|
|
130
|
-
runInAction,
|
|
131
|
-
set,
|
|
132
|
-
spy,
|
|
133
|
-
toJS,
|
|
134
|
-
trace,
|
|
135
|
-
transaction,
|
|
136
|
-
untracked,
|
|
137
|
-
values,
|
|
138
|
-
when
|
|
139
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var libsReactDom = epos.libs.reactDom;
|
|
2
|
-
const {
|
|
3
|
-
createPortal,
|
|
4
|
-
flushSync,
|
|
5
|
-
preconnect,
|
|
6
|
-
prefetchDNS,
|
|
7
|
-
preinit,
|
|
8
|
-
preinitModule,
|
|
9
|
-
preload,
|
|
10
|
-
preloadModule,
|
|
11
|
-
requestFormReset,
|
|
12
|
-
unstable_batchedUpdates,
|
|
13
|
-
useFormState,
|
|
14
|
-
useFormStatus,
|
|
15
|
-
version,
|
|
16
|
-
} = epos.libs.reactDom;
|
|
17
|
-
|
|
18
|
-
export { createPortal, libsReactDom as default, flushSync, preconnect, prefetchDNS, preinit, preinitModule, preload, preloadModule, requestFormReset, unstable_batchedUpdates, useFormState, useFormStatus, version };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// src/libs/libs-react-dom.js
|
|
2
|
-
var libs_react_dom_default = epos.libs.reactDom;
|
|
3
|
-
var {
|
|
4
|
-
createPortal,
|
|
5
|
-
flushSync,
|
|
6
|
-
preconnect,
|
|
7
|
-
prefetchDNS,
|
|
8
|
-
preinit,
|
|
9
|
-
preinitModule,
|
|
10
|
-
preload,
|
|
11
|
-
preloadModule,
|
|
12
|
-
requestFormReset,
|
|
13
|
-
unstable_batchedUpdates,
|
|
14
|
-
useFormState,
|
|
15
|
-
useFormStatus,
|
|
16
|
-
version
|
|
17
|
-
} = epos.libs.reactDom;
|
|
18
|
-
export {
|
|
19
|
-
createPortal,
|
|
20
|
-
libs_react_dom_default as default,
|
|
21
|
-
flushSync,
|
|
22
|
-
preconnect,
|
|
23
|
-
prefetchDNS,
|
|
24
|
-
preinit,
|
|
25
|
-
preinitModule,
|
|
26
|
-
preload,
|
|
27
|
-
preloadModule,
|
|
28
|
-
requestFormReset,
|
|
29
|
-
unstable_batchedUpdates,
|
|
30
|
-
useFormState,
|
|
31
|
-
useFormStatus,
|
|
32
|
-
version
|
|
33
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
var libsReact = epos.libs.react;
|
|
2
|
-
const {
|
|
3
|
-
act,
|
|
4
|
-
cache,
|
|
5
|
-
Children,
|
|
6
|
-
cloneElement,
|
|
7
|
-
Component,
|
|
8
|
-
createContext,
|
|
9
|
-
createElement,
|
|
10
|
-
createRef,
|
|
11
|
-
forwardRef,
|
|
12
|
-
Fragment,
|
|
13
|
-
isValidElement,
|
|
14
|
-
lazy,
|
|
15
|
-
memo,
|
|
16
|
-
Profiler,
|
|
17
|
-
PureComponent,
|
|
18
|
-
startTransition,
|
|
19
|
-
StrictMode,
|
|
20
|
-
Suspense,
|
|
21
|
-
use,
|
|
22
|
-
useActionState,
|
|
23
|
-
useCallback,
|
|
24
|
-
useContext,
|
|
25
|
-
useDebugValue,
|
|
26
|
-
useDeferredValue,
|
|
27
|
-
useEffect,
|
|
28
|
-
useId,
|
|
29
|
-
useImperativeHandle,
|
|
30
|
-
useInsertionEffect,
|
|
31
|
-
useLayoutEffect,
|
|
32
|
-
useMemo,
|
|
33
|
-
useOptimistic,
|
|
34
|
-
useReducer,
|
|
35
|
-
useRef,
|
|
36
|
-
useState,
|
|
37
|
-
useSyncExternalStore,
|
|
38
|
-
useTransition,
|
|
39
|
-
version,
|
|
40
|
-
} = epos.libs.react;
|
|
41
|
-
|
|
42
|
-
export { Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, act, cache, cloneElement, createContext, createElement, createRef, libsReact as default, forwardRef, isValidElement, lazy, memo, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, version };
|
package/dist/libs/libs-react.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
// src/libs/libs-react.js
|
|
2
|
-
var libs_react_default = epos.libs.react;
|
|
3
|
-
var {
|
|
4
|
-
act,
|
|
5
|
-
cache,
|
|
6
|
-
Children,
|
|
7
|
-
cloneElement,
|
|
8
|
-
Component,
|
|
9
|
-
createContext,
|
|
10
|
-
createElement,
|
|
11
|
-
createRef,
|
|
12
|
-
forwardRef,
|
|
13
|
-
Fragment,
|
|
14
|
-
isValidElement,
|
|
15
|
-
lazy,
|
|
16
|
-
memo,
|
|
17
|
-
Profiler,
|
|
18
|
-
PureComponent,
|
|
19
|
-
startTransition,
|
|
20
|
-
StrictMode,
|
|
21
|
-
Suspense,
|
|
22
|
-
use,
|
|
23
|
-
useActionState,
|
|
24
|
-
useCallback,
|
|
25
|
-
useContext,
|
|
26
|
-
useDebugValue,
|
|
27
|
-
useDeferredValue,
|
|
28
|
-
useEffect,
|
|
29
|
-
useId,
|
|
30
|
-
useImperativeHandle,
|
|
31
|
-
useInsertionEffect,
|
|
32
|
-
useLayoutEffect,
|
|
33
|
-
useMemo,
|
|
34
|
-
useOptimistic,
|
|
35
|
-
useReducer,
|
|
36
|
-
useRef,
|
|
37
|
-
useState,
|
|
38
|
-
useSyncExternalStore,
|
|
39
|
-
useTransition,
|
|
40
|
-
version
|
|
41
|
-
} = epos.libs.react;
|
|
42
|
-
export {
|
|
43
|
-
Children,
|
|
44
|
-
Component,
|
|
45
|
-
Fragment,
|
|
46
|
-
Profiler,
|
|
47
|
-
PureComponent,
|
|
48
|
-
StrictMode,
|
|
49
|
-
Suspense,
|
|
50
|
-
act,
|
|
51
|
-
cache,
|
|
52
|
-
cloneElement,
|
|
53
|
-
createContext,
|
|
54
|
-
createElement,
|
|
55
|
-
createRef,
|
|
56
|
-
libs_react_default as default,
|
|
57
|
-
forwardRef,
|
|
58
|
-
isValidElement,
|
|
59
|
-
lazy,
|
|
60
|
-
memo,
|
|
61
|
-
startTransition,
|
|
62
|
-
use,
|
|
63
|
-
useActionState,
|
|
64
|
-
useCallback,
|
|
65
|
-
useContext,
|
|
66
|
-
useDebugValue,
|
|
67
|
-
useDeferredValue,
|
|
68
|
-
useEffect,
|
|
69
|
-
useId,
|
|
70
|
-
useImperativeHandle,
|
|
71
|
-
useInsertionEffect,
|
|
72
|
-
useLayoutEffect,
|
|
73
|
-
useMemo,
|
|
74
|
-
useOptimistic,
|
|
75
|
-
useReducer,
|
|
76
|
-
useRef,
|
|
77
|
-
useState,
|
|
78
|
-
useSyncExternalStore,
|
|
79
|
-
useTransition,
|
|
80
|
-
version
|
|
81
|
-
};
|
package/dist/vite.d.ts
DELETED
package/dist/vite.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// src/vite.ts
|
|
2
|
-
import { resolve } from "path";
|
|
3
|
-
var libs = {
|
|
4
|
-
"react": resolve(import.meta.dirname, "./libs/libs-react.js"),
|
|
5
|
-
"react/jsx-runtime": resolve(import.meta.dirname, "./libs/libs-react-jsx-runtime.js"),
|
|
6
|
-
"react-dom": resolve(import.meta.dirname, "./libs/libs-react-dom.js"),
|
|
7
|
-
"react-dom/client": resolve(import.meta.dirname, "./libs/libs-react-dom-client.js"),
|
|
8
|
-
"mobx": resolve(import.meta.dirname, "./libs/libs-mobx.js"),
|
|
9
|
-
"mobx-react-lite": resolve(import.meta.dirname, "./libs/libs-mobx-react-lite.js")
|
|
10
|
-
};
|
|
11
|
-
function epos() {
|
|
12
|
-
return {
|
|
13
|
-
name: "epos",
|
|
14
|
-
enforce: "pre",
|
|
15
|
-
resolveId: (source) => libs[source] ?? null
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
var vite_default = epos;
|
|
19
|
-
export {
|
|
20
|
-
vite_default as default,
|
|
21
|
-
epos
|
|
22
|
-
};
|
package/epos.schema.json
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "Epos Manifest Schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"$schema": { "type": "string" },
|
|
7
|
-
"name": { "$ref": "#/definitions/Name" },
|
|
8
|
-
"icon": { "$ref": "#/definitions/Icon" },
|
|
9
|
-
"title": { "$ref": "#/definitions/Title" },
|
|
10
|
-
"action": { "$ref": "#/definitions/Action" },
|
|
11
|
-
"popup": { "$ref": "#/definitions/Popup" },
|
|
12
|
-
"assets": { "$ref": "#/definitions/Assets" },
|
|
13
|
-
"targets": { "$ref": "#/definitions/Targets" },
|
|
14
|
-
"matches": { "$ref": "#/definitions/Matches" },
|
|
15
|
-
"load": { "$ref": "#/definitions/Load" },
|
|
16
|
-
"mode": { "$ref": "#/definitions/Mode" },
|
|
17
|
-
"manifest": { "$ref": "#/definitions/Manifest" }
|
|
18
|
-
},
|
|
19
|
-
"required": ["name"],
|
|
20
|
-
"additionalProperties": false,
|
|
21
|
-
|
|
22
|
-
"definitions": {
|
|
23
|
-
"Name": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"minLength": 2,
|
|
26
|
-
"maxLength": 50,
|
|
27
|
-
"pattern": "^[a-z0-9\\-]+$"
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
"Icon": {
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
"Title": {
|
|
35
|
-
"type": "string"
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
"Action": {
|
|
39
|
-
"oneOf": [{ "type": "null" }, { "type": "string" }, { "type": "boolean" }]
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
"Popup": {
|
|
43
|
-
"type": "object",
|
|
44
|
-
"properties": {
|
|
45
|
-
"width": { "type": "number", "minimum": 150, "maximum": 800, "default": 400 },
|
|
46
|
-
"height": { "type": "number", "minimum": 150, "maximum": 600, "default": 600 }
|
|
47
|
-
},
|
|
48
|
-
"additionalProperties": false
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
"Assets": {
|
|
52
|
-
"type": "array",
|
|
53
|
-
"items": { "$ref": "#/definitions/Asset" }
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
"Asset": {
|
|
57
|
-
"type": "string"
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
"Targets": {
|
|
61
|
-
"type": "array",
|
|
62
|
-
"items": { "$ref": "#/definitions/Target" }
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
"Target": {
|
|
66
|
-
"type": "object",
|
|
67
|
-
"properties": {
|
|
68
|
-
"matches": { "$ref": "#/definitions/Matches" },
|
|
69
|
-
"load": { "$ref": "#/definitions/Load" },
|
|
70
|
-
"mode": { "$ref": "#/definitions/Mode" }
|
|
71
|
-
},
|
|
72
|
-
"additionalProperties": false
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
"Matches": {
|
|
76
|
-
"oneOf": [
|
|
77
|
-
{ "$ref": "#/definitions/Pattern" },
|
|
78
|
-
{ "type": "array", "items": { "$ref": "#/definitions/Pattern" } }
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
"Pattern": {
|
|
83
|
-
"type": "string"
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
"Load": {
|
|
87
|
-
"oneOf": [
|
|
88
|
-
{ "$ref": "#/definitions/LoadItem" },
|
|
89
|
-
{ "type": "array", "items": { "$ref": "#/definitions/LoadItem" } }
|
|
90
|
-
]
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
"LoadItem": {
|
|
94
|
-
"type": "string",
|
|
95
|
-
"pattern": "^.*\\.(css|js|[^.]+)$"
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
"Mode": {
|
|
99
|
-
"type": "string",
|
|
100
|
-
"enum": ["normal", "shadow", "lite"]
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
"Manifest": {
|
|
104
|
-
"$ref": "https://json.schemastore.org/chrome-manifest.json"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|