@meaningfully/ui 0.0.5 → 0.0.6

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/README.md CHANGED
@@ -1,5 +1,3 @@
1
1
  # meaningfully-ui
2
2
 
3
- This is a library of UI components for [meaningfully](https://www.github.com/jeremybmerrill/meaningfully), which is an app (or collection of apps!) for semantic search over spreadsheets. See the main repo URL for more discussion.
4
-
5
-
3
+ This is a library of UI components for [meaningfully](https://www.github.com/jeremybmerrill/meaningfully), which is an app (or collection of apps!) for semantic search over spreadsheets. See the main repo URL for more discussion.
package/dist/App.svelte CHANGED
@@ -14,8 +14,10 @@
14
14
  basePath: string;
15
15
  }
16
16
  let { api, basePath }: Props = $props();
17
-
18
- let url = $state(basePath || '');
17
+
18
+ let basepath = $state(basePath || '');
19
+ console.log("basepath App", basepath);
20
+ let url = $state('');
19
21
  // Ensure $state returns Settings | null
20
22
  let settings = $state<Settings | null>(null);
21
23
 
@@ -43,7 +45,7 @@
43
45
 
44
46
  <!-- <img alt="logo" class="logo" src={electronLogo} /> -->
45
47
 
46
- <Router url={url} >
48
+ <Router url={url} basepath={basepath}>
47
49
  <Link to="/">
48
50
  <h1 class="text-2xl font-bold">
49
51
  Meaningfully
@@ -68,7 +70,9 @@
68
70
  <Route path="search/:id" let:params>
69
71
  <SearchPage validApiKeysSet={validApiKeysSet} documentSetId={Number(params.id)} api={api} />
70
72
  </Route>
71
- <Route path="help" component={HelpPage} />
73
+ <Route path="help">
74
+ <HelpPage />
75
+ </Route>
72
76
  <Route path="settings">
73
77
  {#if settings}
74
78
  <ApiKeyPage settings={settings} settingsUpdated={() => getSettings() } api={api} />
@@ -80,6 +84,7 @@
80
84
  <Link to="" class="nav-link underline text-blue-600 hover:text-blue-800 visited:text-purple-600">Home</Link>
81
85
  <Link to="help" class="nav-link underline text-blue-600 hover:text-blue-800 visited:text-purple-600">Help</Link>
82
86
  <Link to="settings" class="nav-link underline text-blue-600 hover:text-blue-800 visited:text-purple-600">Settings / API Keys</Link>
87
+ <a href="https://github.com/jeremybmerrill/meaningfully" target="_blank" class="nav-link underline text-blue-600 hover:text-blue-800 visited:text-purple-600">GitHub</a>
83
88
  <span class="nav-link creator">Built with ✨ by Jeremy</span>
84
89
  <span class="nav-link">© 2025</span>
85
90
  </nav>
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { navigate } from 'svelte-routing'
3
- import type { MeaningfullyAPI } from '../types';
3
+ import type { MeaningfullyAPI } from '../types.js';
4
4
 
5
5
  interface Props {
6
6
  settings: Settings;
@@ -1,4 +1,4 @@
1
- import type { MeaningfullyAPI } from '../types';
1
+ import type { MeaningfullyAPI } from '../types.js';
2
2
  interface Props {
3
3
  settings: Settings;
4
4
  settingsUpdated: () => void;
@@ -10,7 +10,7 @@
10
10
 
11
11
  {#if !validApiKeysSet }
12
12
  <div class="alert alert-warning" data-testid="api-key-status">
13
- <p>No OpenAI API key is set. Please <Link to="/settings" class="text-blue text-decoration-line"><span class="text-blue text-decoration-line">add one</span></Link> (or details for another provider) in order to use Meaningfully.</p>
13
+ <p>No OpenAI API key is set. Please <Link to="settings" class="text-blue text-decoration-line"><span class="text-blue text-decoration-line">add one</span></Link> (or details for another provider) in order to use Meaningfully.</p>
14
14
  </div>
15
15
  {/if}
16
16
 
@@ -35,4 +35,4 @@
35
35
  cursor: pointer;
36
36
  font-weight: bold;
37
37
  }
38
- </style>
38
+ </style>
@@ -108,7 +108,7 @@
108
108
  >
109
109
  <td class="px-4 py-2 font-medium">
110
110
  <Link
111
- to={`/search/${set.documentSetId}`}
111
+ to={`search/${set.documentSetId}`}
112
112
  class="underline text-blue-600 hover:text-blue-800 visited:text-purple-600"
113
113
  >
114
114
  {set.name}
@@ -24,14 +24,14 @@
24
24
  </p>
25
25
  </section>
26
26
  <section>
27
- <h2> a CSV</h2>
27
+ <h2>Upload a CSV</h2>
28
28
  <p>
29
29
  You can select a CSV from your computer to "upload" it to Meaningfully. Then, select one column
30
30
  from the CSV to search semantically, and any number of other columns to be shown alongside it in results.
31
31
  </p>
32
32
  <p>
33
33
  Once you upload the CSV, each entry in the chosen column will be embedded, with the results stored on your
34
- computer. If you choose a remote embedding API -- like OpenAI's text-embedding-small or text-embedding-large --
34
+ computer. If you choose a remote embedding API (like OpenAI's text-embedding-small or text-embedding-large)
35
35
  then the entries in your column will be sent
36
36
  to that service; if you choose a local one, then the data will not leave your computer.
37
37
  </p>
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { navigate } from 'svelte-routing';
3
- import type { DocumentSet, MeaningfullyAPI } from '../types';
3
+ import type { DocumentSet, MeaningfullyAPI } from '../types.js';
4
4
  import Results from './Results.svelte';
5
5
 
6
6
  interface Props {
@@ -1,4 +1,4 @@
1
- import type { MeaningfullyAPI } from '../types';
1
+ import type { MeaningfullyAPI } from '../types.js';
2
2
  interface Props {
3
3
  validApiKeysSet: boolean;
4
4
  documentSetId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meaningfully/ui",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "description": "Svelte components for meaningfully semantic search",
6
6
  "repo": "https://github.com/jeremybmerrill/meaningfully-ui",