git-truck 1.3.1 → 1.3.2

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/build/index.js CHANGED
@@ -179331,7 +179331,7 @@ var import_perf_hooks = require("perf_hooks"), import_path2 = require("path");
179331
179331
  // package.json
179332
179332
  var package_default = {
179333
179333
  name: "git-truck",
179334
- version: "1.3.1",
179334
+ version: "1.3.2",
179335
179335
  private: !1,
179336
179336
  description: "Visualizing a Git repository",
179337
179337
  license: "MIT",
@@ -186676,6 +186676,7 @@ function getDefaultOptions() {
186676
186676
  chartType: Object.keys(Chart)[0],
186677
186677
  authorshipType: Object.keys(Authorship)[0],
186678
186678
  animationsEnabled: !0,
186679
+ labelsVisible: !0,
186679
186680
  setChartType: () => {
186680
186681
  throw new Error("No chartTypeSetter provided");
186681
186682
  },
@@ -186687,6 +186688,9 @@ function getDefaultOptions() {
186687
186688
  },
186688
186689
  setAnimationsEnabled: () => {
186689
186690
  throw new Error("No animationsEnabledSetter provided");
186691
+ },
186692
+ setLabelsVisible: () => {
186693
+ throw new Error("No labelsVisibleSetter provided");
186690
186694
  }
186691
186695
  };
186692
186696
  }
