piral-cycle 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.
@@ -4,7 +4,7 @@ import type { PiralDomDrivers } from './types';
4
4
  export interface CycleConverterOptions {
5
5
  /**
6
6
  * The tag name of the root element into which a CycleExtension is rendered.
7
- * @default slot
7
+ * @default piral-slot
8
8
  */
9
9
  rootName?: string;
10
10
  }
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('slot'));
14
+ const host = el.appendChild(document.createElement(rootName));
15
15
  const drivers = {
16
16
  DOM: makeDOMDriver(host),
17
17
  props: () => locals.props$,
@@ -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,eAAe,CAAC,SAAgC,EAAE;IAChE,MAAM,EAAE,QAAQ,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;IACrC,MAAM,SAAS,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAG,CAC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} from './types';
4
4
  export interface CycleConverterOptions {
5
5
  /**
6
6
  * The tag name of the root element into which a CycleExtension is rendered.
7
- * @default slot
7
+ * @default piral-slot
8
8
  */
9
9
  rootName?: string;
10
10
  }
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('slot'));
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$,
@@ -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,MAAM,EAAE,GAAG,MAAM,CAAC;IACrC,MAAM,SAAS,GAAG,IAAA,2BAAe,EAAC,QAAQ,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAG,CACd,IAAO,EACmB,EAAE,CAAC,CAAC;QAC9B,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAA0B;YAC9C,MAAM,CAAC,MAAM,GAAG,iBAAE,CAAC,MAAM,EAAU,CAAC;YAEpC,2FAA2F;YAC3F,2FAA2F;YAC3F,gGAAgG;YAChG,MAAM,IAAI,GAAG,EAAE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AAM,GAAG,iBAAE,CAAC,MAAM,EAAU,CAAC;YAEpC,2FAA2F;YAC3F,2FAA2F;YAC3F,gGAAgG;YAChG,MAAM,IAAI,GAAG,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;YAE9D,MAAM,OAAO,GAA4B;gBACvC,GAAG,EAAE,IAAA,mBAAa,EAAC,IAAI,CAAC;gBACxB,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM;aAC3B,CAAC;YAEF,MAAM,CAAC,OAAO,GAAG,IAAA,aAAG,EAAC,IAAY,EAAE,OAAO,CAAC,CAAC;YAC5C,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAC1C,CAAC;QACD,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAA0B;YAC/C,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAC1C,CAAC;QACD,OAAO,CAAC,EAAE,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;AAlCD,0CAkCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-cycle",
3
- "version": "0.15.0-beta.4633",
3
+ "version": "0.15.0-beta.4670",
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.4633",
69
+ "piral-core": "0.15.0-beta.4670",
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": "96b950f26e9673595f68518103508dfc76001761"
77
+ "gitHead": "ffd8707600e028a55258028d394b76fe3a0cd175"
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('slot'));
33
+ const host = el.appendChild(document.createElement(rootName));
34
34
 
35
35
  const drivers: PiralDomDrivers<TProps> = {
36
36
  DOM: makeDOMDriver(host),