bkui-vue 0.0.2-beta.144 → 0.0.2-beta.146

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.
@@ -1,4 +1,3 @@
1
- @import 'diff2html/bundles/css/diff2html.min.css';
2
1
  /* stylelint-disable declaration-no-important */
3
2
  .bk-code-diff {
4
3
  position: relative;
@@ -1,5 +1,6 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import { ElementType } from '../shared';
3
+ import 'diff2html/bundles/css/diff2html.min.css';
3
4
  declare const diffFormats: readonly ["side-by-side", "line-by-line"];
4
5
  export type DiffFormatType = ElementType<typeof diffFormats>;
5
6
  export declare const LANGUAGES: readonly ["css", "java", "javascript", "json", "scss", "less", "stylus", "shell", "bash", "cpp", "go", "xml", "python", "typescript", "sql", "ruby", "vim", "php", "perl", "powershell", "makefile"];
@@ -1,5 +1,5 @@
1
1
  @import '../styles/themes/themes.less';
2
- @import 'diff2html/bundles/css/diff2html.min.css';
2
+ // @import 'diff2html/bundles/css/diff2html.min.css';
3
3
 
4
4
  // TODO: theme var
5
5
 
@@ -1,4 +1,3 @@
1
- @import 'diff2html/bundles/css/diff2html.min.css';
2
1
  :root {
3
2
  --bk-prefix: bk;
4
3
  --popover-max-height: 216px;
@@ -5,6 +5,127 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
6
6
  /******/ var __webpack_modules__ = ({
7
7
 
8
+ /***/ 9003:
9
+ /***/ ((module, __unused_webpack___webpack_exports__, __webpack_require__) => {
10
+
11
+ /* harmony import */ var _css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9601);
12
+ /* harmony import */ var _css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
13
+ /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2609);
14
+ /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
15
+ // Imports
16
+
17
+
18
+ var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
19
+ // Module
20
+ ___CSS_LOADER_EXPORT___.push([module.id, `.d2h-wrapper{text-align:left}.d2h-file-header{background-color:#f7f7f7;border-bottom:1px solid #d8d8d8;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;height:35px;padding:5px 10px}.d2h-file-header.d2h-sticky-header{position:sticky;top:0;z-index:1}.d2h-file-stats{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;margin-left:auto}.d2h-lines-added{border:1px solid #b4e2b4;border-radius:5px 0 0 5px;color:#399839;padding:2px;text-align:right;vertical-align:middle}.d2h-lines-deleted{border:1px solid #e9aeae;border-radius:0 5px 5px 0;color:#c33;margin-left:1px;padding:2px;text-align:left;vertical-align:middle}.d2h-file-name-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;width:100%}.d2h-file-name{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.d2h-file-wrapper{border:1px solid #ddd;border-radius:3px;margin-bottom:1em}.d2h-file-collapse{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #ddd;border-radius:3px;cursor:pointer;display:none;font-size:12px;justify-content:flex-end;padding:4px 8px}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff}.d2h-file-collapse-input{margin:0 4px 0 0}.d2h-diff-table{border-collapse:collapse;font-family:Menlo,Consolas,monospace;font-size:13px;width:100%}.d2h-files-diff{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.d2h-file-diff{overflow-y:hidden}.d2h-file-diff.d2h-d-none,.d2h-files-diff.d2h-d-none{display:none}.d2h-file-side-diff{display:inline-block;overflow-x:scroll;overflow-y:hidden;width:50%}.d2h-code-line{padding:0 8em;width:calc(100% - 16em)}.d2h-code-line,.d2h-code-side-line{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.d2h-code-side-line{padding:0 4.5em;width:calc(100% - 9em)}.d2h-code-line-ctn{word-wrap:normal;background:none;display:inline-block;padding:0;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;vertical-align:middle;white-space:pre;width:100%}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba;border-radius:.2em;display:inline-block;margin-top:-1px;text-decoration:none}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;border-radius:.2em;display:inline-block;margin-top:-1px;text-align:left;text-decoration:none}.d2h-code-line-prefix{word-wrap:normal;background:none;display:inline;padding:0;white-space:pre}.line-num1{float:left}.line-num1,.line-num2{-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;padding:0 .5em;text-overflow:ellipsis;width:3.5em}.line-num2{float:right}.d2h-code-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;position:absolute;text-align:right;width:7.5em}.d2h-code-linenumber:after{content:"\\200b"}.d2h-code-side-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;overflow:hidden;padding:0 .5em;position:absolute;text-align:right;text-overflow:ellipsis;width:4em}.d2h-code-side-linenumber:after{content:"\\200b"}.d2h-code-side-emptyplaceholder,.d2h-emptyplaceholder{background-color:#f1f1f1;border-color:#e1e1e1}.d2h-code-line-prefix,.d2h-code-linenumber,.d2h-code-side-linenumber,.d2h-emptyplaceholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.d2h-code-linenumber,.d2h-code-side-linenumber{direction:rtl}.d2h-del{background-color:#fee8e9;border-color:#e9aeae}.d2h-ins{background-color:#dfd;border-color:#b4e2b4}.d2h-info{background-color:#f8fafd;border-color:#d5e4f2;color:rgba(0,0,0,.3)}.d2h-file-diff .d2h-del.d2h-change{background-color:#fdf2d0}.d2h-file-diff .d2h-ins.d2h-change{background-color:#ded}.d2h-file-list-wrapper{margin-bottom:10px}.d2h-file-list-wrapper a{color:#3572b0;text-decoration:none}.d2h-file-list-wrapper a:visited{color:#3572b0}.d2h-file-list-header{text-align:left}.d2h-file-list-title{font-weight:700}.d2h-file-list-line{display:-webkit-box;display:-ms-flexbox;display:flex;text-align:left}.d2h-file-list{display:block;list-style:none;margin:0;padding:0}.d2h-file-list>li{border-bottom:1px solid #ddd;margin:0;padding:5px 10px}.d2h-file-list>li:last-child{border-bottom:none}.d2h-file-switch{cursor:pointer;display:none;font-size:10px}.d2h-icon{fill:currentColor;margin-right:10px;vertical-align:middle}.d2h-deleted{color:#c33}.d2h-added{color:#399839}.d2h-changed{color:#d0b44c}.d2h-moved{color:#3572b0}.d2h-tag{background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:10px;margin-left:5px;padding:0 2px}.d2h-deleted-tag{border:1px solid #c33}.d2h-added-tag{border:1px solid #399839}.d2h-changed-tag{border:1px solid #d0b44c}.d2h-moved-tag{border:1px solid #3572b0}`, ""]);
21
+ // Exports
22
+ /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (___CSS_LOADER_EXPORT___)));
23
+
24
+
25
+ /***/ }),
26
+
27
+ /***/ 2609:
28
+ /***/ ((module) => {
29
+
30
+
31
+
32
+ /*
33
+ MIT License http://www.opensource.org/licenses/mit-license.php
34
+ Author Tobias Koppers @sokra
35
+ */
36
+ module.exports = function (cssWithMappingToString) {
37
+ var list = [];
38
+
39
+ // return the list of modules as css string
40
+ list.toString = function toString() {
41
+ return this.map(function (item) {
42
+ var content = "";
43
+ var needLayer = typeof item[5] !== "undefined";
44
+ if (item[4]) {
45
+ content += "@supports (".concat(item[4], ") {");
46
+ }
47
+ if (item[2]) {
48
+ content += "@media ".concat(item[2], " {");
49
+ }
50
+ if (needLayer) {
51
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
52
+ }
53
+ content += cssWithMappingToString(item);
54
+ if (needLayer) {
55
+ content += "}";
56
+ }
57
+ if (item[2]) {
58
+ content += "}";
59
+ }
60
+ if (item[4]) {
61
+ content += "}";
62
+ }
63
+ return content;
64
+ }).join("");
65
+ };
66
+
67
+ // import a list of modules into the list
68
+ list.i = function i(modules, media, dedupe, supports, layer) {
69
+ if (typeof modules === "string") {
70
+ modules = [[null, modules, undefined]];
71
+ }
72
+ var alreadyImportedModules = {};
73
+ if (dedupe) {
74
+ for (var k = 0; k < this.length; k++) {
75
+ var id = this[k][0];
76
+ if (id != null) {
77
+ alreadyImportedModules[id] = true;
78
+ }
79
+ }
80
+ }
81
+ for (var _k = 0; _k < modules.length; _k++) {
82
+ var item = [].concat(modules[_k]);
83
+ if (dedupe && alreadyImportedModules[item[0]]) {
84
+ continue;
85
+ }
86
+ if (typeof layer !== "undefined") {
87
+ if (typeof item[5] === "undefined") {
88
+ item[5] = layer;
89
+ } else {
90
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
91
+ item[5] = layer;
92
+ }
93
+ }
94
+ if (media) {
95
+ if (!item[2]) {
96
+ item[2] = media;
97
+ } else {
98
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
99
+ item[2] = media;
100
+ }
101
+ }
102
+ if (supports) {
103
+ if (!item[4]) {
104
+ item[4] = "".concat(supports);
105
+ } else {
106
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
107
+ item[4] = supports;
108
+ }
109
+ }
110
+ list.push(item);
111
+ }
112
+ };
113
+ return list;
114
+ };
115
+
116
+ /***/ }),
117
+
118
+ /***/ 9601:
119
+ /***/ ((module) => {
120
+
121
+
122
+
123
+ module.exports = function (i) {
124
+ return i[1];
125
+ };
126
+
127
+ /***/ }),
128
+
8
129
  /***/ 2148:
