atom.io 0.6.4 → 0.6.5
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/dist/index.js +69 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -3
- package/src/react-explorer/explorer-effects.ts +3 -3
- package/src/react-explorer/space-states.ts +3 -3
package/dist/index.mjs
CHANGED
|
@@ -168,8 +168,62 @@ var become = (nextVersionOfThing) => (originalThing) => nextVersionOfThing insta
|
|
|
168
168
|
) : nextVersionOfThing;
|
|
169
169
|
var pass = (...params) => (fn) => fn(...params);
|
|
170
170
|
|
|
171
|
-
//
|
|
172
|
-
|
|
171
|
+
// ../../node_modules/.pnpm/fp-ts@2.16.0/node_modules/fp-ts/es6/function.js
|
|
172
|
+
function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
|
|
173
|
+
switch (arguments.length) {
|
|
174
|
+
case 1:
|
|
175
|
+
return a;
|
|
176
|
+
case 2:
|
|
177
|
+
return ab(a);
|
|
178
|
+
case 3:
|
|
179
|
+
return bc(ab(a));
|
|
180
|
+
case 4:
|
|
181
|
+
return cd(bc(ab(a)));
|
|
182
|
+
case 5:
|
|
183
|
+
return de(cd(bc(ab(a))));
|
|
184
|
+
case 6:
|
|
185
|
+
return ef(de(cd(bc(ab(a)))));
|
|
186
|
+
case 7:
|
|
187
|
+
return fg(ef(de(cd(bc(ab(a))))));
|
|
188
|
+
case 8:
|
|
189
|
+
return gh(fg(ef(de(cd(bc(ab(a)))))));
|
|
190
|
+
case 9:
|
|
191
|
+
return hi(gh(fg(ef(de(cd(bc(ab(a))))))));
|
|
192
|
+
default: {
|
|
193
|
+
var ret = arguments[0];
|
|
194
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
195
|
+
ret = arguments[i](ret);
|
|
196
|
+
}
|
|
197
|
+
return ret;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// ../../node_modules/.pnpm/fp-ts@2.16.0/node_modules/fp-ts/es6/string.js
|
|
203
|
+
var Eq = {
|
|
204
|
+
equals: function(first, second) {
|
|
205
|
+
return first === second;
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
var Semigroup = {
|
|
209
|
+
concat: function(first, second) {
|
|
210
|
+
return first + second;
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
var empty = "";
|
|
214
|
+
var Monoid = {
|
|
215
|
+
concat: Semigroup.concat,
|
|
216
|
+
empty
|
|
217
|
+
};
|
|
218
|
+
var Ord = {
|
|
219
|
+
equals: Eq.equals,
|
|
220
|
+
compare: function(first, second) {
|
|
221
|
+
return first < second ? -1 : first > second ? 1 : 0;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
var isString = function(u) {
|
|
225
|
+
return typeof u === "string";
|
|
226
|
+
};
|
|
173
227
|
|
|
174
228
|
// ../anvl/src/array/venn.ts
|
|
175
229
|
var includesAll = (items) => (array) => {
|
|
@@ -190,9 +244,6 @@ var addTo = (a) => (x) => a.includes(x) ? a : [...a, x];
|
|
|
190
244
|
var isEmptyArray = (input) => Array.isArray(input) && input.length === 0;
|
|
191
245
|
var isOneOf = (...args) => (input) => args.includes(input);
|
|
192
246
|
|
|
193
|
-
// ../anvl/src/object/refinement.ts
|
|
194
|
-
import { pipe as pipe2 } from "fp-ts/function";
|
|
195
|
-
|
|
196
247
|
// ../anvl/src/object/access.ts
|
|
197
248
|
var access = (k) => Object.assign((obj) => obj[k], {
|
|
198
249
|
in: (obj) => obj[k]
|
|
@@ -203,7 +254,6 @@ var recordToEntries = (obj) => Object.entries(obj);
|
|
|
203
254
|
var entriesToRecord = (entries) => Object.fromEntries(entries);
|
|
204
255
|
|
|
205
256
|
// ../anvl/src/object/mapObject.ts
|
|
206
|
-
import { pipe } from "fp-ts/function";
|
|
207
257
|
var mapObject = (obj, fn) => pipe(
|
|
208
258
|
obj,
|
|
209
259
|
recordToEntries,
|
|
@@ -226,14 +276,14 @@ var hasProperties = (isValue, options = { allowExtraProperties: false }) => {
|
|
|
226
276
|
isValue
|
|
227
277
|
).map(([k, v]) => String(k) + `:` + v.name).join(`,`)}}`;
|
|
228
278
|
const _ = {
|
|
229
|
-
[name]: (input) => isPlainObject(input) &&
|
|
279
|
+
[name]: (input) => isPlainObject(input) && pipe(
|
|
230
280
|
isValue,
|
|
231
281
|
Object.entries,
|
|
232
282
|
every(([key, val]) => key in input || val(void 0))
|
|
233
|
-
) &&
|
|
283
|
+
) && pipe(
|
|
234
284
|
input,
|
|
235
285
|
mob(
|
|
236
|
-
(val, key) =>
|
|
286
|
+
(val, key) => pipe(
|
|
237
287
|
isValue,
|
|
238
288
|
access(key),
|
|
239
289
|
ifNullish(() => options.allowExtraProperties),
|
|
@@ -351,9 +401,6 @@ var makeJsonInterface = (join, ...params) => {
|
|
|
351
401
|
};
|
|
352
402
|
};
|
|
353
403
|
|
|
354
|
-
// ../anvl/src/join/relation-contents.ts
|
|
355
|
-
import { pipe as pipe5 } from "fp-ts/function";
|
|
356
|
-
|
|
357
404
|
// ../anvl/src/join/relation-record.ts
|
|
358
405
|
var getRelationEntries = (relationMap, idA) => getRelatedIds(relationMap, idA).map((idB) => [
|
|
359
406
|
idB,
|
|
@@ -361,12 +408,7 @@ var getRelationEntries = (relationMap, idA) => getRelatedIds(relationMap, idA).m
|
|
|
361
408
|
]);
|
|
362
409
|
var getRelationRecord = (relationMap, id) => Object.fromEntries(getRelationEntries(relationMap, id));
|
|
363
410
|
|
|
364
|
-
// ../anvl/src/join/remove-relation.ts
|
|
365
|
-
import { pipe as pipe4 } from "fp-ts/function";
|
|
366
|
-
import { isString as isString2 } from "fp-ts/string";
|
|
367
|
-
|
|
368
411
|
// ../anvl/src/object/index.ts
|
|
369
|
-
import { pipe as pipe3 } from "fp-ts/function";
|
|
370
412
|
var treeShake = (shouldDiscard = isUndefined) => (obj) => {
|
|
371
413
|
const newObj = {};
|
|
372
414
|
const entries = Object.entries(obj);
|
|
@@ -383,7 +425,7 @@ var split = (separator) => (str) => str.split(separator);
|
|
|
383
425
|
var removeSpecific = (current, idA, idB) => {
|
|
384
426
|
const isIdForRemoval = isOneOf(idA, idB);
|
|
385
427
|
return __spreadProps(__spreadValues({}, current), {
|
|
386
|
-
relations:
|
|
428
|
+
relations: pipe(
|
|
387
429
|
current.relations,
|
|
388
430
|
recordToEntries,
|
|
389
431
|
map(([id, relations]) => [
|
|
@@ -393,17 +435,17 @@ var removeSpecific = (current, idA, idB) => {
|
|
|
393
435
|
entriesToRecord,
|
|
394
436
|
treeShake(isEmptyArray)
|
|
395
437
|
),
|
|
396
|
-
contents:
|
|
438
|
+
contents: pipe(
|
|
397
439
|
current.contents,
|
|
398
440
|
treeShake(
|
|
399
|
-
(_, key) =>
|
|
441
|
+
(_, key) => isString(key) && pipe(key, split(`/`), comprises([idA, idB]))
|
|
400
442
|
)
|
|
401
443
|
)
|
|
402
444
|
});
|
|
403
445
|
};
|
|
404
446
|
var removeAll = (current, idToRemove) => {
|
|
405
447
|
const next = __spreadProps(__spreadValues({}, current), {
|
|
406
|
-
relations:
|
|
448
|
+
relations: pipe(
|
|
407
449
|
current.relations,
|
|
408
450
|
recordToEntries,
|
|
409
451
|
map(([id, relations]) => [
|
|
@@ -413,10 +455,10 @@ var removeAll = (current, idToRemove) => {
|
|
|
413
455
|
entriesToRecord,
|
|
414
456
|
treeShake((val, key) => key === idToRemove || isEmptyArray(val))
|
|
415
457
|
),
|
|
416
|
-
contents:
|
|
458
|
+
contents: pipe(
|
|
417
459
|
current.contents,
|
|
418
460
|
treeShake(
|
|
419
|
-
(_, key) =>
|
|
461
|
+
(_, key) => isString(key) && key.split(`/`).includes(idToRemove)
|
|
420
462
|
)
|
|
421
463
|
)
|
|
422
464
|
});
|
|
@@ -498,7 +540,7 @@ var getRelations = (relationMap, id) => getRelationEntries(relationMap, id).map(
|
|
|
498
540
|
var setRelations = (current, subject, relations) => {
|
|
499
541
|
const idA = subject[current.a];
|
|
500
542
|
const idB = subject[current.b];
|
|
501
|
-
return
|
|
543
|
+
return pipe(
|
|
502
544
|
current,
|
|
503
545
|
(relationData) => {
|
|
504
546
|
const relatedIds = getRelatedIds(current, idA);
|
|
@@ -840,7 +882,6 @@ function atom__INTERNAL(options, family, store = IMPLICIT.STORE) {
|
|
|
840
882
|
}
|
|
841
883
|
|
|
842
884
|
// ../anvl/src/json/index.ts
|
|
843
|
-
import { pipe as pipe6 } from "fp-ts/function";
|
|
844
885
|
var stringifyJson = (json) => JSON.stringify(json);
|
|
845
886
|
|
|
846
887
|
// src/internal/families-internal.ts
|