@jalvin/runtime 2.0.42 → 2.0.43

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.
Files changed (53) hide show
  1. package/dist/bibi.d.ts +0 -4
  2. package/dist/bibi.d.ts.map +1 -1
  3. package/dist/bibi.js +9 -11
  4. package/dist/bibi.js.map +1 -1
  5. package/dist/coroutines.js +47 -22
  6. package/dist/coroutines.js.map +1 -1
  7. package/dist/index.d.ts +2 -5
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +224 -20
  10. package/dist/index.js.map +1 -1
  11. package/dist/stateflow.js +19 -8
  12. package/dist/stateflow.js.map +1 -1
  13. package/dist/stdlib/collections.js +108 -55
  14. package/dist/stdlib/collections.js.map +1 -1
  15. package/dist/stdlib/conversions.d.ts +0 -2
  16. package/dist/stdlib/conversions.d.ts.map +1 -1
  17. package/dist/stdlib/conversions.js +29 -17
  18. package/dist/stdlib/conversions.js.map +1 -1
  19. package/dist/stdlib/delegates.js +28 -14
  20. package/dist/stdlib/delegates.js.map +1 -1
  21. package/dist/stdlib/equality.js +4 -1
  22. package/dist/stdlib/equality.js.map +1 -1
  23. package/dist/stdlib/index.js +28 -12
  24. package/dist/stdlib/index.js.map +1 -1
  25. package/dist/stdlib/io.js +6 -2
  26. package/dist/stdlib/io.js.map +1 -1
  27. package/dist/stdlib/math.js +37 -29
  28. package/dist/stdlib/math.js.map +1 -1
  29. package/dist/stdlib/random.js +8 -3
  30. package/dist/stdlib/random.js.map +1 -1
  31. package/dist/stdlib/regex.js +8 -4
  32. package/dist/stdlib/regex.js.map +1 -1
  33. package/dist/stdlib/result.js +9 -3
  34. package/dist/stdlib/result.js.map +1 -1
  35. package/dist/stdlib/strings.js +51 -24
  36. package/dist/stdlib/strings.js.map +1 -1
  37. package/dist/stdlib/timing.js +8 -3
  38. package/dist/stdlib/timing.js.map +1 -1
  39. package/dist/stdlib/types.js +29 -13
  40. package/dist/stdlib/types.js.map +1 -1
  41. package/dist/ui.d.ts +69 -12
  42. package/dist/ui.d.ts.map +1 -1
  43. package/dist/ui.js +228 -127
  44. package/dist/ui.js.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/dom.d.ts +0 -15
  47. package/dist/dom.d.ts.map +0 -1
  48. package/dist/dom.js +0 -212
  49. package/dist/dom.js.map +0 -1
  50. package/dist/nav.d.ts +0 -48
  51. package/dist/nav.d.ts.map +0 -1
  52. package/dist/nav.js +0 -136
  53. package/dist/nav.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,27 +1,231 @@
1
+ "use strict";
1
2
  // @jalvin/runtime — public API
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.checkNotNull = exports.safeCast = exports.NullPointerException = exports.notNull = exports.println = exports.heightToSizeClass = exports.widthToSizeClass = exports.calculateWindowSizeClass = exports.WindowSizeClassProvider = exports.SideEffect = exports.DisposableEffect = exports.LaunchedEffect = exports.useViewModel = exports.collectAsState = exports.rememberMutableStateOf = exports.remember = exports.mutableStateOf = exports.clearAllViewModels = exports.clearViewModel = exports.viewModel = exports.ViewModel = exports.debounceFlow = exports.filterFlow = exports.mapFlow = exports.MutableStateFlow = exports.supervisorScope = exports.coroutineScope = exports.asFlow = exports.flowOf = exports.flow = exports.Flow = exports.ChannelClosedException = exports.Channel = exports.TimeoutCancellationException = exports.withTimeoutOrNull = exports.withTimeout = exports.yield_ = exports.runBlocking = exports.repeat = exports.withContext = exports.delay = exports.async = exports.launch = exports.CoroutineScope = exports.Deferred = exports.JobCancellationException = exports.Job = exports.BibiError = exports.BibiRequestBuilder = exports.Bibi = void 0;
5
+ exports.associate = exports.groupBy = exports.flatten = exports.flatMap = exports.findLast = exports.find = exports.lastOrNull = exports.last = exports.firstOrNull = exports.first = exports.count = exports.none = exports.all = exports.any = exports.sumOf = exports.reduce = exports.fold = exports.forEach = exports.filterNotNull = exports.filter = exports.map = exports.tripleOf = exports.pairOf = exports.mutableMapOf = exports.mapOf = exports.mutableSetOf = exports.setOf = exports.mutableListOf = exports.listOf = exports.takeUnless = exports.takeIf = exports.with_ = exports.also = exports.apply = exports.run_ = exports.let_ = exports.ObservableDelegate = exports.LazyDelegate = exports.Delegates = exports.lazy = exports.delegate = exports.NoSuchElementException = exports.IndexOutOfBoundsException = exports.UnsupportedOperationException = exports.IllegalStateException = exports.IllegalArgumentException = exports.error = exports.check = exports.requireCondition = exports.requireNotNull = void 0;
6
+ exports.round = exports.floor = exports.ceil = exports.abs = exports.buildString = exports.StringBuilder = exports.trimIndent = exports.ifBlank = exports.ifEmpty = exports.lineSequence = exports.lines = exports.removeSuffix = exports.removePrefix = exports.substringAfterLast = exports.substringBeforeLast = exports.substringAfter = exports.substringBefore = exports.decapitalize = exports.capitalize = exports.repeatString = exports.padEnd = exports.padStart = exports.toBooleanOrNull = exports.toDoubleOrNull = exports.toIntOrNull = exports.isNullOrBlank = exports.isNotBlank = exports.isBlank = exports.buildMap = exports.buildSet = exports.buildList = exports.joinToString = exports.maxOrNull = exports.minOrNull = exports.maxOf = exports.minOf = exports.withIndex = exports.partition = exports.windowed = exports.chunked = exports.dropWhile = exports.drop = exports.takeWhile = exports.take = exports.reversed = exports.sortedByDescending = exports.sortedBy = exports.distinctBy = exports.distinct = exports.zip = void 0;
7
+ exports.jalvinEquals = exports.measureTimedValue = exports.measureTimeMillisAsync = exports.measureTimeMillis = exports.randomUUID = exports.DefaultRandom = exports.Random = exports.RegexResult = exports.Regex = exports.runCatchingAsync = exports.runCatching = exports.Result = exports.step = exports.downTo = exports.IntRange = exports.range = exports.Triple = exports.Pair = exports.charCodeOf = exports.toChar = exports.toDouble = exports.toFloat = exports.toLong = exports.toInt = exports.Long = exports.Int = exports.coerceIn = exports.coerceAtMost = exports.coerceAtLeast = exports.E = exports.PI = exports.truncDiv = exports.clamp = exports.truncate = exports.hypot = exports.sign = exports.atan2 = exports.atan = exports.acos = exports.asin = exports.tan = exports.cos = exports.sin = exports.log10 = exports.log2 = exports.ln = exports.exp = exports.pow = exports.sqrt = void 0;
2
8
  // HTTP client
