@awesome-flow/noise 0.4.0 → 0.6.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/dist/abstract/index.cjs +42 -42
- package/dist/abstract/index.js +59 -54
- package/dist/modules/index.cjs +0 -1
- package/dist/modules/index.js +0 -1
- package/dist/nodes/generators/index.cjs +0 -1
- package/dist/nodes/generators/index.js +0 -1
- package/dist/nodes/groups/index.cjs +2 -5
- package/dist/nodes/groups/index.js +9 -7
- package/dist/nodes/index.cjs +68 -68
- package/dist/nodes/index.js +59 -54
- package/dist/nodes/modifiers/index.cjs +40 -38
- package/dist/nodes/modifiers/index.js +50 -48
- package/dist/nodes/output/index.cjs +0 -2
- package/dist/nodes/output/index.js +7 -4
- package/dist/nodes/selectors/index.cjs +0 -2
- package/dist/nodes/selectors/index.js +7 -4
- package/dist/nodes/transformers/index.cjs +0 -1
- package/dist/nodes/transformers/index.js +0 -1
- package/dist/templates/generators/index.cjs +2 -4
- package/dist/templates/generators/index.js +7 -4
- package/dist/templates/groups/index.cjs +2 -4
- package/dist/templates/groups/index.js +7 -4
- package/dist/templates/index.cjs +2 -4
- package/dist/templates/index.js +7 -4
- package/dist/templates/modifiers/index.cjs +0 -2
- package/dist/templates/modifiers/index.js +7 -4
- package/dist/templates/output/index.cjs +0 -2
- package/dist/templates/output/index.js +7 -4
- package/dist/templates/selectors/index.cjs +0 -2
- package/dist/templates/selectors/index.js +7 -4
- package/dist/templates/transformers/index.cjs +0 -2
- package/dist/templates/transformers/index.js +7 -4
- package/package.json +3 -3
- package/dist/abstract/index.cjs.map +0 -1
- package/dist/abstract/index.js.map +0 -1
- package/dist/modules/index.cjs.map +0 -1
- package/dist/modules/index.js.map +0 -1
- package/dist/nodes/generators/index.cjs.map +0 -1
- package/dist/nodes/generators/index.js.map +0 -1
- package/dist/nodes/groups/index.cjs.map +0 -1
- package/dist/nodes/groups/index.js.map +0 -1
- package/dist/nodes/index.cjs.map +0 -1
- package/dist/nodes/index.js.map +0 -1
- package/dist/nodes/modifiers/index.cjs.map +0 -1
- package/dist/nodes/modifiers/index.js.map +0 -1
- package/dist/nodes/output/index.cjs.map +0 -1
- package/dist/nodes/output/index.js.map +0 -1
- package/dist/nodes/selectors/index.cjs.map +0 -1
- package/dist/nodes/selectors/index.js.map +0 -1
- package/dist/nodes/transformers/index.cjs.map +0 -1
- package/dist/nodes/transformers/index.js.map +0 -1
- package/dist/templates/generators/index.cjs.map +0 -1
- package/dist/templates/generators/index.js.map +0 -1
- package/dist/templates/groups/index.cjs.map +0 -1
- package/dist/templates/groups/index.js.map +0 -1
- package/dist/templates/index.cjs.map +0 -1
- package/dist/templates/index.js.map +0 -1
- package/dist/templates/modifiers/index.cjs.map +0 -1
- package/dist/templates/modifiers/index.js.map +0 -1
- package/dist/templates/output/index.cjs.map +0 -1
- package/dist/templates/output/index.js.map +0 -1
- package/dist/templates/selectors/index.cjs.map +0 -1
- package/dist/templates/selectors/index.js.map +0 -1
- package/dist/templates/transformers/index.cjs.map +0 -1
- package/dist/templates/transformers/index.js.map +0 -1
|
@@ -24,9 +24,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
mod
|
|
25
25
|
));
|
|
26
26
|
|
|
27
|
-
// ../../node_modules/fast-deep-equal/index.js
|
|
27
|
+
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
28
28
|
var require_fast_deep_equal = __commonJS({
|
|
29
|
-
"../../node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
29
|
+
"../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
30
30
|
"use strict";
|
|
31
31
|
module.exports = function equal(a, b) {
|
|
32
32
|
if (a === b)
|
|
@@ -205,10 +205,10 @@ import {
|
|
|
205
205
|
useUpdateNodeData as useUpdateNodeData3
|
|
206
206
|
} from "@awesome-flow/core/hooks";
|
|
207
207
|
|
|
208
|
-
// ../../node_modules/@mantine/form/esm/use-form.mjs
|
|
208
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/use-form.mjs
|
|
209
209
|
import { useState as useState5, useCallback as useCallback7 } from "react";
|
|
210
210
|
|
|
211
|
-
// ../../node_modules/@mantine/form/esm/actions/actions.mjs
|
|
211
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/actions/actions.mjs
|
|
212
212
|
import { useLayoutEffect, useEffect as useEffect4 } from "react";
|
|
213
213
|
function validateFormName(name) {
|
|
214
214
|
if (!/^[0-9a-zA-Z-]+$/.test(name)) {
|
|
@@ -289,7 +289,7 @@ function useFormActions(name, form) {
|
|
|
289
289
|
useFormEvent(`mantine-form:${name}:reset-touched`, form.resetTouched);
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
// ../../node_modules/@mantine/form/esm/get-input-on-change/get-input-on-change.mjs
|
|
292
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/get-input-on-change/get-input-on-change.mjs
|
|
293
293
|
function getInputOnChange(setValue) {
|
|
294
294
|
return (val) => {
|
|
295
295
|
if (!val) {
|
|
@@ -313,10 +313,10 @@ function getInputOnChange(setValue) {
|
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
// ../../node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
|
|
317
|
-
import { useState as useState2, useCallback as useCallback2 } from "react";
|
|
316
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
|
|
317
|
+
import { useState as useState2, useRef, useCallback as useCallback2 } from "react";
|
|
318
318
|
|
|
319
|
-
// ../../node_modules/@mantine/form/esm/hooks/use-form-errors/filter-errors/filter-errors.mjs
|
|
319
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-errors/filter-errors/filter-errors.mjs
|
|
320
320
|
function filterErrors(errors) {
|
|
321
321
|
if (errors === null || typeof errors !== "object") {
|
|
322
322
|
return {};
|
|
@@ -330,18 +330,21 @@ function filterErrors(errors) {
|
|
|
330
330
|
}, {});
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
// ../../node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
|
|
333
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
|
|
334
334
|
function useFormErrors(initialErrors) {
|
|
335
335
|
const [errorsState, setErrorsState] = useState2(filterErrors(initialErrors));
|
|
336
|
+
const errorsRef = useRef(errorsState);
|
|
336
337
|
const setErrors = useCallback2((errors) => {
|
|
337
|
-
setErrorsState(
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
setErrorsState((current) => {
|
|
339
|
+
const newErrors = filterErrors(typeof errors === "function" ? errors(current) : errors);
|
|
340
|
+
errorsRef.current = newErrors;
|
|
341
|
+
return newErrors;
|
|
342
|
+
});
|
|
340
343
|
}, []);
|
|
341
|
-
const clearErrors = useCallback2(() =>
|
|
344
|
+
const clearErrors = useCallback2(() => setErrors({}), []);
|
|
342
345
|
const clearFieldError = useCallback2(
|
|
343
346
|
(path) => {
|
|
344
|
-
if (
|
|
347
|
+
if (errorsRef.current[path] === void 0) {
|
|
345
348
|
return;
|
|
346
349
|
}
|
|
347
350
|
setErrors((current) => {
|
|
@@ -356,7 +359,7 @@ function useFormErrors(initialErrors) {
|
|
|
356
359
|
(path, error) => {
|
|
357
360
|
if (error == null || error === false) {
|
|
358
361
|
clearFieldError(path);
|
|
359
|
-
} else if (
|
|
362
|
+
} else if (errorsRef.current[path] !== error) {
|
|
360
363
|
setErrors((current) => ({ ...current, [path]: error }));
|
|
361
364
|
}
|
|
362
365
|
},
|
|
@@ -371,10 +374,10 @@ function useFormErrors(initialErrors) {
|
|
|
371
374
|
};
|
|
372
375
|
}
|
|
373
376
|
|
|
374
|
-
// ../../node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
|
|
377
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
|
|
375
378
|
import { useCallback as useCallback3 } from "react";
|
|
376
379
|
|
|
377
|
-
// ../../node_modules/@mantine/form/esm/lists/clear-list-state.mjs
|
|
380
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/clear-list-state.mjs
|
|
378
381
|
function clearListState(field, state) {
|
|
379
382
|
if (state === null || typeof state !== "object") {
|
|
380
383
|
return {};
|
|
@@ -388,7 +391,7 @@ function clearListState(field, state) {
|
|
|
388
391
|
return clone;
|
|
389
392
|
}
|
|
390
393
|
|
|
391
|
-
// ../../node_modules/@mantine/form/esm/lists/change-error-indices.mjs
|
|
394
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/change-error-indices.mjs
|
|
392
395
|
function getIndexFromKeyAfterPath(key, path) {
|
|
393
396
|
const split = key.substring(path.length + 1).split(".")[0];
|
|
394
397
|
return parseInt(split, 10);
|
|
@@ -428,7 +431,7 @@ function changeErrorIndices(path, index, errors, change) {
|
|
|
428
431
|
return cloned;
|
|
429
432
|
}
|
|
430
433
|
|
|
431
|
-
// ../../node_modules/@mantine/form/esm/lists/reorder-errors.mjs
|
|
434
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/reorder-errors.mjs
|
|
432
435
|
function reorderErrors(path, { from, to }, errors) {
|
|
433
436
|
const oldKeyStart = `${path}.${from}`;
|
|
434
437
|
const newKeyStart = `${path}.${to}`;
|
|
@@ -456,7 +459,7 @@ function reorderErrors(path, { from, to }, errors) {
|
|
|
456
459
|
return clone;
|
|
457
460
|
}
|
|
458
461
|
|
|
459
|
-
// ../../node_modules/klona/full/index.mjs
|
|
462
|
+
// ../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.mjs
|
|
460
463
|
function set(obj, key, val) {
|
|
461
464
|
if (typeof val.value === "object")
|
|
462
465
|
val.value = klona(val.value);
|
|
@@ -507,7 +510,7 @@ function klona(x) {
|
|
|
507
510
|
return tmp || x;
|
|
508
511
|
}
|
|
509
512
|
|
|
510
|
-
// ../../node_modules/@mantine/form/esm/paths/get-splitted-path.mjs
|
|
513
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-splitted-path.mjs
|
|
511
514
|
function getSplittedPath(path) {
|
|
512
515
|
if (typeof path !== "string") {
|
|
513
516
|
return [];
|
|
@@ -515,7 +518,7 @@ function getSplittedPath(path) {
|
|
|
515
518
|
return path.split(".");
|
|
516
519
|
}
|
|
517
520
|
|
|
518
|
-
// ../../node_modules/@mantine/form/esm/paths/get-path.mjs
|
|
521
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-path.mjs
|
|
519
522
|
function getPath(path, values) {
|
|
520
523
|
const splittedPath = getSplittedPath(path);
|
|
521
524
|
if (splittedPath.length === 0 || typeof values !== "object" || values === null) {
|
|
@@ -531,7 +534,7 @@ function getPath(path, values) {
|
|
|
531
534
|
return value;
|
|
532
535
|
}
|
|
533
536
|
|
|
534
|
-
// ../../node_modules/@mantine/form/esm/paths/set-path.mjs
|
|
537
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/set-path.mjs
|
|
535
538
|
function setPath(path, value, values) {
|
|
536
539
|
const splittedPath = getSplittedPath(path);
|
|
537
540
|
if (splittedPath.length === 0) {
|
|
@@ -553,7 +556,7 @@ function setPath(path, value, values) {
|
|
|
553
556
|
return cloned;
|
|
554
557
|
}
|
|
555
558
|
|
|
556
|
-
// ../../node_modules/@mantine/form/esm/paths/reorder-path.mjs
|
|
559
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/reorder-path.mjs
|
|
557
560
|
function reorderPath(path, { from, to }, values) {
|
|
558
561
|
const currentValue = getPath(path, values);
|
|
559
562
|
if (!Array.isArray(currentValue)) {
|
|
@@ -566,7 +569,7 @@ function reorderPath(path, { from, to }, values) {
|
|
|
566
569
|
return setPath(path, cloned, values);
|
|
567
570
|
}
|
|
568
571
|
|
|
569
|
-
// ../../node_modules/@mantine/form/esm/paths/insert-path.mjs
|
|
572
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/insert-path.mjs
|
|
570
573
|
function insertPath(path, value, index, values) {
|
|
571
574
|
const currentValue = getPath(path, values);
|
|
572
575
|
if (!Array.isArray(currentValue)) {
|
|
@@ -577,7 +580,7 @@ function insertPath(path, value, index, values) {
|
|
|
577
580
|
return setPath(path, cloned, values);
|
|
578
581
|
}
|
|
579
582
|
|
|
580
|
-
// ../../node_modules/@mantine/form/esm/paths/remove-path.mjs
|
|
583
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/remove-path.mjs
|
|
581
584
|
function removePath(path, index, values) {
|
|
582
585
|
const currentValue = getPath(path, values);
|
|
583
586
|
if (!Array.isArray(currentValue)) {
|
|
@@ -590,7 +593,7 @@ function removePath(path, index, values) {
|
|
|
590
593
|
);
|
|
591
594
|
}
|
|
592
595
|
|
|
593
|
-
// ../../node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
|
|
596
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
|
|
594
597
|
function useFormList({
|
|
595
598
|
$values,
|
|
596
599
|
$errors,
|
|
@@ -623,11 +626,11 @@ function useFormList({
|
|
|
623
626
|
return { reorderListItem, removeListItem, insertListItem };
|
|
624
627
|
}
|
|
625
628
|
|
|
626
|
-
// ../../node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
|
|
629
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
|
|
627
630
|
var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
|
|
628
|
-
import { useState as useState3, useRef, useCallback as useCallback4 } from "react";
|
|
631
|
+
import { useState as useState3, useRef as useRef2, useCallback as useCallback4 } from "react";
|
|
629
632
|
|
|
630
|
-
// ../../node_modules/@mantine/form/esm/get-status/get-status.mjs
|
|
633
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/get-status/get-status.mjs
|
|
631
634
|
function getStatus(status, path) {
|
|
632
635
|
const paths = Object.keys(status);
|
|
633
636
|
if (typeof path === "string") {
|
|
@@ -637,7 +640,7 @@ function getStatus(status, path) {
|
|
|
637
640
|
return paths.some((statusPath) => status[statusPath]);
|
|
638
641
|
}
|
|
639
642
|
|
|
640
|
-
// ../../node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
|
|
643
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
|
|
641
644
|
function useFormStatus({
|
|
642
645
|
initialDirty,
|
|
643
646
|
initialTouched,
|
|
@@ -646,8 +649,8 @@ function useFormStatus({
|
|
|
646
649
|
}) {
|
|
647
650
|
const [touchedState, setTouchedState] = useState3(initialTouched);
|
|
648
651
|
const [dirtyState, setDirtyState] = useState3(initialDirty);
|
|
649
|
-
const touchedRef =
|
|
650
|
-
const dirtyRef =
|
|
652
|
+
const touchedRef = useRef2(initialTouched);
|
|
653
|
+
const dirtyRef = useRef2(initialDirty);
|
|
651
654
|
const setTouched = useCallback4((values) => {
|
|
652
655
|
const resolvedValues = typeof values === "function" ? values(touchedRef.current) : values;
|
|
653
656
|
touchedRef.current = resolvedValues;
|
|
@@ -741,17 +744,17 @@ function useFormStatus({
|
|
|
741
744
|
};
|
|
742
745
|
}
|
|
743
746
|
|
|
744
|
-
// ../../node_modules/@mantine/form/esm/hooks/use-form-values/use-form-values.mjs
|
|
745
|
-
import { useRef as
|
|
747
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-values/use-form-values.mjs
|
|
748
|
+
import { useRef as useRef3, useState as useState4, useCallback as useCallback5 } from "react";
|
|
746
749
|
function useFormValues({
|
|
747
750
|
initialValues,
|
|
748
751
|
onValuesChange,
|
|
749
752
|
mode
|
|
750
753
|
}) {
|
|
751
|
-
const initialized =
|
|
754
|
+
const initialized = useRef3(false);
|
|
752
755
|
const [stateValues, setStateValues] = useState4(initialValues || {});
|
|
753
|
-
const refValues =
|
|
754
|
-
const valuesSnapshot =
|
|
756
|
+
const refValues = useRef3(stateValues);
|
|
757
|
+
const valuesSnapshot = useRef3(stateValues);
|
|
755
758
|
const setValues = useCallback5(
|
|
756
759
|
({
|
|
757
760
|
values,
|
|
@@ -814,12 +817,12 @@ function useFormValues({
|
|
|
814
817
|
};
|
|
815
818
|
}
|
|
816
819
|
|
|
817
|
-
// ../../node_modules/@mantine/form/esm/hooks/use-form-watch/use-form-watch.mjs
|
|
818
|
-
import { useRef as
|
|
820
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-watch/use-form-watch.mjs
|
|
821
|
+
import { useRef as useRef4, useCallback as useCallback6, useEffect as useEffect5 } from "react";
|
|
819
822
|
function useFormWatch({
|
|
820
823
|
$status
|
|
821
824
|
}) {
|
|
822
|
-
const subscribers =
|
|
825
|
+
const subscribers = useRef4(
|
|
823
826
|
{}
|
|
824
827
|
);
|
|
825
828
|
const watch = useCallback6((path, callback) => {
|
|
@@ -851,12 +854,12 @@ function useFormWatch({
|
|
|
851
854
|
};
|
|
852
855
|
}
|
|
853
856
|
|
|
854
|
-
// ../../node_modules/@mantine/form/esm/paths/get-data-path.mjs
|
|
857
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-data-path.mjs
|
|
855
858
|
function getDataPath(formName, fieldPath) {
|
|
856
859
|
return formName ? `${formName}-${fieldPath.toString()}` : fieldPath.toString();
|
|
857
860
|
}
|
|
858
861
|
|
|
859
|
-
// ../../node_modules/@mantine/form/esm/validate/validate-values.mjs
|
|
862
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/validate-values.mjs
|
|
860
863
|
function getValidationResults(errors) {
|
|
861
864
|
const filteredErrors = filterErrors(errors);
|
|
862
865
|
return { hasErrors: Object.keys(filteredErrors).length > 0, errors: filteredErrors };
|
|
@@ -894,7 +897,7 @@ function validateValues(validate, values) {
|
|
|
894
897
|
return getValidationResults(validateRulesRecord(validate, values));
|
|
895
898
|
}
|
|
896
899
|
|
|
897
|
-
// ../../node_modules/@mantine/form/esm/validate/validate-field-value.mjs
|
|
900
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/validate-field-value.mjs
|
|
898
901
|
function validateFieldValue(path, rules, values) {
|
|
899
902
|
if (typeof path !== "string") {
|
|
900
903
|
return { hasError: false, error: null };
|
|
@@ -906,10 +909,10 @@ function validateFieldValue(path, rules, values) {
|
|
|
906
909
|
return { hasError: !!pathInError, error: pathInError ? results.errors[pathInError] : null };
|
|
907
910
|
}
|
|
908
911
|
|
|
909
|
-
// ../../node_modules/@mantine/form/esm/form-index.mjs
|
|
912
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/form-index.mjs
|
|
910
913
|
var FORM_INDEX = "__MANTINE_FORM_INDEX__";
|
|
911
914
|
|
|
912
|
-
// ../../node_modules/@mantine/form/esm/validate/should-validate-on-change.mjs
|
|
915
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/should-validate-on-change.mjs
|
|
913
916
|
function shouldValidateOnChange(path, validateInputOnChange) {
|
|
914
917
|
if (!validateInputOnChange) {
|
|
915
918
|
return false;
|
|
@@ -923,7 +926,7 @@ function shouldValidateOnChange(path, validateInputOnChange) {
|
|
|
923
926
|
return false;
|
|
924
927
|
}
|
|
925
928
|
|
|
926
|
-
// ../../node_modules/@mantine/form/esm/use-form.mjs
|
|
929
|
+
// ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/use-form.mjs
|
|
927
930
|
function useForm({
|
|
928
931
|
name,
|
|
929
932
|
mode = "controlled",
|
|
@@ -1501,4 +1504,3 @@ export {
|
|
|
1501
1504
|
noise_scale_bias_node_default as NoiseScaleBiasNode,
|
|
1502
1505
|
noise_terrace_node_default as NoiseTerraceNode
|
|
1503
1506
|
};
|
|
1504
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1292,7 +1292,6 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1292
1292
|
// src/nodes/groups/module-group-node.tsx
|
|
1293
1293
|
var import_layout31 = require("@awesome-flow/core/layout");
|
|
1294
1294
|
var import_react31 = require("@xyflow/react");
|
|
1295
|
-
var import_abstract35 = require("@awesome-flow/core/abstract");
|
|
1296
1295
|
var import_react32 = require("react");
|
|
1297
1296
|
var import_shallow = require("zustand/shallow");
|
|
1298
1297
|
var import_core17 = require("@mantine/core");
|
|
@@ -1389,4 +1388,3 @@ var noise_output_node_default = NoiseOutputNode;
|
|
|
1389
1388
|
NoiseRawTextureNode,
|
|
1390
1389
|
PositionsLoggerNode
|
|
1391
1390
|
});
|
|
1392
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1304,11 +1304,15 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1304
1304
|
// src/nodes/groups/module-group-node.tsx
|
|
1305
1305
|
import { NodeContainer as NodeContainer31, NodeCollapse, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
|
|
1306
1306
|
import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
|
|
1307
|
-
import {
|
|
1308
|
-
import { useCallback as useCallback14, useContext, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1307
|
+
import { useCallback as useCallback14, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1309
1308
|
import { shallow } from "zustand/shallow";
|
|
1310
1309
|
import { Badge, Group as Group15 } from "@mantine/core";
|
|
1311
|
-
import {
|
|
1310
|
+
import {
|
|
1311
|
+
useFlowStore,
|
|
1312
|
+
useIncomingComputedData as useIncomingComputedData17,
|
|
1313
|
+
useInteractiveStore,
|
|
1314
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData29
|
|
1315
|
+
} from "@awesome-flow/core/hooks";
|
|
1312
1316
|
import { jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1313
1317
|
|
|
1314
1318
|
// src/abstract/node-types.ts
|
|
@@ -1400,4 +1404,3 @@ export {
|
|
|
1400
1404
|
noise_raw_texture_node_default as NoiseRawTextureNode,
|
|
1401
1405
|
positions_logger_node_default as PositionsLoggerNode
|
|
1402
1406
|
};
|
|
1403
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1288,7 +1288,6 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1288
1288
|
// src/nodes/groups/module-group-node.tsx
|
|
1289
1289
|
var import_layout31 = require("@awesome-flow/core/layout");
|
|
1290
1290
|
var import_react31 = require("@xyflow/react");
|
|
1291
|
-
var import_abstract35 = require("@awesome-flow/core/abstract");
|
|
1292
1291
|
var import_react32 = require("react");
|
|
1293
1292
|
var import_shallow = require("zustand/shallow");
|
|
1294
1293
|
var import_core18 = require("@mantine/core");
|
|
@@ -1371,4 +1370,3 @@ var noise_blend_node_default = NoiseBlendNode;
|
|
|
1371
1370
|
NoiseBlendNode,
|
|
1372
1371
|
NoiseSelectNode
|
|
1373
1372
|
});
|
|
1374
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1302,11 +1302,15 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1302
1302
|
// src/nodes/groups/module-group-node.tsx
|
|
1303
1303
|
import { NodeContainer as NodeContainer31, NodeCollapse, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
|
|
1304
1304
|
import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
|
|
1305
|
-
import {
|
|
1306
|
-
import { useCallback as useCallback14, useContext, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1305
|
+
import { useCallback as useCallback14, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1307
1306
|
import { shallow } from "zustand/shallow";
|
|
1308
1307
|
import { Badge, Group as Group15 } from "@mantine/core";
|
|
1309
|
-
import {
|
|
1308
|
+
import {
|
|
1309
|
+
useFlowStore,
|
|
1310
|
+
useIncomingComputedData as useIncomingComputedData17,
|
|
1311
|
+
useInteractiveStore,
|
|
1312
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData29
|
|
1313
|
+
} from "@awesome-flow/core/hooks";
|
|
1310
1314
|
import { jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1311
1315
|
|
|
1312
1316
|
// src/abstract/node-types.ts
|
|
@@ -1384,4 +1388,3 @@ export {
|
|
|
1384
1388
|
noise_blend_node_default as NoiseBlendNode,
|
|
1385
1389
|
noise_select_node_default as NoiseSelectNode
|
|
1386
1390
|
};
|
|
1387
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -44,7 +44,7 @@ __export(generators_exports, {
|
|
|
44
44
|
module.exports = __toCommonJS(generators_exports);
|
|
45
45
|
|
|
46
46
|
// src/templates/generators/noise-billow-template.ts
|
|
47
|
-
var
|
|
47
|
+
var import_abstract35 = require("@awesome-flow/core/abstract");
|
|
48
48
|
var import_utils3 = require("@awesome-flow/core/utils");
|
|
49
49
|
var import_system32 = require("@xyflow/system");
|
|
50
50
|
|
|
@@ -1187,7 +1187,6 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1187
1187
|
// src/nodes/groups/module-group-node.tsx
|
|
1188
1188
|
var import_layout32 = require("@awesome-flow/core/layout");
|
|
1189
1189
|
var import_react32 = require("@xyflow/react");
|
|
1190
|
-
var import_abstract35 = require("@awesome-flow/core/abstract");
|
|
1191
1190
|
var import_react33 = require("react");
|
|
1192
1191
|
var import_shallow = require("zustand/shallow");
|
|
1193
1192
|
var import_core18 = require("@mantine/core");
|
|
@@ -1247,7 +1246,7 @@ var NoiseBillowNodeTemplateFactory = class {
|
|
|
1247
1246
|
handles: [
|
|
1248
1247
|
{
|
|
1249
1248
|
position: import_system32.Position.Left,
|
|
1250
|
-
dataType:
|
|
1249
|
+
dataType: import_abstract35.CoreHandleType.variableProperty,
|
|
1251
1250
|
connection: "target"
|
|
1252
1251
|
},
|
|
1253
1252
|
{
|
|
@@ -1272,4 +1271,3 @@ var NoiseBillowNodeTemplateFactory = class {
|
|
|
1272
1271
|
PositionConstNodeTemplateFactory,
|
|
1273
1272
|
PositionGridNodeTemplateFactory
|
|
1274
1273
|
});
|
|
1275
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1192,11 +1192,15 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1192
1192
|
// src/nodes/groups/module-group-node.tsx
|
|
1193
1193
|
import { NodeContainer as NodeContainer32, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
|
|
1194
1194
|
import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
|
|
1195
|
-
import {
|
|
1196
|
-
import { useCallback as useCallback15, useContext, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1195
|
+
import { useCallback as useCallback15, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1197
1196
|
import { shallow } from "zustand/shallow";
|
|
1198
1197
|
import { Badge, Group as Group15 } from "@mantine/core";
|
|
1199
|
-
import {
|
|
1198
|
+
import {
|
|
1199
|
+
useFlowStore,
|
|
1200
|
+
useIncomingComputedData as useIncomingComputedData17,
|
|
1201
|
+
useInteractiveStore,
|
|
1202
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData30
|
|
1203
|
+
} from "@awesome-flow/core/hooks";
|
|
1200
1204
|
import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1201
1205
|
|
|
1202
1206
|
// src/abstract/node-types.ts
|
|
@@ -1276,4 +1280,3 @@ export {
|
|
|
1276
1280
|
PositionConstNodeTemplateFactory,
|
|
1277
1281
|
PositionGridNodeTemplateFactory
|
|
1278
1282
|
};
|
|
1279
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -34,7 +34,7 @@ __export(groups_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(groups_exports);
|
|
35
35
|
|
|
36
36
|
// src/templates/groups/module-group-template.ts
|
|
37
|
-
var
|
|
37
|
+
var import_abstract35 = require("@awesome-flow/core/abstract");
|
|
38
38
|
var import_utils3 = require("@awesome-flow/core/utils");
|
|
39
39
|
var import_system32 = require("@xyflow/system");
|
|
40
40
|
|
|
@@ -1171,7 +1171,6 @@ var NoiseBillowNodeTemplateFactory = class {
|
|
|
1171
1171
|
// src/nodes/groups/module-group-node.tsx
|
|
1172
1172
|
var import_layout32 = require("@awesome-flow/core/layout");
|
|
1173
1173
|
var import_react32 = require("@xyflow/react");
|
|
1174
|
-
var import_abstract35 = require("@awesome-flow/core/abstract");
|
|
1175
1174
|
var import_react33 = require("react");
|
|
1176
1175
|
var import_shallow = require("zustand/shallow");
|
|
1177
1176
|
var import_core18 = require("@mantine/core");
|
|
@@ -1219,7 +1218,7 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1219
1218
|
template = {
|
|
1220
1219
|
id: import_utils3.IDGenerator.template(),
|
|
1221
1220
|
type: "group-module" /* groupModule */,
|
|
1222
|
-
group:
|
|
1221
|
+
group: import_abstract35.CoreTemplateGroup.groups,
|
|
1223
1222
|
data: {
|
|
1224
1223
|
title: "Modules Group",
|
|
1225
1224
|
isGroup: true,
|
|
@@ -1252,4 +1251,3 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1252
1251
|
0 && (module.exports = {
|
|
1253
1252
|
ModuleGroupNodeTemplateFactory
|
|
1254
1253
|
});
|
|
1255
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1186,11 +1186,15 @@ var NoiseBillowNodeTemplateFactory = class {
|
|
|
1186
1186
|
// src/nodes/groups/module-group-node.tsx
|
|
1187
1187
|
import { NodeContainer as NodeContainer32, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
|
|
1188
1188
|
import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
|
|
1189
|
-
import {
|
|
1190
|
-
import { useCallback as useCallback15, useContext, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1189
|
+
import { useCallback as useCallback15, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1191
1190
|
import { shallow } from "zustand/shallow";
|
|
1192
1191
|
import { Badge, Group as Group15 } from "@mantine/core";
|
|
1193
|
-
import {
|
|
1192
|
+
import {
|
|
1193
|
+
useFlowStore,
|
|
1194
|
+
useIncomingComputedData as useIncomingComputedData17,
|
|
1195
|
+
useInteractiveStore,
|
|
1196
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData30
|
|
1197
|
+
} from "@awesome-flow/core/hooks";
|
|
1194
1198
|
import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1195
1199
|
|
|
1196
1200
|
// src/abstract/node-types.ts
|
|
@@ -1266,4 +1270,3 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1266
1270
|
export {
|
|
1267
1271
|
ModuleGroupNodeTemplateFactory
|
|
1268
1272
|
};
|
|
1269
|
-
//# sourceMappingURL=index.js.map
|
package/dist/templates/index.cjs
CHANGED
|
@@ -65,7 +65,7 @@ __export(templates_exports, {
|
|
|
65
65
|
module.exports = __toCommonJS(templates_exports);
|
|
66
66
|
|
|
67
67
|
// src/templates/generators/noise-billow-template.ts
|
|
68
|
-
var
|
|
68
|
+
var import_abstract35 = require("@awesome-flow/core/abstract");
|
|
69
69
|
var import_utils3 = require("@awesome-flow/core/utils");
|
|
70
70
|
var import_system32 = require("@xyflow/system");
|
|
71
71
|
|
|
@@ -1208,7 +1208,6 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1208
1208
|
// src/nodes/groups/module-group-node.tsx
|
|
1209
1209
|
var import_layout32 = require("@awesome-flow/core/layout");
|
|
1210
1210
|
var import_react32 = require("@xyflow/react");
|
|
1211
|
-
var import_abstract35 = require("@awesome-flow/core/abstract");
|
|
1212
1211
|
var import_react33 = require("react");
|
|
1213
1212
|
var import_shallow = require("zustand/shallow");
|
|
1214
1213
|
var import_core18 = require("@mantine/core");
|
|
@@ -1268,7 +1267,7 @@ var NoiseBillowNodeTemplateFactory = class {
|
|
|
1268
1267
|
handles: [
|
|
1269
1268
|
{
|
|
1270
1269
|
position: import_system32.Position.Left,
|
|
1271
|
-
dataType:
|
|
1270
|
+
dataType: import_abstract35.CoreHandleType.variableProperty,
|
|
1272
1271
|
connection: "target"
|
|
1273
1272
|
},
|
|
1274
1273
|
{
|
|
@@ -1314,4 +1313,3 @@ var NoiseBillowNodeTemplateFactory = class {
|
|
|
1314
1313
|
PositionGridNodeTemplateFactory,
|
|
1315
1314
|
PositionLoggerNodeTemplateFactory
|
|
1316
1315
|
});
|
|
1317
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/templates/index.js
CHANGED
|
@@ -1192,11 +1192,15 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1192
1192
|
// src/nodes/groups/module-group-node.tsx
|
|
1193
1193
|
import { NodeContainer as NodeContainer32, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
|
|
1194
1194
|
import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
|
|
1195
|
-
import {
|
|
1196
|
-
import { useCallback as useCallback15, useContext, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1195
|
+
import { useCallback as useCallback15, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1197
1196
|
import { shallow } from "zustand/shallow";
|
|
1198
1197
|
import { Badge, Group as Group15 } from "@mantine/core";
|
|
1199
|
-
import {
|
|
1198
|
+
import {
|
|
1199
|
+
useFlowStore,
|
|
1200
|
+
useIncomingComputedData as useIncomingComputedData17,
|
|
1201
|
+
useInteractiveStore,
|
|
1202
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData30
|
|
1203
|
+
} from "@awesome-flow/core/hooks";
|
|
1200
1204
|
import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1201
1205
|
|
|
1202
1206
|
// src/abstract/node-types.ts
|
|
@@ -1297,4 +1301,3 @@ export {
|
|
|
1297
1301
|
PositionGridNodeTemplateFactory,
|
|
1298
1302
|
PositionLoggerNodeTemplateFactory
|
|
1299
1303
|
};
|
|
1300
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1190,7 +1190,6 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1190
1190
|
// src/nodes/groups/module-group-node.tsx
|
|
1191
1191
|
var import_layout32 = require("@awesome-flow/core/layout");
|
|
1192
1192
|
var import_react32 = require("@xyflow/react");
|
|
1193
|
-
var import_abstract35 = require("@awesome-flow/core/abstract");
|
|
1194
1193
|
var import_react33 = require("react");
|
|
1195
1194
|
var import_shallow = require("zustand/shallow");
|
|
1196
1195
|
var import_core18 = require("@mantine/core");
|
|
@@ -1268,4 +1267,3 @@ var NoiseAbsNodeTemplateFactory = class {
|
|
|
1268
1267
|
NoiseScaleBiasNodeTemplateFactory,
|
|
1269
1268
|
NoiseTerraceNodeTemplateFactory
|
|
1270
1269
|
});
|
|
1271
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1197,11 +1197,15 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1197
1197
|
// src/nodes/groups/module-group-node.tsx
|
|
1198
1198
|
import { NodeContainer as NodeContainer32, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
|
|
1199
1199
|
import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
|
|
1200
|
-
import {
|
|
1201
|
-
import { useCallback as useCallback15, useContext, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1200
|
+
import { useCallback as useCallback15, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1202
1201
|
import { shallow } from "zustand/shallow";
|
|
1203
1202
|
import { Badge, Group as Group15 } from "@mantine/core";
|
|
1204
|
-
import {
|
|
1203
|
+
import {
|
|
1204
|
+
useFlowStore,
|
|
1205
|
+
useIncomingComputedData as useIncomingComputedData17,
|
|
1206
|
+
useInteractiveStore,
|
|
1207
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData30
|
|
1208
|
+
} from "@awesome-flow/core/hooks";
|
|
1205
1209
|
import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1206
1210
|
|
|
1207
1211
|
// src/abstract/node-types.ts
|
|
@@ -1274,4 +1278,3 @@ export {
|
|
|
1274
1278
|
NoiseScaleBiasNodeTemplateFactory,
|
|
1275
1279
|
NoiseTerraceNodeTemplateFactory
|
|
1276
1280
|
};
|
|
1277
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1191,7 +1191,6 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1191
1191
|
// src/nodes/groups/module-group-node.tsx
|
|
1192
1192
|
var import_layout32 = require("@awesome-flow/core/layout");
|
|
1193
1193
|
var import_react32 = require("@xyflow/react");
|
|
1194
|
-
var import_abstract35 = require("@awesome-flow/core/abstract");
|
|
1195
1194
|
var import_react33 = require("react");
|
|
1196
1195
|
var import_shallow = require("zustand/shallow");
|
|
1197
1196
|
var import_core18 = require("@mantine/core");
|
|
@@ -1258,4 +1257,3 @@ var NoiseLoggerNodeTemplateFactory = class {
|
|
|
1258
1257
|
NoiseRawTextureTemplateFactory,
|
|
1259
1258
|
PositionLoggerNodeTemplateFactory
|
|
1260
1259
|
});
|
|
1261
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1203,11 +1203,15 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1203
1203
|
// src/nodes/groups/module-group-node.tsx
|
|
1204
1204
|
import { NodeContainer as NodeContainer32, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
|
|
1205
1205
|
import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
|
|
1206
|
-
import {
|
|
1207
|
-
import { useCallback as useCallback15, useContext, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1206
|
+
import { useCallback as useCallback15, useEffect as useEffect21, useMemo as useMemo12 } from "react";
|
|
1208
1207
|
import { shallow } from "zustand/shallow";
|
|
1209
1208
|
import { Badge, Group as Group15 } from "@mantine/core";
|
|
1210
|
-
import {
|
|
1209
|
+
import {
|
|
1210
|
+
useFlowStore,
|
|
1211
|
+
useIncomingComputedData as useIncomingComputedData17,
|
|
1212
|
+
useInteractiveStore,
|
|
1213
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData30
|
|
1214
|
+
} from "@awesome-flow/core/hooks";
|
|
1211
1215
|
import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1212
1216
|
|
|
1213
1217
|
// src/abstract/node-types.ts
|
|
@@ -1269,4 +1273,3 @@ export {
|
|
|
1269
1273
|
NoiseRawTextureTemplateFactory,
|
|
1270
1274
|
PositionLoggerNodeTemplateFactory
|
|
1271
1275
|
};
|
|
1272
|
-
//# sourceMappingURL=index.js.map
|