@fuzdev/fuz_gitops 0.70.0 → 0.71.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.
@@ -1,15 +1,16 @@
1
1
  <script lang="ts">
2
2
  import DocsFooter from '@fuzdev/fuz_ui/DocsFooter.svelte';
3
+ import {site_context} from '@fuzdev/fuz_ui/site.svelte.js';
4
+ import {FUZ_DEV_URL} from '@fuzdev/fuz_ui/constants.js';
3
5
  import Breadcrumb from '@fuzdev/fuz_ui/Breadcrumb.svelte';
4
- import {library_context} from '@fuzdev/fuz_ui/library.svelte.js';
5
6
 
6
- const library = library_context.get();
7
+ const site = site_context.get();
7
8
  </script>
8
9
 
9
10
  <section class="box mb_xl7">
10
- <DocsFooter {library} root_url="https://www.fuz.dev/">
11
+ <DocsFooter repo_url={site.repo_url} root_url={FUZ_DEV_URL}>
11
12
  <nav class="mb_xl5">
12
- <Breadcrumb>{library.package_json.glyph}</Breadcrumb>
13
+ <Breadcrumb />
13
14
  </nav>
14
15
  </DocsFooter>
15
16
  </section>
@@ -1 +1 @@
1
- {"version":3,"file":"PageFooter.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/PageFooter.svelte"],"names":[],"mappings":"AAyBA,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE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AAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAKD,QAAA,MAAM,UAAU;;kBAA+E,CAAC;AAC9E,KAAK,UAAU,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AACpD,eAAe,UAAU,CAAC"}
@@ -0,0 +1,23 @@
1
+ <script lang="ts">
2
+ import LibraryDetail from '@fuzdev/fuz_ui/LibraryDetail.svelte';
3
+ import {Library, library_context} from '@fuzdev/fuz_ui/library.svelte.js';
4
+
5
+ const {
6
+ library,
7
+ }: {
8
+ library: Library;
9
+ } = $props();
10
+
11
+ // `LibraryDetail`'s `ModuleLink`/`DeclarationLink` resolve against `library_context`,
12
+ // so set it to this repo's library. The caller keys this component on the repo,
13
+ // so it remounts (and re-sets context) when the selected repo changes.
14
+ // svelte-ignore state_referenced_locally
15
+ library_context.set(library);
16
+ </script>
17
+
18
+ <!--
19
+ `links_full` points the module/declaration links at each repo's own deployed
20
+ docs (`homepage_url`-based) rather than this site's local `/docs/api/*`, which
21
+ only knows fuz_gitops's own modules — otherwise the foreign links dangle.
22
+ -->
23
+ <LibraryDetail {library} links_full />
@@ -0,0 +1,8 @@
1
+ import { Library } from '@fuzdev/fuz_ui/library.svelte.js';
2
+ type $$ComponentProps = {
3
+ library: Library;
4
+ };
5
+ declare const RepoLibraryDetail: import("svelte").Component<$$ComponentProps, {}, "">;
6
+ type RepoLibraryDetail = ReturnType<typeof RepoLibraryDetail>;
7
+ export default RepoLibraryDetail;
8
+ //# sourceMappingURL=RepoLibraryDetail.svelte.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepoLibraryDetail.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/RepoLibraryDetail.svelte"],"names":[],"mappings":"AAIA,OAAO,EAAC,OAAO,EAAkB,MAAM,kCAAkC,CAAC;AAEzE,KAAK,gBAAgB,GAAI;IACxB,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC;AAqBH,QAAA,MAAM,iBAAiB,sDAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
@@ -1,12 +1,12 @@
1
1
  <script lang="ts">
2
2
  import LibrarySummary from '@fuzdev/fuz_ui/LibrarySummary.svelte';
3
- import LibraryDetail from '@fuzdev/fuz_ui/LibraryDetail.svelte';
4
3
  import {resolve} from '$app/paths';
5
4
  import {format_url} from '@fuzdev/fuz_util/url.js';
6
5
  import type {Snippet} from 'svelte';
7
6
 
8
7
  import type {Repo} from './repo.svelte.js';
9
8
  import ReposTreeNav from './ReposTreeNav.svelte';
9
+ import RepoLibraryDetail from './RepoLibraryDetail.svelte';
10
10
 
