@widgetic/editor 4.1.14 → 4.1.16
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/components/PreviewChromeControls.svelte +15 -21
- package/dist/components/WidgetPreview.svelte +136 -105
- package/dist/components/color-select/ColorSelect.svelte +203 -224
- package/dist/components/color-select/constants.d.ts +4 -2
- package/dist/components/color-select/constants.js +4 -2
- package/dist/components/color-select/render.js +10 -9
- package/dist/components/editors/CompositionEditorApp.svelte +47 -40
- package/dist/components/editors/EditLeaseNotice.svelte +44 -33
- package/dist/components/editors/EmbedEditor.svelte +133 -259
- package/dist/components/editors/PropsEditor.svelte +418 -1338
- package/dist/components/editors/props-editor.css +5 -68
- package/dist/components/ic/AngleInputController.svelte +202 -277
- package/dist/components/ic/BrowserInputController.svelte +813 -803
- package/dist/components/ic/CheckboxInputController.svelte +92 -169
- package/dist/components/ic/CheckboxInputController.svelte.d.ts +2 -8
- package/dist/components/ic/ColorPickerInputController.svelte +1589 -1587
- package/dist/components/ic/ColorPickerInputController.svelte.d.ts +3 -3
- package/dist/components/ic/DateFieldInputController.svelte +455 -465
- package/dist/components/ic/DatePickerInputController.svelte +355 -368
- package/dist/components/ic/DatePickerInputController.svelte.d.ts +1 -1
- package/dist/components/ic/DropdownInputController.svelte +130 -200
- package/dist/components/ic/FixedPositionInputController.svelte +255 -276
- package/dist/components/ic/FixedPositionInputController.svelte.d.ts +5 -1
- package/dist/components/ic/FontInputController.svelte +2110 -2231
- package/dist/components/ic/FontInputController.svelte.d.ts +11 -11
- package/dist/components/ic/InputControllerHeader.svelte +141 -147
- package/dist/components/ic/InputControllerRow.svelte +74 -0
- package/dist/components/ic/InputControllerRow.svelte.d.ts +14 -0
- package/dist/components/ic/KnowledgeDocumentsInputController.svelte +84 -47
- package/dist/components/ic/KnowledgeTextForm.svelte +35 -33
- package/dist/components/ic/NumberControls.svelte +303 -269
- package/dist/components/ic/NumberControls.svelte.d.ts +4 -1
- package/dist/components/ic/NumberInputController.svelte +361 -301
- package/dist/components/ic/NumberInputController.svelte.d.ts +2 -0
- package/dist/components/ic/PositionInputController.svelte +253 -176
- package/dist/components/ic/PositionInputController.svelte.d.ts +2 -0
- package/dist/components/ic/RadioGroupInputController.svelte +71 -137
- package/dist/components/ic/RadioGroupInputController.svelte.d.ts +2 -8
- package/dist/components/ic/RangeCalendarInputController.svelte +233 -270
- package/dist/components/ic/RangeCalendarInputController.svelte.d.ts +2 -2
- package/dist/components/ic/RoundedCornersInputController.svelte +412 -435
- package/dist/components/ic/RoundedCornersInputController.svelte.d.ts +2 -0
- package/dist/components/ic/SliderInputController.svelte +263 -332
- package/dist/components/ic/SliderInputController.svelte.d.ts +1 -1
- package/dist/components/ic/SliderRangeInputController.svelte +140 -144
- package/dist/components/ic/SliderRangeInputController.svelte.d.ts +3 -3
- package/dist/components/ic/SwitchInputController.svelte +47 -109
- package/dist/components/ic/TagsInputController.svelte +95 -110
- package/dist/components/ic/TextAreaInputController.svelte +1794 -1935
- package/dist/components/ic/TextAreaPreviewInputController.svelte +436 -438
- package/dist/components/ic/TextAreaPreviewInputController.svelte.d.ts +2 -2
- package/dist/components/ic/TextInputController.svelte +65 -75
- package/dist/components/ic/TextInputController.svelte.d.ts +2 -0
- package/dist/components/ic/TimeInputController.svelte +433 -431
- package/dist/components/ic/VectorInputController.svelte +1833 -1831
- package/dist/components/ic/VectorInputController.svelte.d.ts +10 -10
- package/dist/components/ic/index.d.ts +1 -0
- package/dist/components/ic/index.js +1 -0
- package/dist/components/ic/shared/CategoryTabs.svelte +28 -35
- package/dist/components/ic/shared/ItemGrid.svelte +145 -179
- package/dist/components/ic/shared/RecentItemsSection.svelte +208 -271
- package/dist/components/ic/shared/RecentItemsSection.svelte.d.ts +1 -1
- package/dist/components/ui/arrows/OpacitySliderArrows.svelte +23 -38
- package/dist/components/ui/arrows/OpacitySliderArrows.svelte.d.ts +1 -4
- package/dist/components/ui/calendar-editor-fit/EditorCalendarStyles.svelte +45 -0
- package/dist/components/ui/calendar-editor-fit/EditorCalendarStyles.svelte.d.ts +26 -0
- package/dist/components/ui/checkerboard-background/CheckerboardBackground.svelte +20 -12
- package/dist/components/ui/shadow-picker-host/ShadowPickerHost.svelte +39 -0
- package/dist/components/ui/shadow-picker-host/ShadowPickerHost.svelte.d.ts +10 -0
- package/dist/i18n/language.d.ts +44 -281
- package/dist/i18n/messages.d.ts +41 -34
- package/dist/i18n/messages.js +47 -34
- package/dist/i18n/translate.d.ts +1 -1
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js +26 -2
- package/package.json +5 -5
|
@@ -9,274 +9,148 @@
|
|
|
9
9
|
<svelte:options runes={false} />
|
|
10
10
|
|
|
11
11
|
<script lang="ts">
|
|
12
|
-
import { onMount } from 'svelte';
|
|
13
|
-
import { toast, CopyableHeader } from '@widgetic/design-system/components';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { useEditorLanguage } from '../../i18n/language';
|
|
12
|
+
import { onMount } from 'svelte';
|
|
13
|
+
import { toast, CopyableHeader } from '@widgetic/design-system/components';
|
|
14
|
+
import PropsEditor from './PropsEditor.svelte';
|
|
15
|
+
import { useEditorLanguage } from '../../i18n/language';
|
|
17
16
|
|
|
18
|
-
/** Component configuration — existing public props and methods are preserved. */
|
|
19
|
-
let className = '';
|
|
20
|
-
export { className as class };
|
|
21
|
-
export let style = '';
|
|
22
|
-
/** The title of the code box. Without one, the editor's own word in the language of the page. */
|
|
23
|
-
export let embedHeaderText: string | undefined = undefined;
|
|
24
|
-
export let embedCode = '';
|
|
25
|
-
export let height = 720;
|
|
26
|
-
export let embedSchema: any;
|
|
27
|
-
// Initial values for embed options (overrides schema defaultValue)
|
|
28
|
-
export let initialValues: Record<string, any> = {};
|
|
29
|
-
// When false, skip the outer full-page dark wrapper (for embedding inside another layout)
|
|
30
|
-
export let standalone = true;
|
|
31
|
-
/** Show Save status control in the shared drag bar (composition embed overlay). */
|
|
32
|
-
export let showSaveButton = false;
|
|
33
|
-
/** True when local embed option edits are not yet persisted. */
|
|
34
|
-
export let saveDirty = false;
|
|
35
|
-
/** True while a save request is in flight. */
|
|
36
|
-
export let saveSaving = false;
|
|
17
|
+
/** Component configuration — existing public props and methods are preserved. */
|
|
18
|
+
let className = '';
|
|
19
|
+
export { className as class };
|
|
20
|
+
export let style = '';
|
|
21
|
+
/** The title of the code box. Without one, the editor's own word in the language of the page. */
|
|
22
|
+
export let embedHeaderText: string | undefined = undefined;
|
|
23
|
+
export let embedCode = '';
|
|
24
|
+
export let height = 720;
|
|
25
|
+
export let embedSchema: any;
|
|
26
|
+
// Initial values for embed options (overrides schema defaultValue)
|
|
27
|
+
export let initialValues: Record<string, any> = {};
|
|
28
|
+
// When false, skip the outer full-page dark wrapper (for embedding inside another layout)
|
|
29
|
+
export let standalone = true;
|
|
30
|
+
/** Show Save status control in the shared drag bar (composition embed overlay). */
|
|
31
|
+
export let showSaveButton = false;
|
|
32
|
+
/** True when local embed option edits are not yet persisted. */
|
|
33
|
+
export let saveDirty = false;
|
|
34
|
+
/** True while a save request is in flight. */
|
|
35
|
+
export let saveSaving = false;
|
|
37
36
|
|
|
38
|
-
// The words of the editor in the language of the page: the editor above this one chose it (see `provideEditorLanguage`).
|
|
39
|
-
const { t } = useEditorLanguage();
|
|
37
|
+
// The words of the editor in the language of the page: the editor above this one chose it (see `provideEditorLanguage`).
|
|
38
|
+
const { t } = useEditorLanguage();
|
|
40
39
|
|
|
41
|
-
|
|
42
|
-
let
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
let loading = true;
|
|
41
|
+
let wrapperElement = null;
|
|
42
|
+
let internalPropsEditorRef = null;
|
|
43
|
+
onMount(() => {
|
|
44
|
+
loading = false;
|
|
45
|
+
});
|
|
46
46
|
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
closeButton: 'embed-editor-toast-close-button'
|
|
68
|
-
},
|
|
69
|
-
onAutoClose: () => { isToastVisible = false; },
|
|
70
|
-
onDismiss: () => { isToastVisible = false; }
|
|
71
|
-
});
|
|
72
|
-
}
|
|
47
|
+
/** Guard: one toast at a time for copy actions. */
|
|
48
|
+
let isToastVisible = false;
|
|
49
|
+
function showCopyToast(
|
|
50
|
+
type: 'success' | 'error',
|
|
51
|
+
message: string,
|
|
52
|
+
options: Record<string, unknown> = {}
|
|
53
|
+
) {
|
|
54
|
+
if (isToastVisible) return;
|
|
55
|
+
isToastVisible = true;
|
|
56
|
+
toast[type](message, {
|
|
57
|
+
...options,
|
|
58
|
+
duration: 5000,
|
|
59
|
+
onAutoClose: () => {
|
|
60
|
+
isToastVisible = false;
|
|
61
|
+
},
|
|
62
|
+
onDismiss: () => {
|
|
63
|
+
isToastVisible = false;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
73
67
|
|
|
74
|
-
/** Public: update a design value in the internal PropsEditor (external dimension sync). */
|
|
75
|
-
export function updateValue(propertyId: string, value: any) {
|
|
76
|
-
|
|
77
|
-
}
|
|
68
|
+
/** Public: update a design value in the internal PropsEditor (external dimension sync). */
|
|
69
|
+
export function updateValue(propertyId: string, value: any) {
|
|
70
|
+
internalPropsEditorRef?.updateDesignValue?.(propertyId, value);
|
|
71
|
+
}
|
|
78
72
|
|
|
79
|
-
/** Public: position the same element used by PropsEditor's built-in drag. */
|
|
80
|
-
export function setPosition(left: number, top: number) {
|
|
81
|
-
|
|
82
|
-
}
|
|
73
|
+
/** Public: position the same element used by PropsEditor's built-in drag. */
|
|
74
|
+
export function setPosition(left: number, top: number) {
|
|
75
|
+
internalPropsEditorRef?.setPosition(left, top);
|
|
76
|
+
}
|
|
83
77
|
|
|
84
|
-
/** Public: get current position. */
|
|
85
|
-
export function getPosition() {
|
|
86
|
-
|
|
87
|
-
}
|
|
78
|
+
/** Public: get current position. */
|
|
79
|
+
export function getPosition() {
|
|
80
|
+
return internalPropsEditorRef?.getPosition() || { left: 0, top: 0 };
|
|
81
|
+
}
|
|
88
82
|
</script>
|
|
89
83
|
|
|
90
84
|
<div
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
bind:this={wrapperElement}
|
|
86
|
+
class={standalone
|
|
87
|
+
? 'embed-editor-standalone-wrapper bg-inverse flex min-h-screen w-full items-center justify-center p-4 widgetic-colors widgetic-radius'
|
|
88
|
+
: 'embed-editor-inline-wrapper absolute h-full w-editor-panel max-h-full'}
|
|
93
89
|
>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
90
|
+
<PropsEditor
|
|
91
|
+
bind:this={internalPropsEditorRef}
|
|
92
|
+
class="embed-editor-container {className}"
|
|
93
|
+
style="max-height: 100%; {style}"
|
|
94
|
+
width="450px"
|
|
95
|
+
height={embedSchema
|
|
96
|
+
? standalone
|
|
97
|
+
? `min(${height}px, calc(100dvh - 32px))`
|
|
98
|
+
: `min(${height}px, 100%)`
|
|
99
|
+
: 'auto'}
|
|
100
|
+
positionTarget={standalone ? null : wrapperElement}
|
|
101
|
+
designSchema={embedCode ? embedSchema : null}
|
|
102
|
+
contentSchema={null}
|
|
103
|
+
initialDesignValues={initialValues}
|
|
104
|
+
defaultOpen={true}
|
|
105
|
+
showDragHandle={!loading && !!embedCode}
|
|
106
|
+
{showSaveButton}
|
|
107
|
+
{saveDirty}
|
|
108
|
+
{saveSaving}
|
|
109
|
+
title={$t('editor.embed.title')}
|
|
110
|
+
showSchemaError={false}
|
|
111
|
+
on:save
|
|
112
|
+
on:propertyChange
|
|
113
|
+
>
|
|
114
|
+
{#snippet headerContent()}
|
|
115
|
+
<section
|
|
116
|
+
class="embed-editor-code-header flex flex-col gap-3 px-6 pt-3 pb-4"
|
|
117
|
+
aria-label={$t('editor.embed.headerArea')}
|
|
118
|
+
aria-busy={loading}
|
|
119
|
+
>
|
|
120
|
+
<CopyableHeader
|
|
121
|
+
headerText={embedHeaderText ?? $t('editor.embed.codeHeader')}
|
|
122
|
+
content={embedCode}
|
|
123
|
+
helpPrompt={$t('editor.embed.helpPrompt')}
|
|
124
|
+
helpText={$t('editor.embed.learnMore')}
|
|
125
|
+
helpLinkAria={$t('editor.embed.helpLinkAria')}
|
|
126
|
+
helpUrl="/embed"
|
|
127
|
+
{loading}
|
|
128
|
+
errorTitle={!loading && !embedCode ? $t('editor.embed.noCode') : ''}
|
|
129
|
+
errorDetail={!loading && !embedCode
|
|
130
|
+
? $t('editor.failure.errorCode', { code: 'EMBED_CODE_NOT_FOUND' })
|
|
131
|
+
: ''}
|
|
132
|
+
standaloneCopyButtonText={$t('editor.embed.copy')}
|
|
133
|
+
copiedTitle={$t('editor.embed.copied')}
|
|
134
|
+
copiedDescription={$t('editor.embed.copiedHint')}
|
|
135
|
+
copyFailedTitle={$t('editor.embed.copyFailed')}
|
|
136
|
+
copyFailedDescription={$t('editor.embed.copyFailedHint')}
|
|
137
|
+
showInternalToast={false}
|
|
138
|
+
class="w-full"
|
|
139
|
+
on:copy={() => {
|
|
140
|
+
showCopyToast('success', $t('editor.embed.copied'), {
|
|
141
|
+
description: $t('editor.embed.copiedHint')
|
|
142
|
+
});
|
|
143
|
+
}}
|
|
144
|
+
on:copyError={() => {
|
|
145
|
+
showCopyToast('error', $t('editor.embed.copyFailed'), {
|
|
146
|
+
description: $t('editor.embed.copyFailedHint')
|
|
147
|
+
});
|
|
148
|
+
}}
|
|
149
|
+
/>
|
|
150
|
+
{#if loading}
|
|
151
|
+
<span class="sr-only">{$t('editor.embed.loading')}</span>
|
|
152
|
+
{/if}
|
|
153
|
+
</section>
|
|
154
|
+
{/snippet}
|
|
155
|
+
</PropsEditor>
|
|
152
156
|
</div>
|
|
153
|
-
|
|
154
|
-
<style>
|
|
155
|
-
/* Remove the DS inline top padding only inside this embed header. */
|
|
156
|
-
.embed-editor-code-header :global(.copyable-header) {
|
|
157
|
-
padding-top: 0 !important;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/* Style accordion items to match Design system — only within this Embed instance. */
|
|
161
|
-
.embed-editor-inline-wrapper :global(.accordion-item),
|
|
162
|
-
.embed-editor-standalone-wrapper :global(.accordion-item) {
|
|
163
|
-
border: 2px solid hsl(var(--grey2)) !important;
|
|
164
|
-
background: white !important;
|
|
165
|
-
overflow: hidden !important;
|
|
166
|
-
margin-bottom: -2px !important;
|
|
167
|
-
position: relative !important;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/* Accordion Item: Handle first, last and single items. */
|
|
171
|
-
:global(.embed-editor-container .accordion-item[data-position="only"]) {
|
|
172
|
-
border-radius: var(--radius-medium) !important;
|
|
173
|
-
}
|
|
174
|
-
:global(.embed-editor-container .accordion-item[data-position="first"]) {
|
|
175
|
-
border-start-start-radius: var(--radius-medium) !important;
|
|
176
|
-
border-start-end-radius: var(--radius-medium) !important;
|
|
177
|
-
border-end-start-radius: 0 !important;
|
|
178
|
-
border-end-end-radius: 0 !important;
|
|
179
|
-
}
|
|
180
|
-
:global(.embed-editor-container .accordion-item[data-position="last"]) {
|
|
181
|
-
border-start-start-radius: 0 !important;
|
|
182
|
-
border-start-end-radius: 0 !important;
|
|
183
|
-
border-end-start-radius: var(--radius-medium) !important;
|
|
184
|
-
border-end-end-radius: var(--radius-medium) !important;
|
|
185
|
-
margin-bottom: 0 !important;
|
|
186
|
-
}
|
|
187
|
-
:global(.embed-editor-container .accordion-trigger) {
|
|
188
|
-
padding: 16px !important;
|
|
189
|
-
width: 100% !important;
|
|
190
|
-
display: flex !important;
|
|
191
|
-
justify-content: space-between !important;
|
|
192
|
-
align-items: center !important;
|
|
193
|
-
background: white !important;
|
|
194
|
-
border: none !important;
|
|
195
|
-
}
|
|
196
|
-
:global(.embed-editor-container .accordion-trigger:hover .body-medium) {
|
|
197
|
-
text-decoration: underline !important;
|
|
198
|
-
}
|
|
199
|
-
:global(.embed-editor-container .accordion-content) {
|
|
200
|
-
padding: 16px !important;
|
|
201
|
-
border-top: 2px solid hsl(var(--grey2)) !important;
|
|
202
|
-
}
|
|
203
|
-
:global(.embed-editor-container .accordion-content > div) {
|
|
204
|
-
padding: 0 !important;
|
|
205
|
-
background: white !important;
|
|
206
|
-
}
|
|
207
|
-
/* Style the chevron icon. */
|
|
208
|
-
:global(.embed-editor-container .accordion-trigger .chevron) {
|
|
209
|
-
transition: transform 200ms ease-out !important;
|
|
210
|
-
}
|
|
211
|
-
:global(.embed-editor-container .accordion-trigger[data-state="open"] .chevron) {
|
|
212
|
-
transform: rotate(180deg) !important;
|
|
213
|
-
}
|
|
214
|
-
/* Ensure inputs maintain their container width. */
|
|
215
|
-
:global(.embed-editor-container input),
|
|
216
|
-
:global(.embed-editor-container select),
|
|
217
|
-
:global(.embed-editor-container textarea),
|
|
218
|
-
:global(.embed-editor-container .input-wrapper),
|
|
219
|
-
:global(.embed-editor-container .input-container),
|
|
220
|
-
:global(.embed-editor-container .color-picker-popover) {
|
|
221
|
-
width: 100%;
|
|
222
|
-
min-width: 0;
|
|
223
|
-
box-sizing: border-box;
|
|
224
|
-
}
|
|
225
|
-
/* Ensure popover content stays within bounds. */
|
|
226
|
-
:global(.embed-editor-container .popover-content) {
|
|
227
|
-
max-width: calc(100% - 2rem);
|
|
228
|
-
min-width: 0;
|
|
229
|
-
}
|
|
230
|
-
/* Button Press Effect */
|
|
231
|
-
:global(.embed-editor-container .embed-code-header button) {
|
|
232
|
-
transition: background-color 0.1s ease;
|
|
233
|
-
}
|
|
234
|
-
/** TOASTER STYLES **/
|
|
235
|
-
:global(.embed-editor-toast) {
|
|
236
|
-
position: fixed !important;
|
|
237
|
-
bottom: 20px !important;
|
|
238
|
-
inset-inline-end: 20px !important;
|
|
239
|
-
top: auto !important;
|
|
240
|
-
display: flex !important;
|
|
241
|
-
align-items: center !important;
|
|
242
|
-
gap: 12px !important;
|
|
243
|
-
padding: 16px 24px !important;
|
|
244
|
-
background: white !important;
|
|
245
|
-
border-radius: var(--radius-small) !important;
|
|
246
|
-
box-shadow: 0px 0px 15px 3px rgba(0, 0, 0, 0.1) !important;
|
|
247
|
-
}
|
|
248
|
-
/* Icon container */
|
|
249
|
-
:global(.embed-editor-toast [data-icon]) {
|
|
250
|
-
order: -1 !important;
|
|
251
|
-
display: flex !important;
|
|
252
|
-
align-items: center !important;
|
|
253
|
-
justify-content: center !important;
|
|
254
|
-
margin: 0 !important;
|
|
255
|
-
}
|
|
256
|
-
/* Text container */
|
|
257
|
-
:global(.embed-editor-toast [data-content]) {
|
|
258
|
-
display: flex !important;
|
|
259
|
-
flex-direction: column !important;
|
|
260
|
-
gap: 4px !important;
|
|
261
|
-
margin: 0 !important;
|
|
262
|
-
}
|
|
263
|
-
/* Toaster close button */
|
|
264
|
-
:global(.embed-editor-toast-close-button) {
|
|
265
|
-
background: hsl(var(--grey7)) !important;
|
|
266
|
-
border: 1px solid hsl(var(--grey5)) !important;
|
|
267
|
-
}
|
|
268
|
-
:global(.embed-editor-toast-close-button:hover) {
|
|
269
|
-
background: hsl(var(--dark)) !important;
|
|
270
|
-
border: 1px solid hsl(var(--grey5)) !important;
|
|
271
|
-
}
|
|
272
|
-
:global(.embed-editor-toast-close-button svg) {
|
|
273
|
-
color: white !important;
|
|
274
|
-
}
|
|
275
|
-
/* Lucide Copy Icon: Set both default and hover colors. */
|
|
276
|
-
:global(.embed-editor-container .lucide-copy) {
|
|
277
|
-
stroke: hsl(var(--error)) !important;
|
|
278
|
-
}
|
|
279
|
-
:global(.embed-editor-container button:hover .lucide-copy) {
|
|
280
|
-
stroke: hsl(var(--grey7)) !important;
|
|
281
|
-
}
|
|
282
|
-
</style>
|