@opentui/solid 0.1.93 → 0.1.95

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 (2) hide show
  1. package/index.js +9 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -966,6 +966,7 @@ var TimeToFirstDraw = (props) => {
966
966
  // src/plugins/slot.tsx
967
967
  import { createSlotRegistry } from "@opentui/core";
968
968
  import { children, createMemo as createMemo3, createSignal as createSignal2, ErrorBoundary, For, onCleanup as onCleanup3, splitProps as splitProps2 } from "solid-js";
969
+ var EMPTY_ENTRY_IDS = [];
969
970
  function createSolidSlotRegistry(renderer, context, options = {}) {
970
971
  return createSlotRegistry(renderer, "solid:slot-registry", context, options);
971
972
  }
@@ -1092,9 +1093,16 @@ function Slot(props) {
1092
1093
  return renderEntry(resolvedEntry);
1093
1094
  });
1094
1095
  };
1096
+ const appendEntryIds = createMemo3(() => {
1097
+ const mode = local.mode ?? "append";
1098
+ if (mode !== "append") {
1099
+ return EMPTY_ENTRY_IDS;
1100
+ }
1101
+ return entryIds();
1102
+ });
1095
1103
  const appendView = [renderFallback, createComponent2(For, {
1096
1104
  get each() {
1097
- return entryIds();
1105
+ return appendEntryIds();
1098
1106
  },
1099
1107
  children: (entryId) => createComponent2(AppendEntry, {
1100
1108
  entryId
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
7
- "version": "0.1.93",
7
+ "version": "0.1.95",
8
8
  "description": "SolidJS renderer for OpenTUI",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@babel/core": "7.28.0",
37
37
  "@babel/preset-typescript": "7.27.1",
38
- "@opentui/core": "0.1.93",
38
+ "@opentui/core": "0.1.95",
39
39
  "babel-plugin-module-resolver": "5.0.2",
40
40
  "babel-preset-solid": "1.9.10",
41
41
  "entities": "7.0.1",