@lorekit/cli 1.55.0 → 1.55.1
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 +7 -0
package/package.json
CHANGED
package/src/deeplink-pure.mjs
CHANGED
|
@@ -131,6 +131,13 @@ export function loreScopeUrl(scope, opts = {}) {
|
|
|
131
131
|
// own scope, coherent with the detail view. A lesson older than that window or
|
|
132
132
|
// archived can still open blank — a dashboard-side limitation the link can't fix.
|
|
133
133
|
// `scope` is the lesson's own scope. Pure.
|
|
134
|
+
//
|
|
135
|
+
// NOTE FOR ANYONE HAND-BUILDING A URL INSTEAD OF CALLING THIS: the `lesson`
|
|
136
|
+
// param takes a JSON-encoded `{scope, key}`, NOT a memory id. If you hold the
|
|
137
|
+
// `id` a write returned, the param is `?memoryId=<uuid>` (raw, not JSON-encoded).
|
|
138
|
+
// `/lore` now also accepts a UUID in `?lesson=` so the wrong combination
|
|
139
|
+
// resolves rather than silently doing nothing — but that is a safety net, and
|
|
140
|
+
// this function is the thing to call when you have a scope and key.
|
|
134
141
|
export function buildLessonUrl(scope, key, opts = {}) {
|
|
135
142
|
const params = { lesson: { scope, key } };
|
|
136
143
|
if (scope) params.scope = scope;
|