@hiai-gg/docsmint 0.5.0 → 0.5.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.
Files changed (38) hide show
  1. package/dist/backend/index.js +1 -1
  2. package/dist/frontend/{CategoryDialog-DyytjQn6.js → CategoryDialog-DmlX0Z97.js} +1 -1
  3. package/dist/frontend/DatePicker-D6E-EEtZ.js +340 -0
  4. package/dist/frontend/{FolderNode-DAGPgi-M.js → FolderNode-D3rN3yLV.js} +1 -1
  5. package/dist/frontend/{ShareDialog-ChZogJtW.js → ShareDialog-uEf8Ks02.js} +1 -1
  6. package/dist/frontend/{Sidebar-BdB8CfXS.js → Sidebar-BthP-jOS.js} +443 -437
  7. package/dist/frontend/app-shell.js +1 -1
  8. package/dist/frontend/components/category-dialog.js +1 -1
  9. package/dist/frontend/components/editor/document-editor.js +240 -228
  10. package/dist/frontend/components/folder-node.js +1 -1
  11. package/dist/frontend/components/save-as-dialog.js +1 -1
  12. package/dist/frontend/components/share-dialog.js +1 -1
  13. package/dist/frontend/components/sidebar.js +1 -1
  14. package/dist/frontend/dashboard.js +1100 -1068
  15. package/dist/frontend/{dropdown-menu-Cre80-CJ.js → dropdown-menu-CJ_7V3N0.js} +43 -43
  16. package/dist/frontend/{floating-layer-anchor-BDs7vO-M.js → floating-layer-anchor-S5RSefGN.js} +1 -1
  17. package/dist/frontend/search.js +421 -405
  18. package/dist/frontend/{select-value-GXwx90Pr.js → select-value-JCAp2PmU.js} +466 -466
  19. package/dist/frontend-ssr/app-shell.js +1 -1
  20. package/dist/frontend-ssr/assets/{CategoryDialog-CLAGMZPz.js → CategoryDialog-DDu37Oub.js} +1 -1
  21. package/dist/frontend-ssr/assets/{FolderNode-Ty6fMbDu.js → FolderNode-CrLWqHJH.js} +1 -1
  22. package/dist/frontend-ssr/assets/{ShareDialog-C-9VDKSz.js → ShareDialog-B82t8oJi.js} +1 -1
  23. package/dist/frontend-ssr/assets/{Sidebar-DzbIUZFc.js → Sidebar-CI8YKbrY.js} +14 -6
  24. package/dist/frontend-ssr/assets/{dropdown-menu-CGkf8-rb.js → dropdown-menu-Dn_vQq9b.js} +1 -1
  25. package/dist/frontend-ssr/assets/{floating-layer-anchor-CYIE8Oj6.js → floating-layer-anchor-BIAu-252.js} +1 -1
  26. package/dist/frontend-ssr/assets/{select-value-6Lk0ToYd.js → select-value-DBhbkNcc.js} +1 -1
  27. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  28. package/dist/frontend-ssr/components/editor/document-editor.js +35 -21
  29. package/dist/frontend-ssr/components/folder-node.js +1 -1
  30. package/dist/frontend-ssr/components/save-as-dialog.js +1 -1
  31. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  32. package/dist/frontend-ssr/components/sidebar.js +1 -1
  33. package/dist/frontend-ssr/dashboard.js +269 -75
  34. package/dist/frontend-ssr/search.js +1 -1
  35. package/package.json +1 -1
  36. package/packages/cli/src/index.ts +1 -1
  37. package/packages/mcp-server/src/index.ts +1 -1
  38. package/dist/frontend/DatePicker-BkaaNS1l.js +0 -256
@@ -8,7 +8,7 @@ import { t as Copy } from "./assets/copy-DkkCPkBL.js";
8
8
  import { n as Folder_open, t as FolderTreeSelector } from "./assets/FolderTreeSelector-Bxi8EqMm.js";
9
9
  import { t as Folder } from "./assets/folder-DYIE-XPP.js";
10
10
  import { t as Rotate_ccw } from "./assets/rotate-ccw-dJSqPyTd.js";
