cursedbelt 5.46.2 → 5.47.0
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/react/charts/IntervalTimeline.d.ts.map +1 -1
- package/dist/react/charts/IntervalTimeline.js +2 -2
- package/dist/react/charts/IntervalTimeline.js.map +1 -1
- package/dist/react/chat/DateMarker.d.ts +4 -0
- package/dist/react/chat/DateMarker.d.ts.map +1 -1
- package/dist/react/chat/DateMarker.js +15 -2
- package/dist/react/chat/DateMarker.js.map +1 -1
- package/dist/react/components/Button.d.ts.map +1 -1
- package/dist/react/components/Button.js +5 -0
- package/dist/react/components/Button.js.map +1 -1
- package/dist/react/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/react/components/DataTable/DataTable.js +1 -1
- package/dist/react/components/DataTable/DataTable.js.map +1 -1
- package/dist/react/components/DataTable/SortHeader.d.ts +4 -1
- package/dist/react/components/DataTable/SortHeader.d.ts.map +1 -1
- package/dist/react/components/DataTable/SortHeader.js +22 -5
- package/dist/react/components/DataTable/SortHeader.js.map +1 -1
- package/dist/react/components/DataTable/types.d.ts +10 -0
- package/dist/react/components/DataTable/types.d.ts.map +1 -1
- package/dist/react/components/DataTable/types.js.map +1 -1
- package/dist/react/components/DropdownMenu.js +10 -4
- package/dist/react/components/DropdownMenu.js.map +1 -1
- package/dist/react/components/Field.d.ts +9 -1
- package/dist/react/components/Field.d.ts.map +1 -1
- package/dist/react/components/Field.js +3 -3
- package/dist/react/components/Field.js.map +1 -1
- package/dist/react/components/SecretInput.d.ts +4 -2
- package/dist/react/components/SecretInput.d.ts.map +1 -1
- package/dist/react/components/SecretInput.js +2 -2
- package/dist/react/components/SecretInput.js.map +1 -1
- package/dist/react/components/auth/AuthCard.d.ts.map +1 -1
- package/dist/react/components/auth/AuthCard.js +5 -1
- package/dist/react/components/auth/AuthCard.js.map +1 -1
- package/dist/react/components/auth/PasswordSetFields.d.ts.map +1 -1
- package/dist/react/components/auth/PasswordSetFields.js +2 -2
- package/dist/react/components/auth/PasswordSetFields.js.map +1 -1
- package/dist/react/components/auth/PasswordStrengthMeter.d.ts.map +1 -1
- package/dist/react/components/auth/PasswordStrengthMeter.js +3 -1
- package/dist/react/components/auth/PasswordStrengthMeter.js.map +1 -1
- package/dist/react/components/auth/RegisterForm.js +1 -1
- package/dist/react/components/auth/RegisterForm.js.map +1 -1
- package/dist/react/components/auth/SignupForm.d.ts.map +1 -1
- package/dist/react/components/auth/SignupForm.js +4 -2
- package/dist/react/components/auth/SignupForm.js.map +1 -1
- package/dist/react/components/auth/TotpEntry.d.ts.map +1 -1
- package/dist/react/components/auth/TotpEntry.js +18 -1
- package/dist/react/components/auth/TotpEntry.js.map +1 -1
- package/dist/react/components/auth/fields.d.ts +3 -1
- package/dist/react/components/auth/fields.d.ts.map +1 -1
- package/dist/react/components/auth/fields.js +6 -2
- package/dist/react/components/auth/fields.js.map +1 -1
- package/dist/react/components/calendar/DayAgenda.d.ts.map +1 -1
- package/dist/react/components/calendar/DayAgenda.js +4 -2
- package/dist/react/components/calendar/DayAgenda.js.map +1 -1
- package/dist/react/components/calendar/EventChip.d.ts +5 -1
- package/dist/react/components/calendar/EventChip.d.ts.map +1 -1
- package/dist/react/components/calendar/EventChip.js +10 -3
- package/dist/react/components/calendar/EventChip.js.map +1 -1
- package/dist/react/components/calendar/MonthGrid.js +1 -1
- package/dist/react/components/calendar/MonthGrid.js.map +1 -1
- package/dist/react/components/calendar/WeekView.d.ts.map +1 -1
- package/dist/react/components/calendar/WeekView.js +2 -2
- package/dist/react/components/calendar/WeekView.js.map +1 -1
- package/dist/react/components/calendar/colorUtils.d.ts.map +1 -1
- package/dist/react/components/calendar/colorUtils.js +13 -11
- package/dist/react/components/calendar/colorUtils.js.map +1 -1
- package/dist/react/components/fieldErrorText.d.ts +12 -0
- package/dist/react/components/fieldErrorText.d.ts.map +1 -0
- package/dist/react/components/fieldErrorText.js +12 -0
- package/dist/react/components/fieldErrorText.js.map +1 -0
- package/dist/react/deep-link/resume.d.ts.map +1 -1
- package/dist/react/deep-link/resume.js +9 -2
- package/dist/react/deep-link/resume.js.map +1 -1
- package/dist/react/file-tree/FileTree.d.ts +3 -0
- package/dist/react/file-tree/FileTree.d.ts.map +1 -1
- package/dist/react/file-tree/FileTree.js +12 -1
- package/dist/react/file-tree/FileTree.js.map +1 -1
- package/dist/react/file-tree/FolderViewMenus.d.ts +3 -1
- package/dist/react/file-tree/FolderViewMenus.d.ts.map +1 -1
- package/dist/react/file-tree/FolderViewMenus.js +51 -15
- package/dist/react/file-tree/FolderViewMenus.js.map +1 -1
- package/dist/react/file-tree/folderView.d.ts +25 -4
- package/dist/react/file-tree/folderView.d.ts.map +1 -1
- package/dist/react/file-tree/folderView.js +49 -9
- package/dist/react/file-tree/folderView.js.map +1 -1
- package/dist/react/file-tree/index.d.ts +2 -1
- package/dist/react/file-tree/index.d.ts.map +1 -1
- package/dist/react/file-tree/index.js +2 -1
- package/dist/react/file-tree/index.js.map +1 -1
- package/dist/react/file-tree/useFolderView.d.ts +34 -4
- package/dist/react/file-tree/useFolderView.d.ts.map +1 -1
- package/dist/react/file-tree/useFolderView.js +43 -11
- package/dist/react/file-tree/useFolderView.js.map +1 -1
- package/dist/styles-areas/analytics.css +26 -25
- package/dist/styles-areas/calendar.css +4 -4
- package/dist/styles-areas/data-table.css +26 -25
- package/dist/styles-utilities.css +24 -9
- package/package.json +5 -1
- package/scripts/demoCoverage.spec.ts +33 -0
- package/scripts/demoCoverage.ts +124 -0
- package/src/react/charts/IntervalTimeline.tsx +6 -4
- package/src/react/chat/DateMarker.tsx +22 -6
- package/src/react/chat/MessageThread.spec.tsx +25 -1
- package/src/react/components/Button.spec.tsx +11 -0
- package/src/react/components/Button.tsx +5 -0
- package/src/react/components/DataTable/DataTable.spec.tsx +43 -0
- package/src/react/components/DataTable/DataTable.tsx +1 -0
- package/src/react/components/DataTable/SortHeader.tsx +45 -5
- package/src/react/components/DataTable/types.ts +10 -0
- package/src/react/components/DropdownMenu.spec.tsx +26 -0
- package/src/react/components/DropdownMenu.tsx +10 -3
- package/src/react/components/Field.spec.tsx +24 -0
- package/src/react/components/Field.tsx +15 -5
- package/src/react/components/SecretInput.tsx +5 -1
- package/src/react/components/auth/AuthCard.spec.tsx +8 -0
- package/src/react/components/auth/AuthCard.tsx +4 -1
- package/src/react/components/auth/PasswordSetFields.tsx +7 -11
- package/src/react/components/auth/PasswordStrengthMeter.tsx +5 -3
- package/src/react/components/auth/RegisterForm.tsx +6 -6
- package/src/react/components/auth/SignupForm.spec.tsx +17 -0
- package/src/react/components/auth/SignupForm.tsx +11 -10
- package/src/react/components/auth/TotpEntry.spec.tsx +27 -0
- package/src/react/components/auth/TotpEntry.tsx +18 -1
- package/src/react/components/auth/fields.tsx +8 -1
- package/src/react/components/calendar/DayAgenda.spec.tsx +9 -0
- package/src/react/components/calendar/DayAgenda.tsx +5 -2
- package/src/react/components/calendar/EventChip.spec.tsx +12 -8
- package/src/react/components/calendar/EventChip.tsx +11 -6
- package/src/react/components/calendar/MonthGrid.tsx +1 -1
- package/src/react/components/calendar/WeekView.tsx +5 -3
- package/src/react/components/calendar/colorUtils.ts +13 -11
- package/src/react/components/fieldErrorText.tsx +17 -0
- package/src/react/deep-link/resume.spec.tsx +16 -0
- package/src/react/deep-link/resume.ts +9 -2
- package/src/react/file-tree/FileTree.tsx +14 -1
- package/src/react/file-tree/FolderViewMenus.tsx +57 -17
- package/src/react/file-tree/folderView.spec.ts +63 -1
- package/src/react/file-tree/folderView.ts +63 -12
- package/src/react/file-tree/folderViewTree.spec.tsx +111 -16
- package/src/react/file-tree/index.ts +15 -1
- package/src/react/file-tree/useFolderView.ts +73 -12
- package/src/styles-areas/analytics.css +26 -25
- package/src/styles-areas/calendar.css +4 -4
- package/src/styles-areas/data-table.css +26 -25
- package/src/styles-utilities.css +24 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folderView.js","sourceRoot":"","sources":["../../../src/react/file-tree/folderView.ts"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G,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AAClD,CAAC"}
|
|
@@ -2,5 +2,6 @@ export { type AccessMarkCopy, accessMarkCopy, descendantIdsOf, type DropOffer, t
|
|
|
2
2
|
export { FileTree, type FileTreeProps } from './FileTree.js';
|
|
3
3
|
export { draggedIdsOf, nodesByIds, planWrap, refuseCopy, refuseWrap, type ResolveMultiDropOptions, resolveMultiDrop, selectionRange, toggleSelected, topmostSelected, type WrapPlan, wrapFolderName, } from './fileTreeSelection.js';
|
|
4
4
|
export { type FileTreeMenuItem, folderTargets, folderViewMenuItems, withFolderItems, } from './FolderViewMenus.js';
|
|
5
|
-
export { type
|
|
5
|
+
export { type FolderMarks, type FolderViewLocal, type HiddenScope, parseFolderMarks, remapFolderMarks, serializeFolderMarks, } from './folderView.js';
|
|
6
|
+
export { type FolderMarksStore, type FolderView, type HideScope, type UseFolderViewOptions, useFolderView, } from './useFolderView.js';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/file-tree/index.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,KAAK,cAAc,EACnB,cAAc,EACd,eAAe,EACf,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,UAAU,EACV,WAAW,EACX,YAAY,GACb,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAQ7D,OAAO,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,KAAK,uBAAuB,EAC5B,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,KAAK,QAAQ,EACb,cAAc,GACf,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EACL,KAAK,gBAAgB,EACrB,aAAa,EACb,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/file-tree/index.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,KAAK,cAAc,EACnB,cAAc,EACd,eAAe,EACf,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,UAAU,EACV,WAAW,EACX,YAAY,GACb,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAQ7D,OAAO,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,KAAK,uBAAuB,EAC5B,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,KAAK,QAAQ,EACb,cAAc,GACf,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EACL,KAAK,gBAAgB,EACrB,aAAa,EACb,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,aAAa,GACd,MAAM,oBAAoB,CAAC"}
|
|
@@ -30,5 +30,6 @@ export { draggedIdsOf, nodesByIds, planWrap, refuseCopy, refuseWrap, resolveMult
|
|
|
30
30
|
* does; `FileTreeMenuItem` is `DropdownMenuItem`'s shape, for `rowMenu`/`backgroundMenu`.
|
|
31
31
|
*/
|
|
32
32
|
export { folderTargets, folderViewMenuItems, withFolderItems, } from './FolderViewMenus.js';
|
|
33
|
-
export {
|
|
33
|
+
export { parseFolderMarks, remapFolderMarks, serializeFolderMarks, } from './folderView.js';
|
|
34
|
+
export { useFolderView, } from './useFolderView.js';
|
|
34
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/file-tree/index.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,uFAAuF;AACvF,0FAA0F;AAC1F,2CAA2C;AAC3C,EAAE;AACF,8EAA8E;AAC9E,EAAE;AACF,oFAAoF;AACpF,0FAA0F;AAC1F,yFAAyF;AACzF,0FAA0F;AAC1F,0BAA0B;AAC1B,EAAE;AACF,yEAAyE;AACzE,OAAO,EAEL,cAAc,EACd,eAAe,EAOf,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,UAAU,EACV,WAAW,EACX,YAAY,GACb,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAC7D;;;;;;GAMG;AACH,OAAO,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EAEV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EAEf,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC;;;;;;GAMG;AACH,OAAO,EAEL,aAAa,EACb,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/file-tree/index.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,uFAAuF;AACvF,0FAA0F;AAC1F,2CAA2C;AAC3C,EAAE;AACF,8EAA8E;AAC9E,EAAE;AACF,oFAAoF;AACpF,0FAA0F;AAC1F,yFAAyF;AACzF,0FAA0F;AAC1F,0BAA0B;AAC1B,EAAE;AACF,yEAAyE;AACzE,OAAO,EAEL,cAAc,EACd,eAAe,EAOf,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,UAAU,EACV,WAAW,EACX,YAAY,GACb,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAC7D;;;;;;GAMG;AACH,OAAO,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EAEV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EAEf,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC;;;;;;GAMG;AACH,OAAO,EAEL,aAAa,EACb,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAIL,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAKL,aAAa,GACd,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FolderMarks, type FolderViewLocal, type TagCount } from './folderView.js';
|
|
1
|
+
import { type FolderMarks, type FolderViewLocal, type HiddenScope, type TagCount } from './folderView.js';
|
|
2
2
|
/** A point in viewport coordinates — what a context menu anchors to. */
|
|
3
3
|
export interface FolderViewPoint {
|
|
4
4
|
x: number;
|
|
@@ -13,13 +13,25 @@ export type FolderViewPanel = {
|
|
|
13
13
|
at: FolderViewPoint | null;
|
|
14
14
|
ids: readonly string[];
|
|
15
15
|
};
|
|
16
|
+
/** Which list a hide writes to, or an unhide takes from. */
|
|
17
|
+
export type HideScope = 'everywhere' | 'device';
|
|
16
18
|
export interface FolderView {
|
|
17
19
|
marks: FolderMarks;
|
|
18
20
|
local: FolderViewLocal;
|
|
19
21
|
/** Every tag in use, most-used first. */
|
|
20
22
|
tags: readonly TagCount[];
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
/** Whether "Hide on this device" is offered — false when the device half is not kept. */
|
|
24
|
+
deviceHiding: boolean;
|
|
25
|
+
/** Which of the two lists hide this folder, if any. */
|
|
26
|
+
hiddenIn: (id: string) => HiddenScope | null;
|
|
27
|
+
/** Hide these folders — everywhere unless `scope: 'device'`. */
|
|
28
|
+
hide: (ids: readonly string[], options?: {
|
|
29
|
+
scope?: HideScope;
|
|
30
|
+
}) => void;
|
|
31
|
+
/** Unhide these folders from the one list named, or from both when none is. */
|
|
32
|
+
unhide: (ids: readonly string[], options?: {
|
|
33
|
+
scope?: HideScope;
|
|
34
|
+
}) => void;
|
|
23
35
|
/** Add or take away one tag on each folder named. */
|
|
24
36
|
toggleTag: (ids: readonly string[], tag: string) => void;
|
|
25
37
|
/** Replace one folder's tags. */
|
|
@@ -51,6 +63,24 @@ export interface UseFolderViewOptions {
|
|
|
51
63
|
* origin must not hide each other's folders.
|
|
52
64
|
*/
|
|
53
65
|
key: string;
|
|
66
|
+
/**
|
|
67
|
+
* The app keeps the marks itself — its own synced settings, or a sealed record. `marks` is
|
|
68
|
+
* what it holds now (`null` for none) and `write` is called with the next value to keep.
|
|
69
|
+
* Given a store, the marks never touch `localStorage` or the preference bus.
|
|
70
|
+
*/
|
|
71
|
+
store?: FolderMarksStore;
|
|
72
|
+
/**
|
|
73
|
+
* Where this device's view (show hidden, the tag filter, the device-only hidden list) lives:
|
|
74
|
+
* `'local'` (the default) is `localStorage` under `${key}:device`, never announced;
|
|
75
|
+
* `'memory'` is this page only, for an app whose folder ids may not be written to disk.
|
|
76
|
+
*/
|
|
77
|
+
device?: 'local' | 'memory';
|
|
78
|
+
}
|
|
79
|
+
/** The marks, kept by the app — see {@link UseFolderViewOptions.store}. */
|
|
80
|
+
export interface FolderMarksStore {
|
|
81
|
+
/** The stored form (`serializeFolderMarks`), or `null` for no marks. */
|
|
82
|
+
marks: string | null;
|
|
83
|
+
write: (next: string | null) => void;
|
|
54
84
|
}
|
|
55
|
-
export declare function useFolderView({ key }: UseFolderViewOptions): FolderView;
|
|
85
|
+
export declare function useFolderView({ key, store, device }: UseFolderViewOptions): FolderView;
|
|
56
86
|
//# sourceMappingURL=useFolderView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFolderView.d.ts","sourceRoot":"","sources":["../../../src/react/file-tree/useFolderView.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFolderView.d.ts","sourceRoot":"","sources":["../../../src/react/file-tree/useFolderView.ts"],"names":[],"mappings":"AAiCA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,WAAW,EAShB,KAAK,QAAQ,EAGd,MAAM,iBAAiB,CAAC;AAEzB,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,iEAAiE;AACjE,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,eAAe,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,eAAe,GAAG,IAAI,CAAC;IAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAEzE,4DAA4D;AAC5D,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEhD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,eAAe,CAAC;IACvB,yCAAyC;IACzC,IAAI,EAAE,SAAS,QAAQ,EAAE,CAAC;IAC1B,yFAAyF;IACzF,YAAY,EAAE,OAAO,CAAC;IACtB,uDAAuD;IACvD,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,WAAW,GAAG,IAAI,CAAC;IAE7C,gEAAgE;IAChE,I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AAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC7B;AAED,2EAA2E;AAC3E,MAAM,WAAW,gBAAgB;IAC/B,wEAAwE;IACxE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACtC;AAED,wBAAgB,aAAa,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,MAAgB,EAAE,EAAE,oBAAoB,GAAG,UAAU,CA6FhG"}
|
|
@@ -17,6 +17,13 @@
|
|
|
17
17
|
* announced — *"Hiding or showing by tag can be stored per machine, so viewing the 'home'
|
|
18
18
|
* tag at home doesn't change my work computer."*
|
|
19
19
|
*
|
|
20
|
+
* An app that already keeps its own settings record hands the marks over instead — `store` — and
|
|
21
|
+
* then nothing goes to `localStorage` or the bus: desk carries them in its global settings blob
|
|
22
|
+
* beside the rest of its synced state, and vault seals them inside the vault, because its folder
|
|
23
|
+
* ids are folder NAMES and must never reach a disk in plaintext. `device: 'memory'` keeps the
|
|
24
|
+
* device half in page memory for the same reason; with it, "Hide on this device" is not offered,
|
|
25
|
+
* since a device list forgotten on reload would be a hide that silently undoes itself.
|
|
26
|
+
*
|
|
20
27
|
* And because the tree's header belongs to the APP (collections' `FilterRail` section, desk's
|
|
21
28
|
* explorer bar), the view menu has to be openable from outside the tree: the hook holds which
|
|
22
29
|
* menu is open, and the tree draws it. `onContextMenu` is the one handler an app puts on its
|
|
@@ -24,10 +31,16 @@
|
|
|
24
31
|
*/
|
|
25
32
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
26
33
|
import { useRememberedPreference } from '../media-gallery/rememberedPreference.js';
|
|
27
|
-
import { normalizeTag, parseFolderMarks, parseFolderViewLocal, serializeFolderMarks, setFolderTags, setHidden, setTagFilter, tagCounts, toggleFolderTag, } from './folderView.js';
|
|
28
|
-
export function useFolderView({ key }) {
|
|
29
|
-
|
|
30
|
-
const [
|
|
34
|
+
import { hiddenScope, normalizeTag, parseFolderMarks, parseFolderViewLocal, serializeFolderMarks, setFolderTags, setHidden, setTagFilter, tagCounts, toggleFolderTag, } from './folderView.js';
|
|
35
|
+
export function useFolderView({ key, store, device = 'local' }) {
|
|
36
|
+
// Hooks run unconditionally; an undefined key is the remembered preference that keeps nothing.
|
|
37
|
+
const [rememberedMarks, rememberMarks] = useRememberedPreference(store ? undefined : key);
|
|
38
|
+
const [rememberedLocal, rememberLocal] = useRememberedPreference(device === 'local' ? `${key}:device` : undefined, { announce: false });
|
|
39
|
+
const [memoryLocal, setMemoryLocal] = useState(null);
|
|
40
|
+
const rawMarks = store ? store.marks : rememberedMarks;
|
|
41
|
+
const writeMarks = store ? store.write : rememberMarks;
|
|
42
|
+
const rawLocal = device === 'local' ? rememberedLocal : memoryLocal;
|
|
43
|
+
const writeLocal = device === 'local' ? rememberLocal : setMemoryLocal;
|
|
31
44
|
const marks = useMemo(() => parseFolderMarks(rawMarks), [rawMarks]);
|
|
32
45
|
const local = useMemo(() => parseFolderViewLocal(rawLocal), [rawLocal]);
|
|
33
46
|
const tags = useMemo(() => tagCounts(marks), [marks]);
|
|
@@ -45,10 +58,17 @@ export function useFolderView({ key }) {
|
|
|
45
58
|
writeMarks(serializeFolderMarks(next));
|
|
46
59
|
}
|
|
47
60
|
}, [writeMarks]);
|
|
61
|
+
// The same rule for this device's view: an Undo of "Hide on this device" must see the hide.
|
|
62
|
+
const latestLocal = useRef(local);
|
|
63
|
+
latestLocal.current = local;
|
|
48
64
|
const saveLocal = useCallback((next) => {
|
|
49
|
-
|
|
65
|
+
if (next === latestLocal.current)
|
|
66
|
+
return;
|
|
67
|
+
latestLocal.current = next;
|
|
68
|
+
const empty = !next.showHidden && next.only.length === 0 && next.hide.length === 0 && next.hidden.length === 0;
|
|
50
69
|
writeLocal(empty ? null : JSON.stringify(next));
|
|
51
70
|
}, [writeLocal]);
|
|
71
|
+
const deviceHiding = device === 'local';
|
|
52
72
|
const onContextMenu = useCallback((event) => {
|
|
53
73
|
event.preventDefault();
|
|
54
74
|
setPanel({ kind: 'view', at: { x: event.clientX, y: event.clientY } });
|
|
@@ -57,8 +77,20 @@ export function useFolderView({ key }) {
|
|
|
57
77
|
marks,
|
|
58
78
|
local,
|
|
59
79
|
tags,
|
|
60
|
-
|
|
61
|
-
|
|
80
|
+
deviceHiding,
|
|
81
|
+
hiddenIn: (id) => hiddenScope(marks, local, id),
|
|
82
|
+
hide: (ids, options) => {
|
|
83
|
+
if (options?.scope === 'device' && deviceHiding)
|
|
84
|
+
saveLocal(setHidden(latestLocal.current, ids, true));
|
|
85
|
+
else
|
|
86
|
+
saveMarks(setHidden(latest.current, ids, true));
|
|
87
|
+
},
|
|
88
|
+
unhide: (ids, options) => {
|
|
89
|
+
if (options?.scope !== 'device')
|
|
90
|
+
saveMarks(setHidden(latest.current, ids, false));
|
|
91
|
+
if (options?.scope !== 'everywhere')
|
|
92
|
+
saveLocal(setHidden(latestLocal.current, ids, false));
|
|
93
|
+
},
|
|
62
94
|
toggleTag: (ids, raw) => {
|
|
63
95
|
const tag = normalizeTag(raw);
|
|
64
96
|
if (!tag || ids.length === 0)
|
|
@@ -75,14 +107,14 @@ export function useFolderView({ key }) {
|
|
|
75
107
|
saveMarks(next);
|
|
76
108
|
},
|
|
77
109
|
setTags: (id, list) => saveMarks(setFolderTags(latest.current, id, list)),
|
|
78
|
-
setShowHidden: (show) => saveLocal({ ...
|
|
79
|
-
filterTag: (tag, mode) => saveLocal(setTagFilter(
|
|
80
|
-
clearTagFilter: () => saveLocal({ ...
|
|
110
|
+
setShowHidden: (show) => saveLocal({ ...latestLocal.current, showHidden: show }),
|
|
111
|
+
filterTag: (tag, mode) => saveLocal(setTagFilter(latestLocal.current, tag, mode)),
|
|
112
|
+
clearTagFilter: () => saveLocal({ ...latestLocal.current, only: [], hide: [] }),
|
|
81
113
|
panel,
|
|
82
114
|
openViewMenu: (at) => setPanel({ kind: 'view', at }),
|
|
83
115
|
openTagEditor: (ids, at) => setPanel({ kind: 'tags', at: at ?? null, ids }),
|
|
84
116
|
closePanel: () => setPanel(null),
|
|
85
117
|
onContextMenu,
|
|
86
|
-
}), [marks, local, tags, panel, saveMarks, saveLocal, onContextMenu]);
|
|
118
|
+
}), [marks, local, tags, deviceHiding, panel, saveMarks, saveLocal, onContextMenu]);
|
|
87
119
|
}
|
|
88
120
|
//# sourceMappingURL=useFolderView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFolderView.js","sourceRoot":"","sources":["../../../src/react/file-tree/useFolderView.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"useFolderView.js","sourceRoot":"","sources":["../../../src/react/file-tree/useFolderView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAIL,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,YAAY,EAEZ,SAAS,EACT,eAAe,GAChB,MAAM,iBAAiB,CAAC;AAiFzB,MAAM,UAAU,aAAa,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,EAAwB;IAClF,+FAA+F;IAC/F,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC1F,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,GAAG,uBAAuB,CAC9D,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,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AY,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,CAC/E,CAAC;AACJ,CAAC"}
|
|
@@ -18,35 +18,36 @@
|
|
|
18
18
|
* after an app's responsive variant (task 2124). An app that imports every area gets exactly
|
|
19
19
|
* what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
|
|
20
20
|
* src/stylesAreas.spec.ts, which is also what fails when this file is stale.
|
|
21
|
-
*
|
|
21
|
+
* 154 candidate(s).
|
|
22
22
|
*
|
|
23
23
|
* Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
|
|
24
24
|
* `bun run build` runs. The map of what is in which area, and why the areas are
|
|
25
25
|
* import closures rather than a hand-written list, is scripts/styleAreas.ts.
|
|
26
26
|
*/
|
|
27
|
-
@source inline("-m-1 -mt-2 -mt-6 -mx-1 -my-2.5 -my-3 @3xl:block @3xl:hidden @max-2xl:[&>*]:hidden");
|
|
28
|
-
@source inline("@max-2xl:border-0 @max-2xl:
|
|
27
|
+
@source inline("-m-1 -mt-2 -mt-6 -mx-1 -my-2.5 -my-3 @3xl:block @3xl:hidden @max-2xl @max-2xl:[&>*]:hidden");
|
|
28
|
+
@source inline("@max-2xl:border-0 @max-2xl:inline-flex @max-2xl:justify-center @max-2xl:min-w-0!");
|
|
29
|
+
@source inline("@max-2xl:min-w-11 @max-2xl:p-0! @max-2xl:sr-only @max-2xl:w-0! @max-4xl:[&>*]:hidden");
|
|
29
30
|
@source inline("@max-4xl:border-0 @max-4xl:min-w-0! @max-4xl:p-0! @max-4xl:w-0! @max-6xl:[&>*]:hidden");
|
|
30
31
|
@source inline("@max-6xl:border-0 @max-6xl:min-w-0! @max-6xl:p-0! @max-6xl:w-0! @xl:block @xl:hidden");
|
|
31
|
-
@source inline("[&>*]:hidden [&>*]:max-w-none [&_svg]:size-3 [overflow-wrap:anywhere]
|
|
32
|
-
@source inline("appearance appearance-none bg-[var(--cb-frozen-bg)] bg-card/95
|
|
33
|
-
@source inline("bg-muted/40 bg-muted/50 border-accent-solid border-accent/60
|
|
34
|
-
@source inline("border-r col collapse cursor-grab data-[ending-style]:opacity-0
|
|
35
|
-
@source inline("data-[
|
|
36
|
-
@source inline("data-[
|
|
37
|
-
@source inline("data-[
|
|
38
|
-
@source inline("data-[state=closed]:slide-out-to-
|
|
39
|
-
@source inline("data-[state=open]:slide-in-from-
|
|
40
|
-
@source inline("
|
|
41
|
-
@source inline("focus-
|
|
42
|
-
@source inline("has-[[aria-invalid=true]]:border-field-error
|
|
43
|
-
@source inline("hover:bg-muted/40 hover:border-field-ring hover:text-warning
|
|
44
|
-
@source inline("last:border-0 left-0 left-11 left-2.5 list-none max-h-64 max-h-88
|
|
45
|
-
@source inline("max-h-[var(--sheet-h-
|
|
46
|
-
@source inline("max-w-sm min-h-20 min-h-dvh min-w-0! min-w-20 min-w-24 min-w-52
|
|
47
|
-
@source inline("min-w-max ml-1.5 mr-2 mt-1.5 mt-3 mt-4 not-italic ordinal p-0!
|
|
48
|
-
@source inline("pr-10 pr-16 pr-3 pr-9 pt-1 resize-none resize-y right-3
|
|
49
|
-
@source inline("rounded-r-xl rounded-t-xl self self-center self-stretch
|
|
50
|
-
@source inline("shrink-[2] size-2 size-7 slide-in-from-top-1 table-fixed
|
|
51
|
-
@source inline("text-field-placeholder text-muted-foreground/60 text-success
|
|
52
|
-
@source inline("transition-[transform,opacity] w-0! w-11 w-20 w-32 w-36 w-40 w-88");
|
|
32
|
+
@source inline("[&>*]:hidden [&>*]:max-w-none [&>svg]:size-3.5 [&_svg]:size-3 [overflow-wrap:anywhere]");
|
|
33
|
+
@source inline("active:cursor-grabbing appearance appearance-none bg-[var(--cb-frozen-bg)] bg-card/95");
|
|
34
|
+
@source inline("bg-gradient-to-t bg-muted/30 bg-muted/40 bg-muted/50 border-accent-solid border-accent/60");
|
|
35
|
+
@source inline("border-field-error border-l border-r col collapse cursor-grab data-[ending-style]:opacity-0");
|
|
36
|
+
@source inline("data-[ending-style]:scale-95 data-[highlighted]:bg-accent/10");
|
|
37
|
+
@source inline("data-[highlighted]:text-accent-strong data-[starting-style]:opacity-0");
|
|
38
|
+
@source inline("data-[starting-style]:scale-95 data-[state=closed]:slide-out-to-bottom");
|
|
39
|
+
@source inline("data-[state=closed]:slide-out-to-left data-[state=closed]:slide-out-to-right");
|
|
40
|
+
@source inline("data-[state=open]:slide-in-from-bottom data-[state=open]:slide-in-from-left");
|
|
41
|
+
@source inline("data-[state=open]:slide-in-from-right disabled:opacity-40 duration-100 fade-in");
|
|
42
|
+
@source inline("focus-visible:ring-field-ring/40 focus-within:border-field-ring focus-within:ring-2");
|
|
43
|
+
@source inline("focus-within:ring-field-ring/30 from-card h-105 has-[[aria-invalid=true]]:border-field-error");
|
|
44
|
+
@source inline("hover:bg-background hover:bg-border hover:bg-muted/40 hover:border-field-ring hover:text-warning");
|
|
45
|
+
@source inline("italic justify-self-end last:border-0 left-0 left-11 left-2.5 list-none max-h-64 max-h-88");
|
|
46
|
+
@source inline("max-h-[var(--sheet-h-lg)] max-h-[var(--sheet-h-md)] max-h-[var(--sheet-h-sm)] max-w-32 max-w-36");
|
|
47
|
+
@source inline("max-w-45 max-w-48 max-w-60 max-w-sm min-h-20 min-h-dvh min-w-0! min-w-20 min-w-24 min-w-52");
|
|
48
|
+
@source inline("min-w-[var(--anchor-width)] min-w-max ml-1.5 mr-2 mt-1.5 mt-3 mt-4 not-italic ordinal p-0!");
|
|
49
|
+
@source inline("pb-1.5 pl-1.5 pl-2 pr-0.5 pr-1 pr-10 pr-16 pr-3 pr-9 pt-1 resize-none resize-y right-3");
|
|
50
|
+
@source inline("ring-field-error/30 rounded-l-xl rounded-r-xl rounded-t-xl self self-center self-stretch");
|
|
51
|
+
@source inline("shadow-[1px_0_0_0_var(--color-border)] shrink-[2] size-2 size-7 slide-in-from-top-1 table-fixed");
|
|
52
|
+
@source inline("text-accent-solid-foreground text-field-placeholder text-muted-foreground/60 text-success");
|
|
53
|
+
@source inline("text-xl to-transparent top-3 transition-[transform,opacity] w-0! w-11 w-20 w-32 w-36 w-40 w-88");
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* after an app's responsive variant (task 2124). An app that imports every area gets exactly
|
|
19
19
|
* what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
|
|
20
20
|
* src/stylesAreas.spec.ts, which is also what fails when this file is stale.
|
|
21
|
-
*
|
|
21
|
+
* 78 candidate(s).
|
|
22
22
|
*
|
|
23
23
|
* Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
|
|
24
24
|
* `bun run build` runs. The map of what is in which area, and why the areas are
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
@source inline("dark:bg-sky-900/40 dark:bg-slate-800 dark:bg-teal-900/40 dark:bg-violet-900/40");
|
|
33
33
|
@source inline("dark:text-amber-200 dark:text-blue-200 dark:text-emerald-200 dark:text-green-200");
|
|
34
34
|
@source inline("dark:text-purple-200 dark:text-rose-200 dark:text-sky-200 dark:text-slate-200 dark:text-teal-200");
|
|
35
|
-
@source inline("dark:text-violet-200 focus:opacity-100
|
|
35
|
+
@source inline("dark:text-violet-200 focus:opacity-100 grid-cols-[repeat(7,minmax(0,1fr))]");
|
|
36
36
|
@source inline("group-focus-within:opacity-100 h-3.5 hover:bg-muted/30 hover:bg-muted/40 hover:border-border/80");
|
|
37
37
|
@source inline("last:border-r-0 line-through min-h-28 min-h-40 outline-1 outline-dashed outline-tone-amber-ink");
|
|
38
|
-
@source inline("p-1.5 sm:
|
|
38
|
+
@source inline("p-1.5 sm:inline sm:min-h-0 sm:min-h-24 sm:px-1.5 sm:text-xs text-accent-solid-foreground");
|
|
39
39
|
@source inline("text-amber-900 text-blue-800 text-emerald-800 text-green-800 text-purple-800 text-rose-800");
|
|
40
|
-
@source inline("text-sky-800 text-slate-800 text-teal-800 text-tone-amber-ink text-violet-800 w-3.5");
|
|
40
|
+
@source inline("text-sky-800 text-slate-800 text-teal-800 text-tone-amber-ink text-violet-800 w-20 w-3.5");
|
|
@@ -18,35 +18,36 @@
|
|
|
18
18
|
* after an app's responsive variant (task 2124). An app that imports every area gets exactly
|
|
19
19
|
* what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
|
|
20
20
|
* src/stylesAreas.spec.ts, which is also what fails when this file is stale.
|
|
21
|
-
*
|
|
21
|
+
* 150 candidate(s).
|
|
22
22
|
*
|
|
23
23
|
* Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
|
|
24
24
|
* `bun run build` runs. The map of what is in which area, and why the areas are
|
|
25
25
|
* import closures rather than a hand-written list, is scripts/styleAreas.ts.
|
|
26
26
|
*/
|
|
27
|
-
@source inline("-m-1 -mt-2 -mt-6 -mx-1 -my-2.5 -my-3 @3xl:block @3xl:hidden @max-2xl:[&>*]:hidden");
|
|
28
|
-
@source inline("@max-2xl:border-0 @max-2xl:
|
|
27
|
+
@source inline("-m-1 -mt-2 -mt-6 -mx-1 -my-2.5 -my-3 @3xl:block @3xl:hidden @max-2xl @max-2xl:[&>*]:hidden");
|
|
28
|
+
@source inline("@max-2xl:border-0 @max-2xl:inline-flex @max-2xl:justify-center @max-2xl:min-w-0!");
|
|
29
|
+
@source inline("@max-2xl:min-w-11 @max-2xl:p-0! @max-2xl:sr-only @max-2xl:w-0! @max-4xl:[&>*]:hidden");
|
|
29
30
|
@source inline("@max-4xl:border-0 @max-4xl:min-w-0! @max-4xl:p-0! @max-4xl:w-0! @max-6xl:[&>*]:hidden");
|
|
30
31
|
@source inline("@max-6xl:border-0 @max-6xl:min-w-0! @max-6xl:p-0! @max-6xl:w-0! @xl:block @xl:hidden");
|
|
31
|
-
@source inline("[&>*]:hidden [&>*]:max-w-none [&_svg]:size-3 [overflow-wrap:anywhere]
|
|
32
|
-
@source inline("appearance appearance-none bg-[var(--cb-frozen-bg)] bg-card/95
|
|
33
|
-
@source inline("bg-muted/50 border-accent-solid border-accent/60 border-field-error
|
|
34
|
-
@source inline("collapse cursor-grab data-[ending-style]:opacity-0
|
|
35
|
-
@source inline("data-[
|
|
36
|
-
@source inline("data-[
|
|
37
|
-
@source inline("data-[
|
|
38
|
-
@source inline("data-[state=closed]:slide-out-to-
|
|
39
|
-
@source inline("data-[state=open]:slide-in-from-
|
|
40
|
-
@source inline("
|
|
41
|
-
@source inline("focus-
|
|
42
|
-
@source inline("has-[[aria-invalid=true]]:border-field-error
|
|
43
|
-
@source inline("hover:bg-muted/40 hover:border-field-ring hover:text-warning
|
|
44
|
-
@source inline("left-0 left-11 left-2.5 list-none max-h-64 max-h-88
|
|
45
|
-
@source inline("max-h-[var(--sheet-h-
|
|
46
|
-
@source inline("max-w-sm min-h-20 min-h-dvh min-w-0! min-w-24 min-w-52
|
|
47
|
-
@source inline("ml-1.5 mr-2 mt-1.5 mt-3 mt-4 not-italic ordinal p-0!
|
|
48
|
-
@source inline("pr-3 pr-9 pt-1 resize-none resize-y right-3
|
|
49
|
-
@source inline("rounded-t-xl self self-center self-stretch
|
|
50
|
-
@source inline("slide-in-from-top-1 table-fixed
|
|
51
|
-
@source inline("text-
|
|
52
|
-
@source inline("transition-[transform,opacity] w-0! w-11 w-20 w-32 w-36 w-40 w-88");
|
|
32
|
+
@source inline("[&>*]:hidden [&>*]:max-w-none [&>svg]:size-3.5 [&_svg]:size-3 [overflow-wrap:anywhere]");
|
|
33
|
+
@source inline("active:cursor-grabbing appearance appearance-none bg-[var(--cb-frozen-bg)] bg-card/95");
|
|
34
|
+
@source inline("bg-gradient-to-t bg-muted/30 bg-muted/50 border-accent-solid border-accent/60 border-field-error");
|
|
35
|
+
@source inline("border-l border-r col collapse cursor-grab data-[ending-style]:opacity-0");
|
|
36
|
+
@source inline("data-[ending-style]:scale-95 data-[highlighted]:bg-accent/10");
|
|
37
|
+
@source inline("data-[highlighted]:text-accent-strong data-[starting-style]:opacity-0");
|
|
38
|
+
@source inline("data-[starting-style]:scale-95 data-[state=closed]:slide-out-to-bottom");
|
|
39
|
+
@source inline("data-[state=closed]:slide-out-to-left data-[state=closed]:slide-out-to-right");
|
|
40
|
+
@source inline("data-[state=open]:slide-in-from-bottom data-[state=open]:slide-in-from-left");
|
|
41
|
+
@source inline("data-[state=open]:slide-in-from-right disabled:opacity-40 duration-100 fade-in");
|
|
42
|
+
@source inline("focus-visible:ring-field-ring/40 focus-within:border-field-ring focus-within:ring-2");
|
|
43
|
+
@source inline("focus-within:ring-field-ring/30 from-card h-105 has-[[aria-invalid=true]]:border-field-error");
|
|
44
|
+
@source inline("hover:bg-background hover:bg-border hover:bg-muted/40 hover:border-field-ring hover:text-warning");
|
|
45
|
+
@source inline("justify-self-end last:border-0 left-0 left-11 left-2.5 list-none max-h-64 max-h-88");
|
|
46
|
+
@source inline("max-h-[var(--sheet-h-lg)] max-h-[var(--sheet-h-md)] max-h-[var(--sheet-h-sm)] max-w-32 max-w-36");
|
|
47
|
+
@source inline("max-w-45 max-w-48 max-w-60 max-w-sm min-h-20 min-h-dvh min-w-0! min-w-24 min-w-52");
|
|
48
|
+
@source inline("min-w-[var(--anchor-width)] min-w-max ml-1.5 mr-2 mt-1.5 mt-3 mt-4 not-italic ordinal p-0!");
|
|
49
|
+
@source inline("pb-1.5 pl-1.5 pl-2 pr-0.5 pr-1 pr-10 pr-16 pr-3 pr-9 pt-1 resize-none resize-y right-3");
|
|
50
|
+
@source inline("ring-field-error/30 rounded-l-xl rounded-r-xl rounded-t-xl self self-center self-stretch");
|
|
51
|
+
@source inline("shadow-[1px_0_0_0_var(--color-border)] size-2 size-7 slide-in-from-top-1 table-fixed");
|
|
52
|
+
@source inline("text-accent-solid-foreground text-field-placeholder text-muted-foreground/60 text-success");
|
|
53
|
+
@source inline("text-xl to-transparent top-3 transition-[transform,opacity] w-0! w-11 w-20 w-32 w-36 w-40 w-88");
|
|
@@ -4337,18 +4337,9 @@
|
|
|
4337
4337
|
.sm\:grid-cols-\[minmax\(7rem\,34rem\)_minmax\(4rem\,1fr\)_auto\] {
|
|
4338
4338
|
grid-template-columns: minmax(7rem,34rem) minmax(4rem,1fr) auto;
|
|
4339
4339
|
}
|
|
4340
|
-
.sm\:flex-row {
|
|
4341
|
-
flex-direction: row;
|
|
4342
|
-
}
|
|
4343
4340
|
.sm\:flex-nowrap {
|
|
4344
4341
|
flex-wrap: nowrap;
|
|
4345
4342
|
}
|
|
4346
|
-
.sm\:items-center {
|
|
4347
|
-
align-items: center;
|
|
4348
|
-
}
|
|
4349
|
-
.sm\:gap-1 {
|
|
4350
|
-
gap: var(--spacing);
|
|
4351
|
-
}
|
|
4352
4343
|
.sm\:gap-3 {
|
|
4353
4344
|
gap: calc(var(--spacing) * 3);
|
|
4354
4345
|
}
|
|
@@ -4504,12 +4495,32 @@
|
|
|
4504
4495
|
}
|
|
4505
4496
|
}
|
|
4506
4497
|
@container (width < 42rem) {
|
|
4498
|
+
.\@max-2xl\:sr-only {
|
|
4499
|
+
position: absolute;
|
|
4500
|
+
width: 1px;
|
|
4501
|
+
height: 1px;
|
|
4502
|
+
padding: 0;
|
|
4503
|
+
margin: -1px;
|
|
4504
|
+
overflow: hidden;
|
|
4505
|
+
clip-path: inset(50%);
|
|
4506
|
+
white-space: nowrap;
|
|
4507
|
+
border-width: 0;
|
|
4508
|
+
}
|
|
4509
|
+
.\@max-2xl\:inline-flex {
|
|
4510
|
+
display: inline-flex;
|
|
4511
|
+
}
|
|
4507
4512
|
.\@max-2xl\:w-0\! {
|
|
4508
4513
|
width: 0px !important;
|
|
4509
4514
|
}
|
|
4510
4515
|
.\@max-2xl\:min-w-0\! {
|
|
4511
4516
|
min-width: 0px !important;
|
|
4512
4517
|
}
|
|
4518
|
+
.\@max-2xl\:min-w-11 {
|
|
4519
|
+
min-width: calc(var(--spacing) * 11);
|
|
4520
|
+
}
|
|
4521
|
+
.\@max-2xl\:justify-center {
|
|
4522
|
+
justify-content: center;
|
|
4523
|
+
}
|
|
4513
4524
|
.\@max-2xl\:border-0 {
|
|
4514
4525
|
border-style: var(--tw-border-style);
|
|
4515
4526
|
border-width: 0px;
|
|
@@ -4957,6 +4968,10 @@
|
|
|
4957
4968
|
.\[\&\>span\>button\]\:rounded-none > span > button {
|
|
4958
4969
|
border-radius: 0;
|
|
4959
4970
|
}
|
|
4971
|
+
.\[\&\>svg\]\:size-3\.5 > svg {
|
|
4972
|
+
width: calc(var(--spacing) * 3.5);
|
|
4973
|
+
height: calc(var(--spacing) * 3.5);
|
|
4974
|
+
}
|
|
4960
4975
|
}
|
|
4961
4976
|
@property --tw-translate-x {
|
|
4962
4977
|
syntax: "*";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cursedbelt",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.47.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "The React design system of the cursedbelt split — components, styles, theme. cursedbelt-core below it; server tier in cursedbelt-server.",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"typecheck:scripts": "tsc --noEmit --project tsconfig.scripts.json",
|
|
70
70
|
"demo:check": "tsc --noEmit --project demo/tsconfig.json",
|
|
71
71
|
"demo:paths": "bun run demo/generatePaths.ts --write",
|
|
72
|
+
"demo:coverage": "bun run scripts/demoCoverage.ts",
|
|
72
73
|
"guardrails:report": "bun run scripts/guardrailsEnforce.ts no-raw-action-button,no-raw-overflow,no-raw-inputs,no-hardcoded-colors,no-raw-modal-footer,no-unguarded-editing-modal,control-height-tokens,no-raw-zindex,no-raw-data-table,no-tailwind-palette,no-raw-title-attr,micro-typography-floor,choice-needs-empty-state,no-select-as-action-menu,no-native-dialog,no-fast-tooltip,no-raw-password,no-raw-lazy,no-raw-popover,no-hand-rolled-scroll-memory,no-hand-rolled-surface,no-inline-style,no-arbitrary-length,opt-out-count,opt-out-needs-cause --scope cursedbelt src/react src/styles.css",
|
|
73
74
|
"lint": "biome lint --error-on-warnings src e2e demo scripts",
|
|
74
75
|
"styles": "bun run styles:static && bun run styles:utilities && bun run styles:areas",
|
|
@@ -902,6 +903,9 @@
|
|
|
902
903
|
{
|
|
903
904
|
"script": "demo:check"
|
|
904
905
|
},
|
|
906
|
+
{
|
|
907
|
+
"script": "demo:coverage"
|
|
908
|
+
},
|
|
905
909
|
{
|
|
906
910
|
"script": "lint"
|
|
907
911
|
},
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { describe, expect, test } from "bun:test";
|
|
2
|
+
import { BASELINE, compare, demoText, exportedComponents, readBaseline, undemoed } from "./demoCoverage";
|
|
3
|
+
|
|
4
|
+
describe("demo coverage — a component with no demo does not ship (forge task 2466)", () => {
|
|
5
|
+
test("a component named only in an import or a comment is NOT demoed", () => {
|
|
6
|
+
const components = new Map([
|
|
7
|
+
["Shown", ["./react"]],
|
|
8
|
+
["Imported", ["./react"]],
|
|
9
|
+
["Mentioned", ["./react"]],
|
|
10
|
+
]);
|
|
11
|
+
// demoText strips these the same way before matching; this is what survives of a section.
|
|
12
|
+
const text = "export function Section() { return <Shown label='x' />; }";
|
|
13
|
+
expect(undemoed(components, text)).toEqual(["Imported", "Mentioned"]);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
test("🔴 a new component with no demo is a fault, and so is a baseline entry that has outlived its gap", () => {
|
|
17
|
+
expect(compare(["Old", "New"], ["Old", "Fixed"])).toEqual({ added: ["New"], stale: ["Fixed"] });
|
|
18
|
+
expect(compare(["Old"], ["Old"])).toEqual({ added: [], stale: [] });
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
test("the export map is read through the type checker — components in, hooks and types out", () => {
|
|
22
|
+
const components = exportedComponents();
|
|
23
|
+
expect(components.get("Button")).toContain("./react/button");
|
|
24
|
+
expect(components.has("DataTable")).toBe(true);
|
|
25
|
+
expect(components.has("useToast")).toBe(false);
|
|
26
|
+
expect(components.has("ButtonProps")).toBe(false);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
test("this repo matches its baseline exactly", () => {
|
|
30
|
+
const missing = undemoed(exportedComponents(), demoText());
|
|
31
|
+
expect(compare(missing, readBaseline(BASELINE))).toEqual({ added: [], stale: [] });
|
|
32
|
+
});
|
|
33
|
+
});
|