sveltekit-ui 1.0.26 → 1.0.28
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 +1 -1
- package/dist/Components/Content/index.svelte +2 -2
- package/dist/Components/ContentInput/index.svelte +7 -2
- package/dist/Components/ContentInput/index.svelte.js +2 -2
- package/dist/client/astc_formatting/index.js +2 -0
- package/package.json +3 -3
- package/src/lib/Components/Content/index.svelte +2 -2
- package/src/lib/Components/ContentInput/index.svelte +7 -2
- package/src/lib/Components/ContentInput/index.svelte.js +2 -2
- package/src/lib/client/astc_formatting/index.js +2 -0
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ or to start a new project with a starter template (recommended). In your termina
|
|
|
15
15
|
|
|
16
16
|
## Update Package
|
|
17
17
|
|
|
18
|
-
It's possible the starter template is a few updates behind. Check for updates by running `ncu -u`. You should run that periodically to keep the latest version of
|
|
18
|
+
It's possible the starter template is a few updates behind. Check for updates by running `ncu -u`. You should run that periodically to keep the latest version of your npm packges
|
|
19
19
|
|
|
20
20
|
## Developing
|
|
21
21
|
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import Dropdown from "../Dropdown/index.svelte"
|
|
9
9
|
|
|
10
10
|
let { manager, panel_header } = $props()
|
|
11
|
-
|
|
12
11
|
</script>
|
|
13
12
|
|
|
14
13
|
<div class="container">
|
|
@@ -26,6 +25,13 @@
|
|
|
26
25
|
<Popover manager={manager?.paste_astc_markdown_popover_manager}>
|
|
27
26
|
{#snippet content()}
|
|
28
27
|
<div>
|
|
28
|
+
<p>Note: for valid json make sure all keys and strings are in double quotes, and no trailing commas. example:</p>
|
|
29
|
+
<pre>
|
|
30
|
+
{`{
|
|
31
|
+
"type_id": "div",
|
|
32
|
+
"children": []
|
|
33
|
+
}`}
|
|
34
|
+
</pre>
|
|
29
35
|
<Dropdown manager={manager?.paste_astc_markdown_dropdown_manager} />
|
|
30
36
|
<TextInput manager={manager?.paste_astc_markdown_text_input_manager} />
|
|
31
37
|
</div>
|
|
@@ -35,7 +41,6 @@
|
|
|
35
41
|
{/snippet}
|
|
36
42
|
</Popover>
|
|
37
43
|
|
|
38
|
-
|
|
39
44
|
<style>
|
|
40
45
|
.container {
|
|
41
46
|
display: flex;
|
|
@@ -152,9 +152,9 @@ export function create_content_input_manager(config) {
|
|
|
152
152
|
extra_popover_manager = create_popover_manager({
|
|
153
153
|
type: "dropdown",
|
|
154
154
|
min_width: 100,
|
|
155
|
-
target_width:
|
|
155
|
+
target_width: 220,
|
|
156
156
|
min_height: 100,
|
|
157
|
-
target_height:
|
|
157
|
+
target_height: 240,
|
|
158
158
|
anchor_id: () => `button_${extra_popover_button_manager?.id}`,
|
|
159
159
|
})
|
|
160
160
|
extra_popover_button_manager = create_button_manager({
|
|
@@ -306,6 +306,8 @@ export function astc_to_markdown(astc) {
|
|
|
306
306
|
return `\`\`\`${language}\n${attributes.content}\n\`\`\`\n`
|
|
307
307
|
case "hr":
|
|
308
308
|
return "---\n"
|
|
309
|
+
case "br":
|
|
310
|
+
return "\n"
|
|
309
311
|
case "table":
|
|
310
312
|
const table_rows = children.map((child) => astc_element_to_markdown(child))
|
|
311
313
|
return table_rows.join("\n") + "\n"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sveltekit-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"description": "A SvelteKit UI component library for building modern web applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@sveltejs/adapter-vercel": "^5.10.2",
|
|
29
|
-
"@sveltejs/kit": "^2.
|
|
30
|
-
"@sveltejs/package": "^2.
|
|
29
|
+
"@sveltejs/kit": "^2.36.1",
|
|
30
|
+
"@sveltejs/package": "^2.5.0",
|
|
31
31
|
"@sveltejs/vite-plugin-svelte": "^6.1.3",
|
|
32
32
|
"@vercel/analytics": "^1.5.0",
|
|
33
33
|
"typescript": "^5.9.2",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import Dropdown from "$lib/Components/Dropdown/index.svelte"
|
|
9
9
|
|
|
10
10
|
let { manager, panel_header } = $props()
|
|
11
|
-
|
|
12
11
|
</script>
|
|
13
12
|
|
|
14
13
|
<div class="container">
|
|
@@ -26,6 +25,13 @@
|
|
|
26
25
|
<Popover manager={manager?.paste_astc_markdown_popover_manager}>
|
|
27
26
|
{#snippet content()}
|
|
28
27
|
<div>
|
|
28
|
+
<p>Note: for valid json make sure all keys and strings are in double quotes, and no trailing commas. example:</p>
|
|
29
|
+
<pre>
|
|
30
|
+
{`{
|
|
31
|
+
"type_id": "div",
|
|
32
|
+
"children": []
|
|
33
|
+
}`}
|
|
34
|
+
</pre>
|
|
29
35
|
<Dropdown manager={manager?.paste_astc_markdown_dropdown_manager} />
|
|
30
36
|
<TextInput manager={manager?.paste_astc_markdown_text_input_manager} />
|
|
31
37
|
</div>
|
|
@@ -35,7 +41,6 @@
|
|
|
35
41
|
{/snippet}
|
|
36
42
|
</Popover>
|
|
37
43
|
|
|
38
|
-
|
|
39
44
|
<style>
|
|
40
45
|
.container {
|
|
41
46
|
display: flex;
|
|
@@ -152,9 +152,9 @@ export function create_content_input_manager(config) {
|
|
|
152
152
|
extra_popover_manager = create_popover_manager({
|
|
153
153
|
type: "dropdown",
|
|
154
154
|
min_width: 100,
|
|
155
|
-
target_width:
|
|
155
|
+
target_width: 220,
|
|
156
156
|
min_height: 100,
|
|
157
|
-
target_height:
|
|
157
|
+
target_height: 240,
|
|
158
158
|
anchor_id: () => `button_${extra_popover_button_manager?.id}`,
|
|
159
159
|
})
|
|
160
160
|
extra_popover_button_manager = create_button_manager({
|
|
@@ -306,6 +306,8 @@ export function astc_to_markdown(astc) {
|
|
|
306
306
|
return `\`\`\`${language}\n${attributes.content}\n\`\`\`\n`
|
|
307
307
|
case "hr":
|
|
308
308
|
return "---\n"
|
|
309
|
+
case "br":
|
|
310
|
+
return "\n"
|
|
309
311
|
case "table":
|
|
310
312
|
const table_rows = children.map((child) => astc_element_to_markdown(child))
|
|
311
313
|
return table_rows.join("\n") + "\n"
|