11
- import { a as Dropdown_menu, i as Dropdown_menu_content, n as Dropdown_menu_separator, o as Ellipsis_vertical, r as Dropdown_menu_item, t as Dropdown_menu_trigger } from "./assets/dropdown-menu-CGkf8-rb.js";
11
+ import { a as Dropdown_menu, i as Dropdown_menu_content, n as Dropdown_menu_separator, o as Ellipsis_vertical, r as Dropdown_menu_item, t as Dropdown_menu_trigger } from "./assets/dropdown-menu-Dn_vQq9b.js";
12
12
  import { t as Loader_circle } from "./assets/loader-circle-CIEWGyfP.js";
13
13
  import { a as getDocsmintRequestAdapter, i as resolveDocsmintRoute, n as navigateDocsmintRoute, t as getDocsmintRouteAdapter } from "./assets/route-context-BPRerEtZ.js";
14
14
  import { n as formatRelativeTime } from "./assets/utils-DvZnctjz.js";
@@ -19,15 +19,17 @@ import { n as apiFetch } from "./assets/client-DZMkDkDn.js";
19
19
  import "./assets/categories-av9xjeg5.js";
20
20
  import { t as getFrontendExtensions } from "./assets/context-BtCMqdVe.js";
21
21
  import { t as resolveExtensions } from "./assets/resolve-BqHozBXl.js";
22
- import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "./assets/select-value-6Lk0ToYd.js";
22
+ import { A as isBrowser, K as watch, et as boxWith, q as Context } from "./assets/floating-layer-anchor-BIAu-252.js";
23
+ import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "./assets/select-value-DBhbkNcc.js";
23
24
  import { c as updateDocument, i as getDocument } from "./assets/documents-CZ-wQohy.js";
24
25
  import { c as updateFolder, i as duplicateDocument } from "./assets/folders-BX30gHv6.js";
25
26
  import { t as copyToClipboard } from "./assets/clipboard-CXOaoz2W.js";
26
- import { t as ShareDialog } from "./assets/ShareDialog-C-9VDKSz.js";
27
+ import { t as ShareDialog } from "./assets/ShareDialog-B82t8oJi.js";
27
28
  import { d as refreshFolders, n as bumpSubfoldersRefresh } from "./assets/subfolders-refresh-store.svelte-DAh4gT16.js";
28
29
  import { n as refreshDocs } from "./assets/tag-store.svelte-BM1lUI_P.js";
29
30
  import { t as ConfirmDialog } from "./assets/ConfirmDialog-BhAelejz.js";
30
31
  import * as $ from "svelte/internal/server";
32
+ import { getAllContexts, mount, unmount } from "svelte";
31
33
  import { page } from "$app/state";
32
34
  import { invalidateAll } from "$app/navigation";
33
35
  //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/arrow-left.svelte
@@ -843,6 +845,152 @@ function Circle_x($$renderer, $$props) {
843
845
  ]));
844
846
  }
845
847
  //#endregion
