@mulmoclaude/mulmoscript-plugin 3.0.0 → 4.0.0
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 +115 -19
- package/dist/vue/View.vue.d.ts.map +1 -1
- package/dist/vue/helpers.d.ts +2 -2
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/viewTypes.d.ts +1 -1
- package/dist/vue/viewTypes.d.ts.map +1 -1
- package/dist/vue.cjs +13 -9
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.js +13 -9
- package/dist/vue.js.map +1 -1
- package/package.json +4 -2
package/dist/vue.js
CHANGED
|
@@ -2,6 +2,7 @@ import { a as pluginCore, d as errorMessage, f as TOOL_DEFINITION, p as TOOL_NAM
|
|
|
2
2
|
import { t as GENERATION_EVENT } from "./contract-vY0niHkh.js";
|
|
3
3
|
import { mulmoBeatSchema, mulmoScriptSchema } from "@mulmocast/types";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineAsyncComponent, defineComponent, inject, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderList, toDisplayString, unref, vModelText, vShow, watch, withDirectives, withModifiers } from "vue";
|
|
5
|
+
import { beatsOf, withBeats } from "@mulmocast/beat-editor";
|
|
5
6
|
import { createUseT, useRuntime } from "gui-chat-protocol/vue";
|
|
6
7
|
//#region src/vue/support.ts
|
|
7
8
|
function isRecord(value) {
|
|
@@ -115,8 +116,8 @@ function isBeatImageReference(beat) {
|
|
|
115
116
|
return beat.image?.type === "beat";
|
|
116
117
|
}
|
|
117
118
|
/** Pure check: is every beat in the script a `slide`-typed beat?
|
|
118
|
-
* When true, the View mounts `@mulmocast/
|
|
119
|
-
* `
|
|
119
|
+
* When true, the View mounts `@mulmocast/beat-editor`'s
|
|
120
|
+
* `BeatListEditor` instead of the per-beat list UI (#1575).
|
|
120
121
|
* Empty / missing `beats[]` returns false — there's nothing to edit
|
|
121
122
|
* as a deck, fall through to the existing UI which renders an empty
|
|
122
123
|
* state. Mixed scripts (any non-`slide` beat) also return false; that
|
|
@@ -1372,7 +1373,7 @@ var View_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
1372
1373
|
props: { selectedResult: {} },
|
|
1373
1374
|
emits: ["updateResult"],
|
|
1374
1375
|
setup(__props, { emit: __emit }) {
|
|
1375
|
-
const
|
|
1376
|
+
const BeatListEditor = defineAsyncComponent(() => import("@mulmocast/beat-editor").then((mod) => mod.BeatListEditor));
|
|
1376
1377
|
const api = useMulmoScriptTransport();
|
|
1377
1378
|
const adapter = useHostAdapter();
|
|
1378
1379
|
const canFetchMedia = computed(() => Boolean(adapter.fetchMediaBlob));
|
|
@@ -1539,6 +1540,10 @@ var View_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
1539
1540
|
effectiveScript,
|
|
1540
1541
|
commitScript
|
|
1541
1542
|
});
|
|
1543
|
+
const deckBeats = computed(() => beatsOf(deckScriptInput.value));
|
|
1544
|
+
function onDeckBeatsUpdate(beats) {
|
|
1545
|
+
onDeckUpdate(withBeats(deckScriptInput.value, beats));
|
|
1546
|
+
}
|
|
1542
1547
|
onBeforeUnmount(() => {
|
|
1543
1548
|
flushPendingDeckSave();
|
|
1544
1549
|
resetBeatMovies();
|
|
@@ -2015,11 +2020,10 @@ var View_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
2015
2020
|
"onCharDrop",
|
|
2016
2021
|
"onRenderCharacter"
|
|
2017
2022
|
])) : createCommentVNode("", true),
|
|
2018
|
-
unref(isDeck) ? (openBlock(), createElementBlock("div", _hoisted_14, [createVNode(unref(
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
}, null, 8, ["script", "onUpdate:script"])])) : (openBlock(), createElementBlock("div", {
|
|
2023
|
+
unref(isDeck) ? (openBlock(), createElementBlock("div", _hoisted_14, [createVNode(unref(BeatListEditor), {
|
|
2024
|
+
beats: deckBeats.value,
|
|
2025
|
+
"onUpdate:beats": onDeckBeatsUpdate
|
|
2026
|
+
}, null, 8, ["beats"])])) : (openBlock(), createElementBlock("div", {
|
|
2023
2027
|
key: 3,
|
|
2024
2028
|
ref_key: "beatListEl",
|
|
2025
2029
|
ref: beatListEl,
|
|
@@ -2221,7 +2225,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
|
2221
2225
|
};
|
|
2222
2226
|
//#endregion
|
|
2223
2227
|
//#region src/vue/View.vue
|
|
2224
|
-
var View_default = /*#__PURE__*/ _plugin_vue_export_helper_default(View_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
2228
|
+
var View_default = /*#__PURE__*/ _plugin_vue_export_helper_default(View_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-222045a6"]]);
|
|
2225
2229
|
//#endregion
|
|
2226
2230
|
//#region src/vue/Preview.vue?vue&type=script&setup=true&lang.ts
|
|
2227
2231
|
var _hoisted_1 = {
|