3
- export { Bibi, BibiRequestBuilder, BibiError, headers, timeout } from "./bibi.js";
9
+ var bibi_js_1 = require("./bibi.js");
10
+ Object.defineProperty(exports, "Bibi", { enumerable: true, get: function () { return bibi_js_1.Bibi; } });
11
+ Object.defineProperty(exports, "BibiRequestBuilder", { enumerable: true, get: function () { return bibi_js_1.BibiRequestBuilder; } });
12
+ Object.defineProperty(exports, "BibiError", { enumerable: true, get: function () { return bibi_js_1.BibiError; } });
4
13
  // Coroutines
5
- export { Job, JobCancellationException, Deferred, CoroutineScope, launch, async_ as async, delay, withContext, repeat, runBlocking, yield_, withTimeout, withTimeoutOrNull, TimeoutCancellationException, Channel, ChannelClosedException, Flow, flow, flowOf, asFlow, coroutineScope, supervisorScope, } from "./coroutines.js";
14
+ var coroutines_js_1 = require("./coroutines.js");
15
+ Object.defineProperty(exports, "Job", { enumerable: true, get: function () { return coroutines_js_1.Job; } });
16
+ Object.defineProperty(exports, "JobCancellationException", { enumerable: true, get: function () { return coroutines_js_1.JobCancellationException; } });
17
+ Object.defineProperty(exports, "Deferred", { enumerable: true, get: function () { return coroutines_js_1.Deferred; } });
18
+ Object.defineProperty(exports, "CoroutineScope", { enumerable: true, get: function () { return coroutines_js_1.CoroutineScope; } });
19
+ Object.defineProperty(exports, "launch", { enumerable: true, get: function () { return coroutines_js_1.launch; } });
20
+ Object.defineProperty(exports, "async", { enumerable: true, get: function () { return coroutines_js_1.async_; } });
21
+ Object.defineProperty(exports, "delay", { enumerable: true, get: function () { return coroutines_js_1.delay; } });
22
+ Object.defineProperty(exports, "withContext", { enumerable: true, get: function () { return coroutines_js_1.withContext; } });
23
+ Object.defineProperty(exports, "repeat", { enumerable: true, get: function () { return coroutines_js_1.repeat; } });
24
+ Object.defineProperty(exports, "runBlocking", { enumerable: true, get: function () { return coroutines_js_1.runBlocking; } });
25
+ Object.defineProperty(exports, "yield_", { enumerable: true, get: function () { return coroutines_js_1.yield_; } });
26
+ Object.defineProperty(exports, "withTimeout", { enumerable: true, get: function () { return coroutines_js_1.withTimeout; } });
27
+ Object.defineProperty(exports, "withTimeoutOrNull", { enumerable: true, get: function () { return coroutines_js_1.withTimeoutOrNull; } });
28
+ Object.defineProperty(exports, "TimeoutCancellationException", { enumerable: true, get: function () { return coroutines_js_1.TimeoutCancellationException; } });
29
+ Object.defineProperty(exports, "Channel", { enumerable: true, get: function () { return coroutines_js_1.Channel; } });
30
+ Object.defineProperty(exports, "ChannelClosedException", { enumerable: true, get: function () { return coroutines_js_1.ChannelClosedException; } });
31
+ Object.defineProperty(exports, "Flow", { enumerable: true, get: function () { return coroutines_js_1.Flow; } });
32
+ Object.defineProperty(exports, "flow", { enumerable: true, get: function () { return coroutines_js_1.flow; } });
33
+ Object.defineProperty(exports, "flowOf", { enumerable: true, get: function () { return coroutines_js_1.flowOf; } });
34
+ Object.defineProperty(exports, "asFlow", { enumerable: true, get: function () { return coroutines_js_1.asFlow; } });
35
+ Object.defineProperty(exports, "coroutineScope", { enumerable: true, get: function () { return coroutines_js_1.coroutineScope; } });
36
+ Object.defineProperty(exports, "supervisorScope", { enumerable: true, get: function () { return coroutines_js_1.supervisorScope; } });
6
37
  // StateFlow / ViewModel
