@opentui/core 0.1.91 → 0.1.92
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/{index-1xpw3v2p.js → index-j5fb4966.js} +2 -2
- package/{index-7p56py22.js → index-jdn8a604.js} +23 -2
- package/{index-7p56py22.js.map → index-jdn8a604.js.map} +3 -3
- package/index.js +1 -1
- package/package.json +7 -7
- package/plugins/registry.d.ts +4 -0
- package/runtime-plugin-support.js +2 -2
- package/runtime-plugin.js +2 -2
- /package/{index-1xpw3v2p.js.map → index-j5fb4966.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
exports_src
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-jdn8a604.js";
|
|
5
5
|
import {
|
|
6
6
|
__require
|
|
7
7
|
} from "./index-mdxq0qtt.js";
|
|
@@ -185,4 +185,4 @@ function createRuntimePlugin(input = {}) {
|
|
|
185
185
|
export { isCoreRuntimeModuleSpecifier, runtimeModuleIdForSpecifier, createRuntimePlugin };
|
|
186
186
|
|
|
187
187
|
//# debugId=320B34A5E2C7118F64756E2164756E21
|
|
188
|
-
//# sourceMappingURL=index-
|
|
188
|
+
//# sourceMappingURL=index-j5fb4966.js.map
|
|
@@ -2927,6 +2927,8 @@ class SlotRegistry {
|
|
|
2927
2927
|
errorListeners = new Set;
|
|
2928
2928
|
pluginErrors = [];
|
|
2929
2929
|
registrationOrder = 0;
|
|
2930
|
+
batchDepth = 0;
|
|
2931
|
+
batchedNotify = false;
|
|
2930
2932
|
rendererInstance;
|
|
2931
2933
|
hostContext;
|
|
2932
2934
|
options;
|
|
@@ -3050,6 +3052,18 @@ class SlotRegistry {
|
|
|
3050
3052
|
this.errorListeners.delete(listener);
|
|
3051
3053
|
};
|
|
3052
3054
|
}
|
|
3055
|
+
batch(run) {
|
|
3056
|
+
this.batchDepth += 1;
|
|
3057
|
+
try {
|
|
3058
|
+
return run();
|
|
3059
|
+
} finally {
|
|
3060
|
+
this.batchDepth -= 1;
|
|
3061
|
+
if (this.batchDepth === 0 && this.batchedNotify) {
|
|
3062
|
+
this.batchedNotify = false;
|
|
3063
|
+
this.flushListeners();
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3053
3067
|
getPluginErrors() {
|
|
3054
3068
|
return this.pluginErrors;
|
|
3055
3069
|
}
|
|
@@ -3141,6 +3155,13 @@ class SlotRegistry {
|
|
|
3141
3155
|
this.sortedPluginsCache = null;
|
|
3142
3156
|
}
|
|
3143
3157
|
notifyListeners() {
|
|
3158
|
+
if (this.batchDepth > 0) {
|
|
3159
|
+
this.batchedNotify = true;
|
|
3160
|
+
return;
|
|
3161
|
+
}
|
|
3162
|
+
this.flushListeners();
|
|
3163
|
+
}
|
|
3164
|
+
flushListeners() {
|
|
3144
3165
|
for (const listener of this.listeners) {
|
|
3145
3166
|
try {
|
|
3146
3167
|
listener();
|
|
@@ -13274,5 +13295,5 @@ class TimeToFirstDrawRenderable extends Renderable {
|
|
|
13274
13295
|
}
|
|
13275
13296
|
export { TextBufferView, EditBuffer, EditorView, convertThemeToStyles, SyntaxStyle, DistortionEffect, VignetteEffect, CloudsEffect, FlamesEffect, CRTRollingBarEffect, RainbowTextEffect, applyScanlines, applyInvert, applyNoise, applyChromaticAberration, applyAsciiArt, applyBrightness, applyGain, applySaturation, BloomEffect, SEPIA_MATRIX, PROTANOPIA_SIM_MATRIX, DEUTERANOPIA_SIM_MATRIX, TRITANOPIA_SIM_MATRIX, ACHROMATOPSIA_MATRIX, PROTANOPIA_COMP_MATRIX, DEUTERANOPIA_COMP_MATRIX, TRITANOPIA_COMP_MATRIX, TECHNICOLOR_MATRIX, SOLARIZATION_MATRIX, SYNTHWAVE_MATRIX, GREENSCALE_MATRIX, GRAYSCALE_MATRIX, INVERT_MATRIX, Timeline, engine, createTimeline, SlotRegistry, createSlotRegistry, createCoreSlotRegistry, registerCorePlugin, resolveCoreSlot, SlotRenderable, NativeSpanFeed, FrameBufferRenderable, ASCIIFontRenderable, BoxRenderable, TextBufferRenderable, CodeRenderable, isTextNodeRenderable, TextNodeRenderable, RootTextNodeRenderable, Generic, Box, Text, ASCIIFont, Input, Select, TabSelect, FrameBuffer, Code, ScrollBox, vstyles, VRenderable, LineNumberRenderable, TextRenderable, DiffRenderable, TextareaRenderable, InputRenderableEvents, InputRenderable, TextTableRenderable, MarkdownRenderable, SliderRenderable, ScrollBarRenderable, ArrowRenderable, ScrollBoxRenderable, SelectRenderableEvents, SelectRenderable, TabSelectRenderableEvents, TabSelectRenderable, TimeToFirstDrawRenderable, exports_src2 as exports_src };
|
|
13276
13297
|
|
|
13277
|
-
//# debugId=
|
|
13278
|
-
//# sourceMappingURL=index-
|
|
13298
|
+
//# debugId=B6536531C9BC040064756E2164756E21
|
|
13299
|
+
//# sourceMappingURL=index-jdn8a604.js.map
|