@@ -188521,7 +188525,7 @@ var G = import_styled_components15.default.g`
188521
188525
  animation-duration: 2s;
188522
188526
  animation-iteration-count: infinite;
188523
188527
  `, Node3 = (0, import_react19.memo)(function({ d, isRoot }) {
188524
- let { chartType } = useOptions(), showLabel = isTree(d.data), { path } = usePath(), displayText = d.data.name;
188528
+ let { chartType, labelsVisible } = useOptions(), showLabel = isTree(d.data) && labelsVisible, { path } = usePath(), displayText = d.data.name;
188525
188529
  if (isRoot) {
188526
188530
  let pathSteps = path.split("/"), dispSteps = displayText.split("/"), ps = 0, ds = 0;
188527
188531
  for (; ps < pathSteps.length && ds < dispSteps.length; )
@@ -188880,7 +188884,14 @@ var import_styled_components17 = __toESM(require_styled_components_cjs()), impor
188880
188884
  margin: var(--unit);
188881
188885
  `;
188882
188886
  function Options2() {
188883
- let { animationsEnabled, setAnimationsEnabled, setMetricType, setChartType } = useOptions();
188887
+ let {
188888
+ animationsEnabled,
188889
+ setAnimationsEnabled,
188890
+ labelsVisible,
188891
+ setLabelsVisible,
188892
+ setMetricType,
188893
+ setChartType
188894
+ } = useOptions();
188884
188895
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
188885
188896
  children: [
188886
188897
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EnumSelect, {
@@ -188906,6 +188917,19 @@ function Options2() {
188906
188917
  children: "Enable animations"
188907
188918
  })
188908
188919
  ]
188920
+ }),
188921
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spacer, {}),
188922
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", {
188923
+ children: [
188924
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Checkbox, {
188925
+ type: "checkbox",
188926
+ checked: labelsVisible,
188927
+ onChange: (e) => setLabelsVisible(e.target.checked)
188928
+ }),
188929
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
188930
+ children: "Show labels"
188931
+ })
188932
+ ]
188909
188933
  })
188910
188934
  ]
188911
188935
  });
@@ -188953,6 +188977,10 @@ function Providers({ children, data }) {
188953
188977
  setAnimationsEnabled: (enabled) => setOptions((prevOptions) => ({
188954
188978
  ...prevOptions ?? getDefaultOptions(),
188955
188979
  animationsEnabled: enabled
188980
+ })),
188981
+ setLabelsVisible: (visible) => setOptions((prevOptions) => ({
188982
+ ...prevOptions ?? getDefaultOptions(),
188983
+ labelsVisible: visible
188956
188984
  }))
188957
188985
  }),
188958
188986
  [options]
@@ -189746,7 +189774,7 @@ var Wrapper = import_styled_components23.default.div`
189746
189774
  `;
189747
189775
 
189748
189776
  // server-assets-manifest:@remix-run/dev/assets-manifest
189749
- var assets_manifest_default = { version: "80c84c72", entry: { module: "/build/entry.client-YPWZXPQ4.js", imports: ["/build/_shared/chunk-XMAWJ27N.js", "/build/_shared/chunk-2BPXJFRU.js"] }, routes: { root: { id: "root", parentId: void 0, path: "", index: void 0, caseSensitive: void 0, module: "/build/root-WYGBICN2.js", imports: ["/build/_shared/chunk-Y7QOL3BF.js"], hasAction: !1, hasLoader: !1, hasCatchBoundary: !0, hasErrorBoundary: !0 }, "routes/$repo.$": { id: "routes/$repo.$", parentId: "root", path: ":repo/*", index: void 0, caseSensitive: void 0, module: "/build/routes/$repo.$-WXCO7VTZ.js", imports: ["/build/_shared/chunk-FMS45555.js"], hasAction: !0, hasLoader: !0, hasCatchBoundary: !1, hasErrorBoundary: !0 }, "routes/index": { id: "routes/index", parentId: "root", path: void 0, index: !0, caseSensitive: void 0, module: "/build/routes/index-EFMTA3RM.js", imports: ["/build/_shared/chunk-FMS45555.js"], hasAction: !1, hasLoader: !0, hasCatchBoundary: !1, hasErrorBoundary: !1 } }, url: "/build/manifest-80C84C72.js" };
189777
+ var assets_manifest_default = { version: "374f1c1e", entry: { module: "/build/entry.client-YPWZXPQ4.js", imports: ["/build/_shared/chunk-XMAWJ27N.js", "/build/_shared/chunk-2BPXJFRU.js"] }, routes: { root: { id: "root", parentId: void 0, path: "", index: void 0, caseSensitive: void 0, module: "/build/root-WYGBICN2.js", imports: ["/build/_shared/chunk-Y7QOL3BF.js"], hasAction: !1, hasLoader: !1, hasCatchBoundary: !0, hasErrorBoundary: !0 }, "routes/$repo.$": { id: "routes/$repo.$", parentId: "root", path: ":repo/*", index: void 0, caseSensitive: void 0, module: "/build/routes/$repo.$-3XDPKWRZ.js", imports: ["/build/_shared/chunk-FMS45555.js"], hasAction: !0, hasLoader: !0, hasCatchBoundary: !1, hasErrorBoundary: !0 }, "routes/index": { id: "routes/index", parentId: "root", path: void 0, index: !0, caseSensitive: void 0, module: "/build/routes/index-EFMTA3RM.js", imports: ["/build/_shared/chunk-FMS45555.js"], hasAction: !1, hasLoader: !0, hasCatchBoundary: !1, hasErrorBoundary: !1 } }, url: "/build/manifest-374F1C1E.js" };
189750
189778
 
189751
189779
  // server-entry-module:@remix-run/dev/server-build
189752
189780
  var assetsBuildDirectory = "public/build", publicPath = "/build/", entry = { module: entry_server_exports }, routes = {
package/cli.js CHANGED
@@ -213723,7 +213723,7 @@ var import_path5 = __toESM(require("path"));
213723
213723
  // package.json
213724
213724
  var package_default = {
213725
213725
  name: "git-truck",
213726
- version: "1.3.1",
213726
+ version: "1.3.2",
213727
213727
  private: false,
213728
213728
  description: "Visualizing a Git repository",
213729
213729
  license: "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-truck",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "private": false,
5
5
  "description": "Visualizing a Git repository",
6
6
  "license": "MIT",
@@ -1 +1 @@
1
- window.__remixManifest={"version":"80c84c72","entry":{"module":"/build/entry.client-YPWZXPQ4.js","imports":["/build/_shared/chunk-XMAWJ27N.js","/build/_shared/chunk-2BPXJFRU.js"]},"routes":{"root":{"id":"root","path":"","module":"/build/root-WYGBICN2.js","imports":["/build/_shared/chunk-Y7QOL3BF.js"],"hasAction":false,"hasLoader":false,"hasCatchBoundary":true,"hasErrorBoundary":true},"routes/$repo.$":{"id":"routes/$repo.$","parentId":"root","path":":repo/*","module":"/build/routes/$repo.$-WXCO7VTZ.js","imports":["/build/_shared/chunk-FMS45555.js"],"hasAction":true,"hasLoader":true,"hasCatchBoundary":false,"hasErrorBoundary":true},"routes/index":{"id":"routes/index","parentId":"root","index":true,"module":"/build/routes/index-EFMTA3RM.js","imports":["/build/_shared/chunk-FMS45555.js"],"hasAction":false,"hasLoader":true,"hasCatchBoundary":false,"hasErrorBoundary":false}},"url":"/build/manifest-80C84C72.js"};
1
+ window.__remixManifest={"version":"374f1c1e","entry":{"module":"/build/entry.client-YPWZXPQ4.js","imports":["/build/_shared/chunk-XMAWJ27N.js","/build/_shared/chunk-2BPXJFRU.js"]},"routes":{"root":{"id":"root","path":"","module":"/build/root-WYGBICN2.js","imports":["/build/_shared/chunk-Y7QOL3BF.js"],"hasAction":false,"hasLoader":false,"hasCatchBoundary":true,"hasErrorBoundary":true},"routes/$repo.$":{"id":"routes/$repo.$","parentId":"root","path":":repo/*","module":"/build/routes/$repo.$-3XDPKWRZ.js","imports":["/build/_shared/chunk-FMS45555.js"],"hasAction":true,"hasLoader":true,"hasCatchBoundary":false,"hasErrorBoundary":true},"routes/index":{"id":"routes/index","parentId":"root","index":true,"module":"/build/routes/index-EFMTA3RM.js","imports":["/build/_shared/chunk-FMS45555.js"],"hasAction":false,"hasLoader":true,"hasCatchBoundary":false,"hasErrorBoundary":false}},"url":"/build/manifest-374F1C1E.js"};