proxyjs-web 0.1.0-beta → 0.1.1-beta
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/README.md +9 -1
- package/package.json +2 -1
- package/src/index.d.ts +1 -0
- package/src/types/types.d.ts +15 -0
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# ProxyJS
|
|
2
2
|
|
|
3
|
-
<img src="https://img.shields.io/badge/Version-1.0%20(Beta)-6320d6" alt="Version - Badge">
|
|
3
|
+
<img src="https://img.shields.io/badge/Version-0.1.0%20(Beta)-6320d6" alt="Version - Badge">
|
|
4
|
+
<img alt="NPM Version" src="https://img.shields.io/npm/v/proxyjs-web">
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="133.5" height="28" role="img" aria-label="PROXYJSWEB"><title>PROXYJSWEB</title><g shape-rendering="crispEdges"><rect width="133.5" height="28" fill="#e05d44"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="100"><image x="9" y="7" width="14" height="14" href="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJ3aGl0ZXNtb2tlIiByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+bnBtPC90aXRsZT48cGF0aCBkPSJNMS43NjMgMEMuNzg2IDAgMCAuNzg2IDAgMS43NjN2MjAuNDc0QzAgMjMuMjE0Ljc4NiAyNCAxLjc2MyAyNGgyMC40NzRjLjk3NyAwIDEuNzYzLS43ODYgMS43NjMtMS43NjNWMS43NjNDMjQgLjc4NiAyMy4yMTQgMCAyMi4yMzcgMHpNNS4xMyA1LjMyM2wxMy44MzcuMDE5LS4wMDkgMTMuODM2aC0zLjQ2NGwuMDEtMTAuMzgyaC0zLjQ1NkwxMi4wNCAxOS4xN0g1LjExM3oiLz48L3N2Zz4="/><text transform="scale(.1)" x="767.5" y="175" textLength="895" fill="#fff" font-weight="bold">PROXYJS-WEB</text></g></svg>
|
|
4
6
|
|
|
5
7
|
<p align="center">
|
|
6
8
|
<img src="https://i.postimg.cc/2ydY08wy/proxyjs-logo-nobg.png" width="80" alt="ProxyJS logo" />
|
|
@@ -12,6 +14,12 @@ ProxyJS é uma biblioteca JavaScript reativa minimalista inspirada no Vue e no R
|
|
|
12
14
|
|
|
13
15
|
## Instalação
|
|
14
16
|
|
|
17
|
+
### Via NPM
|
|
18
|
+
|
|
19
|
+
```shell
|
|
20
|
+
npm install proxyjs-web
|
|
21
|
+
```
|
|
22
|
+
|
|
15
23
|
ProxyJS é usado diretamente via módulos ES. Basta importar do `index.js`:
|
|
16
24
|
|
|
17
25
|
```js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proxyjs-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1-beta",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Biblioteca JavaScript reativa minimalista baseada em Proxy nativo do JavaScript e inspirada em frameworks/bibliotecas como React, Vue, JQuery e Preact.",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./src/index.js"
|
|
10
10
|
},
|
|
11
|
+
"types": "./src/types/types.d.ts",
|
|
11
12
|
"files": [
|
|
12
13
|
"src/"
|
|
13
14
|
],
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'proxyjs-web';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare function reactive(target: object): any;
|
|
2
|
+
export declare function effect(fn: () => void): void;
|
|
3
|
+
export declare function computed(fn: () => any): () => any;
|
|
4
|
+
export declare function newState<T>(initial: T): [() => T, (value: T) => void];
|
|
5
|
+
export declare function createRoot(container: string | Element): { render(component: Function): void };
|
|
6
|
+
export declare function renderToRoot(component: Function, container: string | Element): void;
|
|
7
|
+
export declare function registerComponent(name: string, component: Function): void;
|
|
8
|
+
export declare function createStyle(css: string): Record<string, string>;
|
|
9
|
+
export declare function createRouter(routes: { path: string, component: Function }[]): Function;
|
|
10
|
+
export declare function navigate(path: string): void;
|
|
11
|
+
export declare function newNavigate(): (path: string) => void;
|
|
12
|
+
export declare function currentPath(): string;
|
|
13
|
+
export declare const html: Record<string, (...args: any[]) => any>;
|
|
14
|
+
declare const ProxyJS: { fragment: (...children: any[]) => any };
|
|
15
|
+
export default ProxyJS;
|