uiik 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -1,12 +1,12 @@
1
- ![npm](https://img.shields.io/npm/v/uii?style=plastic)
2
- ![NPM](https://img.shields.io/npm/l/uii)
1
+ ![npm](https://img.shields.io/npm/v/uiik?style=plastic)
2
+ ![NPM](https://img.shields.io/npm/l/uiik)
3
3
 
4
- # Uii
4
+ # Uiik
5
5
  A UI interaction kit includes draggable, splittable, rotatable, selectable, etc.
6
6
  > English | [中文](./README_ZH.md)
7
7
 
8
- - [📑 Documentation](https://holyhigh2.github.io/uii/)
9
- - [⚡ Play on StackBlitz](https://stackblitz.com/edit/func-js?file=index.ts)
8
+ - [📑 Documentation](https://holyhigh2.github.io/uiik/)
9
+ - [⚡ Play on StackBlitz](https://stackblitz.com/edit/uiik)
10
10
 
11
11
  ## Features
12
12
  - Draggable/Droppable/Splittable/rotatable/selectable/Resizable
@@ -16,20 +16,20 @@ A UI interaction kit includes draggable, splittable, rotatable, selectable, etc.
16
16
  ## Quick start
17
17
  1. install
18
18
  ```sh
19
- npm i uii
19
+ npm i uiik
20
20
  ```
21
21
  2. import
22
22
  ```ts
23
- import uii from 'uii'
23
+ import uiik from 'uiik'
24
24
  //or
25
- import {newSplittable} from 'uii'
25
+ import {newSplittable} from 'uiik'
26
26
  //or
27
- import {Splittable} from 'uii'
27
+ import {Splittable} from 'uiik'
28
28
  //or
29
- import uii from 'https://cdn.skypack.dev/uii'
29
+ import uiik from 'https://cdn.skypack.dev/uiik'
30
30
  ```
31
31
 
32
32
  ## Development
33
33
  1. use `test` to do jest
34
- 2. use `build` to rollup uii
34
+ 2. use `build` to rollup uiik
35
35
  3. use `doc` to gen tsdoc
package/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * uiik v1.0.0
3
- * A UI interaction kit includes draggable, splittable, rotatable, selectable, etc.
4
- * https://github.com/holyhigh2/uii
2
+ * uiik v1.0.2
3
+ * A UI interactions kit includes draggable, splittable, rotatable, selectable, etc.
4
+ * https://github.com/holyhigh2/uiik
5
5
  * c) 2021-2023 @holyhigh2 may be freely distributed under the MIT license
6
6
  */
7
7
  import { isArrayLike, isString, map, isElement, toArray, each, assign, reject, includes, isArray, isEmpty, call, isNumber, isFunction, isDefined, isUndefined, closest, some, compact, split, test, flatMap } from '@holyhigh/func.js';
@@ -1928,16 +1928,14 @@ function newSelectable(container, opts) {
1928
1928
  return new Selectable(container, opts);
1929
1929
  }
1930
1930
 
1931
- var version = "1.0.0";
1931
+ var version = "1.0.2";
1932
1932
  var repository = {
1933
1933
  type: "git",
1934
- url: "https://github.com/holyhigh2/uii"
1934
+ url: "https://github.com/holyhigh2/uiik"
1935
1935
  };
1936
1936
 
1937
1937
  // welcome info
1938
- const welcome = globalThis.top
1939
- ? globalThis.top.welcome
1940
- : globalThis.welcome;
1938
+ const welcome = globalThis.welcome;
1941
1939
  if (!welcome) {
1942
1940
  const ssAry = [];
1943
1941
  ['102,227,255', '59,208,251', '67,180,255'].forEach((v, i) => {
@@ -1949,13 +1947,8 @@ if (!welcome) {
1949
1947
  ssAry[i] = 'color:#fff;' + cu;
1950
1948
  }
1951
1949
  });
1952
- console.info(`%c %c %c Uii - UI Interactions | v${version} %c %c `, ...ssAry, `💎 ${repository.url}`);
1953
- if (globalThis.top) {
1954
- globalThis.top.welcome = true;
1955
- }
1956
- else {
1957
- globalThis.welcome = true;
1958
- }
1950
+ console.info(`%c %c %c Uiik - UI interactions kit | v${version} %c %c `, ...ssAry, `💎 ${repository.url}`);
1951
+ globalThis.welcome = true;
1959
1952
  }
1960
1953
  const VERSION = version;
1961
1954
  var index = {
package/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * uiik v1.0.0
3
- * A UI interaction kit includes draggable, splittable, rotatable, selectable, etc.
4
- * https://github.com/holyhigh2/uii
2
+ * uiik v1.0.2
3
+ * A UI interactions kit includes draggable, splittable, rotatable, selectable, etc.
4
+ * https://github.com/holyhigh2/uiik
5
5
  * c) 2021-2023 @holyhigh2 may be freely distributed under the MIT license
6
6
  */
7
7
  (function (global, factory) {
8
8
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@holyhigh/func.js')) :
9
9
  typeof define === 'function' && define.amd ? define(['exports', '@holyhigh/func.js'], factory) :
10
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.uii = {}, global.func_js));
10
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.uiik = {}, global.func_js));
11
11
  })(this, (function (exports, func_js) { 'use strict';
12
12
 
13
13
  /******************************************************************************
@@ -1932,16 +1932,14 @@
1932
1932
  return new Selectable(container, opts);
1933
1933
  }
1934
1934
 
1935
- var version = "1.0.0";
1935
+ var version = "1.0.2";
1936
1936
  var repository = {
1937
1937
  type: "git",
1938
- url: "https://github.com/holyhigh2/uii"
1938
+ url: "https://github.com/holyhigh2/uiik"
1939
1939
  };
1940
1940
 
1941
1941
  // welcome info
1942
- const welcome = globalThis.top
1943
- ? globalThis.top.welcome
1944
- : globalThis.welcome;
1942
+ const welcome = globalThis.welcome;
1945
1943
  if (!welcome) {
1946
1944
  const ssAry = [];
1947
1945
  ['102,227,255', '59,208,251', '67,180,255'].forEach((v, i) => {
@@ -1953,13 +1951,8 @@
1953
1951
  ssAry[i] = 'color:#fff;' + cu;
1954
1952
  }
1955
1953
  });
1956
- console.info(`%c %c %c Uii - UI Interactions | v${version} %c %c `, ...ssAry, `💎 ${repository.url}`);
1957
- if (globalThis.top) {
1958
- globalThis.top.welcome = true;
1959
- }
1960
- else {
1961
- globalThis.welcome = true;
1962
- }
1954
+ console.info(`%c %c %c Uiik - UI interactions kit | v${version} %c %c `, ...ssAry, `💎 ${repository.url}`);
1955
+ globalThis.welcome = true;
1963
1956
  }
1964
1957
  const VERSION = version;
1965
1958
  var index = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "uiik",
3
- "version": "1.0.0",
4
- "description": "A UI interaction kit includes draggable, splittable, rotatable, selectable, etc.",
3
+ "version": "1.0.2",
4
+ "description": "A UI interactions kit includes draggable, splittable, rotatable, selectable, etc.",
5
5
  "main": "index.js",
6
6
  "module": "index.esm.js",
7
7
  "types": "types/index.d.ts",
@@ -9,9 +9,9 @@
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "https://github.com/holyhigh2/uii"
12
+ "url": "https://github.com/holyhigh2/uiik"
13
13
  },
14
- "bugs": "https://github.com/holyhigh2/uii/issues/new",
14
+ "bugs": "https://github.com/holyhigh2/uiik/issues/new",
15
15
  "keywords": [
16
16
  "js",
17
17
  "dom",