7
- export { MutableStateFlow, mapFlow, filterFlow, debounceFlow, ViewModel, viewModel, clearViewModel, clearAllViewModels, } from "./stateflow.js";
8
- // Router Compose Navigation-style declarative routing
9
- export { NavController, NavGraphBuilder, NavHost, rememberNavController, } from "./nav.js";
10
- // UI hooks & Rendering
11
- export { jalvinCreateElement, patch } from "./dom.js";
12
- export { mutableStateOf, remember, rememberMutableStateOf, collectAsState, LaunchedEffect, DisposableEffect, SideEffect, WindowSizeClassProvider, calculateWindowSizeClass, widthToSizeClass, heightToSizeClass, render, } from "./ui.js";
38
+ var stateflow_js_1 = require("./stateflow.js");
39
+ Object.defineProperty(exports, "MutableStateFlow", { enumerable: true, get: function () { return stateflow_js_1.MutableStateFlow; } });
40
+ Object.defineProperty(exports, "mapFlow", { enumerable: true, get: function () { return stateflow_js_1.mapFlow; } });
41
+ Object.defineProperty(exports, "filterFlow", { enumerable: true, get: function () { return stateflow_js_1.filterFlow; } });
42
+ Object.defineProperty(exports, "debounceFlow", { enumerable: true, get: function () { return stateflow_js_1.debounceFlow; } });
43
+ Object.defineProperty(exports, "ViewModel", { enumerable: true, get: function () { return stateflow_js_1.ViewModel; } });
44
+ Object.defineProperty(exports, "viewModel", { enumerable: true, get: function () { return stateflow_js_1.viewModel; } });
45
+ Object.defineProperty(exports, "clearViewModel", { enumerable: true, get: function () { return stateflow_js_1.clearViewModel; } });
46
+ Object.defineProperty(exports, "clearAllViewModels", { enumerable: true, get: function () { return stateflow_js_1.clearAllViewModels; } });
47
+ // UI hooks (React)
48
+ var ui_js_1 = require("./ui.js");
49
+ Object.defineProperty(exports, "mutableStateOf", { enumerable: true, get: function () { return ui_js_1.mutableStateOf; } });
50
+ Object.defineProperty(exports, "remember", { enumerable: true, get: function () { return ui_js_1.remember; } });
51
+ Object.defineProperty(exports, "rememberMutableStateOf", { enumerable: true, get: function () { return ui_js_1.rememberMutableStateOf; } });
52
+ Object.defineProperty(exports, "collectAsState", { enumerable: true, get: function () { return ui_js_1.collectAsState; } });
53
+ Object.defineProperty(exports, "useViewModel", { enumerable: true, get: function () { return ui_js_1.useViewModel; } });
54
+ Object.defineProperty(exports, "LaunchedEffect", { enumerable: true, get: function () { return ui_js_1.LaunchedEffect; } });
55
+ Object.defineProperty(exports, "DisposableEffect", { enumerable: true, get: function () { return ui_js_1.DisposableEffect; } });
56
+ Object.defineProperty(exports, "SideEffect", { enumerable: true, get: function () { return ui_js_1.SideEffect; } });
57
+ Object.defineProperty(exports, "WindowSizeClassProvider", { enumerable: true, get: function () { return ui_js_1.WindowSizeClassProvider; } });
58
+ Object.defineProperty(exports, "calculateWindowSizeClass", { enumerable: true, get: function () { return ui_js_1.calculateWindowSizeClass; } });
59
+ Object.defineProperty(exports, "widthToSizeClass", { enumerable: true, get: function () { return ui_js_1.widthToSizeClass; } });
60
+ Object.defineProperty(exports, "heightToSizeClass", { enumerable: true, get: function () { return ui_js_1.heightToSizeClass; } });
13
61
  // Utilities / stdlib — each module is a single-purpose file under stdlib/
14
62
  // See packages/runtime/src/stdlib/index.ts for the full module map.
