@reckona/mreact 0.0.160 → 0.0.161

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
@@ -1,19 +1,29 @@
1
1
  export * from "@reckona/mreact-compat";
2
+ /** Default React-compatible namespace export for @reckona/mreact. */
2
3
  export { default } from "./react-default.js";
3
4
  import type { ElementType, ReactCompatElement, ReactCompatNode } from "@reckona/mreact-compat";
4
5
  import type { JSX as ReactCompatJSX } from "@reckona/mreact-compat/jsx-runtime";
6
+ /** Values that can be rendered by the React-compatible runtime. */
5
7
  export type ReactNode = ReactCompatNode;
8
+ /** React-compatible element object with typed props and element type. */
6
9
  export type ReactElement<P = unknown, T extends ElementType = ElementType> = ReactCompatElement & {
7
10
  props: P;
8
11
  type: T;
9
12
  };
13
+ /** Function component signature accepted by the React-compatible runtime. */
10
14
  export type FunctionComponent<P = object> = (props: P) => ReactElement | null;
15
+ /** Alias for FunctionComponent. */
11
16
  export type FC<P = object> = FunctionComponent<P>;
17
+ /** Component type accepted by JSX and createElement. */
12
18
  export type ComponentType<P = object> = FunctionComponent<P>;
19
+ /** JSX namespace types used by the React-compatible entrypoint. */
13
20
  export declare namespace JSX {
21
+ /** JSX expression result for the React-compatible entrypoint. */
14
22
  type Element = ReactCompatJSX.Element;
23
+ /** Attributes accepted on every JSX element. */
15
24
  interface IntrinsicAttributes extends ReactCompatJSX.IntrinsicAttributes {
16
25
  }
26
+ /** Built-in JSX element attributes. */
17
27
  interface IntrinsicElements extends ReactCompatJSX.IntrinsicElements {
18
28
  }
19
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,eAAe,EAChB,MAAM,wBAAwB,CAAC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jC,kBAAkB,GAAG;IACvB,KAAK,EAAE,CAAC,CAAC;IACT,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AACF,6EAA6E;AAC7E,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,YAAY,GAAG,IAAI,CAAC;AAC9E,mCAAmC;AACnC,MAAM,MAAM,EAAE,CAAC,CAAC,GAAG,MAAM,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAClD,wDAAwD;AACxD,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,MAAM,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAE7D,mEAAmE;AACnE,yBAAiB,GAAG,CAAC;IACnB,iEAAiE;IACjE,KAAY,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC;IAC7C,gDAAgD;IAChD,UAAiB,mBAAoB,SAAQ,cAAc,CAAC,mBAAmB;KAAG;IAClF,uCAAuC;IACvC,UAAiB,iBAAkB,SAAQ,cAAc,CAAC,iBAAiB;KAAG;CAC/E"}
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "@reckona/mreact-compat";
2
+ /** Default React-compatible namespace export for @reckona/mreact. */
2
3
  export { default } from "./react-default.js";
3
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export * from \"@reckona/mreact-compat\";\nexport { default } from \"./react-default.js\";\n\nimport type {\n ElementType,\n ReactCompatElement,\n ReactCompatNode,\n} from \"@reckona/mreact-compat\";\nimport type { JSX as ReactCompatJSX } from \"@reckona/mreact-compat/jsx-runtime\";\n\nexport type ReactNode = ReactCompatNode;\nexport type ReactElement<\n P = unknown,\n T extends ElementType = ElementType,\n> = ReactCompatElement & {\n props: P;\n type: T;\n};\nexport type FunctionComponent<P = object> = (props: P) => ReactElement | null;\nexport type FC<P = object> = FunctionComponent<P>;\nexport type ComponentType<P = object> = FunctionComponent<P>;\n\nexport namespace JSX {\n export type Element = ReactCompatJSX.Element;\n export interface IntrinsicAttributes extends ReactCompatJSX.IntrinsicAttributes {}\n export interface IntrinsicElements extends ReactCompatJSX.IntrinsicElements {}\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,qEAAqE;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export * from \"@reckona/mreact-compat\";\n/** Default React-compatible namespace export for @reckona/mreact. */\nexport { default } from \"./react-default.js\";\n\nimport type {\n ElementType,\n ReactCompatElement,\n ReactCompatNode,\n} from \"@reckona/mreact-compat\";\nimport type { JSX as ReactCompatJSX } from \"@reckona/mreact-compat/jsx-runtime\";\n\n/** Values that can be rendered by the React-compatible runtime. */\nexport type ReactNode = ReactCompatNode;\n/** React-compatible element object with typed props and element type. */\nexport type ReactElement<\n P = unknown,\n T extends ElementType = ElementType,\n> = ReactCompatElement & {\n props: P;\n type: T;\n};\n/** Function component signature accepted by the React-compatible runtime. */\nexport type FunctionComponent<P = object> = (props: P) => ReactElement | null;\n/** Alias for FunctionComponent. */\nexport type FC<P = object> = FunctionComponent<P>;\n/** Component type accepted by JSX and createElement. */\nexport type ComponentType<P = object> = FunctionComponent<P>;\n\n/** JSX namespace types used by the React-compatible entrypoint. */\nexport namespace JSX {\n /** JSX expression result for the React-compatible entrypoint. */\n export type Element = ReactCompatJSX.Element;\n /** Attributes accepted on every JSX element. */\n export interface IntrinsicAttributes extends ReactCompatJSX.IntrinsicAttributes {}\n /** Built-in JSX element attributes. */\n export interface IntrinsicElements extends ReactCompatJSX.IntrinsicElements {}\n}\n"]}
@@ -1,3 +1,4 @@
1
1
  import * as ReactCompat from "@reckona/mreact-compat";
