piral-react-15 0.15.0-beta.4633 → 0.15.0-beta.4670
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/esm/converter.d.ts +1 -1
- package/esm/converter.js +1 -1
- package/esm/converter.js.map +1 -1
- package/lib/converter.d.ts +1 -1
- package/lib/converter.js +1 -1
- package/lib/converter.js.map +1 -1
- package/package.json +3 -3
- package/src/converter.ts +2 -2
package/esm/converter.d.ts
CHANGED
package/esm/converter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createExtension } from './extension';
|
|
2
2
|
import { mountReact15, unmountReact15 } from './mount';
|
|
3
3
|
export function createConverter(config = {}) {
|
|
4
|
-
const { rootName = 'slot' } = config;
|
|
4
|
+
const { rootName = 'piral-slot' } = config;
|
|
5
5
|
const Extension = createExtension(rootName);
|
|
6
6
|
const convert = (root) => ({
|
|
7
7
|
mount(el, props, ctx) {
|
package/esm/converter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAUvD,MAAM,UAAU,eAAe,CAAC,SAAkC,EAAE;IAClE,MAAM,EAAE,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAUvD,MAAM,UAAU,eAAe,CAAC,SAAkC,EAAE;IAClE,MAAM,EAAE,QAAQ,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC;IAC3C,MAAM,SAAS,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAG,CAAoC,IAA2B,EAA4B,EAAE,CAAC,CAAC;QAC7G,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG;YAClB,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QACrC,CAAC;QACD,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG;YACnB,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QACrC,CAAC;QACD,OAAO,CAAC,EAAE;YACR,cAAc,CAAC,EAAE,CAAC,CAAC;QACrB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAC9B,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/lib/converter.d.ts
CHANGED
package/lib/converter.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.createConverter = void 0;
|
|
|
4
4
|
const extension_1 = require("./extension");
|
|
5
5
|
const mount_1 = require("./mount");
|
|
6
6
|
function createConverter(config = {}) {
|
|
7
|
-
const { rootName = 'slot' } = config;
|
|
7
|
+
const { rootName = 'piral-slot' } = config;
|
|
8
8
|
const Extension = (0, extension_1.createExtension)(rootName);
|
|
9
9
|
const convert = (root) => ({
|
|
10
10
|
mount(el, props, ctx) {
|
package/lib/converter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":";;;AAEA,2CAA8C;AAC9C,mCAAuD;AAUvD,SAAgB,eAAe,CAAC,SAAkC,EAAE;IAClE,MAAM,EAAE,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":";;;AAEA,2CAA8C;AAC9C,mCAAuD;AAUvD,SAAgB,eAAe,CAAC,SAAkC,EAAE;IAClE,MAAM,EAAE,QAAQ,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC;IAC3C,MAAM,SAAS,GAAG,IAAA,2BAAe,EAAC,QAAQ,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAG,CAAoC,IAA2B,EAA4B,EAAE,CAAC,CAAC;QAC7G,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG;YAClB,IAAA,oBAAY,EAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QACrC,CAAC;QACD,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG;YACnB,IAAA,oBAAY,EAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QACrC,CAAC;QACD,OAAO,CAAC,EAAE;YACR,IAAA,sBAAc,EAAC,EAAE,CAAC,CAAC;QACrB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAC9B,OAAO,OAAO,CAAC;AACjB,CAAC;AAhBD,0CAgBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-react-15",
|
|
3
|
-
"version": "0.15.0-beta.
|
|
3
|
+
"version": "0.15.0-beta.4670",
|
|
4
4
|
"description": "Plugin for integrating React v15 components in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"piral-core": "0.15.0-beta.
|
|
67
|
+
"piral-core": "0.15.0-beta.4670",
|
|
68
68
|
"react-15": "npm:react@15",
|
|
69
69
|
"react-dom-15": "npm:react-dom@15"
|
|
70
70
|
},
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"react-15": "npm:react@^15",
|
|
73
73
|
"react-dom-15": "npm:react@^15"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "ffd8707600e028a55258028d394b76fe3a0cd175"
|
|
76
76
|
}
|
package/src/converter.ts
CHANGED
|
@@ -6,13 +6,13 @@ import { mountReact15, unmountReact15 } from './mount';
|
|
|
6
6
|
export interface React15ConverterOptions {
|
|
7
7
|
/**
|
|
8
8
|
* Defines the name of the root element.
|
|
9
|
-
* @default slot
|
|
9
|
+
* @default piral-slot
|
|
10
10
|
*/
|
|
11
11
|
rootName?: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export function createConverter(config: React15ConverterOptions = {}) {
|
|
15
|
-
const { rootName = 'slot' } = config;
|
|
15
|
+
const { rootName = 'piral-slot' } = config;
|
|
16
16
|
const Extension = createExtension(rootName);
|
|
17
17
|
const convert = <TProps extends BaseComponentProps>(root: ComponentType<TProps>): ForeignComponent<TProps> => ({
|
|
18
18
|
mount(el, props, ctx) {
|