sygnal 2.3.0 → 2.4.0
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/.babelrc +4 -1
- package/dist/collection.js +4 -14
- package/dist/component.js +257 -166
- package/dist/extra/classes.js +1 -7
- package/dist/extra/eventDriver.js +5 -16
- package/dist/extra/logDriver.js +1 -6
- package/dist/extra/processForm.js +3 -13
- package/dist/extra/run.js +11 -25
- package/dist/index.js +15 -142
- package/dist/jsx.js +2 -21
- package/dist/pragma/fn.js +13 -49
- package/dist/pragma/index.js +7 -27
- package/dist/pragma/is.js +11 -47
- package/dist/switchable.js +17 -28
- package/package.json +1 -1
package/.babelrc
CHANGED
package/dist/collection.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = collection;
|
|
7
|
-
|
|
8
|
-
var _isolate = _interopRequireDefault(require("@cycle/isolate"));
|
|
9
|
-
|
|
10
|
-
var _state = require("@cycle/state");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
3
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
4
|
|
|
16
5
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -25,7 +14,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
25
14
|
|
|
26
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
16
|
|
|
28
|
-
|
|
17
|
+
import isolate from '@cycle/isolate';
|
|
18
|
+
import { makeCollection } from '@cycle/state';
|
|
19
|
+
export default function collection(component, stateLense) {
|
|
29
20
|
var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
30
21
|
var _opts$combineList = opts.combineList,
|
|
31
22
|
combineList = _opts$combineList === void 0 ? ['DOM'] : _opts$combineList,
|
|
@@ -108,7 +99,6 @@ function collection(component, stateLense) {
|
|
|
108
99
|
* @return {Object} collection of component sinks
|
|
109
100
|
*/
|
|
110
101
|
|
|
111
|
-
|
|
112
102
|
function makeIsolatedCollection(collectionOpts, isolateOpts, sources) {
|
|
113
|
-
return (
|
|
103
|
+
return isolate(makeCollection(collectionOpts), isolateOpts)(sources);
|
|
114
104
|
}
|