9
130
  /***/ ((__unused_webpack_module, exports) => {
10
131
 
@@ -825,7 +946,7 @@ var Hogan = {};
825
946
  /******/ }
826
947
  /******/ // Create a new module (and put it into the cache)
827
948
  /******/ var module = __webpack_module_cache__[moduleId] = {
828
- /******/ // no module.id needed
949
+ /******/ id: moduleId,
829
950
  /******/ // no module.loaded needed
830
951
  /******/ exports: {}
831
952
  /******/ };
@@ -838,6 +959,18 @@ var Hogan = {};
838
959
  /******/ }
839
960
  /******/
840
961
  /************************************************************************/
962
+ /******/ /* webpack/runtime/compat get default export */
963
+ /******/ (() => {
964
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
965
+ /******/ __webpack_require__.n = (module) => {
966
+ /******/ var getter = module && module.__esModule ?
967
+ /******/ () => (module['default']) :
968
+ /******/ () => (module);
969
+ /******/ __webpack_require__.d(getter, { a: getter });
970
+ /******/ return getter;
971
+ /******/ };
972
+ /******/ })();
973
+ /******/
841
974
  /******/ /* webpack/runtime/define property getters */
842
975
  /******/ (() => {
843
976
  /******/ // define getter functions for harmony exports
@@ -5349,6 +5482,8 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["number"]: ()
5349
5482
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
5350
5483
  var config_provider_y = x => () => x
5351
5484
  const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
5485
+ // EXTERNAL MODULE: ../../node_modules/diff2html/bundles/css/diff2html.min.css
5486
+ var diff2html_min = __webpack_require__(9003);
5352
5487
  ;// CONCATENATED MODULE: ../../packages/code-diff/src/code-diff.tsx
5353
5488
 
5354
5489
 
@@ -5383,6 +5518,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
5383
5518
 
5384
5519
 
5385
5520
 
5521
+
5386
5522
  var diffFormats = ['side-by-side', 'line-by-line'];
5387
5523
  var CodeDiffFormat = (0,shared_namespaceObject.stringEnum)([].concat(diffFormats));
5388
5524
  var LANGUAGES = (/* unused pure expression or super */ null && (['css', 'java', 'javascript', 'json', 'scss', 'less', 'stylus', 'shell', 'bash', 'cpp', 'go', 'xml', 'python', 'typescript', 'sql', 'ruby', 'vim', 'php', 'perl', 'powershell', 'makefile']));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.2-beta.144",
3
+ "version": "0.0.2-beta.146",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",
@@ -12,6 +12,7 @@
12
12
  "dist"
13
13
  ],
14
14
  "packageManager": "yarn@1.22.10",
15
+ "sideEffects": false,
15
16
  "engines": {
16
17
  "node": ">=14.0.0"
17
18
  },
@@ -126,7 +127,6 @@
126
127
  "highlight.js": "~11.5.0",
127
128
  "vue": "^3.2.0"
128
129
  },
129
- "main": "dist/index.esm.js",
130
130
  "module": "lib/index.js",
131
131
  "typings": "lib/index.d.ts",
132
132
  "lint-staged": {