15
- export { println, print, } from "./stdlib/io.js";
16
- export { notNull, NullPointerException, safeCast, checkNotNull, requireNotNull, requireCondition, check, error, IllegalArgumentException, IllegalStateException, UnsupportedOperationException, IndexOutOfBoundsException, NoSuchElementException, } from "./stdlib/types.js";
17
- export { delegate, lazy, Delegates, LazyDelegate, ObservableDelegate, let_, run_, apply, also, with_, takeIf, takeUnless, } from "./stdlib/delegates.js";
18
- export { listOf, mutableListOf, setOf, mutableSetOf, mapOf, mutableMapOf, pairOf, tripleOf, map, filter, filterNotNull, forEach, fold, reduce, sumOf, any, all, none, count, first, firstOrNull, last, lastOrNull, find, findLast, flatMap, flatten, groupBy, associate, zip, distinct, distinctBy, sortedBy, sortedByDescending, reversed, take, takeWhile, drop, dropWhile, chunked, windowed, partition, withIndex, minOf, maxOf, minOrNull, maxOrNull, joinToString, buildList, buildSet, buildMap, } from "./stdlib/collections.js";
19
- export { isBlank, isNotBlank, isNullOrBlank, toIntOrNull, toDoubleOrNull, toBooleanOrNull, padStart, padEnd, repeat_ as repeatString, capitalize, decapitalize, substringBefore, substringAfter, substringBeforeLast, substringAfterLast, removePrefix, removeSuffix, lines, lineSequence, ifEmpty, ifBlank, trimIndent, StringBuilder, buildString, } from "./stdlib/strings.js";
20
- export { abs, ceil, floor, round, sqrt, pow, exp, ln, log2, log10, sin, cos, tan, asin, acos, atan, atan2, sign, hypot, truncate, clamp, truncDiv, PI, E, coerceAtLeast, coerceAtMost, coerceIn, Int, Long, } from "./stdlib/math.js";
21
- export { toInt, toLong, toFloat, toDouble, toChar, charCodeOf, toString, Pair, Triple, range, IntRange, downTo, step, } from "./stdlib/conversions.js";
22
- export { Result, runCatching, runCatchingAsync, } from "./stdlib/result.js";
23
- export { Regex, RegexResult, } from "./stdlib/regex.js";
24
- export { Random, Default as DefaultRandom, randomUUID, } from "./stdlib/random.js";
25
- export { measureTimeMillis, measureTimeMillisAsync, measureTimedValue, } from "./stdlib/timing.js";
26
- export { jalvinEquals, } from "./stdlib/equality.js";
63
+ var io_js_1 = require("./stdlib/io.js");
64
+ Object.defineProperty(exports, "println", { enumerable: true, get: function () { return io_js_1.println; } });
65
+ Object.defineProperty(exports, "print", { enumerable: true, get: function () { return io_js_1.print; } });
66
+ var types_js_1 = require("./stdlib/types.js");
67
+ Object.defineProperty(exports, "notNull", { enumerable: true, get: function () { return types_js_1.notNull; } });
68
+ Object.defineProperty(exports, "NullPointerException", { enumerable: true, get: function () { return types_js_1.NullPointerException; } });
69
+ Object.defineProperty(exports, "safeCast", { enumerable: true, get: function () { return types_js_1.safeCast; } });
70
+ Object.defineProperty(exports, "checkNotNull", { enumerable: true, get: function () { return types_js_1.checkNotNull; } });
71
+ Object.defineProperty(exports, "requireNotNull", { enumerable: true, get: function () { return types_js_1.requireNotNull; } });
72
+ Object.defineProperty(exports, "requireCondition", { enumerable: true, get: function () { return types_js_1.requireCondition; } });
73
+ Object.defineProperty(exports, "check", { enumerable: true, get: function () { return types_js_1.check; } });
74
+ Object.defineProperty(exports, "error", { enumerable: true, get: function () { return types_js_1.error; } });
75
+ Object.defineProperty(exports, "IllegalArgumentException", { enumerable: true, get: function () { return types_js_1.IllegalArgumentException; } });
76
+ Object.defineProperty(exports, "IllegalStateException", { enumerable: true, get: function () { return types_js_1.IllegalStateException; } });
77
+ Object.defineProperty(exports, "UnsupportedOperationException", { enumerable: true, get: function () { return types_js_1.UnsupportedOperationException; } });
78
+ Object.defineProperty(exports, "IndexOutOfBoundsException", { enumerable: true, get: function () { return types_js_1.IndexOutOfBoundsException; } });
79
+ Object.defineProperty(exports, "NoSuchElementException", { enumerable: true, get: function () { return types_js_1.NoSuchElementException; } });
80
+ var delegates_js_1 = require("./stdlib/delegates.js");
81
+ Object.defineProperty(exports, "delegate", { enumerable: true, get: function () { return delegates_js_1.delegate; } });
82
+ Object.defineProperty(exports, "lazy", { enumerable: true, get: function () { return delegates_js_1.lazy; } });
83
+ Object.defineProperty(exports, "Delegates", { enumerable: true, get: function () { return delegates_js_1.Delegates; } });
84
+ Object.defineProperty(exports, "LazyDelegate", { enumerable: true, get: function () { return delegates_js_1.LazyDelegate; } });
85
+ Object.defineProperty(exports, "ObservableDelegate", { enumerable: true, get: function () { return delegates_js_1.ObservableDelegate; } });
86
+ Object.defineProperty(exports, "let_", { enumerable: true, get: function () { return delegates_js_1.let_; } });
87
+ Object.defineProperty(exports, "run_", { enumerable: true, get: function () { return delegates_js_1.run_; } });
88
+ Object.defineProperty(exports, "apply", { enumerable: true, get: function () { return delegates_js_1.apply; } });
89
+ Object.defineProperty(exports, "also", { enumerable: true, get: function () { return delegates_js_1.also; } });
90
+ Object.defineProperty(exports, "with_", { enumerable: true, get: function () { return delegates_js_1.with_; } });
91
+ Object.defineProperty(exports, "takeIf", { enumerable: true, get: function () { return delegates_js_1.takeIf; } });
92
+ Object.defineProperty(exports, "takeUnless", { enumerable: true, get: function () { return delegates_js_1.takeUnless; } });
93
+ var collections_js_1 = require("./stdlib/collections.js");
94
+ Object.defineProperty(exports, "listOf", { enumerable: true, get: function () { return collections_js_1.listOf; } });
95
+ Object.defineProperty(exports, "mutableListOf", { enumerable: true, get: function () { return collections_js_1.mutableListOf; } });
96
+ Object.defineProperty(exports, "setOf", { enumerable: true, get: function () { return collections_js_1.setOf; } });
97
+ Object.defineProperty(exports, "mutableSetOf", { enumerable: true, get: function () { return collections_js_1.mutableSetOf; } });
98
+ Object.defineProperty(exports, "mapOf", { enumerable: true, get: function () { return collections_js_1.mapOf; } });
99
+ Object.defineProperty(exports, "mutableMapOf", { enumerable: true, get: function () { return collections_js_1.mutableMapOf; } });
100
+ Object.defineProperty(exports, "pairOf", { enumerable: true, get: function () { return collections_js_1.pairOf; } });
101
+ Object.defineProperty(exports, "tripleOf", { enumerable: true, get: function () { return collections_js_1.tripleOf; } });
102
+ Object.defineProperty(exports, "map", { enumerable: true, get: function () { return collections_js_1.map; } });
103
+ Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return collections_js_1.filter; } });
104
+ Object.defineProperty(exports, "filterNotNull", { enumerable: true, get: function () { return collections_js_1.filterNotNull; } });
105
+ Object.defineProperty(exports, "forEach", { enumerable: true, get: function () { return collections_js_1.forEach; } });
106
+ Object.defineProperty(exports, "fold", { enumerable: true, get: function () { return collections_js_1.fold; } });
107
+ Object.defineProperty(exports, "reduce", { enumerable: true, get: function () { return collections_js_1.reduce; } });
108
+ Object.defineProperty(exports, "sumOf", { enumerable: true, get: function () { return collections_js_1.sumOf; } });
109
+ Object.defineProperty(exports, "any", { enumerable: true, get: function () { return collections_js_1.any; } });
110
+ Object.defineProperty(exports, "all", { enumerable: true, get: function () { return collections_js_1.all; } });
111
+ Object.defineProperty(exports, "none", { enumerable: true, get: function () { return collections_js_1.none; } });
112
+ Object.defineProperty(exports, "count", { enumerable: true, get: function () { return collections_js_1.count; } });
113
+ Object.defineProperty(exports, "first", { enumerable: true, get: function () { return collections_js_1.first; } });
114
+ Object.defineProperty(exports, "firstOrNull", { enumerable: true, get: function () { return collections_js_1.firstOrNull; } });
115
+ Object.defineProperty(exports, "last", { enumerable: true, get: function () { return collections_js_1.last; } });
116
+ Object.defineProperty(exports, "lastOrNull", { enumerable: true, get: function () { return collections_js_1.lastOrNull; } });
117
+ Object.defineProperty(exports, "find", { enumerable: true, get: function () { return collections_js_1.find; } });
118
+ Object.defineProperty(exports, "findLast", { enumerable: true, get: function () { return collections_js_1.findLast; } });
119
+ Object.defineProperty(exports, "flatMap", { enumerable: true, get: function () { return collections_js_1.flatMap; } });
120
+ Object.defineProperty(exports, "flatten", { enumerable: true, get: function () { return collections_js_1.flatten; } });
121
+ Object.defineProperty(exports, "groupBy", { enumerable: true, get: function () { return collections_js_1.groupBy; } });
122
+ Object.defineProperty(exports, "associate", { enumerable: true, get: function () { return collections_js_1.associate; } });
123
+ Object.defineProperty(exports, "zip", { enumerable: true, get: function () { return collections_js_1.zip; } });
124
+ Object.defineProperty(exports, "distinct", { enumerable: true, get: function () { return collections_js_1.distinct; } });
125
+ Object.defineProperty(exports, "distinctBy", { enumerable: true, get: function () { return collections_js_1.distinctBy; } });
126
+ Object.defineProperty(exports, "sortedBy", { enumerable: true, get: function () { return collections_js_1.sortedBy; } });
127
+ Object.defineProperty(exports, "sortedByDescending", { enumerable: true, get: function () { return collections_js_1.sortedByDescending; } });
128
+ Object.defineProperty(exports, "reversed", { enumerable: true, get: function () { return collections_js_1.reversed; } });
129
+ Object.defineProperty(exports, "take", { enumerable: true, get: function () { return collections_js_1.take; } });
130
+ Object.defineProperty(exports, "takeWhile", { enumerable: true, get: function () { return collections_js_1.takeWhile; } });
131
+ Object.defineProperty(exports, "drop", { enumerable: true, get: function () { return collections_js_1.drop; } });
132
+ Object.defineProperty(exports, "dropWhile", { enumerable: true, get: function () { return collections_js_1.dropWhile; } });
133
+ Object.defineProperty(exports, "chunked", { enumerable: true, get: function () { return collections_js_1.chunked; } });
134
+ Object.defineProperty(exports, "windowed", { enumerable: true, get: function () { return collections_js_1.windowed; } });
135
+ Object.defineProperty(exports, "partition", { enumerable: true, get: function () { return collections_js_1.partition; } });
136
+ Object.defineProperty(exports, "withIndex", { enumerable: true, get: function () { return collections_js_1.withIndex; } });
137
+ Object.defineProperty(exports, "minOf", { enumerable: true, get: function () { return collections_js_1.minOf; } });
138
+ Object.defineProperty(exports, "maxOf", { enumerable: true, get: function () { return collections_js_1.maxOf; } });
139
+ Object.defineProperty(exports, "minOrNull", { enumerable: true, get: function () { return collections_js_1.minOrNull; } });
140
+ Object.defineProperty(exports, "maxOrNull", { enumerable: true, get: function () { return collections_js_1.maxOrNull; } });
141
+ Object.defineProperty(exports, "joinToString", { enumerable: true, get: function () { return collections_js_1.joinToString; } });
142
+ Object.defineProperty(exports, "buildList", { enumerable: true, get: function () { return collections_js_1.buildList; } });
143
+ Object.defineProperty(exports, "buildSet", { enumerable: true, get: function () { return collections_js_1.buildSet; } });
144
+ Object.defineProperty(exports, "buildMap", { enumerable: true, get: function () { return collections_js_1.buildMap; } });
145
+ var strings_js_1 = require("./stdlib/strings.js");
146
+ Object.defineProperty(exports, "isBlank", { enumerable: true, get: function () { return strings_js_1.isBlank; } });
147
+ Object.defineProperty(exports, "isNotBlank", { enumerable: true, get: function () { return strings_js_1.isNotBlank; } });
148
+ Object.defineProperty(exports, "isNullOrBlank", { enumerable: true, get: function () { return strings_js_1.isNullOrBlank; } });
149
+ Object.defineProperty(exports, "toIntOrNull", { enumerable: true, get: function () { return strings_js_1.toIntOrNull; } });
150
+ Object.defineProperty(exports, "toDoubleOrNull", { enumerable: true, get: function () { return strings_js_1.toDoubleOrNull; } });
151
+ Object.defineProperty(exports, "toBooleanOrNull", { enumerable: true, get: function () { return strings_js_1.toBooleanOrNull; } });
152
+ Object.defineProperty(exports, "padStart", { enumerable: true, get: function () { return strings_js_1.padStart; } });
153
+ Object.defineProperty(exports, "padEnd", { enumerable: true, get: function () { return strings_js_1.padEnd; } });
154
+ Object.defineProperty(exports, "repeatString", { enumerable: true, get: function () { return strings_js_1.repeat_; } });
155
+ Object.defineProperty(exports, "capitalize", { enumerable: true, get: function () { return strings_js_1.capitalize; } });
156
+ Object.defineProperty(exports, "decapitalize", { enumerable: true, get: function () { return strings_js_1.decapitalize; } });
157
+ Object.defineProperty(exports, "substringBefore", { enumerable: true, get: function () { return strings_js_1.substringBefore; } });
158
+ Object.defineProperty(exports, "substringAfter", { enumerable: true, get: function () { return strings_js_1.substringAfter; } });
159
+ Object.defineProperty(exports, "substringBeforeLast", { enumerable: true, get: function () { return strings_js_1.substringBeforeLast; } });
160
+ Object.defineProperty(exports, "substringAfterLast", { enumerable: true, get: function () { return strings_js_1.substringAfterLast; } });
161
+ Object.defineProperty(exports, "removePrefix", { enumerable: true, get: function () { return strings_js_1.removePrefix; } });
162
+ Object.defineProperty(exports, "removeSuffix", { enumerable: true, get: function () { return strings_js_1.removeSuffix; } });
163
+ Object.defineProperty(exports, "lines", { enumerable: true, get: function () { return strings_js_1.lines; } });
164
+ Object.defineProperty(exports, "lineSequence", { enumerable: true, get: function () { return strings_js_1.lineSequence; } });
165
+ Object.defineProperty(exports, "ifEmpty", { enumerable: true, get: function () { return strings_js_1.ifEmpty; } });
166
+ Object.defineProperty(exports, "ifBlank", { enumerable: true, get: function () { return strings_js_1.ifBlank; } });
167
+ Object.defineProperty(exports, "trimIndent", { enumerable: true, get: function () { return strings_js_1.trimIndent; } });
168
+ Object.defineProperty(exports, "StringBuilder", { enumerable: true, get: function () { return strings_js_1.StringBuilder; } });
169
+ Object.defineProperty(exports, "buildString", { enumerable: true, get: function () { return strings_js_1.buildString; } });
170
+ var math_js_1 = require("./stdlib/math.js");
171
+ Object.defineProperty(exports, "abs", { enumerable: true, get: function () { return math_js_1.abs; } });
172
+ Object.defineProperty(exports, "ceil", { enumerable: true, get: function () { return math_js_1.ceil; } });
173
+ Object.defineProperty(exports, "floor", { enumerable: true, get: function () { return math_js_1.floor; } });
174
+ Object.defineProperty(exports, "round", { enumerable: true, get: function () { return math_js_1.round; } });
175
+ Object.defineProperty(exports, "sqrt", { enumerable: true, get: function () { return math_js_1.sqrt; } });
176
+ Object.defineProperty(exports, "pow", { enumerable: true, get: function () { return math_js_1.pow; } });
177
+ Object.defineProperty(exports, "exp", { enumerable: true, get: function () { return math_js_1.exp; } });
178
+ Object.defineProperty(exports, "ln", { enumerable: true, get: function () { return math_js_1.ln; } });
179
+ Object.defineProperty(exports, "log2", { enumerable: true, get: function () { return math_js_1.log2; } });
180
+ Object.defineProperty(exports, "log10", { enumerable: true, get: function () { return math_js_1.log10; } });
181
+ Object.defineProperty(exports, "sin", { enumerable: true, get: function () { return math_js_1.sin; } });
182
+ Object.defineProperty(exports, "cos", { enumerable: true, get: function () { return math_js_1.cos; } });
183
+ Object.defineProperty(exports, "tan", { enumerable: true, get: function () { return math_js_1.tan; } });
184
+ Object.defineProperty(exports, "asin", { enumerable: true, get: function () { return math_js_1.asin; } });
185
+ Object.defineProperty(exports, "acos", { enumerable: true, get: function () { return math_js_1.acos; } });
186
+ Object.defineProperty(exports, "atan", { enumerable: true, get: function () { return math_js_1.atan; } });
187
+ Object.defineProperty(exports, "atan2", { enumerable: true, get: function () { return math_js_1.atan2; } });
188
+ Object.defineProperty(exports, "sign", { enumerable: true, get: function () { return math_js_1.sign; } });
189
+ Object.defineProperty(exports, "hypot", { enumerable: true, get: function () { return math_js_1.hypot; } });
190
+ Object.defineProperty(exports, "truncate", { enumerable: true, get: function () { return math_js_1.truncate; } });
191
+ Object.defineProperty(exports, "clamp", { enumerable: true, get: function () { return math_js_1.clamp; } });
192
+ Object.defineProperty(exports, "truncDiv", { enumerable: true, get: function () { return math_js_1.truncDiv; } });
193
+ Object.defineProperty(exports, "PI", { enumerable: true, get: function () { return math_js_1.PI; } });
194
+ Object.defineProperty(exports, "E", { enumerable: true, get: function () { return math_js_1.E; } });
195
+ Object.defineProperty(exports, "coerceAtLeast", { enumerable: true, get: function () { return math_js_1.coerceAtLeast; } });
196
+ Object.defineProperty(exports, "coerceAtMost", { enumerable: true, get: function () { return math_js_1.coerceAtMost; } });
197
+ Object.defineProperty(exports, "coerceIn", { enumerable: true, get: function () { return math_js_1.coerceIn; } });
198
+ Object.defineProperty(exports, "Int", { enumerable: true, get: function () { return math_js_1.Int; } });
199
+ Object.defineProperty(exports, "Long", { enumerable: true, get: function () { return math_js_1.Long; } });
200
+ var conversions_js_1 = require("./stdlib/conversions.js");
201
+ Object.defineProperty(exports, "toInt", { enumerable: true, get: function () { return conversions_js_1.toInt; } });
202
+ Object.defineProperty(exports, "toLong", { enumerable: true, get: function () { return conversions_js_1.toLong; } });
203
+ Object.defineProperty(exports, "toFloat", { enumerable: true, get: function () { return conversions_js_1.toFloat; } });
204
+ Object.defineProperty(exports, "toDouble", { enumerable: true, get: function () { return conversions_js_1.toDouble; } });
205
+ Object.defineProperty(exports, "toChar", { enumerable: true, get: function () { return conversions_js_1.toChar; } });
206
+ Object.defineProperty(exports, "charCodeOf", { enumerable: true, get: function () { return conversions_js_1.charCodeOf; } });
207
+ Object.defineProperty(exports, "toString", { enumerable: true, get: function () { return conversions_js_1.toString; } });
208
+ Object.defineProperty(exports, "Pair", { enumerable: true, get: function () { return conversions_js_1.Pair; } });
209
+ Object.defineProperty(exports, "Triple", { enumerable: true, get: function () { return conversions_js_1.Triple; } });
210
+ Object.defineProperty(exports, "range", { enumerable: true, get: function () { return conversions_js_1.range; } });
211
+ Object.defineProperty(exports, "IntRange", { enumerable: true, get: function () { return conversions_js_1.IntRange; } });
212
+ Object.defineProperty(exports, "downTo", { enumerable: true, get: function () { return conversions_js_1.downTo; } });
213
+ Object.defineProperty(exports, "step", { enumerable: true, get: function () { return conversions_js_1.step; } });
214
+ var result_js_1 = require("./stdlib/result.js");
215
+ Object.defineProperty(exports, "Result", { enumerable: true, get: function () { return result_js_1.Result; } });
216
+ Object.defineProperty(exports, "runCatching", { enumerable: true, get: function () { return result_js_1.runCatching; } });
217
+ Object.defineProperty(exports, "runCatchingAsync", { enumerable: true, get: function () { return result_js_1.runCatchingAsync; } });
218
+ var regex_js_1 = require("./stdlib/regex.js");
219
+ Object.defineProperty(exports, "Regex", { enumerable: true, get: function () { return regex_js_1.Regex; } });
220
+ Object.defineProperty(exports, "RegexResult", { enumerable: true, get: function () { return regex_js_1.RegexResult; } });
221
+ var random_js_1 = require("./stdlib/random.js");
222
+ Object.defineProperty(exports, "Random", { enumerable: true, get: function () { return random_js_1.Random; } });
223
+ Object.defineProperty(exports, "DefaultRandom", { enumerable: true, get: function () { return random_js_1.Default; } });
224
+ Object.defineProperty(exports, "randomUUID", { enumerable: true, get: function () { return random_js_1.randomUUID; } });
225
+ var timing_js_1 = require("./stdlib/timing.js");
226
+ Object.defineProperty(exports, "measureTimeMillis", { enumerable: true, get: function () { return timing_js_1.measureTimeMillis; } });
227
+ Object.defineProperty(exports, "measureTimeMillisAsync", { enumerable: true, get: function () { return timing_js_1.measureTimeMillisAsync; } });
228
+ Object.defineProperty(exports, "measureTimedValue", { enumerable: true, get: function () { return timing_js_1.measureTimedValue; } });
229
+ var equality_js_1 = require("./stdlib/equality.js");
230
+ Object.defineProperty(exports, "jalvinEquals", { enumerable: true, get: function () { return equality_js_1.jalvinEquals; } });
27
231
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAE/B,cAAc;AACd,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGlF,aAAa;AACb,OAAO,EACL,GAAG,EAAE,wBAAwB,EAC7B,QAAQ,EACR,cAAc,EACd,MAAM,EAAE,MAAM,IAAI,KAAK,EACvB,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EACvC,MAAM,EACN,WAAW,EAAE,iBAAiB,EAAE,4BAA4B,EAC5D,OAAO,EAAE,sBAAsB,EAC/B,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAC1B,cAAc,EAAE,eAAe,GAChC,MAAM,iBAAiB,CAAC;AAGzB,wBAAwB;AACxB,OAAO,EACL,gBAAgB,EAChB,OAAO,EAAE,UAAU,EAAE,YAAY,EACjC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,kBAAkB,GACzD,MAAM,gBAAgB,CAAC;AAGxB,wDAAwD;AACxD,OAAO,EACL,aAAa,EACb,eAAe,EACf,OAAO,EACP,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAGlB,uBAAuB;AACvB,OAAO,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtD,OAAO,EACL,cAAc,EAAE,QAAQ,EAAE,sBAAsB,EAChD,cAAc,EACd,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAC5C,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;AAAE,+FAAA,IAAI,OAAA;AAElD,0DAGiC;AAF/B,uGAAA,KAAK,OAAA;AAAE,wGAAA,MAAM,OAAA;AAAE,yGAAA,OAAO,OAAA;AAAE,0GAAA,QAAQ,OAAA;AAAE,wGAAA,MAAM,OAAA;AAAE,4GAAA,UAAU,OAAA;AAAE,0GAAA,QAAQ,OAAA;AAC9D,sGAAA,IAAI,OAAA;AAAE,wGAAA,MAAM,OAAA;AAAE,uGAAA,KAAK,OAAA;AAAE,0GAAA,QAAQ,OAAA;AAAE,wGAAA,MAAM,OAAA;AAAE,sGAAA,IAAI,OAAA;AAE7C,gDAE4B;AAD1B,mGAAA,MAAM,OAAA;AAAE,wGAAA,WAAW,OAAA;AAAE,6GAAA,gBAAgB,OAAA;AAEvC,8CAE2B;AADzB,iGAAA,KAAK,OAAA;AAAE,uGAAA,WAAW,OAAA;AAEpB,gDAE4B;AAD1B,mGAAA,MAAM,OAAA;AAAE,0GAAA,OAAO,OAAiB;AAAE,uGAAA,UAAU,OAAA;AAE9C,gDAE4B;AAD1B,8GAAA,iBAAiB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAAE,8GAAA,iBAAiB,OAAA;AAG9D,oDAE8B;AAD5B,2GAAA,YAAY,OAAA"}
package/dist/stateflow.js CHANGED
@@ -1,12 +1,21 @@
1
+ "use strict";
1
2
  // ─────────────────────────────────────────────────────────────────────────────
