@expressive/react 0.55.0 → 0.56.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/esm/context.js +11 -1
- package/dist/esm/context.js.map +1 -1
- package/dist/esm/jsx-dev-runtime.js +2 -2
- package/dist/esm/jsx-dev-runtime.js.map +1 -1
- package/dist/esm/jsx-runtime.js +35 -18
- package/dist/esm/jsx-runtime.js.map +1 -1
- package/dist/index.d.ts +11 -4
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.d.ts +2 -2
- package/dist/jsx-dev-runtime.js +1 -1
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx-runtime.d.ts +23 -11
- package/dist/jsx-runtime.js +47 -30
- package/dist/jsx-runtime.js.map +1 -1
- package/package.json +3 -3
package/dist/esm/context.js
CHANGED
|
@@ -9,7 +9,17 @@ function Provider(props) {
|
|
|
9
9
|
const ambient = useContext(Lookup);
|
|
10
10
|
const context = useMemo(() => ambient.push(), [ambient]);
|
|
11
11
|
useEffect(() => () => context.pop(), [ambient]);
|
|
12
|
-
context.include(props.for,
|
|
12
|
+
context.include(props.for, (model) => {
|
|
13
|
+
if ("forEach" in props && props.forEach) {
|
|
14
|
+
const cleanup = props.forEach(model);
|
|
15
|
+
if (cleanup)
|
|
16
|
+
model.get(null, cleanup);
|
|
17
|
+
} else if ("set" in props && props.set) {
|
|
18
|
+
for (const key in props.set)
|
|
19
|
+
if (key in model)
|
|
20
|
+
model[key] = props.set[key];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
13
23
|
return createElement(Lookup.Provider, {
|
|
14
24
|
key: context.id,
|
|
15
25
|
value: context
|
package/dist/esm/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/context.ts"],"sourcesContent":["import Model, { Context } from '@expressive/mvc';\nimport { ReactNode, createContext, createElement, useContext, useEffect, useMemo } from 'react';\n\nconst Lookup = createContext(new Context());\n\ndeclare namespace Consumer {\n type Props<T extends Model> = {\n /** Type of controller to fetch from context. */\n for: Model.Type<T>;\n\n /**\n * Render function, will receive instance of desired controller.\n *\n * Called every render of parent component.\n * Similar to `Model.get()`, updates to properties accessed in\n * this function will cause a refresh when they change.\n */\n children: (value: T) => ReactNode | void;\n }\n}\n\nfunction Consumer<T extends Model>(props: Consumer.Props<T>){\n return props.for.get(i => props.children(i));\n}\n\ndeclare namespace Provider {\n interface
|
|
1
|
+
{"version":3,"sources":["../../src/context.ts"],"sourcesContent":["import Model, { Context } from '@expressive/mvc';\nimport { ReactNode, createContext, createElement, useContext, useEffect, useMemo } from 'react';\n\nconst Lookup = createContext(new Context());\n\ndeclare namespace Consumer {\n type Props<T extends Model> = {\n /** Type of controller to fetch from context. */\n for: Model.Type<T>;\n\n /**\n * Render function, will receive instance of desired controller.\n *\n * Called every render of parent component.\n * Similar to `Model.get()`, updates to properties accessed in\n * this function will cause a refresh when they change.\n */\n children: (value: T) => ReactNode | void;\n }\n}\n\nfunction Consumer<T extends Model>(props: Consumer.Props<T>){\n return props.for.get(i => props.children(i));\n}\n\ndeclare namespace Provider {\n interface SetProps<T extends Model> {\n for: Context.Accept<T>;\n /** @deprecated May be removed in future versions. Use component Models instead. */\n set?: Model.Assign<T>;\n children?: ReactNode;\n }\n\n interface NewProps<T extends Model> {\n for: Context.Accept<T>;\n forEach?: Context.Expect;\n children?: ReactNode;\n }\n\n type Props<T extends Model> = SetProps<T> | NewProps<T>;\n}\n\nfunction Provider<T extends Model>(props: Provider.Props<T>){\n const ambient = useContext(Lookup);\n const context = useMemo(() => ambient.push(), [ambient]);\n\n useEffect(() => () => context.pop(), [ambient]);\n \n // TODO: Replace with Context.ForEach instead.\n context.include(props.for, (model) => {\n if(\"forEach\" in props && props.forEach){\n const cleanup = props.forEach(model);\n\n if(cleanup)\n model.get(null, cleanup);\n }\n else if(\"set\" in props && props.set)\n for(const key in props.set)\n if(key in model)\n (model as any)[key] = props.set[key];\n });\n\n return createElement(Lookup.Provider, {\n key: context.id,\n value: context\n }, props.children);\n}\n\nexport { Consumer, Provider, Lookup as Context }"],"mappings":";AAAA,SAAgB,eAAe;AAC/B,SAAoB,eAAe,eAAe,YAAY,WAAW,eAAe;AAExF,IAAM,SAAS,cAAc,IAAI,QAAQ,CAAC;AAkB1C,SAAS,SAA0B,OAAyB;AAC1D,SAAO,MAAM,IAAI,IAAI,OAAK,MAAM,SAAS,CAAC,CAAC;AAC7C;AAmBA,SAAS,SAA0B,OAAyB;AAC1D,QAAM,UAAU,WAAW,MAAM;AACjC,QAAM,UAAU,QAAQ,MAAM,QAAQ,KAAK,GAAG,CAAC,OAAO,CAAC;AAEvD,YAAU,MAAM,MAAM,QAAQ,IAAI,GAAG,CAAC,OAAO,CAAC;AAG9C,UAAQ,QAAQ,MAAM,KAAK,CAAC,UAAU;AACpC,QAAG,aAAa,SAAS,MAAM,SAAQ;AACrC,YAAM,UAAU,MAAM,QAAQ,KAAK;AAEnC,UAAG;AACD,cAAM,IAAI,MAAM,OAAO;AAAA,IAC3B,WACQ,SAAS,SAAS,MAAM;AAC9B,iBAAU,OAAO,MAAM;AACrB,YAAG,OAAO;AACR,UAAC,MAAc,GAAG,IAAI,MAAM,IAAI,GAAG;AAAA;AAAA,EAC3C,CAAC;AAED,SAAO,cAAc,OAAO,UAAU;AAAA,IACpC,KAAK,QAAQ;AAAA,IACb,OAAO;AAAA,EACT,GAAG,MAAM,QAAQ;AACnB;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/jsx-dev-runtime.ts
|
|
2
2
|
import * as Runtime from "react/jsx-dev-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { create } from "./jsx-runtime";
|
|
4
4
|
import { Fragment } from "react";
|
|
5
|
-
var jsxDEV2 =
|
|
5
|
+
var jsxDEV2 = create.bind(Runtime.jsxDEV);
|
|
6
6
|
export {
|
|
7
7
|
Fragment,
|
|
8
8
|
jsxDEV2 as jsxDEV
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/jsx-dev-runtime.ts"],"sourcesContent":["import * as Runtime from 'react/jsx-dev-runtime';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/jsx-dev-runtime.ts"],"sourcesContent":["import * as Runtime from 'react/jsx-dev-runtime';\nimport { create } from './jsx-runtime';\n\nexport const jsxDEV = create.bind(Runtime.jsxDEV);\n\nexport { type JSX } from './jsx-runtime';\nexport { Fragment } from \"react\";"],"mappings":";AAAA,YAAY,aAAa;AACzB,SAAS,cAAc;AAKvB,SAAS,gBAAgB;AAHlB,IAAMA,UAAS,OAAO,KAAa,cAAM;","names":["jsxDEV"]}
|
package/dist/esm/jsx-runtime.js
CHANGED
|
@@ -1,33 +1,50 @@
|
|
|
1
1
|
// src/jsx-runtime.ts
|
|
2
2
|
import { Model } from "@expressive/mvc";
|
|
3
|
-
import
|
|
4
|
-
import * as Runtime from "react/jsx-runtime";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Provider } from "./context";
|
|
6
5
|
import { Fragment } from "react";
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
function Render(props) {
|
|
7
|
+
return jsx(Provider, {
|
|
8
|
+
for: this,
|
|
9
|
+
set: props,
|
|
10
|
+
forEach: props.is,
|
|
11
|
+
children: jsx(() => {
|
|
10
12
|
const self = this.get();
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
const { render } = self;
|
|
14
|
+
if (render)
|
|
15
|
+
return jsx(() => {
|
|
16
|
+
const self2 = this.get();
|
|
17
|
+
return render.call(self2, props, self2);
|
|
18
|
+
}, {});
|
|
19
|
+
const { children } = self;
|
|
20
|
+
if (children)
|
|
21
|
+
return children;
|
|
22
|
+
const fn = props.children;
|
|
23
|
+
if (typeof fn != "function")
|
|
24
|
+
return fn;
|
|
25
|
+
return jsx(() => {
|
|
26
|
+
const self2 = this.get();
|
|
27
|
+
return fn.call(self2, self2);
|
|
28
|
+
}, {});
|
|
29
|
+
}, {})
|
|
30
|
+
});
|
|
14
31
|
}
|
|
15
|
-
|
|
32
|
+
var RENDER = /* @__PURE__ */ new WeakMap();
|
|
33
|
+
function create(type, props, key, ...args) {
|
|
16
34
|
if (Model.is(type)) {
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, key, ...args);
|
|
35
|
+
const bound = RENDER.get(type);
|
|
36
|
+
if (bound)
|
|
37
|
+
type = bound;
|
|
38
|
+
else
|
|
39
|
+
RENDER.set(type, type = Render.bind(type));
|
|
23
40
|
}
|
|
24
41
|
return this(type, props, key, ...args);
|
|
25
42
|
}
|
|
26
|
-
var jsx2 =
|
|
27
|
-
var jsxs2 =
|
|
43
|
+
var jsx2 = create.bind(jsx);
|
|
44
|
+
var jsxs2 = create.bind(jsxs);
|
|
28
45
|
export {
|
|
29
46
|
Fragment,
|
|
30
|
-
|
|
47
|
+
create,
|
|
31
48
|
jsx2 as jsx,
|
|
32
49
|
jsxs2 as jsxs
|
|
33
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/jsx-runtime.ts"],"sourcesContent":["import { Model } from '@expressive/mvc';\nimport
|
|
1
|
+
{"version":3,"sources":["../../src/jsx-runtime.ts"],"sourcesContent":["import { Model } from '@expressive/mvc';\nimport { jsx, jsxs } from 'react/jsx-runtime';\n\nimport { Provider } from './context';\n\ndeclare module '@expressive/mvc' {\n namespace Model {\n type Render<T extends Model> = (this: T, self: T) => React.ReactNode;\n\n /** Model which is not incompatable as Component in React. */\n interface Compat extends Model {\n render?(props: Model.Assign<this>, self: this): React.ReactNode;\n children?: React.ReactNode;\n }\n\n type Props<T extends Model> = \n & T extends { render(props: infer P): any }\n ? Partial<Pick<T, Exclude<keyof T, keyof Model | \"render\">>> & P\n : Partial<Pick<T, Exclude<keyof T, keyof Model>>> & {\n children?: React.ReactNode | Render<T>;\n }\n & {\n /**\n * Callback for newly created instance. Only called once.\n * @returns Callback to run when instance is destroyed.\n */\n is?: (instance: T) => void | (() => void);\n };\n }\n}\n\nexport declare namespace JSX {\n type ElementType = Model.Type<Model.Compat> | React.JSX.ElementType;\n\n type LibraryManagedAttributes<C, P> =\n // For normal class components, pull from props property explicitly because we dorked up ElementAttributesProperty.\n C extends new (...args: any[]) => { props: infer U } ? U :\n C extends Model.Type<infer U> ? Model.Props<U> :\n React.JSX.LibraryManagedAttributes<C, P>;\n\n interface Element extends React.JSX.Element {}\n interface ElementClass extends React.JSX.ElementClass {}\n // This is a hack to make TypeScript happy - React one insists on `props` property existing.\n // I await the \"Find Out\" phase in git issues.\n interface ElementAttributesProperty {}\n interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}\n\n interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}\n interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}\n interface IntrinsicElements extends React.JSX.IntrinsicElements {}\n}\n\nfunction Render<T extends Model.Compat>(\n this: Model.Init<T>,\n props: Model.Assign<T>\n){\n return jsx(Provider, {\n for: this,\n set: props,\n forEach: props.is,\n children: jsx(() => {\n const self = this.get();\n const { render } = self;\n\n if(render)\n return jsx(() => {\n const self = this.get();\n return render.call(self, props, self);\n }, {});\n\n const { children } = self;\n\n if(children)\n return children;\n\n const fn = props.children as React.ReactNode | Model.Render<T>;\n\n if(typeof fn != \"function\")\n return fn;\n\n return jsx(() => {\n const self = this.get();\n return fn.call(self, self);\n }, {});\n }, {})\n });\n}\n\nconst RENDER = new WeakMap<typeof Model, React.FC>();\n\nexport function create(\n this: (\n type: React.ElementType,\n props: Record<string, any>,\n key?: React.Key,\n ...rest: any[]\n ) => React.ReactElement,\n type: React.ElementType,\n props: Record<string, any>,\n key?: React.Key,\n ...args: any[]){\n\n if(Model.is(type)){\n const bound = RENDER.get(type);\n\n if(bound)\n type = bound;\n else\n RENDER.set(type, type = Render.bind(type as Model.Init));\n }\n \n return this(type, props, key, ...args);\n}\n\nconst jsx2 = create.bind(jsx);\nconst jsxs2 = create.bind(jsxs);\n\nexport { Fragment } from \"react\";\nexport {\n jsx2 as jsx,\n jsxs2 as jsxs\n}"],"mappings":";AAAA,SAAS,aAAa;AACtB,SAAS,KAAK,YAAY;AAE1B,SAAS,gBAAgB;AAkHzB,SAAS,gBAAgB;AAjEzB,SAAS,OAEP,OACD;AACC,SAAO,IAAI,UAAU;AAAA,IACnB,KAAK;AAAA,IACL,KAAK;AAAA,IACL,SAAS,MAAM;AAAA,IACf,UAAU,IAAI,MAAM;AAClB,YAAM,OAAO,KAAK,IAAI;AACtB,YAAM,EAAE,OAAO,IAAI;AAEnB,UAAG;AACD,eAAO,IAAI,MAAM;AACf,gBAAMA,QAAO,KAAK,IAAI;AACtB,iBAAO,OAAO,KAAKA,OAAM,OAAOA,KAAI;AAAA,QACtC,GAAG,CAAC,CAAC;AAEP,YAAM,EAAE,SAAS,IAAI;AAErB,UAAG;AACD,eAAO;AAET,YAAM,KAAK,MAAM;AAEjB,UAAG,OAAO,MAAM;AACd,eAAO;AAET,aAAO,IAAI,MAAM;AACf,cAAMA,QAAO,KAAK,IAAI;AACtB,eAAO,GAAG,KAAKA,OAAMA,KAAI;AAAA,MAC3B,GAAG,CAAC,CAAC;AAAA,IACP,GAAG,CAAC,CAAC;AAAA,EACP,CAAC;AACH;AAEA,IAAM,SAAS,oBAAI,QAAgC;AAE5C,SAAS,OAOd,MACA,OACA,QACG,MAAY;AAEf,MAAG,MAAM,GAAG,IAAI,GAAE;AAChB,UAAM,QAAQ,OAAO,IAAI,IAAI;AAE7B,QAAG;AACD,aAAO;AAAA;AAEP,aAAO,IAAI,MAAM,OAAO,OAAO,KAAK,IAAkB,CAAC;AAAA,EAC3D;AAEA,SAAO,KAAK,MAAM,OAAO,KAAK,GAAG,IAAI;AACvC;AAEA,IAAM,OAAO,OAAO,KAAK,GAAG;AAC5B,IAAM,QAAQ,OAAO,KAAK,IAAI;","names":["self"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Pragma } from './adapter';
|
|
2
2
|
import Model, { Context } from '@expressive/mvc';
|
|
3
3
|
export { Model, Model as default, get, has, ref, set, use } from '@expressive/mvc';
|
|
4
|
-
import * as
|
|
4
|
+
import * as react from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
|
|
7
7
|
declare namespace Consumer {
|
|
@@ -18,14 +18,21 @@ declare namespace Consumer {
|
|
|
18
18
|
children: (value: T) => ReactNode | void;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
declare function Consumer<T extends Model>(props: Consumer.Props<T>): string | number | boolean |
|
|
21
|
+
declare function Consumer<T extends Model>(props: Consumer.Props<T>): string | number | boolean | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | null;
|
|
22
22
|
declare namespace Provider {
|
|
23
|
-
interface
|
|
23
|
+
interface SetProps<T extends Model> {
|
|
24
24
|
for: Context.Accept<T>;
|
|
25
|
+
/** @deprecated May be removed in future versions. Use component Models instead. */
|
|
25
26
|
set?: Model.Assign<T>;
|
|
26
27
|
children?: ReactNode;
|
|
27
28
|
}
|
|
29
|
+
interface NewProps<T extends Model> {
|
|
30
|
+
for: Context.Accept<T>;
|
|
31
|
+
forEach?: Context.Expect;
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
}
|
|
34
|
+
type Props<T extends Model> = SetProps<T> | NewProps<T>;
|
|
28
35
|
}
|
|
29
|
-
declare function Provider<T extends Model>(props: Provider.Props<T>):
|
|
36
|
+
declare function Provider<T extends Model>(props: Provider.Props<T>): react.FunctionComponentElement<react.ProviderProps<Context>>;
|
|
30
37
|
|
|
31
38
|
export { Consumer, Provider };
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,17 @@ function Provider(props) {
|
|
|
45
45
|
const ambient = (0, import_react.useContext)(Lookup);
|
|
46
46
|
const context = (0, import_react.useMemo)(() => ambient.push(), [ambient]);
|
|
47
47
|
(0, import_react.useEffect)(() => () => context.pop(), [ambient]);
|
|
48
|
-
context.include(props.for,
|
|
48
|
+
context.include(props.for, (model) => {
|
|
49
|
+
if ("forEach" in props && props.forEach) {
|
|
50
|
+
const cleanup = props.forEach(model);
|
|
51
|
+
if (cleanup)
|
|
52
|
+
model.get(null, cleanup);
|
|
53
|
+
} else if ("set" in props && props.set) {
|
|
54
|
+
for (const key in props.set)
|
|
55
|
+
if (key in model)
|
|
56
|
+
model[key] = props.set[key];
|
|
57
|
+
}
|
|
58
|
+
});
|
|
49
59
|
return (0, import_react.createElement)(Lookup.Provider, {
|
|
50
60
|
key: context.id,
|
|
51
61
|
value: context
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/context.ts"],"sourcesContent":["import { useContext, useEffect, useState } from 'react';\n\nimport { Pragma } from './adapter';\nimport { Context } from './context';\n\nPragma.useContext = () => useContext(Context);\n\nPragma.useLifecycle = (callback) => useEffect(() => callback(), []);\n\nPragma.useFactory = (factory) => {\n const state = useState(() => factory(() => {\n state[1](x => x.bind(null) as any);\n }));\n\n return state[0];\n}\n\nexport {\n Model, Model as default,\n get, use, ref, set, has\n} from '@expressive/mvc';\n\nexport { Consumer, Provider } from './context';\nexport { type Pragma };\n","import Model, { Context } from '@expressive/mvc';\nimport { ReactNode, createContext, createElement, useContext, useEffect, useMemo } from 'react';\n\nconst Lookup = createContext(new Context());\n\ndeclare namespace Consumer {\n type Props<T extends Model> = {\n /** Type of controller to fetch from context. */\n for: Model.Type<T>;\n\n /**\n * Render function, will receive instance of desired controller.\n *\n * Called every render of parent component.\n * Similar to `Model.get()`, updates to properties accessed in\n * this function will cause a refresh when they change.\n */\n children: (value: T) => ReactNode | void;\n }\n}\n\nfunction Consumer<T extends Model>(props: Consumer.Props<T>){\n return props.for.get(i => props.children(i));\n}\n\ndeclare namespace Provider {\n interface
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/context.ts"],"sourcesContent":["import { useContext, useEffect, useState } from 'react';\n\nimport { Pragma } from './adapter';\nimport { Context } from './context';\n\nPragma.useContext = () => useContext(Context);\n\nPragma.useLifecycle = (callback) => useEffect(() => callback(), []);\n\nPragma.useFactory = (factory) => {\n const state = useState(() => factory(() => {\n state[1](x => x.bind(null) as any);\n }));\n\n return state[0];\n}\n\nexport {\n Model, Model as default,\n get, use, ref, set, has\n} from '@expressive/mvc';\n\nexport { Consumer, Provider } from './context';\nexport { type Pragma };\n","import Model, { Context } from '@expressive/mvc';\nimport { ReactNode, createContext, createElement, useContext, useEffect, useMemo } from 'react';\n\nconst Lookup = createContext(new Context());\n\ndeclare namespace Consumer {\n type Props<T extends Model> = {\n /** Type of controller to fetch from context. */\n for: Model.Type<T>;\n\n /**\n * Render function, will receive instance of desired controller.\n *\n * Called every render of parent component.\n * Similar to `Model.get()`, updates to properties accessed in\n * this function will cause a refresh when they change.\n */\n children: (value: T) => ReactNode | void;\n }\n}\n\nfunction Consumer<T extends Model>(props: Consumer.Props<T>){\n return props.for.get(i => props.children(i));\n}\n\ndeclare namespace Provider {\n interface SetProps<T extends Model> {\n for: Context.Accept<T>;\n /** @deprecated May be removed in future versions. Use component Models instead. */\n set?: Model.Assign<T>;\n children?: ReactNode;\n }\n\n interface NewProps<T extends Model> {\n for: Context.Accept<T>;\n forEach?: Context.Expect;\n children?: ReactNode;\n }\n\n type Props<T extends Model> = SetProps<T> | NewProps<T>;\n}\n\nfunction Provider<T extends Model>(props: Provider.Props<T>){\n const ambient = useContext(Lookup);\n const context = useMemo(() => ambient.push(), [ambient]);\n\n useEffect(() => () => context.pop(), [ambient]);\n \n // TODO: Replace with Context.ForEach instead.\n context.include(props.for, (model) => {\n if(\"forEach\" in props && props.forEach){\n const cleanup = props.forEach(model);\n\n if(cleanup)\n model.get(null, cleanup);\n }\n else if(\"set\" in props && props.set)\n for(const key in props.set)\n if(key in model)\n (model as any)[key] = props.set[key];\n });\n\n return createElement(Lookup.Provider, {\n key: context.id,\n value: context\n }, props.children);\n}\n\nexport { Consumer, Provider, Lookup as Context }"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,gBAAgD;AAEhD,qBAAuB;;;ACFvB,iBAA+B;AAC/B,mBAAwF;AAExF,IAAM,aAAS,4BAAc,IAAI,mBAAQ,CAAC;AAkB1C,SAAS,SAA0B,OAAyB;AAC1D,SAAO,MAAM,IAAI,IAAI,OAAK,MAAM,SAAS,CAAC,CAAC;AAC7C;AAmBA,SAAS,SAA0B,OAAyB;AAC1D,QAAM,cAAU,yBAAW,MAAM;AACjC,QAAM,cAAU,sBAAQ,MAAM,QAAQ,KAAK,GAAG,CAAC,OAAO,CAAC;AAEvD,8BAAU,MAAM,MAAM,QAAQ,IAAI,GAAG,CAAC,OAAO,CAAC;AAG9C,UAAQ,QAAQ,MAAM,KAAK,CAAC,UAAU;AACpC,QAAG,aAAa,SAAS,MAAM,SAAQ;AACrC,YAAM,UAAU,MAAM,QAAQ,KAAK;AAEnC,UAAG;AACD,cAAM,IAAI,MAAM,OAAO;AAAA,IAC3B,WACQ,SAAS,SAAS,MAAM;AAC9B,iBAAU,OAAO,MAAM;AACrB,YAAG,OAAO;AACR,UAAC,MAAc,GAAG,IAAI,MAAM,IAAI,GAAG;AAAA;AAAA,EAC3C,CAAC;AAED,aAAO,4BAAc,OAAO,UAAU;AAAA,IACpC,KAAK,QAAQ;AAAA,IACb,OAAO;AAAA,EACT,GAAG,MAAM,QAAQ;AACnB;;;ADjDA,IAAAC,cAGO;AAfP,sBAAO,aAAa,UAAM,0BAAW,MAAO;AAE5C,sBAAO,eAAe,CAAC,iBAAa,yBAAU,MAAM,SAAS,GAAG,CAAC,CAAC;AAElE,sBAAO,aAAa,CAAC,YAAY;AAC/B,QAAM,YAAQ,wBAAS,MAAM,QAAQ,MAAM;AACzC,UAAM,CAAC,EAAE,OAAK,EAAE,KAAK,IAAI,CAAQ;AAAA,EACnC,CAAC,CAAC;AAEF,SAAO,MAAM,CAAC;AAChB;","names":["import_react","import_mvc"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
export { Fragment } from 'react';
|
|
3
3
|
export { JSX } from './jsx-runtime';
|
|
4
4
|
|
|
5
|
-
declare const jsxDEV: (type:
|
|
5
|
+
declare const jsxDEV: (type: react.ElementType<any, keyof react.JSX.IntrinsicElements>, props: Record<string, any>, key?: react.Key | undefined, ...args: any[]) => react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
6
6
|
|
|
7
7
|
export { jsxDEV };
|
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -37,7 +37,7 @@ module.exports = __toCommonJS(jsx_dev_runtime_exports);
|
|
|
37
37
|
var Runtime = __toESM(require("react/jsx-dev-runtime"));
|
|
38
38
|
var import_jsx_runtime = require("./jsx-runtime");
|
|
39
39
|
var import_react = require("react");
|
|
40
|
-
var jsxDEV2 = import_jsx_runtime.
|
|
40
|
+
var jsxDEV2 = import_jsx_runtime.create.bind(Runtime.jsxDEV);
|
|
41
41
|
// Annotate the CommonJS export names for ESM import in node:
|
|
42
42
|
0 && (module.exports = {
|
|
43
43
|
Fragment,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx-dev-runtime.ts"],"sourcesContent":["import * as Runtime from 'react/jsx-dev-runtime';\nimport {
|
|
1
|
+
{"version":3,"sources":["../src/jsx-dev-runtime.ts"],"sourcesContent":["import * as Runtime from 'react/jsx-dev-runtime';\nimport { create } from './jsx-runtime';\n\nexport const jsxDEV = create.bind(Runtime.jsxDEV);\n\nexport { type JSX } from './jsx-runtime';\nexport { Fragment } from \"react\";"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,gBAAAA;AAAA;AAAA;AAAA,cAAyB;AACzB,yBAAuB;AAKvB,mBAAyB;AAHlB,IAAMA,UAAS,0BAAO,KAAa,cAAM;","names":["jsxDEV"]}
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as React from 'react';
|
|
1
|
+
import * as react from 'react';
|
|
3
2
|
export { Fragment } from 'react';
|
|
3
|
+
import { Model } from '@expressive/mvc';
|
|
4
4
|
|
|
5
|
-
type MaybeArray<T> = T | T[];
|
|
6
5
|
declare module '@expressive/mvc' {
|
|
7
6
|
namespace Model {
|
|
8
|
-
type Render<T extends Model> = (this: T, self: T) => React.ReactNode
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
type Render<T extends Model> = (this: T, self: T) => React.ReactNode;
|
|
8
|
+
/** Model which is not incompatable as Component in React. */
|
|
9
|
+
interface Compat extends Model {
|
|
10
|
+
render?(props: Model.Assign<this>, self: this): React.ReactNode;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
type Props<T extends Model> = T extends {
|
|
14
|
+
render(props: infer P): any;
|
|
15
|
+
} ? Partial<Pick<T, Exclude<keyof T, keyof Model | "render">>> & P : Partial<Pick<T, Exclude<keyof T, keyof Model>>> & {
|
|
16
|
+
children?: React.ReactNode | Render<T>;
|
|
17
|
+
} & {
|
|
18
|
+
/**
|
|
19
|
+
* Callback for newly created instance. Only called once.
|
|
20
|
+
* @returns Callback to run when instance is destroyed.
|
|
21
|
+
*/
|
|
22
|
+
is?: (instance: T) => void | (() => void);
|
|
11
23
|
};
|
|
12
24
|
}
|
|
13
25
|
}
|
|
14
26
|
declare namespace JSX {
|
|
15
|
-
type ElementType = Model.Type | React.JSX.ElementType;
|
|
27
|
+
type ElementType = Model.Type<Model.Compat> | React.JSX.ElementType;
|
|
16
28
|
type LibraryManagedAttributes<C, P> = C extends new (...args: any[]) => {
|
|
17
29
|
props: infer U;
|
|
18
30
|
} ? U : C extends Model.Type<infer U> ? Model.Props<U> : React.JSX.LibraryManagedAttributes<C, P>;
|
|
@@ -31,8 +43,8 @@ declare namespace JSX {
|
|
|
31
43
|
interface IntrinsicElements extends React.JSX.IntrinsicElements {
|
|
32
44
|
}
|
|
33
45
|
}
|
|
34
|
-
declare function
|
|
35
|
-
declare const
|
|
36
|
-
declare const
|
|
46
|
+
declare function create(this: (type: React.ElementType, props: Record<string, any>, key?: React.Key, ...rest: any[]) => React.ReactElement, type: React.ElementType, props: Record<string, any>, key?: React.Key, ...args: any[]): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
47
|
+
declare const jsx2: (type: react.ElementType<any, keyof react.JSX.IntrinsicElements>, props: Record<string, any>, key?: react.Key | undefined, ...args: any[]) => react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
48
|
+
declare const jsxs2: (type: react.ElementType<any, keyof react.JSX.IntrinsicElements>, props: Record<string, any>, key?: react.Key | undefined, ...args: any[]) => react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
37
49
|
|
|
38
|
-
export { JSX,
|
|
50
|
+
export { JSX, create, jsx2 as jsx, jsxs2 as jsxs };
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,28 +15,19 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
|
|
30
20
|
// src/jsx-runtime.ts
|
|
31
21
|
var jsx_runtime_exports = {};
|
|
32
22
|
__export(jsx_runtime_exports, {
|
|
33
23
|
Fragment: () => import_react2.Fragment,
|
|
34
|
-
|
|
24
|
+
create: () => create,
|
|
35
25
|
jsx: () => jsx2,
|
|
36
26
|
jsxs: () => jsxs2
|
|
37
27
|
});
|
|
38
28
|
module.exports = __toCommonJS(jsx_runtime_exports);
|
|
39
29
|
var import_mvc2 = require("@expressive/mvc");
|
|
40
|
-
var
|
|
41
|
-
var Runtime = __toESM(require("react/jsx-runtime"));
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
31
|
|
|
43
32
|
// src/context.ts
|
|
44
33
|
var import_mvc = require("@expressive/mvc");
|
|
@@ -48,7 +37,17 @@ function Provider(props) {
|
|
|
48
37
|
const ambient = (0, import_react.useContext)(Lookup);
|
|
49
38
|
const context = (0, import_react.useMemo)(() => ambient.push(), [ambient]);
|
|
50
39
|
(0, import_react.useEffect)(() => () => context.pop(), [ambient]);
|
|
51
|
-
context.include(props.for,
|
|
40
|
+
context.include(props.for, (model) => {
|
|
41
|
+
if ("forEach" in props && props.forEach) {
|
|
42
|
+
const cleanup = props.forEach(model);
|
|
43
|
+
if (cleanup)
|
|
44
|
+
model.get(null, cleanup);
|
|
45
|
+
} else if ("set" in props && props.set) {
|
|
46
|
+
for (const key in props.set)
|
|
47
|
+
if (key in model)
|
|
48
|
+
model[key] = props.set[key];
|
|
49
|
+
}
|
|
50
|
+
});
|
|
52
51
|
return (0, import_react.createElement)(Lookup.Provider, {
|
|
53
52
|
key: context.id,
|
|
54
53
|
value: context
|
|
@@ -57,31 +56,49 @@ function Provider(props) {
|
|
|
57
56
|
|
|
58
57
|
// src/jsx-runtime.ts
|
|
59
58
|
var import_react2 = require("react");
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
function Render(props) {
|
|
60
|
+
return (0, import_jsx_runtime.jsx)(Provider, {
|
|
61
|
+
for: this,
|
|
62
|
+
set: props,
|
|
63
|
+
forEach: props.is,
|
|
64
|
+
children: (0, import_jsx_runtime.jsx)(() => {
|
|
63
65
|
const self = this.get();
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
const { render } = self;
|
|
67
|
+
if (render)
|
|
68
|
+
return (0, import_jsx_runtime.jsx)(() => {
|
|
69
|
+
const self2 = this.get();
|
|
70
|
+
return render.call(self2, props, self2);
|
|
71
|
+
}, {});
|
|
72
|
+
const { children } = self;
|
|
73
|
+
if (children)
|
|
74
|
+
return children;
|
|
75
|
+
const fn = props.children;
|
|
76
|
+
if (typeof fn != "function")
|
|
77
|
+
return fn;
|
|
78
|
+
return (0, import_jsx_runtime.jsx)(() => {
|
|
79
|
+
const self2 = this.get();
|
|
80
|
+
return fn.call(self2, self2);
|
|
81
|
+
}, {});
|
|
82
|
+
}, {})
|
|
83
|
+
});
|
|
67
84
|
}
|
|
68
|
-
|
|
85
|
+
var RENDER = /* @__PURE__ */ new WeakMap();
|
|
86
|
+
function create(type, props, key, ...args) {
|
|
69
87
|
if (import_mvc2.Model.is(type)) {
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}, key, ...args);
|
|
88
|
+
const bound = RENDER.get(type);
|
|
89
|
+
if (bound)
|
|
90
|
+
type = bound;
|
|
91
|
+
else
|
|
92
|
+
RENDER.set(type, type = Render.bind(type));
|
|
76
93
|
}
|
|
77
94
|
return this(type, props, key, ...args);
|
|
78
95
|
}
|
|
79
|
-
var jsx2 =
|
|
80
|
-
var jsxs2 =
|
|
96
|
+
var jsx2 = create.bind(import_jsx_runtime.jsx);
|
|
97
|
+
var jsxs2 = create.bind(import_jsx_runtime.jsxs);
|
|
81
98
|
// Annotate the CommonJS export names for ESM import in node:
|
|
82
99
|
0 && (module.exports = {
|
|
83
100
|
Fragment,
|
|
84
|
-
|
|
101
|
+
create,
|
|
85
102
|
jsx,
|
|
86
103
|
jsxs
|
|
87
104
|
});
|
package/dist/jsx-runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx-runtime.ts","../src/context.ts"],"sourcesContent":["import { Model } from '@expressive/mvc';\nimport
|
|
1
|
+
{"version":3,"sources":["../src/jsx-runtime.ts","../src/context.ts"],"sourcesContent":["import { Model } from '@expressive/mvc';\nimport { jsx, jsxs } from 'react/jsx-runtime';\n\nimport { Provider } from './context';\n\ndeclare module '@expressive/mvc' {\n namespace Model {\n type Render<T extends Model> = (this: T, self: T) => React.ReactNode;\n\n /** Model which is not incompatable as Component in React. */\n interface Compat extends Model {\n render?(props: Model.Assign<this>, self: this): React.ReactNode;\n children?: React.ReactNode;\n }\n\n type Props<T extends Model> = \n & T extends { render(props: infer P): any }\n ? Partial<Pick<T, Exclude<keyof T, keyof Model | \"render\">>> & P\n : Partial<Pick<T, Exclude<keyof T, keyof Model>>> & {\n children?: React.ReactNode | Render<T>;\n }\n & {\n /**\n * Callback for newly created instance. Only called once.\n * @returns Callback to run when instance is destroyed.\n */\n is?: (instance: T) => void | (() => void);\n };\n }\n}\n\nexport declare namespace JSX {\n type ElementType = Model.Type<Model.Compat> | React.JSX.ElementType;\n\n type LibraryManagedAttributes<C, P> =\n // For normal class components, pull from props property explicitly because we dorked up ElementAttributesProperty.\n C extends new (...args: any[]) => { props: infer U } ? U :\n C extends Model.Type<infer U> ? Model.Props<U> :\n React.JSX.LibraryManagedAttributes<C, P>;\n\n interface Element extends React.JSX.Element {}\n interface ElementClass extends React.JSX.ElementClass {}\n // This is a hack to make TypeScript happy - React one insists on `props` property existing.\n // I await the \"Find Out\" phase in git issues.\n interface ElementAttributesProperty {}\n interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}\n\n interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}\n interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}\n interface IntrinsicElements extends React.JSX.IntrinsicElements {}\n}\n\nfunction Render<T extends Model.Compat>(\n this: Model.Init<T>,\n props: Model.Assign<T>\n){\n return jsx(Provider, {\n for: this,\n set: props,\n forEach: props.is,\n children: jsx(() => {\n const self = this.get();\n const { render } = self;\n\n if(render)\n return jsx(() => {\n const self = this.get();\n return render.call(self, props, self);\n }, {});\n\n const { children } = self;\n\n if(children)\n return children;\n\n const fn = props.children as React.ReactNode | Model.Render<T>;\n\n if(typeof fn != \"function\")\n return fn;\n\n return jsx(() => {\n const self = this.get();\n return fn.call(self, self);\n }, {});\n }, {})\n });\n}\n\nconst RENDER = new WeakMap<typeof Model, React.FC>();\n\nexport function create(\n this: (\n type: React.ElementType,\n props: Record<string, any>,\n key?: React.Key,\n ...rest: any[]\n ) => React.ReactElement,\n type: React.ElementType,\n props: Record<string, any>,\n key?: React.Key,\n ...args: any[]){\n\n if(Model.is(type)){\n const bound = RENDER.get(type);\n\n if(bound)\n type = bound;\n else\n RENDER.set(type, type = Render.bind(type as Model.Init));\n }\n \n return this(type, props, key, ...args);\n}\n\nconst jsx2 = create.bind(jsx);\nconst jsxs2 = create.bind(jsxs);\n\nexport { Fragment } from \"react\";\nexport {\n jsx2 as jsx,\n jsxs2 as jsxs\n}","import Model, { Context } from '@expressive/mvc';\nimport { ReactNode, createContext, createElement, useContext, useEffect, useMemo } from 'react';\n\nconst Lookup = createContext(new Context());\n\ndeclare namespace Consumer {\n type Props<T extends Model> = {\n /** Type of controller to fetch from context. */\n for: Model.Type<T>;\n\n /**\n * Render function, will receive instance of desired controller.\n *\n * Called every render of parent component.\n * Similar to `Model.get()`, updates to properties accessed in\n * this function will cause a refresh when they change.\n */\n children: (value: T) => ReactNode | void;\n }\n}\n\nfunction Consumer<T extends Model>(props: Consumer.Props<T>){\n return props.for.get(i => props.children(i));\n}\n\ndeclare namespace Provider {\n interface SetProps<T extends Model> {\n for: Context.Accept<T>;\n /** @deprecated May be removed in future versions. Use component Models instead. */\n set?: Model.Assign<T>;\n children?: ReactNode;\n }\n\n interface NewProps<T extends Model> {\n for: Context.Accept<T>;\n forEach?: Context.Expect;\n children?: ReactNode;\n }\n\n type Props<T extends Model> = SetProps<T> | NewProps<T>;\n}\n\nfunction Provider<T extends Model>(props: Provider.Props<T>){\n const ambient = useContext(Lookup);\n const context = useMemo(() => ambient.push(), [ambient]);\n\n useEffect(() => () => context.pop(), [ambient]);\n \n // TODO: Replace with Context.ForEach instead.\n context.include(props.for, (model) => {\n if(\"forEach\" in props && props.forEach){\n const cleanup = props.forEach(model);\n\n if(cleanup)\n model.get(null, cleanup);\n }\n else if(\"set\" in props && props.set)\n for(const key in props.set)\n if(key in model)\n (model as any)[key] = props.set[key];\n });\n\n return createElement(Lookup.Provider, {\n key: context.id,\n value: context\n }, props.children);\n}\n\nexport { Consumer, Provider, Lookup as Context }"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,cAAsB;AACtB,yBAA0B;;;ACD1B,iBAA+B;AAC/B,mBAAwF;AAExF,IAAM,aAAS,4BAAc,IAAI,mBAAQ,CAAC;AAuC1C,SAAS,SAA0B,OAAyB;AAC1D,QAAM,cAAU,yBAAW,MAAM;AACjC,QAAM,cAAU,sBAAQ,MAAM,QAAQ,KAAK,GAAG,CAAC,OAAO,CAAC;AAEvD,8BAAU,MAAM,MAAM,QAAQ,IAAI,GAAG,CAAC,OAAO,CAAC;AAG9C,UAAQ,QAAQ,MAAM,KAAK,CAAC,UAAU;AACpC,QAAG,aAAa,SAAS,MAAM,SAAQ;AACrC,YAAM,UAAU,MAAM,QAAQ,KAAK;AAEnC,UAAG;AACD,cAAM,IAAI,MAAM,OAAO;AAAA,IAC3B,WACQ,SAAS,SAAS,MAAM;AAC9B,iBAAU,OAAO,MAAM;AACrB,YAAG,OAAO;AACR,UAAC,MAAc,GAAG,IAAI,MAAM,IAAI,GAAG;AAAA;AAAA,EAC3C,CAAC;AAED,aAAO,4BAAc,OAAO,UAAU;AAAA,IACpC,KAAK,QAAQ;AAAA,IACb,OAAO;AAAA,EACT,GAAG,MAAM,QAAQ;AACnB;;;ADmDA,IAAAC,gBAAyB;AAjEzB,SAAS,OAEP,OACD;AACC,aAAO,wBAAI,UAAU;AAAA,IACnB,KAAK;AAAA,IACL,KAAK;AAAA,IACL,SAAS,MAAM;AAAA,IACf,cAAU,wBAAI,MAAM;AAClB,YAAM,OAAO,KAAK,IAAI;AACtB,YAAM,EAAE,OAAO,IAAI;AAEnB,UAAG;AACD,mBAAO,wBAAI,MAAM;AACf,gBAAMC,QAAO,KAAK,IAAI;AACtB,iBAAO,OAAO,KAAKA,OAAM,OAAOA,KAAI;AAAA,QACtC,GAAG,CAAC,CAAC;AAEP,YAAM,EAAE,SAAS,IAAI;AAErB,UAAG;AACD,eAAO;AAET,YAAM,KAAK,MAAM;AAEjB,UAAG,OAAO,MAAM;AACd,eAAO;AAET,iBAAO,wBAAI,MAAM;AACf,cAAMA,QAAO,KAAK,IAAI;AACtB,eAAO,GAAG,KAAKA,OAAMA,KAAI;AAAA,MAC3B,GAAG,CAAC,CAAC;AAAA,IACP,GAAG,CAAC,CAAC;AAAA,EACP,CAAC;AACH;AAEA,IAAM,SAAS,oBAAI,QAAgC;AAE5C,SAAS,OAOd,MACA,OACA,QACG,MAAY;AAEf,MAAG,kBAAM,GAAG,IAAI,GAAE;AAChB,UAAM,QAAQ,OAAO,IAAI,IAAI;AAE7B,QAAG;AACD,aAAO;AAAA;AAEP,aAAO,IAAI,MAAM,OAAO,OAAO,KAAK,IAAkB,CAAC;AAAA,EAC3D;AAEA,SAAO,KAAK,MAAM,OAAO,KAAK,GAAG,IAAI;AACvC;AAEA,IAAM,OAAO,OAAO,KAAK,sBAAG;AAC5B,IAAM,QAAQ,OAAO,KAAK,uBAAI;","names":["import_mvc","import_react","self"]}
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"preversion": "npm run test && npm run build"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@expressive/mvc": "^0.
|
|
52
|
+
"@expressive/mvc": "^0.56.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"react": ">=16.8.0 <19.0.0"
|
|
@@ -67,6 +67,6 @@
|
|
|
67
67
|
"react-test-renderer": "^18.2.0",
|
|
68
68
|
"tsup": "^8.0.2"
|
|
69
69
|
},
|
|
70
|
-
"version": "0.
|
|
71
|
-
"gitHead": "
|
|
70
|
+
"version": "0.56.0",
|
|
71
|
+
"gitHead": "c53df17507eeb1859d2003a92f739971b8017133"
|
|
72
72
|
}
|