@nine-lab/nine-ux 0.1.94 → 0.1.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nine-ux.js CHANGED
@@ -10,7 +10,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
10
10
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
11
11
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
12
12
  var _shift, _dialog, _init, _onMouseDown, _onTouchStart, _localCssPath, _NineUx_instances, createRunner_fn, _isInitialized, _root, _hasChanged, _nxDiv_instances, getElements_fn, updateElement_fn, refreshListeners_fn, _changeHandler, _init2, _editor, _container, _tempValue, _nineEditor_instances, updateEditable_fn, render_fn, initEditor_fn, updateMenuState_fn, bindEvents_fn;
13
- import nine, { nine as nine$1 } from "@nine-lab/nine-util";
13
+ import { nine } from "@nine-lab/nine-util";
14
14
  const dialogStyles = `
15
15
  dialog::backdrop {
16
16
  background: rgba(0, 0, 0, 0.3);
@@ -19361,7 +19361,7 @@ render_fn = function() {
19361
19361
  const customImport = customPath ? `@import "${customPath}";` : "";
19362
19362
  this.shadowRoot.innerHTML = `
19363
19363
  <style>
19364
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@${"0.1.94"}/dist/css/nineEditor.css";
19364
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@${"0.1.95"}/dist/css/nineEditor.css";
19365
19365
  ${customImport}
19366
19366
  </style>
19367
19367
 
@@ -19517,7 +19517,7 @@ const init = () => {
19517
19517
  });
19518
19518
  };
19519
19519
  init();
19520
- const targetNine = typeof window !== "undefined" ? window.nine || nine$1 : nine$1;
19520
+ const targetNine = typeof window !== "undefined" ? window.nine || nine : nine;
19521
19521
  if (targetNine) {
19522
19522
  targetNine.alert = nineUx.alert.bind(nineUx);
19523
19523
  targetNine.confirm = nineUx.confirm.bind(nineUx);
@@ -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(nine) {
3
+ })(this, function(nineUtil) {
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 = nine.config.ux) == null ? void 0 : _a.cssPath) || __privateGet(this, _localCssPath);
641
+ return ((_a = nineUtil.nine.config.ux) == null ? void 0 : _a.cssPath) || __privateGet(this, _localCssPath);
642
642
  }
643
643
  set cssPath(path) {
644
644
  __privateSet(this, _localCssPath, path);
@@ -19364,7 +19364,7 @@ img.ProseMirror-separator {
19364
19364
  const customImport = customPath ? `@import "${customPath}";` : "";
19365
19365
  this.shadowRoot.innerHTML = `
19366
19366
  <style>
19367
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@${"0.1.94"}/dist/css/nineEditor.css";
19367
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-ux@${"0.1.95"}/dist/css/nineEditor.css";
19368
19368
  ${customImport}
19369
19369
  </style>
19370
19370
 
@@ -19499,27 +19499,28 @@ img.ProseMirror-separator {
19499
19499
  confirm: window.confirm
19500
19500
  };
19501
19501
  const sync = () => {
19502
- var _a;
19503
- console.log(nine, window.nine);
19504
- const { nativeOverride } = ((_a = nine == null ? void 0 : nine.config) == null ? void 0 : _a.ux) || {};
19502
+ var _a, _b;
19503
+ console.log(nineUtil.nine, window.nine);
19504
+ const { nativeOverride } = ((_b = (_a = nineUtil.nine) == null ? void 0 : _a.config) == null ? void 0 : _b.ux) || {};
19505
19505
  const targets = Array.isArray(nativeOverride) ? nativeOverride : nativeOverride === true ? ["alert", "confirm"] : [];
19506
- console.log(nine, targets);
19506
+ console.log(nineUtil.nine, targets);
19507
19507
  window.alert = targets.includes("alert") ? (msg) => nineUx.alert(msg) : originals.alert;
19508
19508
  window.confirm = targets.includes("confirm") ? async (msg) => await nineUx.confirm(msg) : originals.confirm;
19509
- if (nine.config.debug && targets.length > 0) {
19509
+ if (nineUtil.nine.config.debug && targets.length > 0) {
19510
19510
  console.log(`[nine-ux] Native API Overridden: ${targets.join(", ")}`);
19511
19511
  }
19512
19512
  };
19513
19513
  const init = () => {
19514
+ var _a;
19514
19515
  sync();
19515
- nine == null ? void 0 : nine.subscribeConfig((prop) => {
19516
+ (_a = nineUtil.nine) == null ? void 0 : _a.subscribeConfig((prop) => {
19516
19517
  if (prop === "ux" || prop === "config") {
19517
19518
  sync();
19518
19519
  }
19519
19520
  });
19520
19521
  };
19521
19522
  init();
19522
- const targetNine = typeof window !== "undefined" ? window.nine || nine.nine : nine.nine;
19523
+ const targetNine = typeof window !== "undefined" ? window.nine || nineUtil.nine : nineUtil.nine;
19523
19524
  if (targetNine) {
19524
19525
  targetNine.alert = nineUx.alert.bind(nineUx);
19525
19526
  targetNine.confirm = nineUx.confirm.bind(nineUx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nine-lab/nine-ux",
3
- "version": "0.1.94",
3
+ "version": "0.1.95",
4
4
  "type": "module",
5
5
  "main": "./dist/nine-ux.umd.js",
6
6
  "module": "./dist/nine-ux.js",