@expressive/react 0.39.0 → 0.40.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/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
35
35
|
var import_mvc3 = require("@expressive/mvc");
|
|
36
36
|
|
|
37
37
|
// src/component.ts
|
|
38
|
-
function
|
|
38
|
+
function createComponent(render) {
|
|
39
39
|
const Component = (inputProps) => {
|
|
40
40
|
const props = this.use(inputProps, true);
|
|
41
41
|
for (const key in inputProps)
|
|
@@ -60,7 +60,7 @@ function useContext() {
|
|
|
60
60
|
function createContext(value, children) {
|
|
61
61
|
return (0, import_react.createElement)(Shared.Provider, { key: value.id, value }, children);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function usingContext(from, resolve) {
|
|
64
64
|
const waiting = Register.get(from);
|
|
65
65
|
const context = (context2) => {
|
|
66
66
|
resolve(context2.get(this));
|
|
@@ -229,8 +229,8 @@ function Provider(props) {
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
// src/index.ts
|
|
232
|
-
import_mvc3.Model.at =
|
|
233
|
-
import_mvc3.Model.as =
|
|
232
|
+
import_mvc3.Model.at = usingContext;
|
|
233
|
+
import_mvc3.Model.as = createComponent;
|
|
234
234
|
import_mvc3.Model.get = useRemote;
|
|
235
235
|
import_mvc3.Model.use = useLocal;
|
|
236
236
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Model as Model3 } from "@expressive/mvc";
|
|
3
3
|
|
|
4
4
|
// src/component.ts
|
|
5
|
-
function
|
|
5
|
+
function createComponent(render) {
|
|
6
6
|
const Component = (inputProps) => {
|
|
7
7
|
const props = this.use(inputProps, true);
|
|
8
8
|
for (const key in inputProps)
|
|
@@ -27,7 +27,7 @@ function useContext() {
|
|
|
27
27
|
function createContext(value, children) {
|
|
28
28
|
return createElement(Shared.Provider, { key: value.id, value }, children);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function usingContext(from, resolve) {
|
|
31
31
|
const waiting = Register.get(from);
|
|
32
32
|
const context = (context2) => {
|
|
33
33
|
resolve(context2.get(this));
|
|
@@ -196,8 +196,8 @@ function Provider(props) {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
// src/index.ts
|
|
199
|
-
Model3.at =
|
|
200
|
-
Model3.as =
|
|
199
|
+
Model3.at = usingContext;
|
|
200
|
+
Model3.as = createComponent;
|
|
201
201
|
Model3.get = useRemote;
|
|
202
202
|
Model3.use = useLocal;
|
|
203
203
|
export {
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"preversion": "npm run test && npm run build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@expressive/mvc": "^0.
|
|
34
|
+
"@expressive/mvc": "^0.40.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": ">=16.8.0 <19.0.0"
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"react": "^18.2.0",
|
|
43
43
|
"react-test-renderer": "^18.2.0"
|
|
44
44
|
},
|
|
45
|
-
"version": "0.
|
|
46
|
-
"gitHead": "
|
|
45
|
+
"version": "0.40.0",
|
|
46
|
+
"gitHead": "1eb515499dc2d6571d0cc97406192ce8eb0714d2"
|
|
47
47
|
}
|