@nine-lab/nine-ux 0.1.80 → 0.1.82

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.
Files changed (2) hide show
  1. package/dist/nine-ux.umd.js +11 -10
  2. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  (function(global, factory) {
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(require("@nine-lab/nine-util")) : typeof define === "function" && define.amd ? define(["@nine-lab/nine-util"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.nine));
3
- })(this, function(nineUtil) {
3
+ })(this, function(nine) {
4
4
  "use strict";var __defProp = Object.defineProperty;
5
5
  var __typeError = (msg) => {
6
6
  throw TypeError(msg);
@@ -638,7 +638,7 @@ dialog.out { animation: nx-fade-out 0.3s forwards; }
638
638
  // 1. 값만 깔끔하게 반환
639
639
  get cssPath() {
640
640
  var _a;
641
- return ((_a = nineUtil.nine.config.ux) == null ? void 0 : _a.cssPath) || __privateGet(this, _localCssPath);
641
+ return ((_a = nine.nine.config.ux) == null ? void 0 : _a.cssPath) || __privateGet(this, _localCssPath);
642
642
  }
643
643
  set cssPath(path) {
644
644
  __privateSet(this, _localCssPath, path);
@@ -19372,7 +19372,7 @@ img.ProseMirror-separator {
19372
19372
  const customImport = customPath ? `@import "${customPath}";` : "";
19373
19373
  this.shadowRoot.innerHTML = `
19374
19374
  <style>
19375
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@${"0.1.80"}/dist/css/nineEditor.css";
19375
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@${"0.1.82"}/dist/css/nineEditor.css";
19376
19376
  ${customImport}
19377
19377
  </style>
19378
19378
 
@@ -19507,27 +19507,28 @@ img.ProseMirror-separator {
19507
19507
  confirm: window.confirm
19508
19508
  };
19509
19509
  const sync = () => {
19510
- var _a, _b;
19511
- const { nativeOverride } = ((_b = (_a = nineUtil.nine) == null ? void 0 : _a.config) == null ? void 0 : _b.ux) || {};
19510
+ var _a;
19511
+ console.log(nine);
19512
+ const { nativeOverride } = ((_a = nine == null ? void 0 : nine.config) == null ? void 0 : _a.ux) || {};
19512
19513
  const targets = Array.isArray(nativeOverride) ? nativeOverride : nativeOverride === true ? ["alert", "confirm"] : [];
19513
- console.log(nineUtil.nine, targets);
19514
+ console.log(nine, targets);
19514
19515
  window.alert = targets.includes("alert") ? (msg) => nineUx.alert(msg) : originals.alert;
19515
19516
  window.confirm = targets.includes("confirm") ? async (msg) => await nineUx.confirm(msg) : originals.confirm;
19516
- if (nineUtil.nine.config.debug && targets.length > 0) {
19517
+ if (nine.config.debug && targets.length > 0) {
19517
19518
  console.log(`[nine-ux] Native API Overridden: ${targets.join(", ")}`);
19518
19519
  }
19519
19520
  };
19520
19521
  const init = () => {
19521
19522
  sync();
19522
- nineUtil.subscribeConfig((prop) => {
19523
+ nine == null ? void 0 : nine.subscribeConfig((prop) => {
19523
19524
  if (prop === "ux" || prop === "config") {
19524
19525
  sync();
19525
19526
  }
19526
19527
  });
19527
19528
  };
19528
19529
  init();
19529
- nineUtil.nine.alert = nineUx.alert.bind(nineUx);
19530
- nineUtil.nine.confirm = nineUx.confirm.bind(nineUx);
19530
+ nine.nine.alert = nineUx.alert.bind(nineUx);
19531
+ nine.nine.confirm = nineUx.confirm.bind(nineUx);
19531
19532
  if (typeof window !== "undefined") {
19532
19533
  if (!customElements.get("nine-editor")) {
19533
19534
  customElements.define("nine-editor", nineEditor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nine-lab/nine-ux",
3
- "version": "0.1.80",
3
+ "version": "0.1.82",
4
4
  "type": "module",
5
5
  "main": "dist/nine-ux.umd.js",
6
6
  "module": "dist/nine-ux.es.js",