vowel 0.1.29 → 0.1.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vowel",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "bin": "./bin.js",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -287,47 +287,47 @@ article.item dl.icon {
287
287
  order: -1;
288
288
  }
289
289
 
290
- aside.note {
291
- &.note {
292
- --icon: 'ℹ️';
293
- --rgb: 71, 139, 230;
294
- }
290
+ aside.alert.note {
291
+ --icon: 'ℹ️';
292
+ --rgb: 71, 139, 230;
293
+ }
295
294
 
296
- &.tip {
297
- --icon: '💡';
298
- --rgb: 87, 171, 90;
299
- }
295
+ aside.alert.tip {
296
+ --icon: '💡';
297
+ --rgb: 87, 171, 90;
298
+ }
300
299
 
301
- &.important {
302
- --icon: '💬';
303
- --rgb: 152, 110, 226;
304
- }
300
+ aside.alert.important {
301
+ --icon: '💬';
302
+ --rgb: 152, 110, 226;
303
+ }
305
304
 
306
- &.warning {
307
- --icon: '⚠️';
308
- --rgb: 198, 144, 38;
309
- }
305
+ aside.alert.warning {
306
+ --icon: '⚠️';
307
+ --rgb: 198, 144, 38;
308
+ }
310
309
 
311
- &.caution {
312
- --icon: '⛔️';
313
- --rgb: 229, 83, 75;
314
- }
310
+ aside.alert.caution {
311
+ --icon: '⛔️';
312
+ --rgb: 229, 83, 75;
313
+ }
315
314
 
315
+ aside.alert {
316
316
  border-left: 3px solid rgb(var(--rgb));
317
317
  padding: 1.5rem 2rem;
318
318
  background: rgba(var(--rgb), 0.04);
319
+ }
319
320
 
320
- h2 {
321
- color: rgb(var(--rgb));
322
- }
321
+ aside.alert h2 {
322
+ color: rgb(var(--rgb));
323
+ }
323
324
 
324
- h2:before {
325
- font-size: 0.8em;
326
- margin-right: 0.7rem;
327
- opacity: 0.9;
328
- }
325
+ aside.alert h2:before {
326
+ font-size: 0.8em;
327
+ margin-right: 0.7rem;
328
+ opacity: 0.9;
329
+ }
329
330
 
330
- h2:before {
331
- content: var(--icon);
332
- }
331
+ aside.alert h2:before {
332
+ content: var(--icon);
333
333
  }
@@ -122,7 +122,7 @@
122
122
  </ol>
123
123
  </section>
124
124
  {:else if node.type === 'containerDirective' && noteTypes[node.name]}
125
- <aside class={`note ${node.name}`}>
125
+ <aside class={`alert ${node.name}`}>
126
126
  <h2>
127
127
  {noteTypes[node.name]}
128
128
  </h2>
@@ -23,7 +23,10 @@
23
23
  default: DefaultStyles
24
24
  };
25
25
 
26
- let { data } = $props();
26
+ // propData is a workaround due to a seeming bug in Svelte
27
+ let { data: propData } = $props();
28
+
29
+ const data = $state(JSON.parse(JSON.stringify(propData, null, 2)))
27
30
 
28
31
  const { website, folderName } = $derived(data);
29
32