diff --git a/dialogEditor/.gitignore b/dialogEditor/.gitignore new file mode 100644 index 0000000..1698216 --- /dev/null +++ b/dialogEditor/.gitignore @@ -0,0 +1,43 @@ +.DS_STORE +node_modules +scripts/flow/*/.flowconfig +.flowconfig +*~ +*.pyc +.grunt +_SpecRunner.html +__benchmarks__ +build/ +remote-repo/ +coverage/ +.module-cache +fixtures/dom/public/react-dom.js +fixtures/dom/public/react.js +test/the-files-to-test.generated.js +*.log* +chrome-user-data +*.sublime-project +*.sublime-workspace +.idea +*.iml +.vscode +.zed +*.swp +*.swo +/tmp +/.worktrees +.claude/*.local.* + +packages/react-devtools-core/dist +packages/react-devtools-extensions/chrome/build +packages/react-devtools-extensions/chrome/*.crx +packages/react-devtools-extensions/chrome/*.pem +packages/react-devtools-extensions/firefox/build +packages/react-devtools-extensions/firefox/*.xpi +packages/react-devtools-extensions/firefox/*.pem +packages/react-devtools-extensions/shared/build +packages/react-devtools-extensions/.tempUserDataDir +packages/react-devtools-fusebox/dist +packages/react-devtools-inline/dist +packages/react-devtools-shell/dist +packages/react-devtools-timeline/dist diff --git a/dialogEditor/dorm_dialogues.json b/dialogEditor/dorm_dialogues.json new file mode 100644 index 0000000..37f2449 --- /dev/null +++ b/dialogEditor/dorm_dialogues.json @@ -0,0 +1,711 @@ +{ + "dialogues": [ + { + "id": "dialog_start001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Новый день! Я проснулся, позавтракал и готов поехать в универ! Надо проверить телефон, и не забыть взять свою записную книжку.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_phone001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я не буду никуда идти без своего телефона и записной книжки!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_chat_parents001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Отец", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Бекзат, сынок, мы c мамой тебе отправили немного денег, постарайся прожить на эти деньги до конца недели!", + "next": "line_2", + "chatBubble": "in" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Спасибо!", + "next": "end_1", + "chatBubble": "out" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_chat_news001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Отец", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Жители Бишкека все чаще жалуются на депрессию и апатию. Смотрите свежее видео об этом на нашем канале!", + "next": "end_1", + "chatBubble": "in" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_chat_aiperi001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Бекзат, помнишь мы скидывались на торт для Аиды Джаныбековой? Я тогда еще приносила скатерть, тарелки и нож для торта. И я до сих пор не получила назад ничего.", + "next": "line_2", + "chatBubble": "in" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Скатерть и тарелки вроде бы лежат в студзоне.", + "next": "line_3", + "chatBubble": "out" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "А нож?", + "next": "line_4", + "chatBubble": "in" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Нож, наверное, так и остался в учительской.", + "next": "line_5", + "chatBubble": "out" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "А давай не \"наверное\"?", + "next": "line_6", + "chatBubble": "in" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "А давай ты приедешь в универ, зайдешь в учительскую, заберешь нож и отдашь мне?", + "next": "line_7", + "chatBubble": "in" + }, + { + "id": "line_7", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "У вас сегодня как раз Аида ведет лекцию. После лекции попросишь у нее ключи от учительской и заберешь нож.", + "next": "line_8", + "chatBubble": "in" + }, + { + "id": "line_8", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Почему ты сама не можешь забрать?", + "next": "line_9", + "chatBubble": "out" + }, + { + "id": "line_9", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Ты же знаешь, если я встречу Аиду, она 100% даст мне какое-нибудь сложное задание.", + "next": "line_10", + "chatBubble": "in" + }, + { + "id": "line_10", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "И потом, это ты у меня брал нож, с чего я должна ходить искать его по всему универу?", + "next": "line_11", + "chatBubble": "in" + }, + { + "id": "line_11", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Так что жду тебя в универе! Не вздумай прогулять!", + "next": "end_1", + "chatBubble": "in", + "questUnlock" : "aiperi_knife", + "luaCallback" : "on_aiperi_dialog_over", + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_no_sleep001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я сейчас не хочу спать.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_phone_pickup001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Отлично, вот и мой телефон! Надо проверить новые сообщения.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "door_bathroom_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Здесь у меня душ и туалет.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "door_bathroom_alik_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я не буду лезть в ванную комнату к Алику.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "door_locked_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Дверь закрыта. Кажется, сюда все еще никто не заселился.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_journal_pickup001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Возьму журнал с собой! Там все мои записи.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_taxi001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Прежде чем выходить наружу, я должен заказать такси до универа.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_taxi002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я заказал такси до универа, машина уже ждет!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_taxi004", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я уже заказал такси, машина уже ждет!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_second_floor001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "На втором этаже женское общежитие, мне там делать нечего.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_female_student001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бермет", + "portrait": "resources/dialogue/portrait_student_girl.png", + "text": "Бекзат отстань!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_female_student002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Алтынай", + "portrait": "resources/dialogue/portrait_student_girl.png", + "text": "Бекзат ты почему на пары не ходишь?!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_alik001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Привет Бекзат! Давно я не видел тебя на парах!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "door_alik_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Тук тук!", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Заходи!", + "luaCallback" : "on_alik_room_enter", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_alik002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Привет Бекзат!", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Привет Алик! Разговор есть.", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "С тобой на курсе училась Бегимай, ты ее помнишь?", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Конечно помню! Я тебе даже больше расскажу.", + "next": "line_5" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "В тот день она принесла свою курсовую, чтобы сдать.", + "next": "line_6" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Но в тот день в учительской происходила генеральная уборка.", + "next": "line_7" + }, + { + "id": "line_7", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "И получилось так, что ее курсовая оказалась в стопке бумаг на выброс.", + "next": "line_8" + }, + { + "id": "line_8", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Курсовая работа пропала, Бегимай получила за нее ноль баллов, и не прошла отбор в Германию.", + "next": "line_9" + }, + { + "id": "line_9", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Поэтому с горя она выпрыгнула из окна лекционного зала и убилась.", + "next": "line_10" + }, + { + "id": "line_10", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "А ты откуда все это знаешь?", + "next": "line_11" + }, + { + "id": "line_11", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Я видел как ее курсовую уносили вместе с другой макулатурой из учительской.", + "next": "line_12" + }, + { + "id": "line_12", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "И где сейчас ее курсовая работа?", + "next": "line_13" + }, + { + "id": "line_13", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "За зданием универа есть контейнер с кучей бумажного мусора и макулатурой.", + "next": "line_14" + }, + { + "id": "line_14", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Скорее всего, курсовая до сих пор лежит где-то там.", + "next": "line_15" + }, + { + "id": "line_15", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Спасибо Алик! Ты мне очень помог.", + "next": "line_16" + }, + { + "id": "line_16", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Да без проблем! Обращайся если что.", + "objectiveComplete" : "ghost_lore.ghost_lore_alik", + "objectiveVisible": "ghost_lore.ghost_lore_alik", + "questUnlock": "ghost_coursework", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_alik003", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Алик", + "portrait": "resources/dialogue/portrait_student_boy.png", + "text": "Привет Бекзат! Надеюсь ты нашел то что ищешь.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_video001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ого, пока я залипал в телефоне, уже наступила ночь!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_video002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я не буду сейчас смотреть видеоролики, давай лучше пойдем спать.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_video003", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Мне некогда деградировать, мне нужно сегодня 100% быть на лекции!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + } + ], + "cutscenes": [{ + "id": "sleep_cutscene001", + "background": "resources/test_cutscene001.png", + "onFadeInCallback": "on_sleep_cutscene", + "durationMs": 5000, + "fadeOutMs": 500, + "fadeInMs": 500, + "endFadeOutMs": 500, + "endFadeInMs": 500, + "cameraTrack": [ + { + "durationMs": 3000, + "from": { "focusX": 0.3, "focusY": 0.50, "zoom": 1.10, "rotationDeg": 0.0 }, + "to": { "focusX": 0.7, "focusY": 0.50, "zoom": 1.00, "rotationDeg": 0.0 }, + "easing": "EaseInOutSine" + }, + { + "durationMs": 3000, + "from": { "focusX": 0.3, "focusY": 0.50, "zoom": 1.0, "rotationDeg": 0.0 }, + "to": { "focusX": 0.7, "focusY": 0.50, "zoom": 1.1, "rotationDeg": 0.0 }, + "easing": "EaseInOutCubic" + } + ], + "lines": [ + { + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я завалился спать и уснул.", + "durationMs": 3000 + }, + { + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "И я проспал аж до обеда.", + "durationMs": 3000 + } + ] + } + ] +} diff --git a/dialogEditor/index.html b/dialogEditor/index.html new file mode 100644 index 0000000..46772da --- /dev/null +++ b/dialogEditor/index.html @@ -0,0 +1,12 @@ + + + + + + Dialogue Editor + + +
+ + + diff --git a/dialogEditor/package-lock.json b/dialogEditor/package-lock.json new file mode 100644 index 0000000..a44c2c7 --- /dev/null +++ b/dialogEditor/package-lock.json @@ -0,0 +1,2157 @@ +{ + "name": "dialogue-editor", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "dialogue-editor", + "version": "1.0.0", + "dependencies": { + "@dagrejs/dagre": "^1.1.4", + "@xyflow/react": "^12.3.6", + "immer": "^10.1.1", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "zustand": "^5.0.3" + }, + "devDependencies": { + "@types/dagre": "^0.7.52", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", + "@vitejs/plugin-react": "^4.3.4", + "typescript": "^5.7.2", + "vite": "^6.0.5" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", + "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helpers": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz", + "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", + "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", + "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", + "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", + "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", + "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz", + "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz", + "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz", + "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", + "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@dagrejs/dagre": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/@dagrejs/dagre/-/dagre-1.1.8.tgz", + "integrity": "sha512-5SEDlndt4W/LaVzPYJW+bSmSEZc9EzTf8rJ20WCKvjS5EAZAN0b+x0Yww7VMT4R3Wootkg+X9bUfUxazYw6Blw==", + "license": "MIT", + "dependencies": { + "@dagrejs/graphlib": "2.2.4" + } + }, + "node_modules/@dagrejs/graphlib": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/@dagrejs/graphlib/-/graphlib-2.2.4.tgz", + "integrity": "sha512-mepCf/e9+SKYy1d02/UkvSy6+6MoyXhVxP8lLDfA7BPE1X1d4dR0sZznmbM8/XVJ1GPM+Svnx7Xj6ZweByWUkw==", + "license": "MIT", + "engines": { + "node": ">17.0.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.27", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", + "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.61.1.tgz", + "integrity": "sha512-JnBB8MdXj45cajvTuO5FmPlvFVJRQgvrz1uSEl3NwqFnReAPGwb8EanbGi4z2nRaqLzjJSv5/JmycoTKlRZxHA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.61.1.tgz", + "integrity": "sha512-Jx2g7iSjw4AOT0HDPHM9RV3GNjRXwybWtSFZiZAYUTjUwjVrYIwq3kBf+LnhqJlzXFAqTAh2F7IGI+O568exPw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.61.1.tgz", + "integrity": "sha512-0F1L/Z3Eqv8mT2n3dCpeO8GcTvHvVqkP5/t6DMsn0KzhYVcg+s7Ncl5DS8qjKYEeio6Az0Gt6nyBORay5qIlCA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.61.1.tgz", + "integrity": "sha512-qLttcH871ujY4YcVfUSShhOw+CsoTatYz8gRbHO7Bb92QH059/P0y5do1KMs41fY0BpD2x4AJH/gID0zFiqVKQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.61.1.tgz", + "integrity": "sha512-fUI4RapGE0Oh3mb8mgfvC1O2nU1RpDZUKnDQm3xB1Ipg7C2wTs5Kstz7G2uWK99a8S2yTMq8/P4uycwNa0nJyw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.61.1.tgz", + "integrity": "sha512-H5YrdvJaDtI/U9/emrD4b++xkvp3y/JvOe4rizHbxvkyMfRS/CiRYdji+Pl8D0brEaNFWUh1drQxgAGIl6Xudw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.61.1.tgz", + "integrity": "sha512-Q8CBCCQtDFrYtXoeUXSrnFXKOnyUhx6bz+SkL6A0E7V8kAiCJ5pamq1WtbfpVGhR5TSpXY6ak3avmDc5fHTyJA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.61.1.tgz", + "integrity": "sha512-nwnhk1581l0FBVellGcVCAT0Oi06onEA3WB53sf01VO3I0UPBkMH9sXONYME2K0ovXcNayJfNtHfm6mpJElatQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.61.1.tgz", + "integrity": "sha512-x5Xr49hwt3hdW75UOZm3395YwwzPyauktslv29KpWL/T+vVAzoT3azLcTWv0eMciBNrx+DYjH4paehHoLpPvpg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.61.1.tgz", + "integrity": "sha512-unMS3H73DpaoPyyEVPjGKleM/s0mkmsauTENpw4INQY8y4+IuLNjkueQ5QCtC0D3N38Y38yhAU8OoZ20S2Tm6w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.61.1.tgz", + "integrity": "sha512-zNZzGRnAhwjFEYmvphJRV5XaQGjs62cCmeYYHUT//NbvEnHauw+I85nGG+SiVg5ld4GX8D1IbKIX+ozITQnhMQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.61.1.tgz", + "integrity": "sha512-LdpWGL8X209B2SIvWjqlc8VZgM6PKfontSerGepuldQmHYrAOtnMCXeJkxXGbC+PPZVOuu5czJo7fNV6aeW8rQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.61.1.tgz", + "integrity": "sha512-EC5kTtNaNGOmbMGqar8dvJy6y/hg99GAwjfBz++pxZhQATXGcRjd6c5en5wcbru0vkRmiMGsQKdMJOOf6sza4g==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.61.1.tgz", + "integrity": "sha512-8hiwp6D4acEcNK78I4rP0/XtS1sknWIAMJBPdR4l6zUtyTm5KiTDr5bXmWt4foY7nAN7AThDHgkLIEZOWKbzWw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.61.1.tgz", + "integrity": "sha512-10dh/h/BqA7DuMPWSxkR8uks18FRwnwOEqr5zOTEl+NOwP/OMzKX8OFR/Of9xxDA7D5qef1Nzar5WDD2kCCr1g==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.61.1.tgz", + "integrity": "sha512-YKJ5lg35DP17gcAOggnihe+APw9HLyj1Xn7gsmGumBJAUDa6NGXNixJzmkWLhcK9TOuuyQjdamzvJefkO7qHZQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.61.1.tgz", + "integrity": "sha512-Mlil5G2Jj6a7B3LWGctg+XPL9vdXYuzCtNXfxOQ0nPjc2m6ueUktocPGH9bnAM0bNRKb/bAWTujUU7IJQdQA+g==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.61.1.tgz", + "integrity": "sha512-bVWIOIk6pV01p4CdUbPP7CJ/434z+OooYjDuFcR+44N35YvKUC66G8MGnvcWx5mWKW3g61J+t74l3Kj15Kwn2Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.61.1.tgz", + "integrity": "sha512-qy5pBvZbqNFheBz61R1rzsezjm0J7O2oNGoWtGoY89SZYLUfxAJTBAqDChqAIdB4rCiIbi9nF7yZ83GnNiLwSw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.61.1.tgz", + "integrity": "sha512-E83TXjI4zm0+5f2qO+UOudaCYIhYwpJ5jq6YCZNIZ+6CbfhKrkAGezeiASBL9ElxAxFsRS9ZhESv8mfnj6TKeg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.61.1.tgz", + "integrity": "sha512-fbWnKqVkjrJN38vNe3ahkbk6iejS/3b0Nt7EEtPpE6RBacZcGXNKbzfHN3GUUlXOPghUg0j6XUGrtjX9z1sIvA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.61.1.tgz", + "integrity": "sha512-ArMl38iVAbk0New1ogihQNY6iphLi4ZaRsa037gUzv5yeKPY8TD3Dmy4x2RNC1VztU/uqm+G+/RwFrSka3Oy2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.61.1.tgz", + "integrity": "sha512-0mYtjHS9ucAbcATycCNK9IGBk/cCe/ma7EmSLGZdsxnOA8cjRIyU04wDpVAD9NiOfLUR9KTxdiO53uOkherqjQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.61.1.tgz", + "integrity": "sha512-gK1iCEPfpoSG9wfBihXxvBMi8ZfcWffYkEsC/Eih+iFENTaewvNcrEQ69lIOWYO5pePHKLHHO7nq5AILGO/HQQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.61.1.tgz", + "integrity": "sha512-X+zaP2x+j4RXGfbp/seSoRHWnPxzApilDszisZxbYH5C/jTxFhCtDNdPGZb9lJyYPs24wGxruPF7Y+sIXt9Gzw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", + "license": "MIT" + }, + "node_modules/@types/d3-drag": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz", + "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "license": "MIT", + "dependencies": { + "@types/d3-color": "*" + } + }, + "node_modules/@types/d3-selection": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", + "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==", + "license": "MIT" + }, + "node_modules/@types/d3-transition": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz", + "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-zoom": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz", + "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==", + "license": "MIT", + "dependencies": { + "@types/d3-interpolate": "*", + "@types/d3-selection": "*" + } + }, + "node_modules/@types/dagre": { + "version": "0.7.54", + "resolved": "https://registry.npmjs.org/@types/dagre/-/dagre-0.7.54.tgz", + "integrity": "sha512-QjcRY+adGbYvBFS7cwv5txhVIwX1XXIUswWl+kSQTbI6NjgZydrZkEKX/etzVd7i+bCsCb40Z/xlBY5eoFuvWQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/prop-types": { + "version": "15.7.15", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", + "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.3.30", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.30.tgz", + "integrity": "sha512-3ek6mwJL5/VBewBcY4S66cqlCtK3qi4WIq37Z0m/NHw1hjhI7274Mx1qz/+ggSzyBCOEf7eHjBN6INjPAWYfYw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.7", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", + "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", + "devOptional": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^18.0.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", + "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.28.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-beta.27", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.17.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/@xyflow/react": { + "version": "12.11.0", + "resolved": "https://registry.npmjs.org/@xyflow/react/-/react-12.11.0.tgz", + "integrity": "sha512-na4IO33FSs2OS72hASgZDmTYwFAkef7Z74uBUVrong3ARmQQHfnRUVaCFn1kTt5LbS6pK03TbYjCPGLjLFfziA==", + "license": "MIT", + "dependencies": { + "@xyflow/system": "0.0.77", + "classcat": "^5.0.3", + "zustand": "^4.4.0" + }, + "peerDependencies": { + "@types/react": ">=17", + "@types/react-dom": ">=17", + "react": ">=17", + "react-dom": ">=17" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@xyflow/react/node_modules/zustand": { + "version": "4.5.7", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz", + "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==", + "license": "MIT", + "dependencies": { + "use-sync-external-store": "^1.2.2" + }, + "engines": { + "node": ">=12.7.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "immer": ">=9.0.6", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "node_modules/@xyflow/system": { + "version": "0.0.77", + "resolved": "https://registry.npmjs.org/@xyflow/system/-/system-0.0.77.tgz", + "integrity": "sha512-qCDCMCQAAgUu8yHnhloHG9F5mwPX5E+Wl8McpYIOPSSXfzFJJoZcwOcsDiAjitVKIg2de1WmJbCHfpcvxprsgg==", + "license": "MIT", + "dependencies": { + "@types/d3-drag": "^3.0.7", + "@types/d3-interpolate": "^3.0.4", + "@types/d3-selection": "^3.0.10", + "@types/d3-transition": "^3.0.8", + "@types/d3-zoom": "^3.0.8", + "d3-drag": "^3.0.0", + "d3-interpolate": "^3.0.1", + "d3-selection": "^3.0.0", + "d3-zoom": "^3.0.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.33", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.33.tgz", + "integrity": "sha512-bA6+tcSLpz2tIEdDXZPpPTIuxBcC4+w6SieaYyfigIa4h8GlFxbA17v22Vx3JUtuZQj9SgOsnbK+aTBzyDyEuw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/browserslist": { + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001793", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001793.tgz", + "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/classcat": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/classcat/-/classcat-5.0.5.tgz", + "integrity": "sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==", + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dispatch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", + "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-drag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", + "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-selection": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-selection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", + "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-transition": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", + "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-dispatch": "1 - 3", + "d3-ease": "1 - 3", + "d3-interpolate": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "d3-selection": "2 - 3" + } + }, + "node_modules/d3-zoom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", + "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "2 - 3", + "d3-transition": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.368", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.368.tgz", + "integrity": "sha512-7RckJJK4uESJF9PxvfMWd3TGqIiieUTG4HxnKaKuIpGbcr+r2ZEB3g2gAhCP3Fqm42vJSzLfgab9eva/C4/XVw==", + "dev": true, + "license": "ISC" + }, + "node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/immer": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/immer/-/immer-10.2.0.tgz", + "integrity": "sha512-d/+XTN3zfODyjr89gM3mPq1WNX2B8pYsu7eORitdwyA2sBubnTl3laYlBk4sXY5FUa5qTZGBDPJICVbvqzjlbw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/node-releases": { + "version": "2.0.47", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.47.tgz", + "integrity": "sha512-Uzmd6LXpouKo8EUK68IjH4+E01w/hXyV3R3g/geCJo+rXLNfh1xucB+LOzYEOQPSiUK3h/xZf0cQGcSsmyL2Og==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-refresh": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", + "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.61.1.tgz", + "integrity": "sha512-I4KW6iuRpuu2uHBLraZ1wNZe0DP7lnRha+VJ9tNaYVaVgKhW0aI3h4RYnoRPeql0flHm/Co55b7snEDcOfOJrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.61.1", + "@rollup/rollup-android-arm64": "4.61.1", + "@rollup/rollup-darwin-arm64": "4.61.1", + "@rollup/rollup-darwin-x64": "4.61.1", + "@rollup/rollup-freebsd-arm64": "4.61.1", + "@rollup/rollup-freebsd-x64": "4.61.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.61.1", + "@rollup/rollup-linux-arm-musleabihf": "4.61.1", + "@rollup/rollup-linux-arm64-gnu": "4.61.1", + "@rollup/rollup-linux-arm64-musl": "4.61.1", + "@rollup/rollup-linux-loong64-gnu": "4.61.1", + "@rollup/rollup-linux-loong64-musl": "4.61.1", + "@rollup/rollup-linux-ppc64-gnu": "4.61.1", + "@rollup/rollup-linux-ppc64-musl": "4.61.1", + "@rollup/rollup-linux-riscv64-gnu": "4.61.1", + "@rollup/rollup-linux-riscv64-musl": "4.61.1", + "@rollup/rollup-linux-s390x-gnu": "4.61.1", + "@rollup/rollup-linux-x64-gnu": "4.61.1", + "@rollup/rollup-linux-x64-musl": "4.61.1", + "@rollup/rollup-openbsd-x64": "4.61.1", + "@rollup/rollup-openharmony-arm64": "4.61.1", + "@rollup/rollup-win32-arm64-msvc": "4.61.1", + "@rollup/rollup-win32-ia32-msvc": "4.61.1", + "@rollup/rollup-win32-x64-gnu": "4.61.1", + "@rollup/rollup-win32-x64-msvc": "4.61.1", + "fsevents": "~2.3.2" + } + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/use-sync-external-store": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz", + "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/vite": { + "version": "6.4.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.3.tgz", + "integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.25.0", + "fdir": "^6.4.4", + "picomatch": "^4.0.2", + "postcss": "^8.5.3", + "rollup": "^4.34.9", + "tinyglobby": "^0.2.13" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/zustand": { + "version": "5.0.14", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.14.tgz", + "integrity": "sha512-/8tAspM5LMPr28b3fwLYrtdj77ECpfZviaP75CMTnwO8ISyaE4GDIG/9rDDYq/cH9D2Xw2A2RXglLInmVBQB/g==", + "license": "MIT", + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=18.0.0", + "immer": ">=9.0.6", + "react": ">=18.0.0", + "use-sync-external-store": ">=1.2.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + }, + "use-sync-external-store": { + "optional": true + } + } + } + } +} diff --git a/dialogEditor/package.json b/dialogEditor/package.json new file mode 100644 index 0000000..90f9692 --- /dev/null +++ b/dialogEditor/package.json @@ -0,0 +1,26 @@ +{ + "name": "dialogue-editor", + "version": "1.0.0", + "private": true, + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "preview": "vite preview" + }, + "dependencies": { + "@dagrejs/dagre": "^1.1.4", + "@xyflow/react": "^12.3.6", + "immer": "^10.1.1", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "zustand": "^5.0.3" + }, + "devDependencies": { + "@types/dagre": "^0.7.52", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", + "@vitejs/plugin-react": "^4.3.4", + "typescript": "^5.7.2", + "vite": "^6.0.5" + } +} diff --git a/dialogEditor/sample_dialogues.json b/dialogEditor/sample_dialogues.json new file mode 100644 index 0000000..d31ce4d --- /dev/null +++ b/dialogEditor/sample_dialogues.json @@ -0,0 +1,501 @@ +{ + "dialogues": [ + { + "id": "dialog_student", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Студент", + "portrait": "resources/w/avatar_student.png", + "text": "В университете завелись призраки, мне страшно ходить на занятия.", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Hero", + "portrait": "resources/w/gg/gg2_s_podsvetkoy5.png", + "text": "Можешь рассказать подробнее?", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Студент", + "portrait": "resources/w/avatar_student.png", + "text": "Спроси у Мухтара байке, он все знает.", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Hero", + "portrait": "resources/w/gg/gg2_s_podsvetkoy5.png", + "text": "Хорошо.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_mukhtar", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Мухтар байке", + "portrait": "resources/w/avatar_unknown.png", + "text": "Здравствуй, мы давно тебя ждем! Ты поможешь нам избавиться от призраков?", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Hero", + "portrait": "resources/w/gg/gg2_s_podsvetkoy5.png", + "text": "Где их найти?", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Мухтар байке", + "portrait": "resources/w/avatar_unknown.png", + "text": "Заходи в здание универа и поднимайся на второй этаж.", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Мухтар байке", + "portrait": "resources/w/avatar_unknown.png", + "text": "Ты их встретишь прямо там.", + "next": "line_5" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Hero", + "portrait": "resources/w/gg/gg2_s_podsvetkoy5.png", + "text": "Хорошо, я скоро вернусь!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_female_student", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Студентка", + "portrait": "resources/w/avatar_girl.png", + "text": "С этими призраками совсем невозможно ходить на лекции!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "test_line_dialogue", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Ghost", + "portrait": "resources/ghost_avatar.png", + "text": "Наконец-то ты пришел.", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Hero", + "portrait": "resources/w/gg/gg2_s_podsvetkoy5.png", + "text": "Ты сделан из дыма?", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Ghost", + "portrait": "resources/ghost_avatar.png", + "text": "Ты думаешь, это смешно?", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Hero", + "portrait": "resources/w/gg/gg2_s_podsvetkoy5.png", + "text": "Я думаю что ты пахнешь как выхлоп от Камаза.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "ghost_choice_dialogue", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Беспокойный Призрак", + "portrait": "resources/w/avatar_ghost.png", + "text": "Нечасто я вижу смертных, готовых разговаривать со мной.", + "next": "choice_1" + }, + { + "id": "choice_1", + "type": "Choice", + "speaker": "Hero", + "portrait": "resources/w/gg/gg2_s_podsvetkoy5.png", + "text": "", + "choices": [ + { + "id": "main_1", + "kind": "Main", + "text": "Не мешай студентам учиться!", + "next": "line_goods" + }, + { + "id": "optional_1", + "kind": "Optional", + "text": "Почему ты появился здесь?", + "next": "line_who" + } + ] + }, + { + "id": "line_goods", + "type": "Line", + "speaker": "Беспокойный Призрак", + "portrait": "resources/w/avatar_ghost.png", + "text": "Это моя месть студентам за то что они призвали меня.", + "next": "end_1" + }, + { + "id": "line_who", + "type": "Line", + "speaker": "Беспокойный Призрак", + "portrait": "resources/w/avatar_ghost.png", + "text": "Группа студентов совершила ритуал и призвала меня сюда. Пока проклятие не спадет, я всегда буду здесь обитать.", + "next": "choice_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "test_condition_dialogue", + "start": "set_flag_1", + "nodes": [ + { + "id": "set_flag_1", + "type": "SetFlag", + "effects": [ + { "flag": "met_ghost", "value": 1 } + ], + "next": "condition_1" + }, + { + "id": "condition_1", + "type": "Condition", + "conditions": [ + { "flag": "met_ghost", "op": "Equals", "value": 1 } + ], + "trueNext": "line_true", + "falseNext": "line_false" + }, + { + "id": "line_true", + "type": "Line", + "speaker": "Ghost", + "portrait": "resources/ghost_avatar.png", + "text": "Now you know who I am.", + "next": "end_1" + }, + { + "id": "line_false", + "type": "Line", + "speaker": "Ghost", + "portrait": "resources/ghost_avatar.png", + "text": "You should not hear this line.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "test_cutscene_dialogue", + "start": "cutscene_start", + "nodes": [ + { + "id": "cutscene_start", + "type": "CutsceneStart", + "cutsceneId": "test_cutscene_01", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "test_silent_cutscene_dialogue", + "start": "cutscene_start", + "nodes": [ + { + "id": "cutscene_start", + "type": "CutsceneStart", + "cutsceneId": "test_cutscene_silent_01", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "test_cutscene_pan_dialogue", + "start": "cutscene_start", + "nodes": [ + { + "id": "cutscene_start", + "type": "CutsceneStart", + "cutsceneId": "test_cutscene_pan_01", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "test_cutscene_pan_dialogue_silent", + "start": "cutscene_start", + "nodes": [ + { + "id": "cutscene_start", + "type": "CutsceneStart", + "cutsceneId": "test_cutscene_pan_02", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_aida", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Асель Дженибековна", + "portrait": "resources/w/avatar_teacher.png", + "text": "Молодой человек, у меня обед! Я принимаю лабораторные работы только после двух!", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Hero", + "portrait": "resources/w/gg/gg2_s_podsvetkoy5.png", + "text": "Хорошо, Асель Дженибековна.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + } + ], + "cutscenes": [ + { + "id": "test_cutscene_01", + "background": "resources/first_cutscene.png", + "durationMs": 6800, + "cameraTrack": [ + { + "durationMs": 2400, + "from": { "focusX": 0.50, "focusY": 0.55, "zoom": 1.00, "rotationDeg": 0.0 }, + "to": { "focusX": 0.63, "focusY": 0.58, "zoom": 1.16, "rotationDeg": -1.0 }, + "easing": "EaseInOutSine" + }, + { + "durationMs": 2200, + "from": { "focusX": 0.63, "focusY": 0.58, "zoom": 1.16, "rotationDeg": -1.0 }, + "to": { "focusX": 0.74, "focusY": 0.52, "zoom": 1.30, "rotationDeg": -2.4 }, + "easing": "EaseInOutCubic" + }, + { + "durationMs": 2200, + "from": { "focusX": 0.74, "focusY": 0.52, "zoom": 1.30, "rotationDeg": -2.4 }, + "to": { "focusX": 0.58, "focusY": 0.46, "zoom": 1.10, "rotationDeg": -0.6 }, + "easing": "EaseOutSine" + } + ], + "lines": [ + { + "speaker": "Narrator", + "portrait": "resources/hero.png", + "text": "The air in the room turned cold.", + "durationMs": 2200 + }, + { + "speaker": "Ghost", + "portrait": "resources/w/avatar_ghost.png", + "text": "Some memories never fade.", + "durationMs": 2600, + "background": "resources/loading.png" + } + ] + }, + { + "id": "test_cutscene_silent_01", + "background": "resources/first_cutscene.png", + "durationMs": 5200, + "cameraTrack": [ + { + "durationMs": 2600, + "from": { "focusX": 0.40, "focusY": 0.54, "zoom": 1.00, "rotationDeg": 0.0 }, + "to": { "focusX": 0.58, "focusY": 0.54, "zoom": 1.22, "rotationDeg": 0.8 }, + "easing": "EaseInOutSine" + }, + { + "durationMs": 2600, + "from": { "focusX": 0.58, "focusY": 0.54, "zoom": 1.22, "rotationDeg": 0.8 }, + "to": { "focusX": 0.72, "focusY": 0.48, "zoom": 1.34, "rotationDeg": -0.5 }, + "easing": "EaseOutCubic" + } + ], + "lines": [] + }, + { + "id": "test_cutscene_pan_01", + "background": "resources/first_cutscene.png", + "durationMs": 12000, + "cameraTrack": [ + { + "durationMs": 1200, + "from": { "anchor": "Center", "zoom": 1.00, "rotationDeg": 0.0 }, + "to": { "anchor": "Center", "zoom": 1.00, "rotationDeg": 0.0 }, + "easing": "Linear" + }, + { + "durationMs": 2500, + "from": { "anchor": "Center", "zoom": 1.00, "rotationDeg": 0.0 }, + "to": { "anchor": "TopLeft", "zoom": 1.55, "rotationDeg": 0.0 }, + "easing": "EaseInOutSine" + }, + { + "durationMs": 2600, + "from": { "anchor": "TopLeft", "zoom": 1.55, "rotationDeg": 0.0 }, + "to": { "anchor": "TopRight", "zoom": 1.55, "rotationDeg": 0.0 }, + "easing": "EaseInOutSine" + }, + { + "durationMs": 1800, + "from": { "anchor": "TopRight", "zoom": 1.55, "rotationDeg": 0.0 }, + "to": { "anchor": "BottomRight", "zoom": 1.72, "rotationDeg": 0.0 }, + "easing": "EaseInCubic" + }, + { + "durationMs": 3900, + "from": { "anchor": "BottomRight", "zoom": 1.72, "rotationDeg": 0.0 }, + "to": { "anchor": "BottomLeft", "zoom": 1.55, "rotationDeg": 0.0 }, + "easing": "EaseInOutSine" + } + ], + "lines": [ + { + "speaker": "Narrator", + "portrait": "resources/hero.png", + "text": "The memory begins in silence.", + "durationMs": 2200 + }, + { + "speaker": "Narrator", + "portrait": "resources/hero.png", + "text": "Something is drawing your eyes across the whole scene.", + "durationMs": 2800 + }, + { + "speaker": "Ghost", + "portrait": "resources/ghost_avatar.png", + "text": "Do not look away.", + "durationMs": 2400 + } + ] + }, + { + "id": "test_cutscene_pan_02", + "background": "resources/first_cutscene.png", + "durationMs": 12000, + "cameraTrack": [ + { + "durationMs": 1200, + "from": { "anchor": "Center", "zoom": 1.00, "rotationDeg": 0.0 }, + "to": { "anchor": "Center", "zoom": 1.00, "rotationDeg": 0.0 }, + "easing": "Linear" + }, + { + "durationMs": 2500, + "from": { "anchor": "Center", "zoom": 1.00, "rotationDeg": 0.0 }, + "to": { "anchor": "TopLeft", "zoom": 1.55, "rotationDeg": 0.0 }, + "easing": "EaseInOutSine" + }, + { + "durationMs": 2600, + "from": { "anchor": "TopLeft", "zoom": 1.55, "rotationDeg": 0.0 }, + "to": { "anchor": "TopRight", "zoom": 1.55, "rotationDeg": 0.0 }, + "easing": "EaseInOutSine" + }, + { + "durationMs": 1800, + "from": { "anchor": "TopRight", "zoom": 1.55, "rotationDeg": 0.0 }, + "to": { "anchor": "BottomRight", "zoom": 1.72, "rotationDeg": 0.0 }, + "easing": "EaseInCubic" + }, + { + "durationMs": 3900, + "from": { "anchor": "BottomRight", "zoom": 1.72, "rotationDeg": 0.0 }, + "to": { "anchor": "BottomLeft", "zoom": 1.55, "rotationDeg": 0.0 }, + "easing": "EaseInOutSine" + } + ], + "lines": [] + } + ] +} diff --git a/dialogEditor/src/App.module.css b/dialogEditor/src/App.module.css new file mode 100644 index 0000000..a96eabd --- /dev/null +++ b/dialogEditor/src/App.module.css @@ -0,0 +1,5 @@ +.app { + display: flex; + height: 100%; + overflow: hidden; +} diff --git a/dialogEditor/src/App.tsx b/dialogEditor/src/App.tsx new file mode 100644 index 0000000..0e59e7a --- /dev/null +++ b/dialogEditor/src/App.tsx @@ -0,0 +1,19 @@ +import { LeftPanel } from './components/LeftPanel/LeftPanel'; +import { GraphPanel } from './components/GraphPanel/GraphPanel'; +import { RightPanel } from './components/RightPanel/RightPanel'; +import { PlayModeOverlay } from './components/PlayMode/PlayModeOverlay'; +import { useDialogueStore } from './store/dialogueStore'; +import styles from './App.module.css'; + +export default function App() { + const playModeActive = useDialogueStore(s => s.playModeActive); + + return ( +
+ + + + {playModeActive && } +
+ ); +} diff --git a/dialogEditor/src/components/GraphPanel/GraphPanel.module.css b/dialogEditor/src/components/GraphPanel/GraphPanel.module.css new file mode 100644 index 0000000..b08fd05 --- /dev/null +++ b/dialogEditor/src/components/GraphPanel/GraphPanel.module.css @@ -0,0 +1,26 @@ +.container { + flex: 1; + display: flex; + flex-direction: column; + overflow: hidden; + background: #1e1e2e; +} + +.flow { + flex: 1; + overflow: hidden; +} + +.empty { + flex: 1; + display: flex; + align-items: center; + justify-content: center; + background: #1e1e2e; +} + +.emptyMsg { + color: #6c7086; + font-size: 14px; + text-align: center; +} diff --git a/dialogEditor/src/components/GraphPanel/GraphPanel.tsx b/dialogEditor/src/components/GraphPanel/GraphPanel.tsx new file mode 100644 index 0000000..3c489cf --- /dev/null +++ b/dialogEditor/src/components/GraphPanel/GraphPanel.tsx @@ -0,0 +1,185 @@ +import { useCallback, useEffect, useMemo } from 'react'; +import { + ReactFlow, + Background, + Controls, + MiniMap, + NodeChange, + Node, + Edge, + Connection, + MarkerType, +} from '@xyflow/react'; +import { useDialogueStore } from '../../store/dialogueStore'; +import { nodeTypes } from '../nodes/nodeTypes'; +import { DialogueNode, ChoiceNode } from '../../types/dialogue'; +import { GraphToolbar } from './GraphToolbar'; +import styles from './GraphPanel.module.css'; + +function buildEdges(nodes: DialogueNode[]): Edge[] { + const edges: Edge[] = []; + for (const node of nodes) { + const base = { + markerEnd: { type: MarkerType.ArrowClosed, color: '#6c7086' }, + style: { stroke: '#6c7086', strokeWidth: 1.5 }, + animated: false, + }; + + if (node.type === 'Line' || node.type === 'SetFlag' || node.type === 'CutsceneStart') { + if (node.next) { + edges.push({ ...base, id: `${node.id}->source`, source: node.id, target: node.next, sourceHandle: 'source', targetHandle: 'target' }); + } + } else if (node.type === 'Choice') { + for (const choice of node.choices) { + if (choice.next) { + edges.push({ ...base, id: `${node.id}->${choice.id}`, source: node.id, target: choice.next, sourceHandle: choice.id, targetHandle: 'target', label: choice.text.slice(0, 20), labelStyle: { fontSize: 10, fill: '#cdd6f4' }, labelBgStyle: { fill: '#181825' } }); + } + } + } else if (node.type === 'Condition') { + if (node.trueNext) { + edges.push({ ...base, id: `${node.id}->true`, source: node.id, target: node.trueNext, sourceHandle: 'true', targetHandle: 'target', label: 'TRUE', labelStyle: { fontSize: 10, fill: '#a6e3a1' }, labelBgStyle: { fill: '#181825' }, style: { ...base.style, stroke: '#a6e3a1' }, markerEnd: { type: MarkerType.ArrowClosed, color: '#a6e3a1' } }); + } + if (node.falseNext) { + edges.push({ ...base, id: `${node.id}->false`, source: node.id, target: node.falseNext, sourceHandle: 'false', targetHandle: 'target', label: 'FALSE', labelStyle: { fontSize: 10, fill: '#f38ba8' }, labelBgStyle: { fill: '#181825' }, style: { ...base.style, stroke: '#f38ba8' }, markerEnd: { type: MarkerType.ArrowClosed, color: '#f38ba8' } }); + } + } + } + return edges; +} + +export function GraphPanel() { + const { + file, + selectedDialogueId, + selectedNodeId, + positions, + selectNode, + setNodePosition, + applyAutoLayout, + updateNode, + } = useDialogueStore(); + + const dialogue = file?.dialogues.find(d => d.id === selectedDialogueId); + const dialoguePositions = positions[selectedDialogueId ?? ''] ?? {}; + + const rfNodes: Node[] = useMemo(() => { + if (!dialogue) return []; + + return dialogue.nodes.map(node => ({ + id: node.id, + type: node.type, + data: node as unknown as Record, + position: dialoguePositions[node.id] ?? { x: 0, y: 0 }, + selected: node.id === selectedNodeId, + })); + }, [dialogue, dialoguePositions, selectedNodeId]); + + const rfEdges: Edge[] = useMemo(() => { + if (!dialogue) return []; + return buildEdges(dialogue.nodes); + }, [dialogue]); + + const onNodesChange = useCallback((changes: NodeChange[]) => { + if (!selectedDialogueId) return; + for (const change of changes) { + if (change.type === 'position' && change.position) { + setNodePosition(selectedDialogueId, change.id, change.position); + } + } + }, [selectedDialogueId, setNodePosition]); + + const onNodeClick = useCallback((_: React.MouseEvent, node: Node) => { + selectNode(node.id); + }, [selectNode]); + + const onPaneClick = useCallback(() => { + selectNode(null); + }, [selectNode]); + + const onConnect = useCallback((connection: Connection) => { + if (!selectedDialogueId || !connection.source || !connection.target) return; + const dialogue = file?.dialogues.find(d => d.id === selectedDialogueId); + if (!dialogue) return; + const sourceNode = dialogue.nodes.find(n => n.id === connection.source); + if (!sourceNode) return; + + const handle = connection.sourceHandle; + + if (sourceNode.type === 'Line' || sourceNode.type === 'SetFlag' || sourceNode.type === 'CutsceneStart') { + updateNode(selectedDialogueId, sourceNode.id, { next: connection.target } as Partial); + } else if (sourceNode.type === 'Condition') { + if (handle === 'true') { + updateNode(selectedDialogueId, sourceNode.id, { trueNext: connection.target } as Partial); + } else if (handle === 'false') { + updateNode(selectedDialogueId, sourceNode.id, { falseNext: connection.target } as Partial); + } + } else if (sourceNode.type === 'Choice') { + const choices = (sourceNode as ChoiceNode).choices.map(c => + c.id === handle ? { ...c, next: connection.target! } : c + ); + updateNode(selectedDialogueId, sourceNode.id, { choices } as Partial); + } + }, [selectedDialogueId, file, updateNode]); + + // Trigger auto-layout when dialogue is first loaded with no positions + useEffect(() => { + if (dialogue && dialogue.nodes.length > 0 && !Object.keys(dialoguePositions).length && selectedDialogueId) { + applyAutoLayout(selectedDialogueId); + } + }, [selectedDialogueId]); + + if (!file) { + return ( +
+
Load a dialogue JSON file to get started
+
+ ); + } + + if (!dialogue) { + return ( +
+
Select a dialogue from the left panel
+
+ ); + } + + return ( +
+ +
+ + + + { + switch (n.type) { + case 'Line': return '#1e66f5'; + case 'Choice': return '#df8e1d'; + case 'Condition': return '#8839ef'; + case 'SetFlag': return '#179299'; + case 'CutsceneStart': return '#4a4a5a'; + case 'End': return '#f38ba8'; + default: return '#6c7086'; + } + }} + style={{ background: '#181825', border: '1px solid #313244' }} + /> + +
+
+ ); +} diff --git a/dialogEditor/src/components/GraphPanel/GraphToolbar.module.css b/dialogEditor/src/components/GraphPanel/GraphToolbar.module.css new file mode 100644 index 0000000..3c6c8ef --- /dev/null +++ b/dialogEditor/src/components/GraphPanel/GraphToolbar.module.css @@ -0,0 +1,101 @@ +.toolbar { + display: flex; + align-items: center; + gap: 6px; + padding: 6px 10px; + background: #181825; + border-bottom: 1px solid #313244; + flex-wrap: wrap; + min-height: 40px; +} + +.group { + display: flex; + align-items: center; + gap: 4px; +} + +.label { + font-size: 11px; + color: #6c7086; + margin-right: 2px; +} + +.btn { + background: #313244; + color: #cdd6f4; + border: none; + border-radius: 4px; + padding: 4px 8px; + font-size: 11px; + cursor: pointer; + transition: background 0.15s; + white-space: nowrap; +} + +.btn:hover { + background: #45475a; +} + +.btnPlay { + background: #40a02b; + color: #fff; +} + +.btnPlay:hover { + background: #37872b; +} + +.separator { + width: 1px; + height: 20px; + background: #313244; + margin: 0 2px; +} + +.toggle { + display: flex; + align-items: center; + gap: 6px; + cursor: pointer; + font-size: 12px; + color: #cdd6f4; +} + +.toggle input { + cursor: pointer; +} + +.mobileBanner { + background: #2a1f00; + color: #f9e2af; + font-size: 11px; + padding: 3px 10px; + border-radius: 4px; + border: 1px solid #f9e2af44; +} + +.flagPill { + background: rgba(137, 180, 250, 0.15); + color: #89b4fa; + border-radius: 3px; + padding: 2px 6px; + font-size: 10px; + font-family: monospace; + white-space: nowrap; +} + +.btnReset { + background: #45475a; + color: #f9e2af; + border: none; + border-radius: 4px; + padding: 4px 8px; + font-size: 11px; + cursor: pointer; + white-space: nowrap; +} + +.btnReset:hover { + background: #585b70; +} diff --git a/dialogEditor/src/components/GraphPanel/GraphToolbar.tsx b/dialogEditor/src/components/GraphPanel/GraphToolbar.tsx new file mode 100644 index 0000000..01e2100 --- /dev/null +++ b/dialogEditor/src/components/GraphPanel/GraphToolbar.tsx @@ -0,0 +1,104 @@ +import { useDialogueStore } from '../../store/dialogueStore'; +import { makeNodeId } from '../../utils/idGen'; +import { DialogueNode, NodeType } from '../../types/dialogue'; +import { MAIN_CHARACTER } from '../../constants/characters'; +import styles from './GraphToolbar.module.css'; + +const NODE_DEFAULTS: Record Omit> = { + Line: () => ({ + type: 'Line', + speaker: MAIN_CHARACTER, + portrait: 'resources/dialogue/portrait_hero_neutral.png', + text: '', + next: '', + }), + Choice: () => ({ + type: 'Choice', + speaker: MAIN_CHARACTER, + portrait: 'resources/dialogue/portrait_hero_neutral.png', + text: '', + choices: [], + }), + Condition: () => ({ + type: 'Condition', + conditions: [], + trueNext: '', + falseNext: '', + }), + SetFlag: () => ({ + type: 'SetFlag', + effects: [], + next: '', + }), + CutsceneStart: () => ({ + type: 'CutsceneStart', + cutsceneId: '', + next: '', + }), + End: () => ({ type: 'End' }), +}; + +export function GraphToolbar() { + const { file, selectedDialogueId, selectedNodeId, addNode, applyAutoLayout, startPlay, setDialogueMobileMode, persistentFlags, resetFlags } = useDialogueStore(); + + const dialogue = file?.dialogues.find(d => d.id === selectedDialogueId); + if (!dialogue) return null; + + function handleAddNode(type: NodeType) { + if (!selectedDialogueId || !dialogue) return; + const existingIds = new Set(dialogue.nodes.map(n => n.id)); + const id = makeNodeId(type, existingIds); + const node = { id, ...NODE_DEFAULTS[type]() } as DialogueNode; + addNode(selectedDialogueId, node, selectedNodeId ?? undefined); + } + + return ( +
+
+ Add: + {(['Line', 'Choice', 'Condition', 'SetFlag', 'CutsceneStart', 'End'] as NodeType[]).map(type => ( + + ))} +
+
+
+ + +
+
+
+ +
+ {dialogue.mobileMode && ( +
+ Mobile mode — portraits will be overridden on export +
+ )} + {Object.keys(persistentFlags).length > 0 && ( + <> +
+
+ 🚩 Flags: + {Object.entries(persistentFlags).map(([k, v]) => ( + {k}={v} + ))} + +
+ + )} +
+ ); +} diff --git a/dialogEditor/src/components/LeftPanel/LeftPanel.module.css b/dialogEditor/src/components/LeftPanel/LeftPanel.module.css new file mode 100644 index 0000000..d0f8606 --- /dev/null +++ b/dialogEditor/src/components/LeftPanel/LeftPanel.module.css @@ -0,0 +1,185 @@ +.panel { + width: 220px; + min-width: 220px; + background: #181825; + border-right: 1px solid #313244; + display: flex; + flex-direction: column; + height: 100%; + overflow: hidden; +} + +.header { + padding: 12px 12px 6px; + border-bottom: 1px solid #313244; +} + +.title { + font-size: 13px; + font-weight: 700; + color: #cdd6f4; + display: block; +} + +.fileName { + font-size: 10px; + color: #6c7086; + display: block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.fileButtons { + display: flex; + gap: 6px; + padding: 8px 10px; + border-bottom: 1px solid #313244; +} + +.btn { + flex: 1; + background: #313244; + color: #cdd6f4; + border: none; + border-radius: 4px; + padding: 5px 8px; + font-size: 12px; + cursor: pointer; + transition: background 0.15s; +} + +.btn:hover { + background: #45475a; +} + +.btnSave { + background: #1e66f5; + color: #fff; +} + +.btnSave:hover { + background: #2779e4; +} + +.btnNew { + background: #40a02b; + color: #fff; +} + +.btnNew:hover { + background: #37872b; +} + +.errorMsg { + background: #2a0e14; + color: #f38ba8; + font-size: 11px; + padding: 6px 10px; + border-top: 1px solid #f38ba8; +} + +.list { + flex: 1; + overflow-y: auto; + padding: 4px 0; +} + +.emptyMsg { + padding: 16px 12px; + color: #6c7086; + font-size: 12px; + text-align: center; +} + +.dialogueItem { + display: flex; + align-items: center; + padding: 6px 10px; + cursor: pointer; + border-radius: 4px; + margin: 1px 4px; + transition: background 0.1s; +} + +.dialogueItem:hover { + background: #313244; +} + +.dialogueItem.active { + background: #1e3a5f; +} + +.dialogueId { + flex: 1; + font-size: 11px; + font-family: monospace; + color: #cdd6f4; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + display: flex; + align-items: center; + gap: 4px; +} + +.errDot { color: #f38ba8; font-size: 9px; } +.warnDot { color: #f9e2af; font-size: 9px; } +.mobileDot { font-size: 10px; } + +.copyBtn { + background: none; + border: none; + color: #6c7086; + cursor: pointer; + font-size: 13px; + line-height: 1; + padding: 0 2px; + flex-shrink: 0; +} + +.copyBtn:hover { + color: #89b4fa; +} + +.deleteBtn { + background: none; + border: none; + color: #6c7086; + cursor: pointer; + font-size: 16px; + line-height: 1; + padding: 0 2px; + flex-shrink: 0; +} + +.deleteBtn:hover { + color: #f38ba8; +} + +.footer { + padding: 8px; + border-top: 1px solid #313244; +} + +.createForm { + display: flex; + gap: 4px; +} + +.createInput { + flex: 1; + background: #313244; + border: 1px solid #45475a; + border-radius: 4px; + color: #cdd6f4; + font-size: 11px; + padding: 4px 6px; + min-width: 0; + font-family: monospace; +} + +.createInput:focus { + outline: none; + border-color: #89b4fa; +} diff --git a/dialogEditor/src/components/LeftPanel/LeftPanel.tsx b/dialogEditor/src/components/LeftPanel/LeftPanel.tsx new file mode 100644 index 0000000..f6dd0ca --- /dev/null +++ b/dialogEditor/src/components/LeftPanel/LeftPanel.tsx @@ -0,0 +1,156 @@ +import { useRef, useState } from 'react'; +import { useDialogueStore } from '../../store/dialogueStore'; +import { parseDialogueFile } from '../../utils/fileIO'; +import { useValidation } from '../../hooks/useValidation'; +import styles from './LeftPanel.module.css'; + +export function LeftPanel() { + const { file, fileName, selectedDialogueId, loadFile, selectDialogue, createDialogue, deleteDialogue, duplicateDialogue, exportFile } = useDialogueStore(); + const { issuesByNodeId } = useValidation(); + const fileInputRef = useRef(null); + const [newId, setNewId] = useState(''); + const [creating, setCreating] = useState(false); + const [error, setError] = useState(''); + + function handleFileChange(e: React.ChangeEvent) { + const f = e.target.files?.[0]; + if (!f) return; + const reader = new FileReader(); + reader.onload = (ev) => { + try { + const parsed = parseDialogueFile(ev.target?.result as string); + loadFile(parsed, f.name); + setError(''); + } catch (err) { + setError(String(err)); + } + }; + reader.readAsText(f); + e.target.value = ''; + } + + function handleCreate() { + if (!newId.trim()) return; + if (file?.dialogues.some(d => d.id === newId.trim())) { + setError(`ID "${newId.trim()}" already exists`); + return; + } + createDialogue(newId.trim()); + setNewId(''); + setCreating(false); + setError(''); + } + + function dialogueHasIssues(dialogueId: string) { + // Simple check: are there any issues for nodes in this dialogue? + // We only have current dialogue issues so we check if this is selected + return selectedDialogueId === dialogueId && Object.keys(issuesByNodeId).length > 0; + } + + function dialogueHasErrors(dialogueId: string) { + return selectedDialogueId === dialogueId && + Object.values(issuesByNodeId).some(list => list.some(i => i.severity === 'error')); + } + + return ( +
+
+ Dialogues + {file && {fileName}} +
+ +
+ + + {file && ( + + )} +
+ + {error &&
{error}
} + +
+ {!file && ( +
Load a JSON file to start
+ )} + {file?.dialogues.map(d => { + const hasErr = dialogueHasErrors(d.id); + const hasWarn = !hasErr && dialogueHasIssues(d.id); + return ( +
selectDialogue(d.id)} + > + + {hasErr && } + {hasWarn && } + {d.mobileMode && 📱} + {d.id} + + + +
+ ); + })} +
+ +
+ {creating ? ( +
+ setNewId(e.target.value)} + placeholder="dialogue_id" + onKeyDown={e => { + if (e.key === 'Enter') handleCreate(); + if (e.key === 'Escape') { setCreating(false); setNewId(''); } + }} + autoFocus + /> + + +
+ ) : ( + file && ( + + ) + )} +
+
+ ); +} diff --git a/dialogEditor/src/components/PlayMode/PlayModeOverlay.module.css b/dialogEditor/src/components/PlayMode/PlayModeOverlay.module.css new file mode 100644 index 0000000..50b2d05 --- /dev/null +++ b/dialogEditor/src/components/PlayMode/PlayModeOverlay.module.css @@ -0,0 +1,244 @@ +.overlay { + position: fixed; + inset: 0; + background: rgba(0, 0, 0, 0.75); + z-index: 1000; + display: flex; + align-items: center; + justify-content: center; +} + +.dialog { + background: #1e1e2e; + border: 1px solid #313244; + border-radius: 12px; + width: 520px; + max-width: 90vw; + padding: 24px; + position: relative; + box-shadow: 0 20px 60px rgba(0,0,0,0.7); + display: flex; + flex-direction: column; + gap: 16px; +} + +.closeBtn { + position: absolute; + top: 12px; + right: 14px; + background: none; + border: none; + color: #6c7086; + cursor: pointer; + font-size: 16px; + line-height: 1; + padding: 4px; +} + +.closeBtn:hover { + color: #f38ba8; +} + +.speakerRow { + display: flex; + align-items: center; + gap: 12px; +} + +.portraitBox { + width: 52px; + height: 52px; + border-radius: 8px; + background: #313244; + overflow: hidden; + position: relative; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; +} + +.portrait { + width: 100%; + height: 100%; + object-fit: cover; + position: absolute; + inset: 0; +} + +.portraitFallback { + font-size: 22px; + font-weight: 700; + color: #6c7086; + text-transform: uppercase; +} + +.speakerName { + font-size: 15px; + font-weight: 700; + color: #89b4fa; +} + +/* Main character (Бекзат) — blue tones */ +.speakerRowMain { border-left: 3px solid #1e66f5; padding-left: 10px; } +.portraitMain { border: 2px solid #1e66f5; } +.speakerMain { color: #89b4fa; } +.textBoxMain { border-left: 3px solid #1e66f5; } + +/* Other speakers — green tones */ +.speakerRowOther { border-left: 3px solid #40a02b; padding-left: 10px; } +.portraitOther { border: 2px solid #40a02b; } +.speakerOther { color: #a6e3a1; } +.textBoxOther { border-left: 3px solid #40a02b; } + +.textBox { + background: #11111b; + border-radius: 8px; + padding: 14px 16px; + font-size: 14px; + line-height: 1.6; + color: #cdd6f4; + min-height: 60px; +} + +.nextBtn { + background: #1e66f5; + color: #fff; + border: none; + border-radius: 8px; + padding: 10px 24px; + font-size: 14px; + font-weight: 600; + cursor: pointer; + align-self: flex-end; + transition: background 0.15s; +} + +.nextBtn:hover { + background: #2779e4; +} + +.noNextWarning { + color: #f9e2af; + font-size: 12px; + text-align: right; +} + +.choiceList { + display: flex; + flex-direction: column; + gap: 8px; +} + +.choiceBtn { + border: none; + border-radius: 8px; + padding: 11px 16px; + font-size: 13px; + font-weight: 500; + cursor: pointer; + text-align: left; + transition: opacity 0.15s; +} + +.choiceBtn:hover { + opacity: 0.85; +} + +.choiceMain { + background: #1e66f5; + color: #fff; +} + +.choiceOptional { + background: #313244; + color: #cdd6f4; + border: 1px solid #45475a; +} + +.autoAdvance { + display: flex; + flex-direction: column; + align-items: center; + gap: 10px; + padding: 16px 0; +} + +.conditionInfo { + color: #cba6f7; + font-size: 13px; +} + +.conditionClauses { + display: flex; + gap: 6px; + flex-wrap: wrap; +} + +.clausePill { + background: #313244; + color: #a6adc8; + font-size: 11px; + padding: 3px 8px; + border-radius: 4px; + font-family: monospace; +} + +.cutsceneBox { + background: #11111b; + border-radius: 8px; + padding: 16px; + display: flex; + flex-direction: column; + gap: 6px; +} + +.cutsceneLabel { + font-size: 11px; + color: #6c7086; + text-transform: uppercase; + font-weight: 700; + letter-spacing: 0.5px; +} + +.cutsceneId { + font-size: 15px; + color: #a6adc8; + font-family: monospace; +} + +.endBox { + display: flex; + flex-direction: column; + align-items: center; + gap: 16px; + padding: 16px 0; +} + +.endMsg { + font-size: 16px; + color: #6c7086; +} + +.debugBar { + border-top: 1px solid #313244; + padding-top: 8px; + display: flex; + gap: 12px; + flex-wrap: wrap; +} + +.debugLabel { + font-size: 10px; + color: #45475a; + font-family: monospace; +} + +.debugFlagPill { + background: rgba(137, 180, 250, 0.12); + color: #6c7086; + border-radius: 3px; + padding: 1px 5px; + font-size: 10px; + font-family: monospace; +} diff --git a/dialogEditor/src/components/PlayMode/PlayModeOverlay.tsx b/dialogEditor/src/components/PlayMode/PlayModeOverlay.tsx new file mode 100644 index 0000000..a5d971a --- /dev/null +++ b/dialogEditor/src/components/PlayMode/PlayModeOverlay.tsx @@ -0,0 +1,170 @@ +import { useEffect } from 'react'; +import { useDialogueStore } from '../../store/dialogueStore'; +import { ConditionClause } from '../../types/dialogue'; +import { MAIN_CHARACTER } from '../../constants/characters'; +import styles from './PlayModeOverlay.module.css'; + +function evalConditions(clauses: ConditionClause[], flags: Record): boolean { + return clauses.every(c => { + const actual = flags[c.flag] ?? 0; + switch (c.op) { + case 'Equals': return actual == c.value; + case 'NotEquals': return actual != c.value; + case 'GreaterThan': return Number(actual) > Number(c.value); + case 'LessThan': return Number(actual) < Number(c.value); + } + }); +} + +export function PlayModeOverlay() { + const { file, selectedDialogueId, playState, advancePlay, setPlayFlag, stopPlay } = useDialogueStore(); + + const dialogue = file?.dialogues.find(d => d.id === selectedDialogueId); + const node = dialogue?.nodes.find(n => n.id === playState?.currentNodeId); + + // Auto-advance for Condition and SetFlag + useEffect(() => { + if (!node || !playState) return; + + if (node.type === 'Condition') { + const timer = setTimeout(() => { + const passes = evalConditions(node.conditions, playState.flags); + advancePlay(passes ? node.trueNext : node.falseNext); + }, 300); + return () => clearTimeout(timer); + } + + if (node.type === 'SetFlag') { + const timer = setTimeout(() => { + for (const effect of node.effects) { + setPlayFlag(effect.flag, effect.value); + } + advancePlay(node.next); + }, 100); + return () => clearTimeout(timer); + } + }, [node?.id, node?.type]); + + if (!playState || !node) return null; + + const portraitPath = node.type === 'Line' || node.type === 'Choice' + ? `../${node.portrait}` + : null; + + return ( +
e.stopPropagation()}> +
+ + + {node.type === 'Line' && ( + <> +
+
+ {node.speaker} { (e.target as HTMLImageElement).style.display = 'none'; }} + /> + {node.speaker[0]} +
+ {node.speaker} +
+
{node.text}
+ {node.next ? ( + + ) : ( +
⚠ No next node set
+ )} + + )} + + {node.type === 'Choice' && ( + <> +
+
+ {node.speaker} { (e.target as HTMLImageElement).style.display = 'none'; }} + /> + {node.speaker[0]} +
+ {node.speaker} +
+ {node.text &&
{node.text}
} +
+ {node.choices.map(choice => ( + + ))} +
+ + )} + + {node.type === 'Condition' && ( +
+
Evaluating condition...
+
+ {node.conditions.map((c, i) => ( + {c.flag} {c.op} {c.value} + ))} +
+
+ )} + + {node.type === 'SetFlag' && ( +
+
Setting flags...
+
+ )} + + {node.type === 'CutsceneStart' && ( + <> +
+ Cutscene: + {node.cutsceneId} +
+ + + )} + + {node.type === 'End' && ( +
+
Dialogue ended.
+ +
+ )} + +
+ node: {node.id} + {Object.entries(playState.flags).map(([k, v]) => ( + {k}={v} + ))} +
+
+
+ ); +} diff --git a/dialogEditor/src/components/RightPanel/RightPanel.module.css b/dialogEditor/src/components/RightPanel/RightPanel.module.css new file mode 100644 index 0000000..d748030 --- /dev/null +++ b/dialogEditor/src/components/RightPanel/RightPanel.module.css @@ -0,0 +1,313 @@ +.panel { + width: 300px; + min-width: 300px; + background: #181825; + border-left: 1px solid #313244; + display: flex; + flex-direction: column; + height: 100%; + overflow-y: auto; +} + +.emptyMsg { + padding: 24px 16px; + color: #6c7086; + font-size: 13px; + text-align: center; +} + +.inspector { + padding: 12px; + display: flex; + flex-direction: column; + gap: 8px; +} + +.inspectorHeader { + display: flex; + align-items: center; + gap: 8px; + margin-bottom: 4px; +} + +.nodeTypeBadge { + font-size: 11px; + font-weight: 700; + padding: 3px 8px; + border-radius: 4px; + color: #fff; +} + +.nodeIdLabel { + flex: 1; + font-size: 11px; + font-family: monospace; + color: #6c7086; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.deleteNodeBtn { + background: none; + border: none; + cursor: pointer; + font-size: 16px; + padding: 2px; + color: #6c7086; + transition: color 0.15s; +} + +.deleteNodeBtn:hover { + color: #f38ba8; +} + +.label { + display: block; + font-size: 10px; + font-weight: 600; + color: #6c7086; + text-transform: uppercase; + letter-spacing: 0.5px; + margin-bottom: 3px; +} + +.input { + width: 100%; + background: #1e1e2e; + border: 1px solid #313244; + border-radius: 4px; + color: #cdd6f4; + font-size: 12px; + padding: 5px 8px; + box-sizing: border-box; + font-family: inherit; + transition: border-color 0.15s; +} + +.input:focus { + outline: none; + border-color: #89b4fa; +} + +.textarea { + width: 100%; + background: #1e1e2e; + border: 1px solid #313244; + border-radius: 4px; + color: #cdd6f4; + font-size: 12px; + padding: 5px 8px; + box-sizing: border-box; + resize: vertical; + font-family: inherit; + line-height: 1.5; + transition: border-color 0.15s; +} + +.textarea:focus { + outline: none; + border-color: #89b4fa; +} + +.select { + width: 100%; + background: #1e1e2e; + border: 1px solid #313244; + border-radius: 4px; + color: #cdd6f4; + font-size: 12px; + padding: 5px 8px; + box-sizing: border-box; + cursor: pointer; +} + +.select:focus { + outline: none; + border-color: #89b4fa; +} + +.selectSmall { + background: #1e1e2e; + border: 1px solid #313244; + border-radius: 4px; + color: #cdd6f4; + font-size: 11px; + padding: 3px 6px; + cursor: pointer; + flex-shrink: 0; +} + +.inputSmall { + flex: 1; + min-width: 0; + background: #1e1e2e; + border: 1px solid #313244; + border-radius: 4px; + color: #cdd6f4; + font-size: 11px; + padding: 3px 6px; + font-family: monospace; +} + +.inputSmall:focus { + outline: none; + border-color: #89b4fa; +} + +.advancedToggle { + background: none; + border: none; + color: #6c7086; + font-size: 11px; + cursor: pointer; + padding: 4px 0; + text-align: left; +} + +.advancedToggle:hover { + color: #cdd6f4; +} + +.advancedSection { + display: flex; + flex-direction: column; + gap: 8px; + padding: 8px; + background: #1e1e2e; + border-radius: 4px; + border: 1px solid #313244; +} + +.issueList { + display: flex; + flex-direction: column; + gap: 3px; +} + +.issueError { + background: #2a0e14; + color: #f38ba8; + font-size: 11px; + padding: 5px 8px; + border-radius: 4px; + border-left: 3px solid #f38ba8; +} + +.issueWarning { + background: #2a1f00; + color: #f9e2af; + font-size: 11px; + padding: 5px 8px; + border-radius: 4px; + border-left: 3px solid #f9e2af; +} + +/* Choice editor */ +.choiceEditorRow { + display: flex; + flex-direction: column; + gap: 4px; + padding: 8px; + background: #1e1e2e; + border-radius: 4px; + border: 1px solid #313244; + margin-top: 4px; +} + +.choiceEditorHeader { + display: flex; + align-items: center; + gap: 6px; +} + +.choiceIdLabel { + flex: 1; + font-size: 10px; + color: #6c7086; +} + +.sectionHeader { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 4px; +} + +.addBtn { + background: #313244; + color: #cdd6f4; + border: none; + border-radius: 4px; + padding: 3px 8px; + font-size: 11px; + cursor: pointer; +} + +.addBtn:hover { + background: #45475a; +} + +.removeBtn { + background: none; + border: none; + color: #6c7086; + cursor: pointer; + font-size: 16px; + line-height: 1; + padding: 0 2px; +} + +.removeBtn:hover { + color: #f38ba8; +} + +/* Clause / effect rows */ +.clauseRow { + display: flex; + align-items: center; + gap: 4px; + margin-top: 4px; +} + +.eqLabel { + color: #cba6f7; + font-weight: 700; + font-size: 13px; +} + +.emptyHint { + color: #6c7086; + font-size: 11px; + font-style: italic; + padding: 4px 0; +} + +/* Dialogue meta panel */ +.dialogueMeta { + padding: 12px; + display: flex; + flex-direction: column; + gap: 8px; +} + +.metaHeader { + font-size: 12px; + font-weight: 700; + color: #cdd6f4; + margin-bottom: 4px; +} + +.statRow { + display: flex; + flex-wrap: wrap; + gap: 4px; +} + +.statPill { + background: #313244; + color: #a6adc8; + font-size: 10px; + padding: 2px 7px; + border-radius: 10px; +} diff --git a/dialogEditor/src/components/RightPanel/RightPanel.tsx b/dialogEditor/src/components/RightPanel/RightPanel.tsx new file mode 100644 index 0000000..b1dab00 --- /dev/null +++ b/dialogEditor/src/components/RightPanel/RightPanel.tsx @@ -0,0 +1,102 @@ +import { useDialogueStore } from '../../store/dialogueStore'; +import { LineInspector } from './inspectors/LineInspector'; +import { ChoiceInspector } from './inspectors/ChoiceInspector'; +import { ConditionInspector } from './inspectors/ConditionInspector'; +import { SetFlagInspector } from './inspectors/SetFlagInspector'; +import { CutsceneStartInspector, EndInspector } from './inspectors/OtherInspectors'; +import { DialogueNode } from '../../types/dialogue'; +import styles from './RightPanel.module.css'; + +// Helper to update start node ID +function useUpdateStart() { + const store = useDialogueStore; + return (dialogueId: string, start: string) => { + store.setState(state => { + const d = state.file?.dialogues.find(x => x.id === dialogueId); + if (d) d.start = start; + }); + }; +} + +export function RightPanel() { + const { file, selectedDialogueId, selectedNodeId } = useDialogueStore(); + const updateStart = useUpdateStart(); + + const dialogue = file?.dialogues.find(d => d.id === selectedDialogueId); + + if (!dialogue) { + return ( +
+
No dialogue selected
+
+ ); + } + + if (!selectedNodeId) { + return ( +
+
+
Dialogue Properties
+
+ + +
+
+ + { + if (selectedDialogueId) updateStart(selectedDialogueId, e.target.value); + }} + list="startNodeList" + /> + + {dialogue.nodes.map(n => +
+
+ Click a node in the graph to inspect it. +
+
+
Node Count
+
+ {(['Line', 'Choice', 'Condition', 'SetFlag', 'CutsceneStart', 'End'] as DialogueNode['type'][]).map(t => { + const count = dialogue.nodes.filter(n => n.type === t).length; + return count > 0 ? ( + {t}: {count} + ) : null; + })} +
+
+
+
+ ); + } + + const node = dialogue.nodes.find(n => n.id === selectedNodeId); + if (!node) return null; + + return ( +
+ {node.type === 'Line' && ( + + )} + {node.type === 'Choice' && ( + + )} + {node.type === 'Condition' && ( + + )} + {node.type === 'SetFlag' && ( + + )} + {node.type === 'CutsceneStart' && ( + + )} + {node.type === 'End' && ( + + )} +
+ ); +} diff --git a/dialogEditor/src/components/RightPanel/inspectors/ChoiceInspector.tsx b/dialogEditor/src/components/RightPanel/inspectors/ChoiceInspector.tsx new file mode 100644 index 0000000..7a9ab3c --- /dev/null +++ b/dialogEditor/src/components/RightPanel/inspectors/ChoiceInspector.tsx @@ -0,0 +1,110 @@ +import { ChoiceNode, ChoiceOption } from '../../../types/dialogue'; +import { useDialogueStore } from '../../../store/dialogueStore'; +import { SpeakerField } from '../shared/SpeakerField'; +import { useValidation } from '../../../hooks/useValidation'; +import styles from '../RightPanel.module.css'; + +interface Props { + node: ChoiceNode; + dialogueId: string; +} + +export function ChoiceInspector({ node, dialogueId }: Props) { + const { updateNode, deleteNode, file } = useDialogueStore(); + const { issuesByNodeId } = useValidation(); + const issues = issuesByNodeId[node.id] ?? []; + + const dialogue = file?.dialogues.find(d => d.id === dialogueId); + const nodeIds = dialogue?.nodes.map(n => n.id) ?? []; + + function updateChoice(idx: number, patch: Partial) { + const choices = node.choices.map((c, i) => i === idx ? { ...c, ...patch } : c); + updateNode(dialogueId, node.id, { choices }); + } + + function addChoice() { + const newId = `choice_${Date.now()}`; + const choices: ChoiceOption[] = [...node.choices, { id: newId, kind: 'Optional', text: '', next: '' }]; + updateNode(dialogueId, node.id, { choices }); + } + + function removeChoice(idx: number) { + const choices = node.choices.filter((_, i) => i !== idx); + updateNode(dialogueId, node.id, { choices }); + } + + return ( +
+
+ Choice + {node.id} + +
+ + {issues.length > 0 && ( +
+ {issues.map((issue, i) => ( +
+ {issue.severity === 'error' ? '⚠' : '!'} {issue.message} +
+ ))} +
+ )} + +
+ + +
+ + updateNode(dialogueId, node.id, { speaker: s, portrait: p })} + /> + +
+
+ Choices + +
+ + {node.choices.map((choice, idx) => ( +
+
+ + #{idx + 1} + +
+ updateChoice(idx, { text: e.target.value })} + /> + updateChoice(idx, { next: e.target.value })} + list={`nodelist-choice-${choice.id}`} + /> + + {nodeIds.map(id => +
+ ))} + + {node.choices.length === 0 && ( +
No choices yet. Click "+ Add".
+ )} +
+
+ ); +} diff --git a/dialogEditor/src/components/RightPanel/inspectors/ConditionInspector.tsx b/dialogEditor/src/components/RightPanel/inspectors/ConditionInspector.tsx new file mode 100644 index 0000000..f16c477 --- /dev/null +++ b/dialogEditor/src/components/RightPanel/inspectors/ConditionInspector.tsx @@ -0,0 +1,120 @@ +import { ConditionNode, ConditionClause, ConditionOp } from '../../../types/dialogue'; +import { useDialogueStore } from '../../../store/dialogueStore'; +import { useValidation } from '../../../hooks/useValidation'; +import styles from '../RightPanel.module.css'; + +const OPS: ConditionOp[] = ['Equals', 'NotEquals', 'GreaterThan', 'LessThan']; + +interface Props { + node: ConditionNode; + dialogueId: string; +} + +export function ConditionInspector({ node, dialogueId }: Props) { + const { updateNode, deleteNode, file } = useDialogueStore(); + const { issuesByNodeId } = useValidation(); + const issues = issuesByNodeId[node.id] ?? []; + + const dialogue = file?.dialogues.find(d => d.id === dialogueId); + const nodeIds = dialogue?.nodes.map(n => n.id) ?? []; + + function updateClause(idx: number, patch: Partial) { + const conditions = node.conditions.map((c, i) => i === idx ? { ...c, ...patch } : c); + updateNode(dialogueId, node.id, { conditions }); + } + + function addClause() { + const conditions: ConditionClause[] = [...node.conditions, { flag: '', op: 'Equals', value: 1 }]; + updateNode(dialogueId, node.id, { conditions }); + } + + function removeClause(idx: number) { + const conditions = node.conditions.filter((_, i) => i !== idx); + updateNode(dialogueId, node.id, { conditions }); + } + + return ( +
+
+ Condition + {node.id} + +
+ + {issues.length > 0 && ( +
+ {issues.map((issue, i) => ( +
+ {issue.severity === 'error' ? '⚠' : '!'} {issue.message} +
+ ))} +
+ )} + +
+ + +
+ +
+
+ Conditions (ALL must pass) + +
+ {node.conditions.map((c, idx) => ( +
+ updateClause(idx, { flag: e.target.value })} + /> + + updateClause(idx, { value: isNaN(Number(e.target.value)) ? e.target.value : Number(e.target.value) })} + /> + +
+ ))} + {node.conditions.length === 0 &&
No conditions. Always true.
} +
+ +
+ + updateNode(dialogueId, node.id, { trueNext: e.target.value })} + list={`nodelist-true-${node.id}`} + /> + + {nodeIds.map(id => +
+ +
+ + updateNode(dialogueId, node.id, { falseNext: e.target.value })} + list={`nodelist-false-${node.id}`} + /> + + {nodeIds.map(id => +
+
+ ); +} diff --git a/dialogEditor/src/components/RightPanel/inspectors/LineInspector.tsx b/dialogEditor/src/components/RightPanel/inspectors/LineInspector.tsx new file mode 100644 index 0000000..a6e33b7 --- /dev/null +++ b/dialogEditor/src/components/RightPanel/inspectors/LineInspector.tsx @@ -0,0 +1,114 @@ +import { useState } from 'react'; +import { LineNode } from '../../../types/dialogue'; +import { useDialogueStore } from '../../../store/dialogueStore'; +import { SpeakerField } from '../shared/SpeakerField'; +import { AutoSaveTextArea } from '../shared/TextArea'; +import { useValidation } from '../../../hooks/useValidation'; +import styles from '../RightPanel.module.css'; + +interface Props { + node: LineNode; + dialogueId: string; +} + +export function LineInspector({ node, dialogueId }: Props) { + const { updateNode, deleteNode, file } = useDialogueStore(); + const { issuesByNodeId } = useValidation(); + const [showAdvanced, setShowAdvanced] = useState(false); + const issues = issuesByNodeId[node.id] ?? []; + + const dialogue = file?.dialogues.find(d => d.id === dialogueId); + const nodeIds = dialogue?.nodes.map(n => n.id) ?? []; + + function update(patch: Partial) { + updateNode(dialogueId, node.id, patch); + } + + function field(label: string, key: keyof LineNode, placeholder?: string) { + const val = (node[key] as string) ?? ''; + return ( +
+ + update({ [key]: e.target.value } as Partial)} + list={key === 'next' ? `nodelist-${node.id}` : undefined} + /> + {key === 'next' && ( + + {nodeIds.map(id => + )} +
+ ); + } + + return ( +
+
+ Line + {node.id} + +
+ + {issues.length > 0 && ( +
+ {issues.map((issue, i) => ( +
+ {issue.severity === 'error' ? '⚠' : '!'} {issue.message} +
+ ))} +
+ )} + + {field('Node ID', 'id')} + update({ speaker: s, portrait: p })} + /> + update({ text: v })} + /> + {field('Next node', 'next', 'node_id')} + + {dialogue?.mobileMode && ( +
+ + +
+ )} + + + + {showAdvanced && ( +
+ {field('questUnlock', 'questUnlock', 'quest_id')} + {field('objectiveComplete', 'objectiveComplete', 'group.objective')} + {field('objectiveVisible', 'objectiveVisible', 'group.objective')} + {field('questFail', 'questFail', 'quest_id')} + {field('questComplete', 'questComplete', 'quest_id')} + {field('luaCallback', 'luaCallback', 'on_event_name')} +
+ )} +
+ ); +} diff --git a/dialogEditor/src/components/RightPanel/inspectors/OtherInspectors.tsx b/dialogEditor/src/components/RightPanel/inspectors/OtherInspectors.tsx new file mode 100644 index 0000000..ccbba72 --- /dev/null +++ b/dialogEditor/src/components/RightPanel/inspectors/OtherInspectors.tsx @@ -0,0 +1,76 @@ +import { CutsceneStartNode, EndNode } from '../../../types/dialogue'; +import { useDialogueStore } from '../../../store/dialogueStore'; +import styles from '../RightPanel.module.css'; + +interface CutsceneProps { + node: CutsceneStartNode; + dialogueId: string; +} + +export function CutsceneStartInspector({ node, dialogueId }: CutsceneProps) { + const { updateNode, deleteNode, file } = useDialogueStore(); + const dialogue = file?.dialogues.find(d => d.id === dialogueId); + const nodeIds = dialogue?.nodes.map(n => n.id) ?? []; + + return ( +
+
+ CutsceneStart + {node.id} + +
+
+ + +
+
+ + updateNode(dialogueId, node.id, { cutsceneId: e.target.value })} + /> +
+
+ + updateNode(dialogueId, node.id, { next: e.target.value })} + list={`nodelist-cs-${node.id}`} + /> + + {nodeIds.map(id => +
+
+ ); +} + +interface EndProps { + node: EndNode; + dialogueId: string; +} + +export function EndInspector({ node, dialogueId }: EndProps) { + const { deleteNode } = useDialogueStore(); + + return ( +
+
+ End + {node.id} + +
+
+ + +
+
+ This is a terminal node. Dialogue ends here. +
+
+ ); +} diff --git a/dialogEditor/src/components/RightPanel/inspectors/SetFlagInspector.tsx b/dialogEditor/src/components/RightPanel/inspectors/SetFlagInspector.tsx new file mode 100644 index 0000000..46343c4 --- /dev/null +++ b/dialogEditor/src/components/RightPanel/inspectors/SetFlagInspector.tsx @@ -0,0 +1,98 @@ +import { SetFlagNode, FlagEffect } from '../../../types/dialogue'; +import { useDialogueStore } from '../../../store/dialogueStore'; +import { useValidation } from '../../../hooks/useValidation'; +import styles from '../RightPanel.module.css'; + +interface Props { + node: SetFlagNode; + dialogueId: string; +} + +export function SetFlagInspector({ node, dialogueId }: Props) { + const { updateNode, deleteNode, file } = useDialogueStore(); + const { issuesByNodeId } = useValidation(); + const issues = issuesByNodeId[node.id] ?? []; + + const dialogue = file?.dialogues.find(d => d.id === dialogueId); + const nodeIds = dialogue?.nodes.map(n => n.id) ?? []; + + function updateEffect(idx: number, patch: Partial) { + const effects = node.effects.map((e, i) => i === idx ? { ...e, ...patch } : e); + updateNode(dialogueId, node.id, { effects }); + } + + function addEffect() { + const effects: FlagEffect[] = [...node.effects, { flag: '', value: 1 }]; + updateNode(dialogueId, node.id, { effects }); + } + + function removeEffect(idx: number) { + const effects = node.effects.filter((_, i) => i !== idx); + updateNode(dialogueId, node.id, { effects }); + } + + return ( +
+
+ SetFlag + {node.id} + +
+ + {issues.length > 0 && ( +
+ {issues.map((issue, i) => ( +
+ {issue.severity === 'error' ? '⚠' : '!'} {issue.message} +
+ ))} +
+ )} + +
+ + +
+ +
+
+ Flag Effects + +
+ {node.effects.map((e, idx) => ( +
+ updateEffect(idx, { flag: ev.target.value })} + /> + = + updateEffect(idx, { value: isNaN(Number(ev.target.value)) ? ev.target.value : Number(ev.target.value) })} + /> + +
+ ))} + {node.effects.length === 0 &&
No effects defined.
} +
+ +
+ + updateNode(dialogueId, node.id, { next: e.target.value })} + list={`nodelist-sf-${node.id}`} + /> + + {nodeIds.map(id => +
+
+ ); +} diff --git a/dialogEditor/src/components/RightPanel/shared/SpeakerField.tsx b/dialogEditor/src/components/RightPanel/shared/SpeakerField.tsx new file mode 100644 index 0000000..b8912e5 --- /dev/null +++ b/dialogEditor/src/components/RightPanel/shared/SpeakerField.tsx @@ -0,0 +1,58 @@ +import { useState } from 'react'; +import { CHARACTER_PRESETS, CUSTOM_CHARACTER_LABEL } from '../../../constants/characters'; +import styles from '../RightPanel.module.css'; + +interface Props { + speaker: string; + portrait: string; + onSpeakerChange: (speaker: string, portrait: string) => void; +} + +export function SpeakerField({ speaker, portrait, onSpeakerChange }: Props) { + const isPreset = CHARACTER_PRESETS.some(p => p.label === speaker); + const [isCustom, setIsCustom] = useState(!isPreset); + + function handleSelect(e: React.ChangeEvent) { + const val = e.target.value; + if (val === CUSTOM_CHARACTER_LABEL) { + setIsCustom(true); + onSpeakerChange(speaker, portrait); + } else { + setIsCustom(false); + const preset = CHARACTER_PRESETS.find(p => p.label === val); + onSpeakerChange(val, preset?.portrait ?? ''); + } + } + + return ( +
+ + + {isCustom && ( + onSpeakerChange(e.target.value, portrait)} + /> + )} + + onSpeakerChange(speaker, e.target.value)} + /> +
+ ); +} diff --git a/dialogEditor/src/components/RightPanel/shared/TextArea.tsx b/dialogEditor/src/components/RightPanel/shared/TextArea.tsx new file mode 100644 index 0000000..0e1ae59 --- /dev/null +++ b/dialogEditor/src/components/RightPanel/shared/TextArea.tsx @@ -0,0 +1,26 @@ +import { useAutoSave } from '../../../hooks/useAutoSave'; +import styles from '../RightPanel.module.css'; + +interface Props { + value: string; + label: string; + placeholder?: string; + onSave: (value: string) => void; + rows?: number; +} + +export function AutoSaveTextArea({ value, label, placeholder, onSave, rows = 4 }: Props) { + const [local, handleChange] = useAutoSave(value, onSave); + return ( +
+ +