@sierra-95/svelte-scaffold 1.1.2 → 1.1.4
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/dist/Core/components/Form/Input/select/select.svelte +1 -1
- package/dist/Core/components/Menus/Tabs/main.svelte +1 -0
- package/dist/Core/components/others/ColorPicker/main.svelte +1 -0
- package/dist/Core/components/others/Modal/modal.svelte +1 -1
- package/dist/Modules/Editor/Marks/Links/links.svelte +1 -1
- package/dist/Modules/Editor/Marks/TextFormatting/textFormatting.svelte +1 -0
- package/dist/Modules/Editor/Nodes/Headings/heading.svelte +1 -1
- package/dist/Modules/Editor/Nodes/History/history.svelte +2 -2
- package/dist/Modules/Editor/Nodes/Images/images.svelte +1 -1
- package/dist/Modules/Editor/Nodes/Lists/lists.svelte +2 -0
- package/dist/Modules/Editor/Nodes/TextAlign/textAlign.svelte +1 -1
- package/dist/Modules/Editor/Nodes/TextColor/textColor.svelte +3 -2
- package/dist/Modules/Editor/Nodes/Youtube/youtube.svelte +1 -0
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<label class="sierra-input" style="width: {width}; max-width: {maxWidth}; color: {textColor}" for={id}>{label}
|
|
16
|
-
<select bind:value={value} id={id} required style="background-color: {background}; height: {height}">
|
|
16
|
+
<select bind:value={value} id={id} name={id} required style="background-color: {background}; height: {height}">
|
|
17
17
|
{#each options as option}
|
|
18
18
|
<option
|
|
19
19
|
value={option.value}
|
|
@@ -82,6 +82,6 @@
|
|
|
82
82
|
<Input underline label="Edit link URL" id="link-url" bind:value={url}/>
|
|
83
83
|
{/snippet}
|
|
84
84
|
|
|
85
|
-
<button aria-label="Link Button" on:click={ editor.isActive('link')? updateLink : newLink} title="Add/Edit Link">
|
|
85
|
+
<button type="button" aria-label="Link Button" on:click={ editor.isActive('link')? updateLink : newLink} title="Add/Edit Link">
|
|
86
86
|
<i class="fa fa-link"></i>
|
|
87
87
|
</button>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
{#if editor}
|
|
39
39
|
<DropdownContainer bind:open>
|
|
40
40
|
{#snippet dropdownTrigger()}
|
|
41
|
-
<button aria-label="Heading Options" on:click={() => (open = !open)} style="display: flex; align-items: center; gap: 4px;">
|
|
41
|
+
<button type="button" aria-label="Heading Options" on:click={() => (open = !open)} style="display: flex; align-items: center; gap: 4px;">
|
|
42
42
|
<h5 style="font-weight: bold;">H{editor.getAttributes('heading').level}</h5>
|
|
43
43
|
<i class="fa fa-chevron-down {open ? 'active' : ''}"></i>
|
|
44
44
|
</button>
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
}
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
|
-
<button on:click={undo} aria-label="Undo" title="Undo" disabled={!editor.can().undo()}>
|
|
15
|
+
<button type="button" on:click={undo} aria-label="Undo" title="Undo" disabled={!editor.can().undo()}>
|
|
16
16
|
<i class="fa fa-undo"></i>
|
|
17
17
|
</button>
|
|
18
18
|
|
|
19
|
-
<button on:click={redo} aria-label="Redo" title="Redo" disabled={!editor.can().redo()}>
|
|
19
|
+
<button type="button" on:click={redo} aria-label="Redo" title="Redo" disabled={!editor.can().redo()}>
|
|
20
20
|
<i class="fa fa-redo"></i>
|
|
21
21
|
</button>
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
{/snippet}
|
|
90
90
|
<DropdownContainer bind:open={openDropdown} width="150px">
|
|
91
91
|
{#snippet dropdownTrigger()}
|
|
92
|
-
<button aria-label="Insert Image" title="Insert File" on:click={() => openDropdown = !openDropdown}>
|
|
92
|
+
<button type="button" aria-label="Insert Image" title="Insert File" on:click={() => openDropdown = !openDropdown}>
|
|
93
93
|
<i class="fa fa-file"></i>
|
|
94
94
|
</button>
|
|
95
95
|
{/snippet}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<div style="display: flex; gap: 0.5rem">
|
|
15
15
|
<button
|
|
16
|
+
type="button"
|
|
16
17
|
aria-label="Bullet List"
|
|
17
18
|
title="Bullet List"
|
|
18
19
|
on:click={toggleBullet}
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
</button>
|
|
22
23
|
|
|
23
24
|
<button
|
|
25
|
+
type="button"
|
|
24
26
|
aria-label="Ordered List"
|
|
25
27
|
title="Ordered List"
|
|
26
28
|
on:click={toggleOrdered}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
{#if editor}
|
|
36
36
|
<DropdownContainer bind:open>
|
|
37
37
|
{#snippet dropdownTrigger()}
|
|
38
|
-
<button aria-label="Text Align Options" on:click={() => (open = !open)}>
|
|
38
|
+
<button type="button" aria-label="Text Align Options" on:click={() => (open = !open)}>
|
|
39
39
|
<i class="fa-solid fa-align-{currentAlignment.value}"></i>
|
|
40
40
|
</button>
|
|
41
41
|
{/snippet}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
<main id="editor-text-color" style="display: flex; gap: 0.5rem; align-items: center;">
|
|
35
35
|
{#snippet TriggerText()}
|
|
36
|
-
<button aria-label="Text Color" title="Color" onclick={() => textColorDropdown = !textColorDropdown}>
|
|
36
|
+
<button type="button" aria-label="Text Color" title="Color" onclick={() => textColorDropdown = !textColorDropdown}>
|
|
37
37
|
<i class="fa fa-font"></i>
|
|
38
38
|
<div bind:this={textColor} style="height: 3px; border-radius: 0.3125rem;"></div>
|
|
39
39
|
</button>
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
<div style="display: flex;">
|
|
44
44
|
<button
|
|
45
|
+
type="button"
|
|
45
46
|
aria-label="Highlight"
|
|
46
47
|
title="Highlight"
|
|
47
48
|
class="{editor.isActive('highlight') ? 'active' : ''}"
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
<i class="fa fa-font"></i>
|
|
52
53
|
</button>
|
|
53
54
|
{#snippet TriggerHighlight()}
|
|
54
|
-
<button id="color-picker-trigger" aria-label="Highlight Color" onclick={() => highlightDropdown = !highlightDropdown}>
|
|
55
|
+
<button type="button" id="color-picker-trigger" aria-label="Highlight Color" onclick={() => highlightDropdown = !highlightDropdown}>
|
|
55
56
|
<i class="fa fa-chevron-down {highlightDropdown ? 'active' : ''}"></i>
|
|
56
57
|
</button>
|
|
57
58
|
{/snippet}
|