piral-cycle 0.15.0-beta.4633 → 0.15.0-beta.4672
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 +2 -2
- package/esm/converter.js.map +1 -1
- package/lib/converter.d.ts +1 -1
- package/lib/converter.js +2 -2
- package/lib/converter.js.map +1 -1
- package/package.json +3 -3
- package/src/converter.ts +3 -3
package/esm/converter.d.ts
CHANGED
package/esm/converter.js
CHANGED
|
@@ -3,7 +3,7 @@ import run from '@cycle/run';
|
|
|
3
3
|
import xs from 'xstream';
|
|
4
4
|
import { createExtension } from './extension';
|
|
5
5
|
export function createConverter(config = {}) {
|
|
6
|
-
const { rootName = 'slot' } = config;
|
|
6
|
+
const { rootName = 'piral-slot' } = config;
|
|
7
7
|
const Extension = createExtension(rootName);
|
|
8
8
|
const convert = (main) => ({
|
|
9
9
|
mount(el, props, ctx, locals) {
|
|
@@ -11,7 +11,7 @@ export function createConverter(config = {}) {
|
|
|
11
11
|
// The Cycle DOM element is not directly rendered into parent, but into a nested container.
|
|
12
12
|
// This is done because Cycle "erases" information on the host element. If parent was used,
|
|
13
13
|
// Piral related properties like data-portal-id could be removed, leading to things not working.
|
|
14
|
-
const host = el.appendChild(document.createElement(
|
|
14
|
+
const host = el.appendChild(document.createElement(rootName));
|
|
15
15
|
const drivers = {
|
|
16
16
|
DOM: makeDOMDriver(host),
|
|
17
17
|
props: () => locals.props$,
|
package/esm/converter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,GAA2B,MAAM,YAAY,CAAC;AACrD,OAAO,EAAc,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAgB9C,MAAM,UAAU,eAA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AE,EAAE,MAA0B;YACpC,MAAM,CAAC,MAAM,CAAC,sBAAsB,EAAE,CAAC;YACvC,MAAM,CAAC,OAAO,EAAE,CAAC;YACjB,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC;QAC5B,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAC9B,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/lib/converter.d.ts
CHANGED
package/lib/converter.js
CHANGED
|
@@ -6,7 +6,7 @@ const run_1 = require("@cycle/run");
|
|
|
6
6
|
const xstream_1 = require("xstream");
|
|
7
7
|
const extension_1 = require("./extension");
|
|
8
8
|
function createConverter(config = {}) {
|
|
9
|
-
const { rootName = 'slot' } = config;
|
|
9
|
+
const { rootName = 'piral-slot' } = config;
|
|
10
10
|
const Extension = (0, extension_1.createExtension)(rootName);
|
|
11
11
|
const convert = (main) => ({
|
|
12
12
|
mount(el, props, ctx, locals) {
|
|
@@ -14,7 +14,7 @@ function createConverter(config = {}) {
|
|
|
14
14
|
// The Cycle DOM element is not directly rendered into parent, but into a nested container.
|
|
15
15
|
// This is done because Cycle "erases" information on the host element. If parent was used,
|
|
16
16
|
// Piral related properties like data-portal-id could be removed, leading to things not working.
|
|
17
|
-
const host = el.appendChild(document.createElement(
|
|
17
|
+
const host = el.appendChild(document.createElement(rootName));
|
|
18
18
|
const drivers = {
|
|
19
19
|
DOM: (0, dom_1.makeDOMDriver)(host),
|
|
20
20
|
props: () => locals.props$,
|
package/lib/converter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.ts"],"names":[],"mappings":";;;AACA,oCAA2C;AAC3C,oCAAqD;AACrD,qCAAqC;AACrC,2CAA8C;AAgB9C,SAAgB,eAAe,CAAC,SAAgC,EAAE;IAChE,MAAM,EAAE,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../src/converter.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AAG,SAAS,CAAC;IAC9B,OAAO,OAAO,CAAC;AACjB,CAAC;AAlCD,0CAkCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-cycle",
|
|
3
|
-
"version": "0.15.0-beta.
|
|
3
|
+
"version": "0.15.0-beta.4672",
|
|
4
4
|
"description": "Plugin for integrating Cycle.js components in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@cycle/dom": "^22.7.0",
|
|
68
68
|
"@cycle/run": "^5.4.0",
|
|
69
|
-
"piral-core": "0.15.0-beta.
|
|
69
|
+
"piral-core": "0.15.0-beta.4672",
|
|
70
70
|
"xstream": "^11.12.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"@cycle/run": "^5.0.0",
|
|
75
75
|
"xstream": "^11.0.0"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "cd1026b70c90290fa5ba3f9b86c038eb852595be"
|
|
78
78
|
}
|
package/src/converter.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { PiralDomDrivers } from './types';
|
|
|
8
8
|
export interface CycleConverterOptions {
|
|
9
9
|
/**
|
|
10
10
|
* The tag name of the root element into which a CycleExtension is rendered.
|
|
11
|
-
* @default slot
|
|
11
|
+
* @default piral-slot
|
|
12
12
|
*/
|
|
13
13
|
rootName?: string;
|
|
14
14
|
}
|
|
@@ -19,7 +19,7 @@ interface CycleState<TProps> {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export function createConverter(config: CycleConverterOptions = {}) {
|
|
22
|
-
const { rootName = 'slot' } = config;
|
|
22
|
+
const { rootName = 'piral-slot' } = config;
|
|
23
23
|
const Extension = createExtension(rootName);
|
|
24
24
|
const convert = <TProps extends BaseComponentProps, M extends MatchingMain<PiralDomDrivers<TProps>, M>>(
|
|
25
25
|
main: M,
|
|
@@ -30,7 +30,7 @@ export function createConverter(config: CycleConverterOptions = {}) {
|
|
|
30
30
|
// The Cycle DOM element is not directly rendered into parent, but into a nested container.
|
|
31
31
|
// This is done because Cycle "erases" information on the host element. If parent was used,
|
|
32
32
|
// Piral related properties like data-portal-id could be removed, leading to things not working.
|
|
33
|
-
const host = el.appendChild(document.createElement(
|
|
33
|
+
const host = el.appendChild(document.createElement(rootName));
|
|
34
34
|
|
|
35
35
|
const drivers: PiralDomDrivers<TProps> = {
|
|
36
36
|
DOM: makeDOMDriver(host),
|