848
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/utilities/portal/portal-consumer.svelte
849
+ function Portal_consumer($$renderer, $$props) {
850
+ const { children } = $$props;
851
+ $$renderer.push(`<!---->`);
852
+ children?.($$renderer);
853
+ $$renderer.push(`<!---->`);
854
+ $$renderer.push(`<!---->`);
855
+ }
856
+ //#endregion
857
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/utilities/config/bits-config.js
858
+ var BitsConfigContext = new Context("BitsConfig");
859
+ /**
860
+ * Gets the current Bits UI configuration state from the context.
861
+ *
862
+ * Returns a default configuration (where all values are `undefined`) if no configuration is found.
863
+ */
864
+ function getBitsConfig() {
865
+ const fallback = new BitsConfigState(null, {});
866
+ return BitsConfigContext.getOr(fallback).opts;
867
+ }
868
+ /**
869
+ * Configuration state that inherits from parent configurations.
870
+ *
871
+ * @example
872
+ * Config resolution:
873
+ * ```
874
+ * Level 1: { defaultPortalTo: "#some-element", theme: "dark" }
875
+ * Level 2: { spacing: "large" } // inherits defaultPortalTo="#some-element", theme="dark"
876
+ * Level 3: { theme: "light" } // inherits defaultPortalTo="#some-element", spacing="large", overrides theme="light"
877
+ * ```
878
+ */
879
+ var BitsConfigState = class {
880
+ opts;
881
+ constructor(parent, opts) {
882
+ const resolveConfigOption = createConfigResolver(parent, opts);
883
+ this.opts = {
884
+ defaultPortalTo: resolveConfigOption((config) => config.defaultPortalTo),
885
+ defaultLocale: resolveConfigOption((config) => config.defaultLocale)
886
+ };
887
+ }
888
+ };
889
+ /**
890
+ * Returns a config resolver that resolves a given config option's value.
891
+ *
892
+ * The resolver creates reactive boxes that resolve config option values using this priority:
893
+ * 1. Current level's value (if defined)
894
+ * 2. Parent level's value (if defined and current is undefined)
895
+ * 3. `undefined` (if no value is found in either parent or child)
896
+ *
897
+ * @param parent - Parent configuration state (null if this is root level)
898
+ * @param currentOpts - Current level's configuration options
899
+ *
900
+ * @example
901
+ * ```typescript
902
+ * // Given this hierarchy:
903
+ * // Root: { defaultPortalTo: "#some-element" }
904
+ * // Child: { someOtherProp: "value" } // no defaultPortalTo specified
905
+ *
906
+ * const resolveConfigOption = createConfigResolver(parent, opts);
907
+ * const portalTo = resolveConfigOption(config => config.defaultPortalTo);
908
+ *
909
+ * // portalTo.current === "#some-element" (inherited from parent)
910
+ * // even when child didn't specify `defaultPortalTo`
911
+ * ```
912
+ */
913
+ function createConfigResolver(parent, currentOpts) {
914
+ return (getter) => {
915
+ return boxWith(() => {
916
+ const value = getter(currentOpts)?.current;
917
+ if (value !== void 0) return value;
918
+ if (parent === null) return void 0;
919
+ return getter(parent.opts)?.current;
920
+ });
921
+ };
922
+ }
923
+ //#endregion
924
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/utilities/config/prop-resolvers.js
925
+ /**
926
+ * Creates a generic prop resolver that follows a standard priority chain:
927
+ * 1. The getter's prop value (if defined)
928
+ * 2. The config default value (if no getter prop value is defined)
929
+ * 3. The fallback value (if no config value found)
930
+ */
931
+ function createPropResolver(configOption, fallback) {
932
+ return (getProp) => {
933
+ const config = getBitsConfig();
934
+ return boxWith(() => {
935
+ const propValue = getProp();
936
+ if (propValue !== void 0) return propValue;
937
+ const option = configOption(config).current;
938
+ if (option !== void 0) return option;
939
+ return fallback;
940
+ });
941
+ };
942
+ }
943
+ /**
944
+ * Resolves a portal's `to` value using the prop, the config default, or a fallback.
945
+ *
946
+ * Default value: `"body"`
947
+ */
948
+ var resolvePortalToProp = createPropResolver((config) => config.defaultPortalTo, "body");
949
+ //#endregion
950
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/utilities/portal/portal.svelte
951
+ function Portal($$renderer, $$props) {
952
+ $$renderer.component(($$renderer) => {
953
+ let { to: toProp, children, disabled } = $$props;
954
+ const to = resolvePortalToProp(() => toProp);
955
+ const context = getAllContexts();
956
+ let target = $.derived(getTarget);
957
+ function getTarget() {
958
+ if (!isBrowser || disabled) return null;
959
+ let localTarget = null;
960
+ if (typeof to.current === "string") localTarget = document.querySelector(to.current);
961
+ else localTarget = to.current;
962
+ return localTarget;
963
+ }
964
+ let instance;
965
+ function unmountInstance() {
966
+ if (instance) {
967
+ unmount(instance);
968
+ instance = null;
969
+ }
970
+ }
971
+ watch([() => target(), () => disabled], ([target, disabled]) => {
972
+ if (!target || disabled) {
973
+ unmountInstance();
974
+ return;
975
+ }
976
+ instance = mount(Portal_consumer, {
977
+ target,
978
+ props: { children },
979
+ context
980
+ });
981
+ return () => {
982
+ unmountInstance();
983
+ };
984
+ });
985
+ if (disabled) {
986
+ $$renderer.push("<!--[0-->");
987
+ children?.($$renderer);
988
+ $$renderer.push(`<!---->`);
989
+ } else $$renderer.push("<!--[-1-->");
990
+ $$renderer.push(`<!--]-->`);
991
+ });
992
+ }
993
+ //#endregion
846
994
  //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/card/card.svelte