2
+ /** Default React-compatible namespace export for @reckona/mreact. */
2
3
  export default ReactCompat;
3
4
  //# sourceMappingURL=react-default.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-default.d.ts","sourceRoot":"","sources":["../src/react-default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAEtD,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"react-default.d.ts","sourceRoot":"","sources":["../src/react-default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAEtD,qEAAqE;AACrE,eAAe,WAAW,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import * as ReactCompat from "@reckona/mreact-compat";
2
+ /** Default React-compatible namespace export for @reckona/mreact. */
2
3
  export default ReactCompat;
3
4
  //# sourceMappingURL=react-default.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-default.js","sourceRoot":"","sources":["../src/react-default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAEtD,eAAe,WAAW,CAAC","sourcesContent":["import * as ReactCompat from \"@reckona/mreact-compat\";\n\nexport default ReactCompat;\n"]}
1
+ {"version":3,"file":"react-default.js","sourceRoot":"","sources":["../src/react-default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAEtD,qEAAqE;AACrE,eAAe,WAAW,CAAC","sourcesContent":["import * as ReactCompat from \"@reckona/mreact-compat\";\n\n/** Default React-compatible namespace export for @reckona/mreact. */\nexport default ReactCompat;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reckona/mreact",
3
- "version": "0.0.160",
3
+ "version": "0.0.161",
4
4
  "description": "React-flavored public runtime entrypoint for mreact.",
5
5
  "keywords": [
6
6
  "jsx",
@@ -56,6 +56,6 @@
56
56
  "access": "public"
57
57
  },
58
58
  "dependencies": {
59
- "@reckona/mreact-compat": "0.0.160"
59
+ "@reckona/mreact-compat": "0.0.161"
60
60
  }
61
61
  }
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "@reckona/mreact-compat";
2
+ /** Default React-compatible namespace export for @reckona/mreact. */
2
3
  export { default } from "./react-default.js";
3
4
 
4
5
  import type {
@@ -8,7 +9,9 @@ import type {
8
9
  } from "@reckona/mreact-compat";
9
10
  import type { JSX as ReactCompatJSX } from "@reckona/mreact-compat/jsx-runtime";
10
11
 
12
+ /** Values that can be rendered by the React-compatible runtime. */
11
13
  export type ReactNode = ReactCompatNode;
14
+ /** React-compatible element object with typed props and element type. */
12
15
  export type ReactElement<
13
16
  P = unknown,
14
17
  T extends ElementType = ElementType,
@@ -16,12 +19,19 @@ export type ReactElement<
16
19
  props: P;
17
20
  type: T;
18
21
  };
22
+ /** Function component signature accepted by the React-compatible runtime. */
19
23
  export type FunctionComponent<P = object> = (props: P) => ReactElement | null;
24
+ /** Alias for FunctionComponent. */
20
25
  export type FC<P = object> = FunctionComponent<P>;
26
+ /** Component type accepted by JSX and createElement. */
21
27
  export type ComponentType<P = object> = FunctionComponent<P>;
22
28
 
29
+ /** JSX namespace types used by the React-compatible entrypoint. */
23
30
  export namespace JSX {
31
+ /** JSX expression result for the React-compatible entrypoint. */
24
32
  export type Element = ReactCompatJSX.Element;
33
+ /** Attributes accepted on every JSX element. */
25
34
  export interface IntrinsicAttributes extends ReactCompatJSX.IntrinsicAttributes {}
35
+ /** Built-in JSX element attributes. */
26
36
  export interface IntrinsicElements extends ReactCompatJSX.IntrinsicElements {}
27
37
  }
@@ -1,3 +1,4 @@
1
1
  import * as ReactCompat from "@reckona/mreact-compat";
2
2
 
3
+ /** Default React-compatible namespace export for @reckona/mreact. */
3
4
  export default ReactCompat;