@scaleflex/asset-picker 0.2.3 → 0.2.5
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/.claude/settings.local.json +38 -21
- package/.claude/skills/integrate-asset-picker/SKILL.md +2 -0
- package/README.md +2 -0
- package/dist/{asset-picker-ftqLLwn-.cjs → asset-picker-D4Tqus2q.cjs} +63 -63
- package/dist/{asset-picker-DnE1a6uI.js → asset-picker-Z_6-Ac0_.js} +417 -402
- package/dist/asset-picker.d.ts.map +1 -1
- package/dist/define.cjs +1 -1
- package/dist/define.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/config.types.d.ts +4 -0
- package/dist/types/config.types.d.ts.map +1 -1
- package/dist/utils/preference-storage.d.ts +3 -1
- package/dist/utils/preference-storage.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"permissions": {
|
|
3
3
|
"allow": [
|
|
4
|
-
"Bash(
|
|
5
|
-
"Bash(git add:*)",
|
|
6
|
-
"Bash(git commit:*)",
|
|
7
|
-
"Bash(npx tsc:*)",
|
|
8
|
-
"Bash(/tmp/report.txt:*)",
|
|
9
|
-
"Read(//tmp/**)",
|
|
10
|
-
"Bash(grep -r \"chip\\\\|pinned\" /Users/dmitry_stremous/scaleflex/asset-picker/src/styles/ --include=*.css --include=*.ts)",
|
|
4
|
+
"Bash(ls:*)",
|
|
11
5
|
"Bash(grep:*)",
|
|
12
|
-
"Bash(find /Users/dmitry_stremous/scaleflex/asset-picker/src/components -name *checkbox* -o -name *check*)",
|
|
13
|
-
"Bash(find /Users/dmitry_stremous/scaleflex/asset-picker/src -name *checkbox* -o -name *icon*)",
|
|
14
|
-
"WebFetch(domain:lucide.dev)",
|
|
15
|
-
"Bash(find /Users/dmitry_stremous/scaleflex/asset-picker/src -name *regional* -o -name *dropdown*)",
|
|
16
|
-
"Bash(find src/components/header src/components/shared -type f -name *.ts)",
|
|
17
|
-
"Bash(find /Users/dmitry_stremous/scaleflex/uploader/src -type f -name *.ts -o -name *.tsx)",
|
|
18
6
|
"Bash(npm install:*)",
|
|
7
|
+
"Bash(npx tsc:*)",
|
|
19
8
|
"Bash(npx vite:*)",
|
|
9
|
+
"WebFetch(domain:localhost)",
|
|
10
|
+
"Bash(curl:*)",
|
|
11
|
+
"Bash(node:*)",
|
|
12
|
+
"WebSearch",
|
|
20
13
|
"Bash(npm run:*)",
|
|
21
|
-
"Bash(
|
|
22
|
-
"Bash(npm publish:*)",
|
|
23
|
-
"Bash(find /Users/dmitry_stremous/scaleflex/uploader -maxdepth 2 -type f -name *DEPLOY* -o -name *deploy* -o -name *publish*)",
|
|
24
|
-
"Bash(find /Users/dmitry_stremous/scaleflex/asset-picker -maxdepth 2 -type f \\\\\\(-name *DEPLOY* -o -name *deploy* -o -name *publish* \\\\\\))",
|
|
14
|
+
"Bash(wc:*)",
|
|
25
15
|
"WebFetch(domain:unpkg.com)",
|
|
26
|
-
"Bash(git
|
|
27
|
-
"Bash(find /Users/
|
|
16
|
+
"Bash(git:*)",
|
|
17
|
+
"Bash(find /Users/dmitrystremous/scaleflex -maxdepth 3 -type d -name \"*admin*\" 2>/dev/null | grep -i filerobot)",
|
|
18
|
+
"Bash(gh run:*)",
|
|
19
|
+
"Bash(gh workflow:*)",
|
|
20
|
+
"Bash(find:*)",
|
|
21
|
+
"Bash(npx playwright:*)",
|
|
22
|
+
"Bash(npm ls:*)",
|
|
23
|
+
"Read(//Users/dmitrystremous/**)",
|
|
24
|
+
"Bash(npx:*)",
|
|
25
|
+
"Bash(rm:*)",
|
|
26
|
+
"Bash(tail:*)",
|
|
27
|
+
"WebFetch(domain:raw.githubusercontent.com)",
|
|
28
|
+
"Bash(gh api:*)",
|
|
29
|
+
"WebFetch(domain:www.scaleflex.com)",
|
|
30
|
+
"WebFetch(domain:scaleflex.github.io)",
|
|
31
|
+
"WebFetch(domain:github.com)",
|
|
32
|
+
"WebFetch(domain:portals.scaleflex.com)",
|
|
33
|
+
"Bash(for f:*)",
|
|
34
|
+
"Bash(do echo:*)",
|
|
35
|
+
"Read(//Users/dmitrystremous/scaleflex/asset-picker/**)",
|
|
36
|
+
"Bash(done)",
|
|
37
|
+
"Bash(cd:*)",
|
|
38
|
+
"Bash(chmod:*)",
|
|
39
|
+
"Bash(./scripts/publish-github.sh \"v0.1.0 — initial release\" 2>&1)",
|
|
40
|
+
"Bash(npm whoami:*)",
|
|
41
|
+
"Bash(npm publish:*)",
|
|
42
|
+
"Bash(gh repo:*)",
|
|
43
|
+
"Bash(./scripts/publish-github.sh \"Update README with demo and docs links\" 2>&1)",
|
|
44
|
+
"Bash(lsof:*)",
|
|
45
|
+
"Bash(kill:*)",
|
|
28
46
|
"Bash(npm view:*)",
|
|
29
|
-
"Bash(
|
|
30
|
-
"Bash(npm pack:*)"
|
|
47
|
+
"Bash(find ~/.claude -type f \\\\\\(-name *release* -o -name *.mdc -o -name *.md \\\\\\))"
|
|
31
48
|
]
|
|
32
49
|
}
|
|
33
50
|
}
|
|
@@ -208,8 +208,10 @@ picker.config = {
|
|
|
208
208
|
// Navigation
|
|
209
209
|
rootFolderPath: '/marketing/', // start in a specific folder
|
|
210
210
|
tabs: ['assets', 'folders'], // default: both. Use ['assets'] to hide folders tab
|
|
211
|
+
defaultTab: 'assets', // which tab opens first. Defaults to first in `tabs`
|
|
211
212
|
rememberLastFolder: true, // persist last folder in localStorage
|
|
212
213
|
rememberLastView: true, // persist grid/list preference
|
|
214
|
+
rememberLastTab: true, // persist last active tab (assets/folders)
|
|
213
215
|
|
|
214
216
|
// Sorting
|
|
215
217
|
defaultSortBy: 'created_at', // 'name' | 'created_at' | 'modified_at' | 'size' | 'type' | etc.
|
package/README.md
CHANGED
|
@@ -238,12 +238,14 @@ Use when your application already has a SASS key — e.g. inside the Scaleflex H
|
|
|
238
238
|
| `defaultSortBy` | `SortBy` | `'created_at'` | Initial sort field (see table below) |
|
|
239
239
|
| `defaultSortDirection` | `'asc' \| 'desc'` | `'desc'` | Initial sort direction |
|
|
240
240
|
| `tabs` | `TabKey[]` | `['assets', 'folders']` | Tabs to show. If only one, the dropdown is hidden |
|
|
241
|
+
| `defaultTab` | `TabKey` | first in `tabs` | Which tab to activate when the picker opens |
|
|
241
242
|
| `enabledFilters` | `FilterKey[]` | all | Restrict which filters appear in the toolbar |
|
|
242
243
|
| `rootFolderPath` | `string` | `'/'` | Start browsing from a specific folder path (e.g. `'/marketing/banners/'`) |
|
|
243
244
|
| `showMetadata` | `boolean` | `true` | Show metadata sections in the preview panel |
|
|
244
245
|
| `brandColor` | `string` | from API | Brand accent colour as hex (e.g. `'#3b82f6'`). Overrides the API-fetched value |
|
|
245
246
|
| `rememberLastFolder` | `boolean` | `false` | Persist the last browsed folder and restore on next open |
|
|
246
247
|
| `rememberLastView` | `boolean` | `false` | Persist the last used view mode (grid/list) and restore on next open |
|
|
248
|
+
| `rememberLastTab` | `boolean` | `false` | Persist the last active tab (assets/folders) and restore on next open |
|
|
247
249
|
| `defaultFilters` | `FiltersInput` | `undefined` | Filters pre-applied on open. User can modify/remove |
|
|
248
250
|
| `forcedFilters` | `FiltersInput` | `undefined` | Filters always active. Shown as locked chips the user cannot remove |
|
|
249
251
|
| `onSelect` | `(assets: Asset[]) => void` | `undefined` | Callback when assets are selected |
|