@ottocode/web-sdk 0.1.285 → 0.1.286

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.
@@ -1 +1 @@
1
- {"version":3,"file":"GitFileTree.d.ts","sourceRoot":"","sources":["../../../src/components/git/GitFileTree.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKrD,UAAU,gBAAgB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC1C,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC;CACzD;AA+KD,wBAAgB,WAAW,CAAC,EAC3B,SAAS,EACT,KAAK,EACL,MAAM,EACN,cAAc,EACd,qBAAqB,GACrB,EAAE,gBAAgB,2CA6HlB"}
1
+ {"version":3,"file":"GitFileTree.d.ts","sourceRoot":"","sources":["../../../src/components/git/GitFileTree.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKrD,UAAU,gBAAgB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC1C,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC;CACzD;AAmLD,wBAAgB,WAAW,CAAC,EAC3B,SAAS,EACT,KAAK,EACL,MAAM,EACN,cAAc,EACd,qBAAqB,GACrB,EAAE,gBAAgB,2CA6HlB"}
@@ -21349,6 +21349,9 @@ ${file.absPath}`,
21349
21349
  import { jsx as jsx84, jsxs as jsxs72 } from "react/jsx-runtime";
21350
21350
  var INDENT_SIZE = 12;
21351
21351
  var FILE_CARET_OFFSET = 32;
21352
+ function getFileIndent(depth) {
21353
+ return depth === 0 ? 0 : FILE_CARET_OFFSET + (depth - 1) * INDENT_SIZE;
21354
+ }
21352
21355
  function createFolder(name, path) {
21353
21356
  return {
21354
21357
  type: "folder",
@@ -21518,7 +21521,7 @@ function GitFileTree({
21518
21521
  file: node.file,
21519
21522
  staged,
21520
21523
  displayPath: node.name,
21521
- indent: FILE_CARET_OFFSET + depth * INDENT_SIZE,
21524
+ indent: getFileIndent(depth),
21522
21525
  showModifiedIndicator: showModifiedIndicator?.(node.file) ?? false
21523
21526
  })
21524
21527
  }, node.path);
@@ -34263,4 +34266,4 @@ export {
34263
34266
  AssistantMessageGroup
34264
34267
  };
34265
34268
 
34266
- //# debugId=C4D786A52986DC4764756E2164756E21
34269
+ //# debugId=730C765A2AA0196464756E2164756E21