snagset 0.1.27 → 0.1.29
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.
|
@@ -117,6 +117,7 @@ export declare const storageKey: {
|
|
|
117
117
|
readonly threads: (uid: string, env: string) => string;
|
|
118
118
|
readonly seen: (uid: string, env: string) => string;
|
|
119
119
|
readonly counts: (origin: string) => string;
|
|
120
|
+
readonly list: (uid: string, cls: string) => string;
|
|
120
121
|
readonly draft: (route: string, draftId: string) => string;
|
|
121
122
|
readonly outbox: (uid: string) => string;
|
|
122
123
|
readonly mode: "snag:mode";
|
|
@@ -131,7 +132,7 @@ export declare const IDB: {
|
|
|
131
132
|
readonly store: "blobs";
|
|
132
133
|
};
|
|
133
134
|
/** Anchored regex sources matching every registered key — the storage diff. */
|
|
134
|
-
export declare const STORAGE_KEY_PATTERNS: readonly ["^snag:session:.+$", "^snag:silent:.+$", "^snag:identity$", "^snag:threads:.+:.+$", "^snag:seen:.+:.+$", "^snag:counts:.+$", "^snag:draft:.+:.+$", "^snag:outbox:.+$", "^snag:mode$", "^snag:handoff$", "^snag:seen-coach$", "^snag:disclosure:v1$"];
|
|
135
|
+
export declare const STORAGE_KEY_PATTERNS: readonly ["^snag:session:.+$", "^snag:silent:.+$", "^snag:identity$", "^snag:threads:.+:.+$", "^snag:seen:.+:.+$", "^snag:counts:.+$", "^snag:list:.+:.+$", "^snag:draft:.+:.+$", "^snag:outbox:.+$", "^snag:mode$", "^snag:handoff$", "^snag:seen-coach$", "^snag:disclosure:v1$"];
|
|
135
136
|
/** The WIDGET's two. Neither carries a credential, and no cookie authenticates the widget API — it runs on somebody else's origin. */
|
|
136
137
|
export declare const COOKIE: {
|
|
137
138
|
readonly off: "snag_off";
|
|
@@ -153,6 +153,7 @@ export const storageKey = {
|
|
|
153
153
|
threads: (uid, env) => `snag:threads:${uid}:${env}`,
|
|
154
154
|
seen: (uid, env) => `snag:seen:${uid}:${env}`,
|
|
155
155
|
counts: (origin) => `snag:counts:${origin}`,
|
|
156
|
+
list: (uid, cls) => `snag:list:${uid}:${cls}`,
|
|
156
157
|
draft: (route, draftId) => `snag:draft:${route}:${draftId}`,
|
|
157
158
|
outbox: (uid) => `snag:outbox:${uid}`,
|
|
158
159
|
mode: "snag:mode",
|
|
@@ -174,6 +175,7 @@ export const STORAGE_KEY_PATTERNS = [
|
|
|
174
175
|
"^snag:threads:.+:.+$",
|
|
175
176
|
"^snag:seen:.+:.+$",
|
|
176
177
|
"^snag:counts:.+$",
|
|
178
|
+
"^snag:list:.+:.+$",
|
|
177
179
|
"^snag:draft:.+:.+$",
|
|
178
180
|
"^snag:outbox:.+$",
|
|
179
181
|
"^snag:mode$",
|