@industry-theme/file-city-panel 0.3.17 → 0.3.18
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/components/TourPlayer.d.ts.map +1 -1
- package/dist/mocks/panelContext.d.ts.map +1 -1
- package/dist/panels/components/FileCardList.d.ts.map +1 -1
- package/dist/panels/components/FileCardList.stories.d.ts +4 -0
- package/dist/panels/components/FileCardList.stories.d.ts.map +1 -1
- package/dist/panels/components/GitChangesCardList.d.ts.map +1 -1
- package/dist/panels/components/GitChangesCardList.stories.d.ts.map +1 -1
- package/dist/panels.bundle.js +285 -190
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TourPlayer.d.ts","sourceRoot":"","sources":["../../src/components/TourPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAgBxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG7C,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,IAAI,EAAE,gBAAgB,CAAC;IAEvB,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAEvE,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAE1E,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,qIAAqI;IACrI,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAE3D,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,wGAAwG;IACxG,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC,6FAA6F;IAC7F,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,iEAAiE;IACjE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"TourPlayer.d.ts","sourceRoot":"","sources":["../../src/components/TourPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAgBxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG7C,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,IAAI,EAAE,gBAAgB,CAAC;IAEvB,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAEvE,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAE1E,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,qIAAqI;IACrI,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAE3D,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,wGAAwG;IACxG,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC,6FAA6F;IAC7F,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,iEAAiE;IACjE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyhChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panelContext.d.ts","sourceRoot":"","sources":["../../src/mocks/panelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EAIlB,MAAM,UAAU,CAAC;AA+BlB;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,OAAO,CAAC,iBAAiB,CAAC,KACrC,iBAoIF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,OAAO,CAAC,YAAY,CAAC,KAChC,
|
|
1
|
+
{"version":3,"file":"panelContext.d.ts","sourceRoot":"","sources":["../../src/mocks/panelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EAIlB,MAAM,UAAU,CAAC;AA+BlB;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,OAAO,CAAC,iBAAiB,CAAC,KACrC,iBAoIF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,OAAO,CAAC,YAAY,CAAC,KAChC,YA0BD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,iBAwCnC,CAAC;AAEF;;;GAGG;AACH,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;IAClF,gBAAgB,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC9C,gBAAgB,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA+E9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileCardList.d.ts","sourceRoot":"","sources":["../../../src/panels/components/FileCardList.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FileCardList.d.ts","sourceRoot":"","sources":["../../../src/panels/components/FileCardList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAQ9D,MAAM,WAAW,YAAY;IAC3B,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,iBAAiB;IACzB,+BAA+B;IAC/B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,2CAA2C;IAC3C,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,4EAA4E;IAC5E,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4EAA4E;IAC5E,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,qEAAqE;IACrE,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmYpD,CAAC"}
|
|
@@ -55,4 +55,8 @@ export declare const StoryboardFiles: Story;
|
|
|
55
55
|
* With stage button for unstaged files
|
|
56
56
|
*/
|
|
57
57
|
export declare const WithStageButton: Story;
|
|
58
|
+
/**
|
|
59
|
+
* With unstage button for staged files
|
|
60
|
+
*/
|
|
61
|
+
export declare const WithUnstageButton: Story;
|
|
58
62
|
//# sourceMappingURL=FileCardList.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileCardList.stories.d.ts","sourceRoot":"","sources":["../../../src/panels/components/FileCardList.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAqB,MAAM,gBAAgB,CAAC;AAEjE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAwBnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAW3C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAU3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAKhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KA+BzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAU9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAU7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAwD7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"FileCardList.stories.d.ts","sourceRoot":"","sources":["../../../src/panels/components/FileCardList.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAqB,MAAM,gBAAgB,CAAC;AAEjE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAwBnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAW3C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAU3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAKhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KA+BzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAU9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAU7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAwD7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAwD/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitChangesCardList.d.ts","sourceRoot":"","sources":["../../../src/panels/components/GitChangesCardList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,kDAAkD;AAClD,MAAM,MAAM,wBAAwB,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;AAEvF,gCAAgC;AAChC,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAkBvD,UAAU,uBAAuB;IAC/B,kDAAkD;IAClD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,mCAAmC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sCAAsC;IACtC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC5E,sCAAsC;IACtC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,uCAAuC;IACvC,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"GitChangesCardList.d.ts","sourceRoot":"","sources":["../../../src/panels/components/GitChangesCardList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,kDAAkD;AAClD,MAAM,MAAM,wBAAwB,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;AAEvF,gCAAgC;AAChC,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAkBvD,UAAU,uBAAuB;IAC/B,kDAAkD;IAClD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,mCAAmC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sCAAsC;IACtC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC5E,sCAAsC;IACtC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,uCAAuC;IACvC,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAyKhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitChangesCardList.stories.d.ts","sourceRoot":"","sources":["../../../src/panels/components/GitChangesCardList.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAwBzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAgCjD;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"GitChangesCardList.stories.d.ts","sourceRoot":"","sources":["../../../src/panels/components/GitChangesCardList.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAwBzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAgCjD;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KA6GlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAwB1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAuBxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAmBvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAmBvB,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -48268,6 +48268,7 @@ const FileCardList = ({
|
|
|
48268
48268
|
onFileClick,
|
|
48269
48269
|
onFileHover,
|
|
48270
48270
|
onStageFile,
|
|
48271
|
+
onUnstageFile,
|
|
48271
48272
|
fileStatusMap,
|
|
48272
48273
|
emptyMessage = "No files",
|
|
48273
48274
|
horizontalPadding = "0px",
|
|
@@ -48276,6 +48277,9 @@ const FileCardList = ({
|
|
|
48276
48277
|
const { theme: theme2 } = useTheme();
|
|
48277
48278
|
const [copiedPath, setCopiedPath] = React.useState(null);
|
|
48278
48279
|
const [hoveredStageButton, setHoveredStageButton] = React.useState(null);
|
|
48280
|
+
const [hoveredUnstageButton, setHoveredUnstageButton] = React.useState(null);
|
|
48281
|
+
const [processingFiles, setProcessingFiles] = React.useState(/* @__PURE__ */ new Set());
|
|
48282
|
+
const [fadingOutFiles, setFadingOutFiles] = React.useState(/* @__PURE__ */ new Set());
|
|
48279
48283
|
const getFileName = useCallback((path) => {
|
|
48280
48284
|
const parts = path.split("/");
|
|
48281
48285
|
return parts[parts.length - 1] || path;
|
|
@@ -48298,6 +48302,44 @@ const FileCardList = ({
|
|
|
48298
48302
|
const ext = fileName.slice(lastDot).toLowerCase();
|
|
48299
48303
|
return EXTENSION_COLORS[ext];
|
|
48300
48304
|
}, [getFileName]);
|
|
48305
|
+
const handleStageWithAnimation = useCallback((filePath) => {
|
|
48306
|
+
setProcessingFiles((prev) => new Set(prev).add(filePath));
|
|
48307
|
+
setTimeout(() => {
|
|
48308
|
+
setFadingOutFiles((prev) => new Set(prev).add(filePath));
|
|
48309
|
+
setTimeout(() => {
|
|
48310
|
+
onStageFile == null ? void 0 : onStageFile(filePath);
|
|
48311
|
+
setProcessingFiles((prev) => {
|
|
48312
|
+
const next = new Set(prev);
|
|
48313
|
+
next.delete(filePath);
|
|
48314
|
+
return next;
|
|
48315
|
+
});
|
|
48316
|
+
setFadingOutFiles((prev) => {
|
|
48317
|
+
const next = new Set(prev);
|
|
48318
|
+
next.delete(filePath);
|
|
48319
|
+
return next;
|
|
48320
|
+
});
|
|
48321
|
+
}, 200);
|
|
48322
|
+
}, 100);
|
|
48323
|
+
}, [onStageFile]);
|
|
48324
|
+
const handleUnstageWithAnimation = useCallback((filePath) => {
|
|
48325
|
+
setProcessingFiles((prev) => new Set(prev).add(filePath));
|
|
48326
|
+
setTimeout(() => {
|
|
48327
|
+
setFadingOutFiles((prev) => new Set(prev).add(filePath));
|
|
48328
|
+
setTimeout(() => {
|
|
48329
|
+
onUnstageFile == null ? void 0 : onUnstageFile(filePath);
|
|
48330
|
+
setProcessingFiles((prev) => {
|
|
48331
|
+
const next = new Set(prev);
|
|
48332
|
+
next.delete(filePath);
|
|
48333
|
+
return next;
|
|
48334
|
+
});
|
|
48335
|
+
setFadingOutFiles((prev) => {
|
|
48336
|
+
const next = new Set(prev);
|
|
48337
|
+
next.delete(filePath);
|
|
48338
|
+
return next;
|
|
48339
|
+
});
|
|
48340
|
+
}, 200);
|
|
48341
|
+
}, 100);
|
|
48342
|
+
}, [onUnstageFile]);
|
|
48301
48343
|
const sortedFiles = useMemo(() => {
|
|
48302
48344
|
return [...files2].sort((a, b) => {
|
|
48303
48345
|
const aIsDir = isDirectory(a.path);
|
|
@@ -48325,196 +48367,244 @@ const FileCardList = ({
|
|
|
48325
48367
|
}
|
|
48326
48368
|
);
|
|
48327
48369
|
}
|
|
48328
|
-
return /* @__PURE__ */
|
|
48329
|
-
"
|
|
48330
|
-
|
|
48331
|
-
|
|
48332
|
-
|
|
48333
|
-
|
|
48334
|
-
|
|
48335
|
-
|
|
48336
|
-
|
|
48337
|
-
|
|
48338
|
-
|
|
48339
|
-
|
|
48340
|
-
|
|
48341
|
-
|
|
48342
|
-
|
|
48343
|
-
|
|
48344
|
-
|
|
48345
|
-
|
|
48346
|
-
|
|
48347
|
-
|
|
48348
|
-
|
|
48349
|
-
|
|
48350
|
-
|
|
48351
|
-
|
|
48352
|
-
|
|
48353
|
-
|
|
48354
|
-
|
|
48355
|
-
|
|
48356
|
-
|
|
48357
|
-
|
|
48358
|
-
|
|
48359
|
-
|
|
48360
|
-
|
|
48361
|
-
|
|
48362
|
-
|
|
48363
|
-
|
|
48364
|
-
|
|
48365
|
-
|
|
48366
|
-
|
|
48367
|
-
|
|
48368
|
-
|
|
48369
|
-
|
|
48370
|
-
|
|
48371
|
-
|
|
48372
|
-
|
|
48373
|
-
|
|
48374
|
-
|
|
48375
|
-
|
|
48376
|
-
|
|
48377
|
-
|
|
48378
|
-
|
|
48379
|
-
|
|
48380
|
-
|
|
48381
|
-
|
|
48382
|
-
|
|
48383
|
-
flexShrink: 0
|
|
48384
|
-
}
|
|
48385
|
-
}
|
|
48386
|
-
),
|
|
48387
|
-
!showIcons && file.badge && /* @__PURE__ */ jsx(
|
|
48388
|
-
"span",
|
|
48389
|
-
{
|
|
48390
|
-
style: {
|
|
48391
|
-
fontFamily: theme2.fonts.monospace || theme2.fonts.body,
|
|
48392
|
-
fontSize: "14px",
|
|
48393
|
-
fontWeight: 600,
|
|
48394
|
-
color: file.badgeColor || theme2.colors.text,
|
|
48395
|
-
backgroundColor: file.badgeColor ? `${file.badgeColor}20` : theme2.colors.background,
|
|
48396
|
-
padding: "6px 10px",
|
|
48397
|
-
borderRadius: "5px",
|
|
48398
|
-
flexShrink: 0,
|
|
48399
|
-
textTransform: "uppercase"
|
|
48400
|
-
},
|
|
48401
|
-
children: file.badge
|
|
48402
|
-
}
|
|
48403
|
-
),
|
|
48404
|
-
/* @__PURE__ */ jsxs(
|
|
48405
|
-
"div",
|
|
48406
|
-
{
|
|
48407
|
-
style: {
|
|
48408
|
-
display: "flex",
|
|
48409
|
-
flexDirection: "column",
|
|
48410
|
-
gap: "2px",
|
|
48411
|
-
minWidth: 0,
|
|
48412
|
-
flex: 1
|
|
48413
|
-
},
|
|
48414
|
-
children: [
|
|
48415
|
-
/* @__PURE__ */ jsx(
|
|
48416
|
-
"span",
|
|
48417
|
-
{
|
|
48418
|
-
style: {
|
|
48419
|
-
fontFamily: theme2.fonts.body,
|
|
48420
|
-
fontSize: theme2.fontSizes[1],
|
|
48421
|
-
fontWeight: 500,
|
|
48422
|
-
color: file.color || getExtensionColor(file.path) || theme2.colors.text,
|
|
48423
|
-
overflow: "hidden",
|
|
48424
|
-
textOverflow: "ellipsis",
|
|
48425
|
-
whiteSpace: "nowrap"
|
|
48426
|
-
},
|
|
48427
|
-
children: fileName
|
|
48428
|
-
}
|
|
48429
|
-
),
|
|
48430
|
-
directory && /* @__PURE__ */ jsx(
|
|
48431
|
-
"span",
|
|
48432
|
-
{
|
|
48433
|
-
style: {
|
|
48434
|
-
fontFamily: theme2.fonts.body,
|
|
48435
|
-
fontSize: theme2.fontSizes[0],
|
|
48436
|
-
color: theme2.colors.textSecondary,
|
|
48437
|
-
overflow: "hidden",
|
|
48438
|
-
textOverflow: "ellipsis",
|
|
48439
|
-
whiteSpace: "nowrap"
|
|
48440
|
-
},
|
|
48441
|
-
children: directory
|
|
48442
|
-
}
|
|
48443
|
-
)
|
|
48444
|
-
]
|
|
48445
|
-
}
|
|
48446
|
-
),
|
|
48447
|
-
showIcons && file.badge && /* @__PURE__ */ jsx(
|
|
48448
|
-
"span",
|
|
48449
|
-
{
|
|
48450
|
-
style: {
|
|
48451
|
-
fontFamily: theme2.fonts.monospace || theme2.fonts.body,
|
|
48452
|
-
fontSize: "10px",
|
|
48453
|
-
fontWeight: 600,
|
|
48454
|
-
color: file.badgeColor || theme2.colors.text,
|
|
48455
|
-
backgroundColor: file.badgeColor ? `${file.badgeColor}20` : theme2.colors.background,
|
|
48456
|
-
padding: "2px 6px",
|
|
48457
|
-
borderRadius: "3px",
|
|
48458
|
-
flexShrink: 0,
|
|
48459
|
-
textTransform: "uppercase"
|
|
48460
|
-
},
|
|
48461
|
-
children: file.badge
|
|
48462
|
-
}
|
|
48463
|
-
),
|
|
48464
|
-
onStageFile && fileStatusMap && fileStatusMap.get(file.path) !== "staged" && /* @__PURE__ */ jsxs(
|
|
48465
|
-
"button",
|
|
48466
|
-
{
|
|
48467
|
-
onClick: (e) => {
|
|
48468
|
-
e.stopPropagation();
|
|
48469
|
-
onStageFile(file.path);
|
|
48470
|
-
},
|
|
48471
|
-
onMouseEnter: () => setHoveredStageButton(file.path),
|
|
48472
|
-
onMouseLeave: () => setHoveredStageButton(null),
|
|
48473
|
-
style: {
|
|
48474
|
-
display: "flex",
|
|
48475
|
-
alignItems: "center",
|
|
48476
|
-
gap: "4px",
|
|
48477
|
-
fontFamily: theme2.fonts.body,
|
|
48478
|
-
fontSize: theme2.fontSizes[0],
|
|
48479
|
-
fontWeight: 500,
|
|
48480
|
-
color: hoveredStageButton === file.path ? "#22c55e" : theme2.colors.textSecondary,
|
|
48481
|
-
backgroundColor: hoveredStageButton === file.path ? "#22c55e20" : theme2.colors.background,
|
|
48482
|
-
padding: "4px 8px",
|
|
48483
|
-
borderRadius: "4px",
|
|
48484
|
-
border: `1px solid ${hoveredStageButton === file.path ? "#22c55e" : theme2.colors.border}`,
|
|
48485
|
-
cursor: "pointer",
|
|
48486
|
-
flexShrink: 0,
|
|
48487
|
-
transition: "all 0.15s ease"
|
|
48488
|
-
},
|
|
48489
|
-
children: [
|
|
48490
|
-
/* @__PURE__ */ jsx(Plus, { size: 12 }),
|
|
48491
|
-
"Stage"
|
|
48492
|
-
]
|
|
48493
|
-
}
|
|
48494
|
-
),
|
|
48495
|
-
copiedPath === file.path && /* @__PURE__ */ jsx(
|
|
48496
|
-
"span",
|
|
48497
|
-
{
|
|
48498
|
-
style: {
|
|
48499
|
-
fontFamily: theme2.fonts.body,
|
|
48500
|
-
fontSize: theme2.fontSizes[0],
|
|
48501
|
-
fontWeight: 600,
|
|
48502
|
-
color: "#22c55e",
|
|
48503
|
-
backgroundColor: "#22c55e20",
|
|
48504
|
-
padding: "4px 8px",
|
|
48505
|
-
borderRadius: "4px",
|
|
48506
|
-
flexShrink: 0
|
|
48507
|
-
},
|
|
48508
|
-
children: "Copied!"
|
|
48370
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
48371
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
48372
|
+
@keyframes spin {
|
|
48373
|
+
from { transform: rotate(0deg); }
|
|
48374
|
+
to { transform: rotate(360deg); }
|
|
48375
|
+
}
|
|
48376
|
+
` }),
|
|
48377
|
+
/* @__PURE__ */ jsx(
|
|
48378
|
+
"div",
|
|
48379
|
+
{
|
|
48380
|
+
style: {
|
|
48381
|
+
display: "flex",
|
|
48382
|
+
flexDirection: "column",
|
|
48383
|
+
gap: "4px",
|
|
48384
|
+
padding: `0 ${horizontalPadding}`
|
|
48385
|
+
},
|
|
48386
|
+
children: sortedFiles.map((file) => {
|
|
48387
|
+
const fileName = getFileName(file.path);
|
|
48388
|
+
const directory = getDirectory(file.path);
|
|
48389
|
+
const isDir = isDirectory(file.path);
|
|
48390
|
+
const IconComponent = isDir ? Folder : FileText;
|
|
48391
|
+
const isProcessing = processingFiles.has(file.path);
|
|
48392
|
+
const isFadingOut = fadingOutFiles.has(file.path);
|
|
48393
|
+
return /* @__PURE__ */ jsxs(
|
|
48394
|
+
"div",
|
|
48395
|
+
{
|
|
48396
|
+
onClick: () => onFileClick == null ? void 0 : onFileClick(file.path),
|
|
48397
|
+
onMouseEnter: () => onFileHover == null ? void 0 : onFileHover(file.path),
|
|
48398
|
+
onMouseLeave: () => onFileHover == null ? void 0 : onFileHover(null),
|
|
48399
|
+
onContextMenu: (e) => {
|
|
48400
|
+
e.preventDefault();
|
|
48401
|
+
navigator.clipboard.writeText(file.path).then(() => {
|
|
48402
|
+
setCopiedPath(file.path);
|
|
48403
|
+
setTimeout(() => setCopiedPath(null), 1500);
|
|
48404
|
+
}).catch((err) => {
|
|
48405
|
+
console.error("Failed to copy file path to clipboard:", err);
|
|
48406
|
+
});
|
|
48407
|
+
},
|
|
48408
|
+
style: {
|
|
48409
|
+
display: "flex",
|
|
48410
|
+
alignItems: "center",
|
|
48411
|
+
gap: "10px",
|
|
48412
|
+
padding: "8px 12px",
|
|
48413
|
+
backgroundColor: theme2.colors.backgroundLight,
|
|
48414
|
+
borderRadius: "6px",
|
|
48415
|
+
cursor: onFileClick ? "pointer" : "default",
|
|
48416
|
+
transition: "all 0.2s ease",
|
|
48417
|
+
border: `1px solid ${theme2.colors.border}`,
|
|
48418
|
+
opacity: isFadingOut ? 0 : 1,
|
|
48419
|
+
transform: isFadingOut ? "translateX(-8px)" : "translateX(0)",
|
|
48420
|
+
pointerEvents: isProcessing ? "none" : "auto"
|
|
48421
|
+
},
|
|
48422
|
+
onMouseOver: (e) => {
|
|
48423
|
+
if (onFileClick) {
|
|
48424
|
+
e.currentTarget.style.backgroundColor = theme2.colors.backgroundHover || theme2.colors.background;
|
|
48509
48425
|
}
|
|
48510
|
-
|
|
48511
|
-
|
|
48512
|
-
|
|
48513
|
-
|
|
48514
|
-
|
|
48515
|
-
|
|
48516
|
-
|
|
48517
|
-
|
|
48426
|
+
},
|
|
48427
|
+
onMouseOut: (e) => {
|
|
48428
|
+
e.currentTarget.style.backgroundColor = theme2.colors.backgroundLight;
|
|
48429
|
+
},
|
|
48430
|
+
children: [
|
|
48431
|
+
showIcons && /* @__PURE__ */ jsx(
|
|
48432
|
+
IconComponent,
|
|
48433
|
+
{
|
|
48434
|
+
size: 16,
|
|
48435
|
+
style: {
|
|
48436
|
+
color: file.iconColor || file.badgeColor || file.color || getExtensionColor(file.path) || theme2.colors.textSecondary,
|
|
48437
|
+
flexShrink: 0
|
|
48438
|
+
}
|
|
48439
|
+
}
|
|
48440
|
+
),
|
|
48441
|
+
!showIcons && file.badge && /* @__PURE__ */ jsx(
|
|
48442
|
+
"span",
|
|
48443
|
+
{
|
|
48444
|
+
style: {
|
|
48445
|
+
fontFamily: theme2.fonts.monospace || theme2.fonts.body,
|
|
48446
|
+
fontSize: "14px",
|
|
48447
|
+
fontWeight: 600,
|
|
48448
|
+
color: file.badgeColor || theme2.colors.text,
|
|
48449
|
+
backgroundColor: file.badgeColor ? `${file.badgeColor}20` : theme2.colors.background,
|
|
48450
|
+
padding: "6px 10px",
|
|
48451
|
+
borderRadius: "5px",
|
|
48452
|
+
flexShrink: 0,
|
|
48453
|
+
textTransform: "uppercase"
|
|
48454
|
+
},
|
|
48455
|
+
children: file.badge
|
|
48456
|
+
}
|
|
48457
|
+
),
|
|
48458
|
+
/* @__PURE__ */ jsxs(
|
|
48459
|
+
"div",
|
|
48460
|
+
{
|
|
48461
|
+
style: {
|
|
48462
|
+
display: "flex",
|
|
48463
|
+
flexDirection: "column",
|
|
48464
|
+
gap: "2px",
|
|
48465
|
+
minWidth: 0,
|
|
48466
|
+
flex: 1
|
|
48467
|
+
},
|
|
48468
|
+
children: [
|
|
48469
|
+
/* @__PURE__ */ jsx(
|
|
48470
|
+
"span",
|
|
48471
|
+
{
|
|
48472
|
+
style: {
|
|
48473
|
+
fontFamily: theme2.fonts.body,
|
|
48474
|
+
fontSize: theme2.fontSizes[1],
|
|
48475
|
+
fontWeight: 500,
|
|
48476
|
+
color: file.color || getExtensionColor(file.path) || theme2.colors.text,
|
|
48477
|
+
overflow: "hidden",
|
|
48478
|
+
textOverflow: "ellipsis",
|
|
48479
|
+
whiteSpace: "nowrap"
|
|
48480
|
+
},
|
|
48481
|
+
children: fileName
|
|
48482
|
+
}
|
|
48483
|
+
),
|
|
48484
|
+
directory && /* @__PURE__ */ jsx(
|
|
48485
|
+
"span",
|
|
48486
|
+
{
|
|
48487
|
+
style: {
|
|
48488
|
+
fontFamily: theme2.fonts.body,
|
|
48489
|
+
fontSize: theme2.fontSizes[0],
|
|
48490
|
+
color: theme2.colors.textSecondary,
|
|
48491
|
+
overflow: "hidden",
|
|
48492
|
+
textOverflow: "ellipsis",
|
|
48493
|
+
whiteSpace: "nowrap"
|
|
48494
|
+
},
|
|
48495
|
+
children: directory
|
|
48496
|
+
}
|
|
48497
|
+
)
|
|
48498
|
+
]
|
|
48499
|
+
}
|
|
48500
|
+
),
|
|
48501
|
+
showIcons && file.badge && /* @__PURE__ */ jsx(
|
|
48502
|
+
"span",
|
|
48503
|
+
{
|
|
48504
|
+
style: {
|
|
48505
|
+
fontFamily: theme2.fonts.monospace || theme2.fonts.body,
|
|
48506
|
+
fontSize: "10px",
|
|
48507
|
+
fontWeight: 600,
|
|
48508
|
+
color: file.badgeColor || theme2.colors.text,
|
|
48509
|
+
backgroundColor: file.badgeColor ? `${file.badgeColor}20` : theme2.colors.background,
|
|
48510
|
+
padding: "2px 6px",
|
|
48511
|
+
borderRadius: "3px",
|
|
48512
|
+
flexShrink: 0,
|
|
48513
|
+
textTransform: "uppercase"
|
|
48514
|
+
},
|
|
48515
|
+
children: file.badge
|
|
48516
|
+
}
|
|
48517
|
+
),
|
|
48518
|
+
onStageFile && fileStatusMap && fileStatusMap.get(file.path) !== "staged" && /* @__PURE__ */ jsxs(
|
|
48519
|
+
"button",
|
|
48520
|
+
{
|
|
48521
|
+
onClick: (e) => {
|
|
48522
|
+
e.stopPropagation();
|
|
48523
|
+
handleStageWithAnimation(file.path);
|
|
48524
|
+
},
|
|
48525
|
+
onMouseEnter: () => !isProcessing && setHoveredStageButton(file.path),
|
|
48526
|
+
onMouseLeave: () => setHoveredStageButton(null),
|
|
48527
|
+
disabled: isProcessing,
|
|
48528
|
+
style: {
|
|
48529
|
+
display: "flex",
|
|
48530
|
+
alignItems: "center",
|
|
48531
|
+
gap: "4px",
|
|
48532
|
+
fontFamily: theme2.fonts.body,
|
|
48533
|
+
fontSize: theme2.fontSizes[0],
|
|
48534
|
+
fontWeight: 500,
|
|
48535
|
+
color: isProcessing ? theme2.colors.textSecondary : hoveredStageButton === file.path ? "#22c55e" : theme2.colors.textSecondary,
|
|
48536
|
+
backgroundColor: hoveredStageButton === file.path && !isProcessing ? "#22c55e20" : theme2.colors.background,
|
|
48537
|
+
padding: "4px 8px",
|
|
48538
|
+
borderRadius: "4px",
|
|
48539
|
+
border: `1px solid ${hoveredStageButton === file.path && !isProcessing ? "#22c55e" : theme2.colors.border}`,
|
|
48540
|
+
cursor: isProcessing ? "default" : "pointer",
|
|
48541
|
+
flexShrink: 0,
|
|
48542
|
+
transition: "all 0.15s ease",
|
|
48543
|
+
opacity: isProcessing ? 0.6 : 1
|
|
48544
|
+
},
|
|
48545
|
+
children: [
|
|
48546
|
+
isProcessing ? /* @__PURE__ */ jsx(LoaderCircle, { size: 12, style: { animation: "spin 1s linear infinite" } }) : /* @__PURE__ */ jsx(Plus, { size: 12 }),
|
|
48547
|
+
"Stage"
|
|
48548
|
+
]
|
|
48549
|
+
}
|
|
48550
|
+
),
|
|
48551
|
+
onUnstageFile && fileStatusMap && fileStatusMap.get(file.path) === "staged" && /* @__PURE__ */ jsxs(
|
|
48552
|
+
"button",
|
|
48553
|
+
{
|
|
48554
|
+
onClick: (e) => {
|
|
48555
|
+
e.stopPropagation();
|
|
48556
|
+
handleUnstageWithAnimation(file.path);
|
|
48557
|
+
},
|
|
48558
|
+
onMouseEnter: () => !isProcessing && setHoveredUnstageButton(file.path),
|
|
48559
|
+
onMouseLeave: () => setHoveredUnstageButton(null),
|
|
48560
|
+
disabled: isProcessing,
|
|
48561
|
+
style: {
|
|
48562
|
+
display: "flex",
|
|
48563
|
+
alignItems: "center",
|
|
48564
|
+
gap: "4px",
|
|
48565
|
+
fontFamily: theme2.fonts.body,
|
|
48566
|
+
fontSize: theme2.fontSizes[0],
|
|
48567
|
+
fontWeight: 500,
|
|
48568
|
+
color: isProcessing ? theme2.colors.textSecondary : hoveredUnstageButton === file.path ? "#f59e0b" : theme2.colors.textSecondary,
|
|
48569
|
+
backgroundColor: hoveredUnstageButton === file.path && !isProcessing ? "#f59e0b20" : theme2.colors.background,
|
|
48570
|
+
padding: "4px 8px",
|
|
48571
|
+
borderRadius: "4px",
|
|
48572
|
+
border: `1px solid ${hoveredUnstageButton === file.path && !isProcessing ? "#f59e0b" : theme2.colors.border}`,
|
|
48573
|
+
cursor: isProcessing ? "default" : "pointer",
|
|
48574
|
+
flexShrink: 0,
|
|
48575
|
+
transition: "all 0.15s ease",
|
|
48576
|
+
opacity: isProcessing ? 0.6 : 1
|
|
48577
|
+
},
|
|
48578
|
+
children: [
|
|
48579
|
+
isProcessing ? /* @__PURE__ */ jsx(LoaderCircle, { size: 12, style: { animation: "spin 1s linear infinite" } }) : /* @__PURE__ */ jsx(Minus, { size: 12 }),
|
|
48580
|
+
"Unstage"
|
|
48581
|
+
]
|
|
48582
|
+
}
|
|
48583
|
+
),
|
|
48584
|
+
copiedPath === file.path && /* @__PURE__ */ jsx(
|
|
48585
|
+
"span",
|
|
48586
|
+
{
|
|
48587
|
+
style: {
|
|
48588
|
+
fontFamily: theme2.fonts.body,
|
|
48589
|
+
fontSize: theme2.fontSizes[0],
|
|
48590
|
+
fontWeight: 600,
|
|
48591
|
+
color: "#22c55e",
|
|
48592
|
+
backgroundColor: "#22c55e20",
|
|
48593
|
+
padding: "4px 8px",
|
|
48594
|
+
borderRadius: "4px",
|
|
48595
|
+
flexShrink: 0
|
|
48596
|
+
},
|
|
48597
|
+
children: "Copied!"
|
|
48598
|
+
}
|
|
48599
|
+
)
|
|
48600
|
+
]
|
|
48601
|
+
},
|
|
48602
|
+
file.path
|
|
48603
|
+
);
|
|
48604
|
+
})
|
|
48605
|
+
}
|
|
48606
|
+
)
|
|
48607
|
+
] });
|
|
48518
48608
|
};
|
|
48519
48609
|
const GIT_STATUS_COLORS$1 = {
|
|
48520
48610
|
staged: "#22c55e",
|
|
@@ -48580,6 +48670,10 @@ const GitChangesCardList = ({
|
|
|
48580
48670
|
var _a;
|
|
48581
48671
|
(_a = actions == null ? void 0 : actions.stageFile) == null ? void 0 : _a.call(actions, filePath);
|
|
48582
48672
|
}, [actions]);
|
|
48673
|
+
const handleUnstageFile = useCallback((filePath) => {
|
|
48674
|
+
var _a;
|
|
48675
|
+
(_a = actions == null ? void 0 : actions.unstageFile) == null ? void 0 : _a.call(actions, filePath);
|
|
48676
|
+
}, [actions]);
|
|
48583
48677
|
const totalChanges = gitStatus.stagedFiles.length + gitStatus.modifiedFiles.length + gitStatus.untrackedFiles.length + gitStatus.deletedFiles.length;
|
|
48584
48678
|
if (totalChanges === 0) {
|
|
48585
48679
|
return /* @__PURE__ */ jsx(
|
|
@@ -48688,6 +48782,7 @@ const GitChangesCardList = ({
|
|
|
48688
48782
|
onFileClick: handleFileClick,
|
|
48689
48783
|
onFileHover,
|
|
48690
48784
|
onStageFile: viewMode === "unstaged" ? handleStageFile : void 0,
|
|
48785
|
+
onUnstageFile: viewMode === "staged" ? handleUnstageFile : void 0,
|
|
48691
48786
|
fileStatusMap,
|
|
48692
48787
|
horizontalPadding,
|
|
48693
48788
|
emptyMessage: viewMode === "unstaged" ? "No unstaged changes" : "No staged changes",
|
|
@@ -51614,7 +51709,7 @@ const TourPlayer = ({
|
|
|
51614
51709
|
playAudio(audioUrl);
|
|
51615
51710
|
}, 100);
|
|
51616
51711
|
return () => clearTimeout(timer2);
|
|
51617
|
-
}, [currentStep == null ? void 0 : currentStep.id, isPlaying, audioUrls, isAutoPlaying
|
|
51712
|
+
}, [currentStep == null ? void 0 : currentStep.id, isPlaying, audioUrls, isAutoPlaying]);
|
|
51618
51713
|
const formatTime = (seconds) => {
|
|
51619
51714
|
const mins = Math.floor(seconds / 60);
|
|
51620
51715
|
const secs = Math.floor(seconds % 60);
|