@mulmoclaude/mulmoscript-plugin 0.2.1 → 0.2.3

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/style.css CHANGED
@@ -1612,18 +1612,18 @@
1612
1612
  }
1613
1613
  }
1614
1614
 
1615
- .bottom-bar-wrapper[data-v-485600b7] {
1615
+ .bottom-bar-wrapper[data-v-c28ee15a] {
1616
1616
  position: relative;
1617
1617
  flex-shrink: 0;
1618
1618
  }
1619
- .script-source[data-v-485600b7] {
1619
+ .script-source[data-v-c28ee15a] {
1620
1620
  padding: 0.5rem;
1621
1621
  background: #f5f5f5;
1622
1622
  border-top: 1px solid #e0e0e0;
1623
1623
  font-family: Consolas, "MS Gothic", "BIZ UDGothic", monospace;
1624
1624
  font-size: 0.85rem;
1625
1625
  }
1626
- .script-source summary[data-v-485600b7] {
1626
+ .script-source summary[data-v-c28ee15a] {
1627
1627
  cursor: pointer;
1628
1628
  user-select: none;
1629
1629
  padding: 0.5rem;
@@ -1632,13 +1632,13 @@
1632
1632
  font-weight: 500;
1633
1633
  color: #333;
1634
1634
  }
1635
- .script-source[open] summary[data-v-485600b7] {
1635
+ .script-source[open] summary[data-v-c28ee15a] {
1636
1636
  margin-bottom: 0.5rem;
1637
1637
  }
1638
- .script-source summary[data-v-485600b7]:hover {
1638
+ .script-source summary[data-v-c28ee15a]:hover {
1639
1639
  background: #d8d8d8;
1640
1640
  }
1641
- .script-editor[data-v-485600b7] {
1641
+ .script-editor[data-v-c28ee15a] {
1642
1642
  width: 100%;
1643
1643
  height: 40vh;
1644
1644
  padding: 1rem;
@@ -1652,23 +1652,23 @@
1652
1652
  margin-bottom: 0.5rem;
1653
1653
  line-height: 1.5;
1654
1654
  }
1655
- .script-editor[data-v-485600b7]:focus {
1655
+ .script-editor[data-v-c28ee15a]:focus {
1656
1656
  outline: none;
1657
1657
  border-color: #4caf50;
1658
1658
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
1659
1659
  }
1660
- .script-editor-invalid[data-v-485600b7] {
1660
+ .script-editor-invalid[data-v-c28ee15a] {
1661
1661
  border-color: #ef4444;
1662
1662
  }
1663
- .script-editor-invalid[data-v-485600b7]:focus {
1663
+ .script-editor-invalid[data-v-c28ee15a]:focus {
1664
1664
  border-color: #ef4444;
1665
1665
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
1666
1666
  }
1667
- .editor-actions[data-v-485600b7] {
1667
+ .editor-actions[data-v-c28ee15a] {
1668
1668
  display: flex;
1669
1669
  justify-content: space-between;
1670
1670
  }
1671
- .apply-btn[data-v-485600b7] {
1671
+ .apply-btn[data-v-c28ee15a] {
1672
1672
  padding: 0.5rem 1rem;
1673
1673
  background: #4caf50;
1674
1674
  color: white;
@@ -1679,16 +1679,16 @@
1679
1679
  transition: background 0.2s;
1680
1680
  font-weight: 500;
1681
1681
  }
1682
- .apply-btn[data-v-485600b7]:hover {
1682
+ .apply-btn[data-v-c28ee15a]:hover {
1683
1683
  background: #45a049;
1684
1684
  }
1685
- .apply-btn[data-v-485600b7]:disabled {
1685
+ .apply-btn[data-v-c28ee15a]:disabled {
1686
1686
  background: #cccccc;
1687
1687
  color: #666666;
1688
1688
  cursor: not-allowed;
1689
1689
  opacity: 0.6;
1690
1690
  }
1691
- .cancel-btn[data-v-485600b7] {
1691
+ .cancel-btn[data-v-c28ee15a] {
1692
1692
  padding: 0.5rem 1rem;
1693
1693
  background: #e0e0e0;
1694
1694
  color: #333;
@@ -1699,10 +1699,10 @@
1699
1699
  transition: background 0.2s;
1700
1700
  font-weight: 500;
1701
1701
  }
1702
- .cancel-btn[data-v-485600b7]:hover {
1702
+ .cancel-btn[data-v-c28ee15a]:hover {
1703
1703
  background: #d0d0d0;
1704
1704
  }
1705
- .copy-btn[data-v-485600b7] {
1705
+ .copy-btn[data-v-c28ee15a] {
1706
1706
  position: absolute;
1707
1707
  bottom: 0.3rem;
1708
1708
  right: 0.65rem;
@@ -1713,10 +1713,10 @@
1713
1713
  cursor: pointer;
1714
1714
  z-index: 1;
1715
1715
  }
1716
- .copy-btn[data-v-485600b7]:hover {
1716
+ .copy-btn[data-v-c28ee15a]:hover {
1717
1717
  color: #000;
1718
1718
  }
1719
- .copy-btn .material-icons[data-v-485600b7] {
1719
+ .copy-btn .material-icons[data-v-c28ee15a] {
1720
1720
  font-size: 1.15rem;
1721
1721
  }
1722
1722
  /*$vite$:1*/
@@ -1 +1 @@
1
- {"version":3,"file":"View.vue.d.ts","sourceRoot":"","sources":["../../src/vue/View.vue"],"names":[],"mappings":"AAg3DA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAwDrD,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;CACrD,CAAC;AAy0FF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"View.vue.d.ts","sourceRoot":"","sources":["../../src/vue/View.vue"],"names":[],"mappings":"AAm4DA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAwDrD,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;CACrD,CAAC;AA41FF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
package/dist/vue.cjs CHANGED
@@ -996,6 +996,7 @@ var View_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.def
996
996
  return;
997
997
  }
998
998
  const prevImage = JSON.stringify(effectiveBeat(index).image);
999
+ const prevText = effectiveBeat(index).text;
999
1000
  const requestedFilePath = filePath.value;
1000
1001
  Reflect.deleteProperty(beatSaveErrors, index);
1001
1002
  beatSaving[index] = true;
@@ -1019,6 +1020,13 @@ var View_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.def
1019
1020
  Reflect.deleteProperty(renderedImages, index);
1020
1021
  renderBeat(index);
1021
1022
  }
1023
+ if (beat.text !== prevText) {
1024
+ if (playingAudio.value?.index === index) stopAllPlayback();
1025
+ Reflect.deleteProperty(beatAudios, index);
1026
+ Reflect.deleteProperty(audioState, index);
1027
+ Reflect.deleteProperty(audioErrors, index);
1028
+ if (beat.text) loadExistingBeatAudio(index);
1029
+ }
1022
1030
  }
1023
1031
  async function renderBeat(index) {
1024
1032
  const requestedFilePath = filePath.value;
@@ -1925,7 +1933,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
1925
1933
  };
1926
1934
  //#endregion
1927
1935
  //#region src/vue/View.vue
1928
- var View_default = /*#__PURE__*/ _plugin_vue_export_helper_default(View_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-485600b7"]]);
1936
+ var View_default = /*#__PURE__*/ _plugin_vue_export_helper_default(View_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c28ee15a"]]);
1929
1937
  //#endregion
1930
1938
  //#region src/vue/Preview.vue?vue&type=script&setup=true&lang.ts
1931
1939
  var _hoisted_1 = {