2
3
  // StateFlow / MutableStateFlow / ViewModel
3
4
  //
4
5
  // Implemented as reactive observable containers backed by a subscriber set.
5
6
  // ─────────────────────────────────────────────────────────────────────────────
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ViewModel = exports.MutableStateFlow = void 0;
9
+ exports.mapFlow = mapFlow;
10
+ exports.filterFlow = filterFlow;
11
+ exports.debounceFlow = debounceFlow;
12
+ exports.viewModel = viewModel;
13
+ exports.clearViewModel = clearViewModel;
14
+ exports.clearAllViewModels = clearAllViewModels;
6
15
  // ---------------------------------------------------------------------------
7
16
  // MutableStateFlow<T> — read-write reactive state holder
8
17
  // ---------------------------------------------------------------------------
9
- export class MutableStateFlow {
18
+ class MutableStateFlow {
10
19
  _value;
11
20
  _subscribers = new Set();
12
21
  constructor(initialValue) {
@@ -81,22 +90,23 @@ export class MutableStateFlow {
81
90
  this.value = value;
82
91
  }
83
92
  }
93
+ exports.MutableStateFlow = MutableStateFlow;
84
94
  // ---------------------------------------------------------------------------
85
95
  // Flow operators — map, filter, take, debounce
86
96
  // ---------------------------------------------------------------------------
87
- export function mapFlow(source, transform) {
97
+ function mapFlow(source, transform) {
88
98
  const derived = new MutableStateFlow(transform(source.value));
89
99
  source.collect((v) => { derived.value = transform(v); });
90
100
  return derived;
91
101
  }
92
- export function filterFlow(source, predicate) {
102
+ function filterFlow(source, predicate) {
93
103
  const initial = predicate(source.value) ? source.value : undefined;
94
104
  const derived = new MutableStateFlow(initial);
95
105
  source.collect((v) => { if (predicate(v))
96
106
  derived.value = v; });
97
107
  return derived;
98
108
  }
99
- export function debounceFlow(source, delayMs) {
109
+ function debounceFlow(source, delayMs) {
100
110
  const derived = new MutableStateFlow(source.value);
101
111
  let timer = null;
102
112
  source.collect((v) => {
@@ -109,7 +119,7 @@ export function debounceFlow(source, delayMs) {
109
119
  // ---------------------------------------------------------------------------
110
120
  // ViewModel base class
111
121
  // ---------------------------------------------------------------------------
112
- export class ViewModel {
122
+ class ViewModel {
113
123
  _onClearCallbacks = [];
114
124
  _cleared = false;
115
125
  /** Called when this ViewModel is no longer needed. Do not override — use onCleared(). */
@@ -136,24 +146,25 @@ export class ViewModel {
136
146
  return new MutableStateFlow(initial);
137
147
  }
138
148
  }
149
+ exports.ViewModel = ViewModel;
139
150
  // ---------------------------------------------------------------------------
140
151
  // viewModel() — lookup / create singleton ViewModel by type in a registry
141
152
  // ---------------------------------------------------------------------------
142
153
  const _vmRegistry = new Map();
143
- export function viewModel(key, factory) {
154
+ function viewModel(key, factory) {
144
155
  if (!_vmRegistry.has(key)) {
145
156
  _vmRegistry.set(key, factory());
146
157
  }
147
158
  return _vmRegistry.get(key);
148
159
  }
149
- export function clearViewModel(key) {
160
+ function clearViewModel(key) {
150
161
  const vm = _vmRegistry.get(key);
151
162
  if (vm) {
152
163
  vm.clear();
153
164
  _vmRegistry.delete(key);
154
165
  }
155
166
  }
156
- export function clearAllViewModels() {
167
+ function clearAllViewModels() {
157
168
  for (const [key] of _vmRegistry)
158
169
  clearViewModel(key);
159
170
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stateflow.js","sourceRoot":"","sources":["../src/stateflow.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,2CAA2C;AAC3C,EAAE;AACF,4EAA4E;AAC5E,gFAAgF;AAkBhF,8EAA8E;AAC9E,yDAAyD;AACzD,8EAA8E;AAE9E,MAAM,OAAO,gBAAgB;IACnB,MAAM,CAAI;IACD,YAAY,GAAG,IAAI,GAAG,EAAiB,CAAC;IAEzD,YAAY,YAAe;QACzB,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC;IAC7B,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAI,KAAK,CAAC,QAAW;QACnB,IAAI,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC;YAAE,OAAO,CAAC,+BAA+B;QAC7E,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;QACvB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;IAED,6DAA6D;IAC7D,MAAM,CAAC,SAA4B;QACjC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,CAAC,UAAyB;QAC/B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAClC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,sCAAsC;QAC/D,OAAO,GAAG,EAAE,CAAC,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