@lorekit/cli 1.38.0 → 1.39.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/package.json +1 -1
- package/src/deeplink-pure.mjs +9 -2
package/package.json
CHANGED
package/src/deeplink-pure.mjs
CHANGED
|
@@ -47,7 +47,14 @@ export const LORE_PARAM_DEFAULTS = {
|
|
|
47
47
|
filters: null,
|
|
48
48
|
tags: [], // string[] — legacy label filter (AND across labels); [] means "no filter". Still READ by the app, superseded by `filters`
|
|
49
49
|
view: 'scope', // 'scope' | 'time'
|
|
50
|
-
archived
|
|
50
|
+
// 'active' | 'archived' | 'expiring' | null — the Explorer's Status control.
|
|
51
|
+
// `null`, NOT 'active', is the default for `filters`' reason: the app has to
|
|
52
|
+
// tell "absent" from an explicit choice, because an absent `status` falls back
|
|
53
|
+
// to the legacy `archived` flag while an explicit `status=active` overrides it.
|
|
54
|
+
status: null,
|
|
55
|
+
// boolean — SUPERSEDED by `status`, still READ by the app so existing links
|
|
56
|
+
// (and `lorekit link --archived`) keep resolving to the archived view.
|
|
57
|
+
archived: false,
|
|
51
58
|
lesson: null, // { scope, key } | null — opens the detail sheet
|
|
52
59
|
};
|
|
53
60
|
|
|
@@ -55,7 +62,7 @@ export const LORE_PARAM_DEFAULTS = {
|
|
|
55
62
|
// Mirrors the `useUrlState` call order in `LoreExplorer.tsx` (+ the `lesson`
|
|
56
63
|
// param last), so `filters` and `tags` sit between `owner` and `view`. `scope`
|
|
57
64
|
// precedes `lesson` so a lesson link reads `?scope=…&lesson=…`.
|
|
58
|
-
const PARAM_ORDER = ['scope', 'q', 'range', 'owner', 'filters', 'tags', 'view', 'archived', 'lesson'];
|
|
65
|
+
const PARAM_ORDER = ['scope', 'q', 'range', 'owner', 'filters', 'tags', 'view', 'status', 'archived', 'lesson'];
|
|
59
66
|
|
|
60
67
|
// Strip trailing slashes from a base URL, falling back to the default when the
|
|
61
68
|
// input is empty/absent. Pure.
|