847
995
  function Card($$renderer, $$props) {
848
996
  $$renderer.component(($$renderer) => {
@@ -1616,6 +1764,17 @@ function HiaiDocsDashboardHost($$renderer, $$props) {
1616
1764
  const route = getDocsmintRouteAdapter();
1617
1765
  const request = getDocsmintRequestAdapter();
1618
1766
  const dashboardWidgets = $.derived(() => resolveExtensions(frontendExtensions.dashboardWidgets, extensionContext));
1767
+ const importAccept = $.derived(() => {
1768
+ const formats = [
1769
+ ".md",
1770
+ ".txt",
1771
+ ".json",
1772
+ ".docx"
1773
+ ];
1774
+ if (extensionContext.capabilities?.["docsmint.import.tier2"]) formats.push(".pdf", "image/*", "audio/*");
1775
+ if (extensionContext.capabilities?.["docsmint.import.tier3"]) formats.push("video/*", ".m4v", ".mkv", ".webm");
1776
+ return formats.join(",");
1777
+ });
1619
1778
  const activeFolderId = $.derived(() => page.url.searchParams.get("folder") || null);
1620
1779
  const activeCategoryId = $.derived(() => page.url.searchParams.get("category") || null);
1621
1780
  let searchQuery = "";
@@ -1891,7 +2050,7 @@ function HiaiDocsDashboardHost($$renderer, $$props) {
1891
2050
  Layout_dashboard($$renderer, { class: "size-5 text-primary" });
1892
2051
  $$renderer.push(`<!----></div> <div><h1 class="text-2xl font-semibold tracking-tight svelte-e61um3">${$.escape(dashboard_title())}</h1> <p class="text-sm text-muted-foreground svelte-e61um3">${$.escape(dashboard_subtitle())}</p></div></div>`);
1893
2052
  }
1894
- $$renderer.push(`<!--]--></div> <div class="dashboard-header-actions ml-auto flex items-center justify-end gap-2 svelte-e61um3"><input type="file" accept=".md,.txt,.json,.docx" multiple="" class="hidden"/> `);
2053
+ $$renderer.push(`<!--]--></div> <div class="dashboard-header-actions ml-auto flex items-center justify-end gap-2 svelte-e61um3"><input type="file"${$.attr("accept", importAccept())} multiple="" class="hidden"/> `);
1895
2054
  Button($$renderer, {
1896
2055
  variant: "outline",
1897
2056
  size: "sm",
@@ -1977,7 +2136,7 @@ function HiaiDocsDashboardHost($$renderer, $$props) {
1977
2136
  $$renderer.push(`<!--]--> `);
1978
2137
  if (activeFolderId() && data.breadcrumb?.length > 0) {
1979
2138
  $$renderer.push("<!--[0-->");
1980
- $$renderer.push(`<nav class="mb-6 flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground" aria-label="Breadcrumbs"><a href="/" class="hover:text-foreground transition-colors">Home</a> <!--[-->`);
2139
+ $$renderer.push(`<nav class="mb-6 flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground" aria-label="Breadcrumbs"><a${$.attr("href", resolveDocsmintRoute(route, "/"))} class="hover:text-foreground transition-colors">Home</a> <!--[-->`);
1981
2140
  const each_array_1 = $.ensure_array_like(data.breadcrumb);
1982
2141
  for (let idx = 0, $$length = each_array_1.length; idx < $$length; idx++) {
1983
2142
  let path = each_array_1[idx];
@@ -1988,7 +2147,7 @@ function HiaiDocsDashboardHost($$renderer, $$props) {
1988
2147
  $$renderer.push(`<span class="font-medium text-foreground truncate max-w-[150px]">${$.escape(path.name)}</span>`);
1989
2148
  } else {
1990
2149
  $$renderer.push("<!--[-1-->");
1991
- $$renderer.push(`<a${$.attr("href", `/?folder=${$.stringify(path.id)}`)} class="hover:text-foreground transition-colors truncate max-w-[150px]">${$.escape(path.name)}</a>`);
2150
+ $$renderer.push(`<a${$.attr("href", resolveDocsmintRoute(route, `/?folder=${encodeURIComponent(path.id)}`))} class="hover:text-foreground transition-colors truncate max-w-[150px]">${$.escape(path.name)}</a>`);
1992
2151
  }
1993
2152
  $$renderer.push(`<!--]-->`);
1994
2153
  }
@@ -2061,17 +2220,49 @@ function HiaiDocsDashboardHost($$renderer, $$props) {
2061
2220
  $$renderer.push("<!--]-->");
2062
2221
  }
2063
2222
  $$renderer.push(` `);
2064
- if (Select$1.Content) {
2223
+ if (Portal) {
2065
2224
  $$renderer.push("<!--[-->");
2066
- Select$1.Content($$renderer, {
2067
- class: "w-[var(--bits-select-trigger-width)]",
2225
+ Portal($$renderer, {
2068
2226
  children: ($$renderer) => {
2069
- if (Select$1.Item) {
2227
+ if (Select$1.Content) {
2070
2228
  $$renderer.push("<!--[-->");
2071
- Select$1.Item($$renderer, {
2072
- value: "all",
2229
+ Select$1.Content($$renderer, {
2230
+ class: "w-[var(--bits-select-trigger-width)]",
2073
2231
  children: ($$renderer) => {
2074
- $$renderer.push(`<!---->All Categories`);
2232
+ if (Select$1.Item) {
2233
+ $$renderer.push("<!--[-->");
2234
+ Select$1.Item($$renderer, {
2235
+ value: "all",
2236
+ children: ($$renderer) => {
2237
+ $$renderer.push(`<!---->All Categories`);
2238
+ },
2239
+ $$slots: { default: true }
2240
+ });
2241
+ $$renderer.push("<!--]-->");
2242
+ } else {
2243
+ $$renderer.push("<!--[!-->");
2244
+ $$renderer.push("<!--]-->");
2245
+ }
2246
+ $$renderer.push(` <!--[-->`);
2247
+ const each_array_2 = $.ensure_array_like(data.categories);
2248
+ for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
2249
+ let cat = each_array_2[$$index_2];
2250
+ if (Select$1.Item) {
2251
+ $$renderer.push("<!--[-->");
2252
+ Select$1.Item($$renderer, {
2253
+ value: cat.id,
2254
+ children: ($$renderer) => {
2255
+ $$renderer.push(`<!---->${$.escape(cat.name)}`);
2256
+ },
2257
+ $$slots: { default: true }
2258
+ });
2259
+ $$renderer.push("<!--]-->");
2260
+ } else {
2261
+ $$renderer.push("<!--[!-->");
2262
+ $$renderer.push("<!--]-->");
2263
+ }
2264
+ }
2265
+ $$renderer.push(`<!--]-->`);
2075
2266
  },
2076
2267
  $$slots: { default: true }
2077
2268
  });
@@ -2080,26 +2271,6 @@ function HiaiDocsDashboardHost($$renderer, $$props) {
2080
2271
  $$renderer.push("<!--[!-->");
2081
2272
  $$renderer.push("<!--]-->");
2082
2273
  }
2083
- $$renderer.push(` <!--[-->`);
2084
- const each_array_2 = $.ensure_array_like(data.categories);
2085
- for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
2086
- let cat = each_array_2[$$index_2];
2087
- if (Select$1.Item) {
2088
- $$renderer.push("<!--[-->");
2089
- Select$1.Item($$renderer, {
2090
- value: cat.id,
2091
- children: ($$renderer) => {
2092
- $$renderer.push(`<!---->${$.escape(cat.name)}`);
2093
- },
2094
- $$slots: { default: true }
2095
- });
2096
- $$renderer.push("<!--]-->");
2097
- } else {
2098
- $$renderer.push("<!--[!-->");
2099
- $$renderer.push("<!--]-->");
2100
- }
2101
- }
2102
- $$renderer.push(`<!--]-->`);
2103
2274
  },
2104
2275
  $$slots: { default: true }
2105
2276
  });
@@ -2168,17 +2339,49 @@ function HiaiDocsDashboardHost($$renderer, $$props) {
2168
2339
  $$renderer.push("<!--]-->");
2169
2340
  }
2170
2341
  $$renderer.push(` `);
2171
- if (Select$1.Content) {
2342
+ if (Portal) {
2172
2343
  $$renderer.push("<!--[-->");
2173
- Select$1.Content($$renderer, {
2174
- class: "w-[var(--bits-select-trigger-width)]",
2344
+ Portal($$renderer, {
2175
2345
  children: ($$renderer) => {
2176
- if (Select$1.Item) {
2346
+ if (Select$1.Content) {
2177
2347
  $$renderer.push("<!--[-->");
2178
- Select$1.Item($$renderer, {
2179
- value: "all",
2348
+ Select$1.Content($$renderer, {
2349
+ class: "w-[var(--bits-select-trigger-width)]",
2180
2350
  children: ($$renderer) => {
2181
- $$renderer.push(`<!---->All Tags`);
2351
+ if (Select$1.Item) {
2352
+ $$renderer.push("<!--[-->");
2353
+ Select$1.Item($$renderer, {
2354
+ value: "all",
2355
+ children: ($$renderer) => {
2356
+ $$renderer.push(`<span class="inline-flex items-center gap-2"><span class="size-2 rounded-full bg-muted-foreground"></span>All Tags</span>`);
2357
+ },
2358
+ $$slots: { default: true }
2359
+ });
2360
+ $$renderer.push("<!--]-->");
2361
+ } else {
2362
+ $$renderer.push("<!--[!-->");
2363
+ $$renderer.push("<!--]-->");
2364
+ }
2365
+ $$renderer.push(` <!--[-->`);
2366
+ const each_array_3 = $.ensure_array_like(data.tags);
2367
+ for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {
2368
+ let tag = each_array_3[$$index_3];
2369
+ if (Select$1.Item) {
2370
+ $$renderer.push("<!--[-->");
2371
+ Select$1.Item($$renderer, {
2372
+ value: tag.id,
2373
+ children: ($$renderer) => {
2374
+ $$renderer.push(`<span class="inline-flex items-center gap-2"><span class="size-2 rounded-full"${$.attr_style(`background-color: ${$.stringify(tag.color || "#cccccc")}`)}></span>${$.escape(tag.name)}</span>`);
2375
+ },
2376
+ $$slots: { default: true }
2377
+ });
2378
+ $$renderer.push("<!--]-->");
2379
+ } else {
2380
+ $$renderer.push("<!--[!-->");
2381
+ $$renderer.push("<!--]-->");
2382
+ }
2383
+ }
2384
+ $$renderer.push(`<!--]-->`);
2182
2385
  },
2183
2386
  $$slots: { default: true }
2184
2387
  });
@@ -2187,26 +2390,6 @@ function HiaiDocsDashboardHost($$renderer, $$props) {
2187
2390
  $$renderer.push("<!--[!-->");
2188
2391
  $$renderer.push("<!--]-->");
2189
2392
  }
2190
- $$renderer.push(` <!--[-->`);
2191
- const each_array_3 = $.ensure_array_like(data.tags);
2192
- for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {
2193
- let tag = each_array_3[$$index_3];
2194
- if (Select$1.Item) {
2195
- $$renderer.push("<!--[-->");
2196
- Select$1.Item($$renderer, {
2197
- value: tag.id,
2198
- children: ($$renderer) => {
2199
- $$renderer.push(`<!---->${$.escape(tag.name)}`);
2200
- },
2201
- $$slots: { default: true }
2202
- });
2203
- $$renderer.push("<!--]-->");
2204
- } else {
2205
- $$renderer.push("<!--[!-->");
2206
- $$renderer.push("<!--]-->");
2207
- }
2208
- }
2209
- $$renderer.push(`<!--]-->`);
2210
2393
  },
2211
2394
  $$slots: { default: true }
2212
2395
  });
@@ -2392,21 +2575,32 @@ function HiaiDocsDashboardHost($$renderer, $$props) {
2392
2575
  $$slots: { default: true }
2393
2576
  });
2394
2577
  $$renderer.push(`<!----> `);
2395
- Dropdown_menu_content($$renderer, {
2396
- align: "end",
2397
- children: ($$renderer) => {
2398
- Dropdown_menu_item($$renderer, {
2399
- onSelect: () => openShareDialogForCategory(section.category.id, section.category.name),
2400
- children: ($$renderer) => {
2401
- Share_2($$renderer, { class: "size-4" });
2402
- $$renderer.push(`<!----> ${$.escape(doc_share())}`);
2403
- },
2404
- $$slots: { default: true }
2405
- });
2406
- },
2407
- $$slots: { default: true }
2408
- });
2409
- $$renderer.push(`<!---->`);
2578
+ if (Portal) {
2579
+ $$renderer.push("<!--[-->");
2580
+ Portal($$renderer, {
2581
+ children: ($$renderer) => {
2582
+ Dropdown_menu_content($$renderer, {
2583
+ align: "end",
2584
+ children: ($$renderer) => {
2585
+ Dropdown_menu_item($$renderer, {
2586
+ onSelect: () => openShareDialogForCategory(section.category.id, section.category.name),
2587
+ children: ($$renderer) => {
2588
+ Share_2($$renderer, { class: "size-4" });
2589
+ $$renderer.push(`<!----> ${$.escape(doc_share())}`);
2590
+ },
2591
+ $$slots: { default: true }
2592
+ });
2593
+ },
2594
+ $$slots: { default: true }
2595
+ });
2596
+ },
2597
+ $$slots: { default: true }
2598
+ });
2599
+ $$renderer.push("<!--]-->");
2600
+ } else {
2601
+ $$renderer.push("<!--[!-->");
2602
+ $$renderer.push("<!--]-->");
2603
+ }
2410
2604
  },
2411
2605
  $$slots: { default: true }
2412
2606
  });
@@ -9,7 +9,7 @@ import { a as getDocsmintRequestAdapter, n as navigateDocsmintRoute, t as getDoc
9
9
  import "./assets/categories-av9xjeg5.js";
10
10
  import { t as getFrontendExtensions } from "./assets/context-BtCMqdVe.js";
11
11
  import { t as resolveExtensions } from "./assets/resolve-BqHozBXl.js";
12
- import "./assets/select-value-6Lk0ToYd.js";
12
+ import "./assets/select-value-DBhbkNcc.js";
13
13
  import "./assets/tag-store.svelte-BM1lUI_P.js";
14
14
  import * as $ from "svelte/internal/server";
15
15
  //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/sliders-horizontal.svelte
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiai-gg/docsmint",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "browser": {
6
6
  "./dist/backend-launcher.js": false,
@@ -24,7 +24,7 @@ import { registerSearch } from "./commands/search.js";
24
24
  import { registerSnapshot } from "./commands/snapshot.js";
25
25
  import { registerUpdate } from "./commands/update.js";
26
26
 
27
- const VERSION = "0.5.0";
27
+ const VERSION = "0.5.1";
28
28
 
29
29
  const program = new Command();
30
30
  program
@@ -35,7 +35,7 @@ interface McpToolResult {
35
35
 
36
36
  const server = new McpServer({
37
37
  name: "hiai-docs",
38
- version: "0.5.0",
38
+ version: "0.5.1",
39
39
  });
40
40
 
41
41
  /**