@plasmicapp/react-web-runtime 0.0.1 → 0.0.3
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/LICENSE.md +21 -0
- package/jsx-dev-runtime/dist/jsx-dev-runtime.d.ts +6 -6
- package/jsx-dev-runtime/dist/jsx-runtime.d.ts +7 -7
- package/jsx-dev-runtime/dist/react-web-runtime-jsx-dev-runtime.cjs.js +31 -25
- package/jsx-dev-runtime/dist/react-web-runtime-jsx-dev-runtime.esm.js +27 -16
- package/jsx-dev-runtime/dist/util.d.ts +6 -6
- package/jsx-runtime/dist/jsx-dev-runtime.d.ts +6 -6
- package/jsx-runtime/dist/jsx-runtime.d.ts +7 -7
- package/jsx-runtime/dist/react-web-runtime-jsx-runtime.cjs.js +32 -26
- package/jsx-runtime/dist/react-web-runtime-jsx-runtime.esm.js +28 -17
- package/jsx-runtime/dist/util.d.ts +6 -6
- package/package.json +12 -12
- package/jsx-runtime/dist/react-web-runtime-jsx-runtime.cjs.development.js +0 -73
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Plasmic
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { jsxShim } from "./util";
|
|
3
|
-
export declare const Fragment: React.ExoticComponent<{
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const jsxDEV: typeof jsxShim;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsxShim } from "./util";
|
|
3
|
+
export declare const Fragment: React.ExoticComponent<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const jsxDEV: typeof jsxShim;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { jsxShim } from "./util";
|
|
3
|
-
export declare const Fragment: React.ExoticComponent<{
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const jsx: typeof jsxShim;
|
|
7
|
-
export declare const jsxs: typeof jsxShim;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsxShim } from "./util";
|
|
3
|
+
export declare const Fragment: React.ExoticComponent<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const jsx: typeof jsxShim;
|
|
7
|
+
export declare const jsxs: typeof jsxShim;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
var reactWeb = require('@plasmicapp/react-web');
|
|
7
5
|
|
|
8
|
-
function
|
|
9
|
-
if (e && e.__esModule) return e;
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
10
7
|
var n = Object.create(null);
|
|
11
8
|
if (e) {
|
|
12
9
|
Object.keys(e).forEach(function (k) {
|
|
@@ -14,20 +11,18 @@ function _interopNamespace(e) {
|
|
|
14
11
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
12
|
Object.defineProperty(n, k, d.get ? d : {
|
|
16
13
|
enumerable: true,
|
|
17
|
-
get: function () {
|
|
18
|
-
return e[k];
|
|
19
|
-
}
|
|
14
|
+
get: function () { return e[k]; }
|
|
20
15
|
});
|
|
21
16
|
}
|
|
22
17
|
});
|
|
23
18
|
}
|
|
24
|
-
n
|
|
19
|
+
n.default = e;
|
|
25
20
|
return Object.freeze(n);
|
|
26
21
|
}
|
|
27
22
|
|
|
28
|
-
var React__namespace = /*#__PURE__*/
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
29
24
|
|
|
30
|
-
|
|
25
|
+
/******************************************************************************
|
|
31
26
|
Copyright (c) Microsoft Corporation.
|
|
32
27
|
|
|
33
28
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -41,6 +36,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
41
36
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
42
37
|
PERFORMANCE OF THIS SOFTWARE.
|
|
43
38
|
***************************************************************************** */
|
|
39
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
40
|
+
|
|
44
41
|
|
|
45
42
|
function __rest(s, e) {
|
|
46
43
|
var t = {};
|
|
@@ -54,24 +51,33 @@ function __rest(s, e) {
|
|
|
54
51
|
return t;
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
function __spreadArray(to, from) {
|
|
58
|
-
for (var i = 0,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
function __spreadArray(to, from, pack) {
|
|
55
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
56
|
+
if (ar || !(i in from)) {
|
|
57
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
58
|
+
ar[i] = from[i];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
65
|
+
var e = new Error(message);
|
|
66
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
67
|
+
};
|
|
62
68
|
|
|
63
|
-
/**
|
|
64
|
-
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
65
|
-
* instead be using react/jsx-runtime to do the right thing.
|
|
66
|
-
*/
|
|
67
|
-
function jsxShim(type, props, key) {
|
|
68
|
-
var children = props.children, restProps = __rest(props, ["children"]);
|
|
69
|
-
restProps["key"] = key;
|
|
70
|
-
return reactWeb.createPlasmicElementProxy.apply(void 0, __spreadArray([type,
|
|
71
|
-
restProps], (Array.isArray(children) ? children : children ? [children] : [])));
|
|
69
|
+
/**
|
|
70
|
+
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
71
|
+
* instead be using react/jsx-runtime to do the right thing.
|
|
72
|
+
*/
|
|
73
|
+
function jsxShim(type, props, key) {
|
|
74
|
+
var children = props.children, restProps = __rest(props, ["children"]);
|
|
75
|
+
restProps["key"] = key;
|
|
76
|
+
return reactWeb.createPlasmicElementProxy.apply(void 0, __spreadArray([type,
|
|
77
|
+
restProps], (Array.isArray(children) ? children : children ? [children] : []), false));
|
|
72
78
|
}
|
|
73
79
|
|
|
74
|
-
var Fragment = React__namespace.Fragment;
|
|
80
|
+
var Fragment = React__namespace.Fragment;
|
|
75
81
|
var jsxDEV = jsxShim;
|
|
76
82
|
|
|
77
83
|
exports.Fragment = Fragment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createPlasmicElementProxy } from '@plasmicapp/react-web';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
/******************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|
|
7
7
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -15,6 +15,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
15
15
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
16
|
PERFORMANCE OF THIS SOFTWARE.
|
|
17
17
|
***************************************************************************** */
|
|
18
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
function __rest(s, e) {
|
|
20
22
|
var t = {};
|
|
@@ -28,24 +30,33 @@ function __rest(s, e) {
|
|
|
28
30
|
return t;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
function __spreadArray(to, from) {
|
|
32
|
-
for (var i = 0,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
function __spreadArray(to, from, pack) {
|
|
34
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
35
|
+
if (ar || !(i in from)) {
|
|
36
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
37
|
+
ar[i] = from[i];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
44
|
+
var e = new Error(message);
|
|
45
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
46
|
+
};
|
|
36
47
|
|
|
37
|
-
/**
|
|
38
|
-
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
39
|
-
* instead be using react/jsx-runtime to do the right thing.
|
|
40
|
-
*/
|
|
41
|
-
function jsxShim(type, props, key) {
|
|
42
|
-
var children = props.children, restProps = __rest(props, ["children"]);
|
|
43
|
-
restProps["key"] = key;
|
|
44
|
-
return createPlasmicElementProxy.apply(void 0, __spreadArray([type,
|
|
45
|
-
restProps], (Array.isArray(children) ? children : children ? [children] : [])));
|
|
48
|
+
/**
|
|
49
|
+
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
50
|
+
* instead be using react/jsx-runtime to do the right thing.
|
|
51
|
+
*/
|
|
52
|
+
function jsxShim(type, props, key) {
|
|
53
|
+
var children = props.children, restProps = __rest(props, ["children"]);
|
|
54
|
+
restProps["key"] = key;
|
|
55
|
+
return createPlasmicElementProxy.apply(void 0, __spreadArray([type,
|
|
56
|
+
restProps], (Array.isArray(children) ? children : children ? [children] : []), false));
|
|
46
57
|
}
|
|
47
58
|
|
|
48
|
-
var Fragment = React.Fragment;
|
|
59
|
+
var Fragment = React.Fragment;
|
|
49
60
|
var jsxDEV = jsxShim;
|
|
50
61
|
|
|
51
62
|
export { Fragment, jsxDEV };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
4
|
-
* instead be using react/jsx-runtime to do the right thing.
|
|
5
|
-
*/
|
|
6
|
-
export declare function jsxShim(type: React.ElementType<any>, props: any, key?: string):
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
4
|
+
* instead be using react/jsx-runtime to do the right thing.
|
|
5
|
+
*/
|
|
6
|
+
export declare function jsxShim(type: React.ElementType<any>, props: any, key?: string): import("react").ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { jsxShim } from "./util";
|
|
3
|
-
export declare const Fragment: React.ExoticComponent<{
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const jsxDEV: typeof jsxShim;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsxShim } from "./util";
|
|
3
|
+
export declare const Fragment: React.ExoticComponent<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const jsxDEV: typeof jsxShim;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { jsxShim } from "./util";
|
|
3
|
-
export declare const Fragment: React.ExoticComponent<{
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const jsx: typeof jsxShim;
|
|
7
|
-
export declare const jsxs: typeof jsxShim;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsxShim } from "./util";
|
|
3
|
+
export declare const Fragment: React.ExoticComponent<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const jsx: typeof jsxShim;
|
|
7
|
+
export declare const jsxs: typeof jsxShim;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
var reactWeb = require('@plasmicapp/react-web');
|
|
7
5
|
|
|
8
|
-
function
|
|
9
|
-
if (e && e.__esModule) return e;
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
10
7
|
var n = Object.create(null);
|
|
11
8
|
if (e) {
|
|
12
9
|
Object.keys(e).forEach(function (k) {
|
|
@@ -14,20 +11,18 @@ function _interopNamespace(e) {
|
|
|
14
11
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
12
|
Object.defineProperty(n, k, d.get ? d : {
|
|
16
13
|
enumerable: true,
|
|
17
|
-
get: function () {
|
|
18
|
-
return e[k];
|
|
19
|
-
}
|
|
14
|
+
get: function () { return e[k]; }
|
|
20
15
|
});
|
|
21
16
|
}
|
|
22
17
|
});
|
|
23
18
|
}
|
|
24
|
-
n
|
|
19
|
+
n.default = e;
|
|
25
20
|
return Object.freeze(n);
|
|
26
21
|
}
|
|
27
22
|
|
|
28
|
-
var React__namespace = /*#__PURE__*/
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
29
24
|
|
|
30
|
-
|
|
25
|
+
/******************************************************************************
|
|
31
26
|
Copyright (c) Microsoft Corporation.
|
|
32
27
|
|
|
33
28
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -41,6 +36,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
41
36
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
42
37
|
PERFORMANCE OF THIS SOFTWARE.
|
|
43
38
|
***************************************************************************** */
|
|
39
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
40
|
+
|
|
44
41
|
|
|
45
42
|
function __rest(s, e) {
|
|
46
43
|
var t = {};
|
|
@@ -54,25 +51,34 @@ function __rest(s, e) {
|
|
|
54
51
|
return t;
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
function __spreadArray(to, from) {
|
|
58
|
-
for (var i = 0,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
function __spreadArray(to, from, pack) {
|
|
55
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
56
|
+
if (ar || !(i in from)) {
|
|
57
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
58
|
+
ar[i] = from[i];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
65
|
+
var e = new Error(message);
|
|
66
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
67
|
+
};
|
|
62
68
|
|
|
63
|
-
/**
|
|
64
|
-
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
65
|
-
* instead be using react/jsx-runtime to do the right thing.
|
|
66
|
-
*/
|
|
67
|
-
function jsxShim(type, props, key) {
|
|
68
|
-
var children = props.children, restProps = __rest(props, ["children"]);
|
|
69
|
-
restProps["key"] = key;
|
|
70
|
-
return reactWeb.createPlasmicElementProxy.apply(void 0, __spreadArray([type,
|
|
71
|
-
restProps], (Array.isArray(children) ? children : children ? [children] : [])));
|
|
69
|
+
/**
|
|
70
|
+
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
71
|
+
* instead be using react/jsx-runtime to do the right thing.
|
|
72
|
+
*/
|
|
73
|
+
function jsxShim(type, props, key) {
|
|
74
|
+
var children = props.children, restProps = __rest(props, ["children"]);
|
|
75
|
+
restProps["key"] = key;
|
|
76
|
+
return reactWeb.createPlasmicElementProxy.apply(void 0, __spreadArray([type,
|
|
77
|
+
restProps], (Array.isArray(children) ? children : children ? [children] : []), false));
|
|
72
78
|
}
|
|
73
79
|
|
|
74
|
-
var Fragment = React__namespace.Fragment;
|
|
75
|
-
var jsx = jsxShim;
|
|
80
|
+
var Fragment = React__namespace.Fragment;
|
|
81
|
+
var jsx = jsxShim;
|
|
76
82
|
var jsxs = jsx;
|
|
77
83
|
|
|
78
84
|
exports.Fragment = Fragment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { createPlasmicElementProxy } from '@plasmicapp/react-web';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
/******************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|
|
7
7
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -15,6 +15,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
15
15
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
16
|
PERFORMANCE OF THIS SOFTWARE.
|
|
17
17
|
***************************************************************************** */
|
|
18
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
function __rest(s, e) {
|
|
20
22
|
var t = {};
|
|
@@ -28,25 +30,34 @@ function __rest(s, e) {
|
|
|
28
30
|
return t;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
function __spreadArray(to, from) {
|
|
32
|
-
for (var i = 0,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
function __spreadArray(to, from, pack) {
|
|
34
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
35
|
+
if (ar || !(i in from)) {
|
|
36
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
37
|
+
ar[i] = from[i];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
44
|
+
var e = new Error(message);
|
|
45
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
46
|
+
};
|
|
36
47
|
|
|
37
|
-
/**
|
|
38
|
-
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
39
|
-
* instead be using react/jsx-runtime to do the right thing.
|
|
40
|
-
*/
|
|
41
|
-
function jsxShim(type, props, key) {
|
|
42
|
-
var children = props.children, restProps = __rest(props, ["children"]);
|
|
43
|
-
restProps["key"] = key;
|
|
44
|
-
return createPlasmicElementProxy.apply(void 0, __spreadArray([type,
|
|
45
|
-
restProps], (Array.isArray(children) ? children : children ? [children] : [])));
|
|
48
|
+
/**
|
|
49
|
+
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
50
|
+
* instead be using react/jsx-runtime to do the right thing.
|
|
51
|
+
*/
|
|
52
|
+
function jsxShim(type, props, key) {
|
|
53
|
+
var children = props.children, restProps = __rest(props, ["children"]);
|
|
54
|
+
restProps["key"] = key;
|
|
55
|
+
return createPlasmicElementProxy.apply(void 0, __spreadArray([type,
|
|
56
|
+
restProps], (Array.isArray(children) ? children : children ? [children] : []), false));
|
|
46
57
|
}
|
|
47
58
|
|
|
48
|
-
var Fragment = React.Fragment;
|
|
49
|
-
var jsx = jsxShim;
|
|
59
|
+
var Fragment = React.Fragment;
|
|
60
|
+
var jsx = jsxShim;
|
|
50
61
|
var jsxs = jsx;
|
|
51
62
|
|
|
52
63
|
export { Fragment, jsx, jsxs };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
4
|
-
* instead be using react/jsx-runtime to do the right thing.
|
|
5
|
-
*/
|
|
6
|
-
export declare function jsxShim(type: React.ElementType<any>, props: any, key?: string):
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* A jsx shim that just calls into createPlasmicElementProxy. Eventually, should
|
|
4
|
+
* instead be using react/jsx-runtime to do the right thing.
|
|
5
|
+
*/
|
|
6
|
+
export declare function jsxShim(type: React.ElementType<any>, props: any, key?: string): import("react").ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/react-web-runtime",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"files": [
|
|
5
5
|
"jsx-runtime",
|
|
6
6
|
"jsx-dev-runtime"
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rollup -c",
|
|
14
|
-
"prepare": "yarn build"
|
|
14
|
+
"prepare": "if-env PREPARE_NO_BUILD=true || yarn build"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@plasmicapp/react-web": "
|
|
18
|
-
"@rollup/plugin-commonjs": "^
|
|
19
|
-
"@rollup/plugin-node-resolve": "^
|
|
20
|
-
"@rollup/plugin-replace": "^
|
|
21
|
-
"@types/react": "^
|
|
22
|
-
"react": "^
|
|
23
|
-
"rollup": "^
|
|
17
|
+
"@plasmicapp/react-web": "0.2.283",
|
|
18
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
19
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
20
|
+
"@rollup/plugin-replace": "^5.0.4",
|
|
21
|
+
"@types/react": "^18.2.32",
|
|
22
|
+
"react": "^18.2.0",
|
|
23
|
+
"rollup": "^4.1.4",
|
|
24
24
|
"rollup-plugin-terser": "^7.0.2",
|
|
25
|
-
"rollup-plugin-typescript2": "^0.
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
"rollup-plugin-typescript2": "^0.36.0"
|
|
26
|
+
},
|
|
27
|
+
"gitHead": "e45fdd538908a6edf3fff079f403ae0070bc43d0"
|
|
28
28
|
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var reactWeb = require('@plasmicapp/react-web');
|
|
7
|
-
|
|
8
|
-
function _interopNamespace(e) {
|
|
9
|
-
if (e && e.__esModule) return e;
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () {
|
|
18
|
-
return e[k];
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n['default'] = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
|
-
|
|
30
|
-
/*! *****************************************************************************
|
|
31
|
-
Copyright (c) Microsoft Corporation.
|
|
32
|
-
|
|
33
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
34
|
-
purpose with or without fee is hereby granted.
|
|
35
|
-
|
|
36
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
37
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
38
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
39
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
40
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
41
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
42
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
43
|
-
***************************************************************************** */
|
|
44
|
-
|
|
45
|
-
function __rest(s, e) {
|
|
46
|
-
var t = {};
|
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
-
t[p] = s[p];
|
|
49
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
-
t[p[i]] = s[p[i]];
|
|
53
|
-
}
|
|
54
|
-
return t;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function __spreadArray(to, from) {
|
|
58
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
59
|
-
to[j] = from[i];
|
|
60
|
-
return to;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
var Fragment = React__namespace.Fragment;
|
|
64
|
-
function jsx(type, props, key) {
|
|
65
|
-
var children = props.children, restProps = __rest(props, ["children"]);
|
|
66
|
-
restProps["key"] = key;
|
|
67
|
-
return reactWeb.createPlasmicElementProxy.apply(void 0, __spreadArray([type, restProps], (Array.isArray(children) ? children : children ? [children] : [])));
|
|
68
|
-
}
|
|
69
|
-
var jsxDEV = jsx;
|
|
70
|
-
|
|
71
|
-
exports.Fragment = Fragment;
|
|
72
|
-
exports.jsx = jsx;
|
|
73
|
-
exports.jsxDEV = jsxDEV;
|