@lapis-notes/ui 0.2.4 → 0.2.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @lapis-notes/ui
|
|
2
2
|
|
|
3
|
+
## 0.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#184](https://github.com/lapismd/lapis-notes/pull/184)
|
|
8
|
+
[`daef091`](https://github.com/lapismd/lapis-notes/commit/daef0915b7c5c88da7b8997097a5dee896f72bdf)
|
|
9
|
+
Thanks
|
|
10
|
+
[@lapismd-dependency-bot](https://github.com/apps/lapismd-dependency-bot)! -
|
|
11
|
+
Refresh first-party Lapis dependencies to the published versions recorded in
|
|
12
|
+
this pull request.
|
|
13
|
+
|
|
14
|
+
## 0.2.5
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#174](https://github.com/lapismd/lapis-notes/pull/174)
|
|
19
|
+
[`8debba3`](https://github.com/lapismd/lapis-notes/commit/8debba36e6a2813d91f7b17f1173e03059402a10)
|
|
20
|
+
Thanks [@stevejuma](https://github.com/stevejuma)! - Keep General → Advanced
|
|
21
|
+
CLI fields bound to their disposable host registration when settings rendering
|
|
22
|
+
copies or proxies their descriptors. Preserve public ports, independent
|
|
23
|
+
owners, replacement/disposal and settings persistence.
|
|
24
|
+
|
|
3
25
|
## 0.2.4
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type {
|
|
3
|
-
import { cliSettingsFieldHost } from "./cli-settings";
|
|
2
|
+
import type { CliSettingsHost } from "./cli-settings";
|
|
4
3
|
import CliSettings from "./CliSettings.svelte";
|
|
5
4
|
|
|
6
|
-
let {
|
|
7
|
-
let host = $derived(cliSettingsFieldHost(field));
|
|
5
|
+
let { host }: { host: CliSettingsHost } = $props();
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<CliSettings {host} embedded />
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { CliSettingsHost } from "./cli-settings";
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
host: CliSettingsHost;
|
|
4
|
+
};
|
|
5
|
+
declare const CliSettingsField: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
3
6
|
type CliSettingsField = ReturnType<typeof CliSettingsField>;
|
|
4
7
|
export default CliSettingsField;
|
package/dist/cli/cli-settings.js
CHANGED
|
@@ -26,7 +26,13 @@ export function registerCliSettings(settings, host) {
|
|
|
26
26
|
description: "Use the lapis command from your terminal.",
|
|
27
27
|
type: "custom",
|
|
28
28
|
presentation: "full-width",
|
|
29
|
-
component:
|
|
29
|
+
component: (anchor) => {
|
|
30
|
+
if (hosts.get(settings) !== entry) {
|
|
31
|
+
throw new Error("CLI settings host is not bound");
|
|
32
|
+
}
|
|
33
|
+
CliSettingsField(anchor, { host: entry.host });
|
|
34
|
+
return {};
|
|
35
|
+
},
|
|
30
36
|
};
|
|
31
37
|
fieldHosts.set(field, host);
|
|
32
38
|
const dispose = settings.registerSection({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lapis-notes/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Public UI primitives required by Lapis Notes API consumers",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"dependencies": {
|
|
97
97
|
"@dnd-kit/dom": "^0.4.0",
|
|
98
98
|
"@dnd-kit/svelte": "^0.4.0",
|
|
99
|
-
"@lapismd/design-core": "^0.13.
|
|
99
|
+
"@lapismd/design-core": "^0.13.6",
|
|
100
100
|
"@lucide/svelte": "^0.515.0",
|
|
101
101
|
"bits-ui": "2.20.2",
|
|
102
102
|
"clsx": "^2.1.1",
|