@industry-theme/xterm-terminal-panel 0.11.0 → 0.11.1

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 CHANGED
@@ -187,7 +187,7 @@ import {
187
187
  // package.json
188
188
  var package_default = {
189
189
  name: "@industry-theme/xterm-terminal-panel",
190
- version: "0.11.0",
190
+ version: "0.11.1",
191
191
  description: "Industry-themed xterm.js terminal components with panel framework integration",
192
192
  type: "module",
193
193
  sideEffects: [
@@ -4320,40 +4320,62 @@ var TabbedTerminalPanelInner = ({
4320
4320
  );
4321
4321
  };
4322
4322
  TabbedTerminalPanelInner.displayName = "TabbedTerminalPanelInner";
4323
+ var COMPARED_PROP_KEYS = [
4324
+ "terminalContext",
4325
+ "directory",
4326
+ "getRepoInfo",
4327
+ "hideHeader",
4328
+ "isVisible",
4329
+ "showAllTerminals",
4330
+ "hideShowAllTerminalsButton",
4331
+ "showNewTabButton",
4332
+ "enableTabReorder",
4333
+ "tabLabelPrefix",
4334
+ "width",
4335
+ "actions",
4336
+ "onTabsChange",
4337
+ "onShowAllTerminalsChange",
4338
+ "initialTabs",
4339
+ "renderTabContent",
4340
+ "renderTabIcon",
4341
+ "renderTabLabel",
4342
+ "renderEmptyState",
4343
+ "requestFocusTabId",
4344
+ "onFocusTabHandled",
4345
+ "requestOpenTab",
4346
+ "onOpenTabHandled",
4347
+ "requestCloseTabId",
4348
+ "activeTabId",
4349
+ "onActiveTabChange",
4350
+ "workingStates",
4351
+ "programStatus",
4352
+ "activityDetection",
4353
+ "activityTimeout",
4354
+ "autoShowBlinds",
4355
+ "bottomBarContent"
4356
+ ];
4357
+ var IGNORED_PROP_KEYS = /* @__PURE__ */ new Set(["context", "events"]);
4358
+ function warnAboutUncomparedProps(prevProps, nextProps) {
4359
+ if (typeof process === "undefined" || false) {
4360
+ return;
4361
+ }
4362
+ const prev = prevProps;
4363
+ const next = nextProps;
4364
+ for (const key of Object.keys({ ...prev, ...next })) {
4365
+ if (IGNORED_PROP_KEYS.has(key)) continue;
4366
+ if (COMPARED_PROP_KEYS.includes(key)) continue;
4367
+ if (prev[key] === next[key]) continue;
4368
+ console.warn(
4369
+ `[TabbedTerminalPanel] prop "${key}" changed but is missing from COMPARED_PROP_KEYS \u2014 the panel will ignore the update.`
4370
+ );
4371
+ }
4372
+ }
4323
4373
  var TabbedTerminalPanelMemoized = React3.memo(TabbedTerminalPanelInner, (prevProps, nextProps) => {
4324
- const changes = [];
4325
- if (prevProps.terminalContext !== nextProps.terminalContext) changes.push("terminalContext");
4326
- if (prevProps.directory !== nextProps.directory) changes.push("directory");
4327
- if (prevProps.getRepoInfo !== nextProps.getRepoInfo) changes.push("getRepoInfo");
4328
- if (prevProps.hideHeader !== nextProps.hideHeader) changes.push("hideHeader");
4329
- if (prevProps.isVisible !== nextProps.isVisible) changes.push("isVisible");
4330
- if (prevProps.showAllTerminals !== nextProps.showAllTerminals) changes.push("showAllTerminals");
4331
- if (prevProps.hideShowAllTerminalsButton !== nextProps.hideShowAllTerminalsButton) changes.push("hideShowAllTerminalsButton");
4332
- if (prevProps.showNewTabButton !== nextProps.showNewTabButton) changes.push("showNewTabButton");
4333
- if (prevProps.enableTabReorder !== nextProps.enableTabReorder) changes.push("enableTabReorder");
4334
- if (prevProps.tabLabelPrefix !== nextProps.tabLabelPrefix) changes.push("tabLabelPrefix");
4335
- if (prevProps.width !== nextProps.width) changes.push("width");
4336
- if (prevProps.actions !== nextProps.actions) changes.push("actions");
4337
- if (prevProps.onTabsChange !== nextProps.onTabsChange) changes.push("onTabsChange");
4338
- if (prevProps.onShowAllTerminalsChange !== nextProps.onShowAllTerminalsChange) changes.push("onShowAllTerminalsChange");
4339
- if (prevProps.initialTabs !== nextProps.initialTabs) changes.push("initialTabs");
4340
- if (prevProps.renderTabContent !== nextProps.renderTabContent) changes.push("renderTabContent");
4341
- if (prevProps.renderEmptyState !== nextProps.renderEmptyState) changes.push("renderEmptyState");
4342
- if (prevProps.requestFocusTabId !== nextProps.requestFocusTabId) changes.push("requestFocusTabId");
4343
- if (prevProps.requestCloseTabId !== nextProps.requestCloseTabId) changes.push("requestCloseTabId");
4344
- if (prevProps.onFocusTabHandled !== nextProps.onFocusTabHandled) changes.push("onFocusTabHandled");
4345
- if (prevProps.activeTabId !== nextProps.activeTabId) changes.push("activeTabId");
4346
- if (prevProps.onActiveTabChange !== nextProps.onActiveTabChange) changes.push("onActiveTabChange");
4347
- if (prevProps.workingStates !== nextProps.workingStates) changes.push("workingStates");
4348
- if (prevProps.programStatus !== nextProps.programStatus) changes.push("programStatus");
4349
- if (prevProps.activityDetection !== nextProps.activityDetection) changes.push("activityDetection");
4350
- if (prevProps.activityTimeout !== nextProps.activityTimeout) changes.push("activityTimeout");
4351
- if (prevProps.autoShowBlinds !== nextProps.autoShowBlinds) changes.push("autoShowBlinds");
4352
- if (prevProps.bottomBarContent !== nextProps.bottomBarContent) changes.push("bottomBarContent");
4353
- const ignoredChanges = [];
4354
- if (prevProps.context !== nextProps.context) ignoredChanges.push("context");
4355
- if (prevProps.events !== nextProps.events) ignoredChanges.push("events");
4356
- return changes.length === 0;
4374
+ for (const key of COMPARED_PROP_KEYS) {
4375
+ if (prevProps[key] !== nextProps[key]) return false;
4376
+ }
4377
+ warnAboutUncomparedProps(prevProps, nextProps);
4378
+ return true;
4357
4379
  });
4358
4380
  TabbedTerminalPanelMemoized.displayName = "TabbedTerminalPanel";
4359
4381
  var TabbedTerminalPanel = TabbedTerminalPanelMemoized;
@@ -1 +1 @@
1
- {"version":3,"file":"TabbedTerminalPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/TabbedTerminalPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAMN,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EACV,wBAAwB,EACxB,WAAW,EAGZ,MAAM,gBAAgB,CAAC;AAyExB,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAovCD,eAAO,MAAM,mBAAmB,EAAkC,CAAC,IAAI,SAAS,OAAO,cAAc,EAAE,OAAO,GAAG,WAAW,EAC1H,KAAK,EAAE,wBAAwB,CAAC,IAAI,CAAC,KAClC,KAAK,CAAC,YAAY,CAAC"}
1
+ {"version":3,"file":"TabbedTerminalPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/TabbedTerminalPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAMN,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EACV,wBAAwB,EACxB,WAAW,EAGZ,MAAM,gBAAgB,CAAC;AAyExB,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAsxCD,eAAO,MAAM,mBAAmB,EAAkC,CAAC,IAAI,SAAS,OAAO,cAAc,EAAE,OAAO,GAAG,WAAW,EAC1H,KAAK,EAAE,wBAAwB,CAAC,IAAI,CAAC,KAClC,KAAK,CAAC,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@industry-theme/xterm-terminal-panel",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Industry-themed xterm.js terminal components with panel framework integration",
5
5
  "type": "module",
6
6
  "sideEffects": [