rimecms 0.24.1 → 0.24.2

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.
@@ -30,7 +30,12 @@
30
30
  </script>
31
31
 
32
32
  {#if config.blocks.length === 1}
33
- <Button onclick={() => add(config.blocks[0].block)} variant="ghost" icon={CirclePlus} size="icon" />
33
+ <Button
34
+ onclick={() => add(config.blocks[0].block)}
35
+ variant="ghost"
36
+ icon={CirclePlus}
37
+ size="icon"
38
+ />
34
39
  {:else}
35
40
  <Button onclick={() => (open = true)} variant="ghost" icon={CirclePlus} size="icon" />
36
41
 
@@ -77,13 +82,13 @@
77
82
  </Command.List>
78
83
 
79
84
  <div class="rz-add-block-button__preview-wrap">
80
- {#each config.blocks as block, index (index)}
85
+ {#each config.blocks as blockFieldBuilder, index (index)}
81
86
  <div
82
- class:rz-add-block-button__preview--active={ariaSelected === block.name}
87
+ class:rz-add-block-button__preview--active={ariaSelected === blockFieldBuilder.name}
83
88
  class="rz-add-block-button__preview"
84
89
  >
85
- {#if block.block.image}
86
- <img src="{env.PUBLIC_RIME_URL}{block.image}" alt="preview" />
90
+ {#if blockFieldBuilder.block.image}
91
+ <img src="{env.PUBLIC_RIME_URL}{blockFieldBuilder.block.image}" alt="preview" />
87
92
  {:else}
88
93
  no preview
89
94
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimecms",
3
- "version": "0.24.1",
3
+ "version": "0.24.2",
4
4
  "homepage": "https://github.com/bienbiendev/rime",
5
5
  "scripts": {
6
6
  "dev": "vite dev",