@nine-lab/nine-mu 0.1.46 → 0.1.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -814,7 +814,8 @@
814
814
  outline: none;
815
815
  }
816
816
 
817
- nx-dialog { --dialog-width: 90vw; --dialog-height: 85vh; }
817
+ --dialog { --dialog-width: 90vw; --dialog-height: 85vh; }
818
+ dialog { width: calc(100% - 50px); height: calc(100% - 50px); }
818
819
  .main-layout { width: 100%; height: 100%; display: flex; flex-direction: column; }
819
820
  .diff-area { flex: 1; min-height: 0; }
820
821
  .footer {
package/dist/nine-mu.js CHANGED
@@ -183,7 +183,7 @@ render_fn = function() {
183
183
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
184
184
  this.shadowRoot.innerHTML = `
185
185
  <style>
186
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.45"}/dist/css/nine-mu.css";
186
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.47"}/dist/css/nine-mu.css";
187
187
  ${customImport}
188
188
  </style>
189
189
  <div class="wrapper">
@@ -26396,7 +26396,7 @@ class NineDiff extends HTMLElement {
26396
26396
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26397
26397
  this.shadowRoot.innerHTML = `
26398
26398
  <style>
26399
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.45"}/dist/css/nine-mu.css";
26399
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.47"}/dist/css/nine-mu.css";
26400
26400
  ${customImport}
26401
26401
  </style>
26402
26402
 
@@ -26461,49 +26461,27 @@ class NineDiffPopup extends HTMLElement {
26461
26461
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26462
26462
  this.shadowRoot.innerHTML = `
26463
26463
  <style>
26464
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.45"}/dist/css/nine-mu.css";
26464
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.47"}/dist/css/nine-mu.css";
26465
26465
  ${customImport}
26466
26466
  </style>
26467
26467
 
26468
- <nx-dialog>
26468
+ <nine-dialog>
26469
26469
  <div class="main-layout">
26470
26470
  <div class="diff-area">
26471
- <nine-diff id="editor"></nine-diff>
26471
+ <nine-diff></nine-diff>
26472
26472
  </div>
26473
26473
  <div class="footer">
26474
26474
  <button class="btn btn-cancel">취소</button>
26475
26475
  <button class="btn btn-confirm">최종 확정 및 저장</button>
26476
26476
  </div>
26477
26477
  </div>
26478
- </nx-dialog>
26478
+ </nine-dialog>
26479
26479
  `;
26480
- __privateSet(this, _dialog, this.shadowRoot.querySelector("nx-dialog"));
26481
- __privateSet(this, _diffView, this.shadowRoot.querySelector("#editor"));
26480
+ __privateSet(this, _dialog, this.shadowRoot.querySelector("nine-dialog"));
26481
+ __privateSet(this, _diffView, this.shadowRoot.querySelector("nine-diff"));
26482
26482
  this.shadowRoot.querySelector(".btn-confirm").onclick = () => __privateMethod(this, _NineDiffPopup_instances, handleConfirm_fn).call(this);
26483
26483
  this.shadowRoot.querySelector(".btn-cancel").onclick = () => __privateMethod(this, _NineDiffPopup_instances, handleCancel_fn).call(this);
26484
26484
  }
26485
- /**
26486
- async popup1(data) {
26487
- return new Promise((resolve) => {
26488
- this.#resolve = resolve;
26489
- this.#asisBackup = data?.asis || "";
26490
-
26491
-
26492
- // 💡 에디터가 준비되었다는 신호를 받으면 데이터 주입
26493
- this.#diffView.addEventListener('ready', () => {
26494
- trace.log("NineDiff is Ready! Injecting data...");
26495
-
26496
- const asisStr = typeof data.asis === 'object' ? JSON.stringify(data.asis, null, 2) : data.asis;
26497
- const tobeStr = typeof data.tobe === 'object' ? JSON.stringify(data.tobe, null, 2) : data.tobe;
26498
-
26499
- trace.log(asisStr, tobeStr);
26500
-
26501
- this.#diffView.initialize(asisStr, tobeStr, data.lang);
26502
- }, { once: true }); // 딱 한 번만 실행
26503
-
26504
- this.#dialog.showModal();
26505
- });
26506
- } */
26507
26485
  popup() {
26508
26486
  __privateGet(this, _dialog).showModal();
26509
26487
  return this;
@@ -26652,7 +26630,7 @@ if (!customElements.get("nine-dialog")) {
26652
26630
  customElements.define("nine-dialog", NineDialog);
26653
26631
  }
26654
26632
  const NineMu = {
26655
- version: "0.1.45",
26633
+ version: "0.1.47",
26656
26634
  init: (config) => {
26657
26635
  trace.log("🛠️ Nine-Mu Engine initialized", config);
26658
26636
  }