11
11
  const {
12
12
  repos,
@@ -26,7 +26,9 @@
26
26
  {#if selected_repo}
27
27
  <section class="detail-wrapper">
28
28
  <div class="panel detail p_md">
29
- <LibraryDetail library={selected_repo.library} />
29
+ {#key selected_repo.name}
30
+ <RepoLibraryDetail library={selected_repo.library} />
31
+ {/key}
30
32
  </div>
31
33
  </section>
32
34
  {:else}
@@ -1 +1 @@
1
- {"version":3,"file":"ReposTree.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/ReposTree.svelte"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AAEpC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAG1C,KAAK,gBAAgB,GAAI;IACxB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,aAAa,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACjC,GAAG,EAAE,OAAO,CAAC;CACb,CAAC;AAwDH,QAAA,MAAM,SAAS,sDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ReposTree.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/ReposTree.svelte"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AAEpC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAI1C,KAAK,gBAAgB,GAAI;IACxB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,aAAa,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACjC,GAAG,EAAE,OAAO,CAAC;CACb,CAAC;AA0DH,QAAA,MAAM,SAAS,sDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"gitops_sync.task.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gitops_sync.task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,IAAI,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAgBtB,cAAc;AACd,eAAO,MAAM,IAAI;;;;;;kBAkBf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAmF3B,CAAC"}
1
+ {"version":3,"file":"gitops_sync.task.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gitops_sync.task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,IAAI,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAiBtB,cAAc;AACd,eAAO,MAAM,IAAI;;;;;;kBAkBf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAqF3B,CAAC"}
@@ -7,6 +7,7 @@ import { print_path } from '@fuzdev/gro/paths.js';
7
7
  import { load_from_env } from '@fuzdev/gro/env.js';
8
8
  import { package_json_load } from '@fuzdev/gro/package_json.js';
9
9
  import { existsSync } from 'node:fs';
10
+ import { compactReplacer } from 'svelte-docinfo';
10
11
  import { fetch_repo_data } from './fetch_repo_data.js';
11
12
  import { create_fs_fetch_value_cache } from './fs_fetch_value_cache.js';
12
13
  import { get_gitops_ready } from './gitops_task_helpers.js';
@@ -65,7 +66,9 @@ export const task = {
65
66
  : '@fuzdev/fuz_gitops/repo.svelte.js';
66
67
  log.info(`generating ${outfile_json} and ${outfile_ts}`);
67
68
  // Generate repos.json with the raw data
68
- const json_contents = await format_file(JSON.stringify(repos_json), { filepath: outfile_json });
69
+ const json_contents = await format_file(JSON.stringify(repos_json, compactReplacer), {
70
+ filepath: outfile_json,
71
+ });
69
72
  const existing_json = existsSync(outfile_json) ? await readFile(outfile_json, 'utf8') : '';
70
73
  const json_changed = existing_json !== json_contents;
71
74
  if (json_changed) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_gitops",
3
- "version": "0.70.0",
3
+ "version": "0.71.0",
4
4
  "description": "a tool for managing many repos",
5
5
  "glyph": "🪄",
6
6
  "logo": "logo.svg",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@fuzdev/fuz_css": ">=0.61.0",
33
- "@fuzdev/fuz_ui": ">=0.196.0",
33
+ "@fuzdev/fuz_ui": ">=0.198.0",
34
34
  "@fuzdev/fuz_util": ">=0.63.0",
35
35
  "@fuzdev/gro": ">=0.200.0",
36
36
  "@sveltejs/kit": "^2",
@@ -41,8 +41,8 @@
41
41
  "@changesets/changelog-git": "^0.2.1",
42
42
  "@fuzdev/blake3_wasm": "^0.1.1",
43
43
  "@fuzdev/fuz_code": "^0.45.1",
44
- "@fuzdev/fuz_css": "^0.61.0",
45
- "@fuzdev/fuz_ui": "^0.196.0",
44
+ "@fuzdev/fuz_css": "^0.61.1",
45
+ "@fuzdev/fuz_ui": "^0.198.0",
46
46
  "@fuzdev/fuz_util": "^0.63.0",
47
47
  "@fuzdev/gro": "^0.200.0",
48
48
  "@jridgewell/trace-mapping": "^0.3.31",
@@ -63,7 +63,7 @@
63
63
  "prettier-plugin-svelte": "^3.5.1",
64
64
  "svelte": "^5.56.0",
65
65
  "svelte-check": "^4.4.6",
66
- "svelte-docinfo": "^0.2.0",
66
+ "svelte-docinfo": "^0.2.1",
67
67
  "svelte2tsx": "^0.7.52",
68
68
  "tslib": "^2.8.1",
69
69
  "typescript": "^5.9.3",
@@ -7,6 +7,7 @@ import {print_path} from '@fuzdev/gro/paths.js';
7
7
  import {load_from_env} from '@fuzdev/gro/env.js';
8
8
  import {package_json_load} from '@fuzdev/gro/package_json.js';
9
9
  import {existsSync} from 'node:fs';
10
+ import {compactReplacer} from 'svelte-docinfo';
10
11
 
11
12
  import {fetch_repo_data} from './fetch_repo_data.js';
12
13
  import {create_fs_fetch_value_cache} from './fs_fetch_value_cache.js';
@@ -80,7 +81,9 @@ export const task: Task<Args> = {
80
81
  log.info(`generating ${outfile_json} and ${outfile_ts}`);
81
82
 
82
83
  // Generate repos.json with the raw data
83
- const json_contents = await format_file(JSON.stringify(repos_json), {filepath: outfile_json});
84
+ const json_contents = await format_file(JSON.stringify(repos_json, compactReplacer), {
85
+ filepath: outfile_json,
86
+ });
84
87
  const existing_json = existsSync(outfile_json) ? await readFile(outfile_json, 'utf8') : '';
85
88
  const json_changed = existing_json !== json_contents;
86
89
  if (json_changed) {