@bitcobblers/wod-wiki-core 0.63.2274 → 0.63.2275

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/index.d.cts CHANGED
@@ -1876,7 +1876,7 @@ declare const DEFAULT_NOTEBOOK_SLUGS: readonly ["journal", "playground", "defaul
1876
1876
  type DefaultNotebookSlug = (typeof DEFAULT_NOTEBOOK_SLUGS)[number];
1877
1877
  type NotebookId = `notebook/${string}`;
1878
1878
  declare const READONLY_SYSTEM_NOTEBOOK_SLUGS: readonly ["defaults", "guides", "efforts", "equipment", "dashboards"];
1879
- declare const NON_PUBLISHABLE_NOTEBOOK_SLUGS: readonly ["journal", "playground", "defaults", "custom", "guides", "efforts", "equipment", "dashboards"];
1879
+ declare const NON_PUBLISHABLE_NOTEBOOK_SLUGS: readonly ["defaults", "guides", "efforts", "equipment", "dashboards"];
1880
1880
  declare function isSystemReadOnlyNotebook(slugOrId: string): boolean;
1881
1881
  declare function isNonPublishableNotebook(slugOrId: string): boolean;
1882
1882
  /** Where a notebook comes from. 'feed' = delivered by a feed (the feed that
@@ -2190,13 +2190,13 @@ declare function parseFrontmatterProps(lines: string[]): Record<string, string>;
2190
2190
  * Auto-generated build version metadata.
2191
2191
  * Do not edit directly; updated by scripts/stamp-version.ts
2192
2192
  */
2193
- declare const VERSION = "0.63.2274";
2194
- declare const GIT_SHA = "34a4874";
2195
- declare const BUILD_TIME = "2026-11-28T01:23:40.404Z";
2193
+ declare const VERSION = "0.63.2275";
2194
+ declare const GIT_SHA = "db4c626";
2195
+ declare const BUILD_TIME = "2026-11-28T13:15:19.822Z";
2196
2196
  declare const SEMVER: {
2197
- readonly version: "0.63.2274";
2198
- readonly gitSha: "34a4874";
2199
- readonly buildTime: "2026-11-28T01:23:40.404Z";
2197
+ readonly version: "0.63.2275";
2198
+ readonly gitSha: "db4c626";
2199
+ readonly buildTime: "2026-11-28T13:15:19.822Z";
2200
2200
  };
2201
2201
 
2202
2202
  interface NoteJsonlNote {
package/dist/index.d.ts CHANGED
@@ -1876,7 +1876,7 @@ declare const DEFAULT_NOTEBOOK_SLUGS: readonly ["journal", "playground", "defaul
1876
1876
  type DefaultNotebookSlug = (typeof DEFAULT_NOTEBOOK_SLUGS)[number];
1877
1877
  type NotebookId = `notebook/${string}`;
1878
1878
  declare const READONLY_SYSTEM_NOTEBOOK_SLUGS: readonly ["defaults", "guides", "efforts", "equipment", "dashboards"];
1879
- declare const NON_PUBLISHABLE_NOTEBOOK_SLUGS: readonly ["journal", "playground", "defaults", "custom", "guides", "efforts", "equipment", "dashboards"];
1879
+ declare const NON_PUBLISHABLE_NOTEBOOK_SLUGS: readonly ["defaults", "guides", "efforts", "equipment", "dashboards"];
1880
1880
  declare function isSystemReadOnlyNotebook(slugOrId: string): boolean;
1881
1881
  declare function isNonPublishableNotebook(slugOrId: string): boolean;
1882
1882
  /** Where a notebook comes from. 'feed' = delivered by a feed (the feed that
@@ -2190,13 +2190,13 @@ declare function parseFrontmatterProps(lines: string[]): Record<string, string>;
2190
2190
  * Auto-generated build version metadata.
2191
2191
  * Do not edit directly; updated by scripts/stamp-version.ts
2192
2192
  */
2193
- declare const VERSION = "0.63.2274";
2194
- declare const GIT_SHA = "34a4874";
2195
- declare const BUILD_TIME = "2026-11-28T01:23:40.404Z";
2193
+ declare const VERSION = "0.63.2275";
2194
+ declare const GIT_SHA = "db4c626";
2195
+ declare const BUILD_TIME = "2026-11-28T13:15:19.822Z";
2196
2196
  declare const SEMVER: {
2197
- readonly version: "0.63.2274";
2198
- readonly gitSha: "34a4874";
2199
- readonly buildTime: "2026-11-28T01:23:40.404Z";
2197
+ readonly version: "0.63.2275";
2198
+ readonly gitSha: "db4c626";
2199
+ readonly buildTime: "2026-11-28T13:15:19.822Z";
2200
2200
  };
2201
2201
 
2202
2202
  interface NoteJsonlNote {
package/dist/index.mjs CHANGED
@@ -1100,7 +1100,7 @@ function isWorkoutSectionType(type) {
1100
1100
  // src/types/notebook.ts
1101
1101
  var DEFAULT_NOTEBOOK_SLUGS = ["journal", "playground", "defaults", "custom", "guides"];
1102
1102
  var READONLY_SYSTEM_NOTEBOOK_SLUGS = ["defaults", "guides", "efforts", "equipment", "dashboards"];
1103
- var NON_PUBLISHABLE_NOTEBOOK_SLUGS = ["journal", "playground", "defaults", "custom", "guides", "efforts", "equipment", "dashboards"];
1103
+ var NON_PUBLISHABLE_NOTEBOOK_SLUGS = ["defaults", "guides", "efforts", "equipment", "dashboards"];
1104
1104
  var READONLY_SET = new Set(READONLY_SYSTEM_NOTEBOOK_SLUGS);
1105
1105
  var NON_PUBLISHABLE_SET = new Set(NON_PUBLISHABLE_NOTEBOOK_SLUGS);
1106
1106
  function isSystemReadOnlyNotebook(slugOrId) {
@@ -1336,13 +1336,14 @@ function getNotebookCapabilities(input) {
1336
1336
  const isBuiltIn = BUILTIN_NOTEBOOKS.some((b) => b.slug === slug);
1337
1337
  const isSystem = isSystemReadOnlyNotebook(slug);
1338
1338
  const isUserOrigin = input.origin === "user" || !input.origin && input.feedId === "local";
1339
+ const isLocalOwned = isUserOrigin || input.origin === "default";
1339
1340
  return {
1340
1341
  slug,
1341
1342
  isBuiltIn,
1342
1343
  isSystem,
1343
1344
  canEdit: isUserOrigin && !isBuiltIn && !isSystem,
1344
1345
  canDelete: isUserOrigin && !isBuiltIn && !isSystem,
1345
- canTogglePublic: isUserOrigin && !isNonPublishableNotebook(slug)
1346
+ canTogglePublic: isLocalOwned && !isNonPublishableNotebook(slug) && !isSystem
1346
1347
  };
1347
1348
  }
1348
1349
  function countNotesByNotebook(notes, links = [], resolveIds) {
@@ -1978,13 +1979,13 @@ function parseFrontmatterProps(lines) {
1978
1979
  }
1979
1980
 
1980
1981
  // src/version.ts
1981
- var VERSION = "0.63.2274";
1982
- var GIT_SHA = "34a4874";
1983
- var BUILD_TIME = "2026-11-28T01:23:40.404Z";
1982
+ var VERSION = "0.63.2275";
1983
+ var GIT_SHA = "db4c626";
1984
+ var BUILD_TIME = "2026-11-28T13:15:19.822Z";
1984
1985
  var SEMVER = {
1985
- version: "0.63.2274",
1986
- gitSha: "34a4874",
1987
- buildTime: "2026-11-28T01:23:40.404Z"
1986
+ version: "0.63.2275",
1987
+ gitSha: "db4c626",
1988
+ buildTime: "2026-11-28T13:15:19.822Z"
1988
1989
  };
1989
1990
 
1990
1991
  // src/portability/note-jsonl.ts