@ktjs/shared 0.22.7 → 0.23.0
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/index.d.ts +1 -10
- package/dist/index.iife.js +1 -23
- package/dist/index.legacy.js +1 -23
- package/dist/index.mjs +2 -20
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -34,15 +34,6 @@ declare const $entries: <T>(o: T) => Array<[keyof T, T[keyof T]]>;
|
|
|
34
34
|
declare const $random: () => number;
|
|
35
35
|
declare const $isThenable: (o: any) => o is Promise<any>;
|
|
36
36
|
|
|
37
|
-
/**
|
|
38
|
-
* * Actually, these functions will be replaced as they are by @rollup/plugin-replace
|
|
39
|
-
* @see ./.scripts/replace.mjs
|
|
40
|
-
*/
|
|
41
|
-
declare const $throw: (message: string) => never;
|
|
42
|
-
declare const $warn: (message: string) => void;
|
|
43
|
-
declare const $error: (message: string) => void;
|
|
44
|
-
declare const $debug: (message: string) => void;
|
|
45
|
-
|
|
46
37
|
type otherstring = string & {};
|
|
47
38
|
|
|
48
39
|
/**
|
|
@@ -162,5 +153,5 @@ declare const emplaceParams: (path: string, params: Record<string, string>) => s
|
|
|
162
153
|
*/
|
|
163
154
|
declare const extractParams: (pattern: string, path: string) => Record<string, string> | null;
|
|
164
155
|
|
|
165
|
-
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $
|
|
156
|
+
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isNode, $isSame, $isThenable, $keys, $random, $replaceNode, $toString, DIRV_TYPE, MATHML_ATTR_FLAG, SVG_ATTR_FLAG, applyModel, buildQuery, emplaceParams, extractParams, normalizePath, parseQuery, parseStyle };
|
|
166
157
|
export type { ChangeHandler, ChangeTriggerField, HTMLTag, InputElementTag, MathMLTag, NoTextNodeTag, NonSpecialTags, SVGTag, otherstring };
|
package/dist/index.iife.js
CHANGED
|
@@ -30,24 +30,6 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
30
30
|
const $random = Math.random;
|
|
31
31
|
const $isThenable = (o) => typeof o?.then === 'function';
|
|
32
32
|
|
|
33
|
-
// Error handling utilities
|
|
34
|
-
/**
|
|
35
|
-
* * Actually, these functions will be replaced as they are by @rollup/plugin-replace
|
|
36
|
-
* @see ./.scripts/replace.mjs
|
|
37
|
-
*/
|
|
38
|
-
const $throw = (message) => {
|
|
39
|
-
throw new Error('[kt.js error]' + message);
|
|
40
|
-
};
|
|
41
|
-
const $warn = (message) => {
|
|
42
|
-
console.warn('[kt.js warn] ' + message);
|
|
43
|
-
};
|
|
44
|
-
const $error = (message) => {
|
|
45
|
-
console.error('[kt.js error] ' + message);
|
|
46
|
-
};
|
|
47
|
-
const $debug = (message) => {
|
|
48
|
-
console.debug('[kt.js debug] ' + message);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
33
|
// DOM manipulation utilities
|
|
52
34
|
// # dom natives
|
|
53
35
|
const $isNode = (x) => x?.nodeType > 0;
|
|
@@ -215,7 +197,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
215
197
|
}
|
|
216
198
|
|
|
217
199
|
// Shared utilities and cached native methods for kt.js framework
|
|
218
|
-
Object.defineProperty(window, '__ktjs__', { value: '0.
|
|
200
|
+
Object.defineProperty(window, '__ktjs__', { value: '0.23.0' });
|
|
219
201
|
|
|
220
202
|
exports.$ArrayFrom = $ArrayFrom;
|
|
221
203
|
exports.$append = $append;
|
|
@@ -223,12 +205,10 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
223
205
|
exports.$assign = $assign;
|
|
224
206
|
exports.$buttonDisabledGetter = $buttonDisabledGetter;
|
|
225
207
|
exports.$buttonDisabledSetter = $buttonDisabledSetter;
|
|
226
|
-
exports.$debug = $debug;
|
|
227
208
|
exports.$define = $define;
|
|
228
209
|
exports.$defines = $defines;
|
|
229
210
|
exports.$emptyFn = $emptyFn;
|
|
230
211
|
exports.$entries = $entries;
|
|
231
|
-
exports.$error = $error;
|
|
232
212
|
exports.$hasOwn = $hasOwn;
|
|
233
213
|
exports.$is = $is;
|
|
234
214
|
exports.$isArray = $isArray;
|
|
@@ -238,9 +218,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
238
218
|
exports.$keys = $keys;
|
|
239
219
|
exports.$random = $random;
|
|
240
220
|
exports.$replaceNode = $replaceNode;
|
|
241
|
-
exports.$throw = $throw;
|
|
242
221
|
exports.$toString = $toString;
|
|
243
|
-
exports.$warn = $warn;
|
|
244
222
|
exports.DIRV_TYPE = DIRV_TYPE;
|
|
245
223
|
exports.MATHML_ATTR_FLAG = MATHML_ATTR_FLAG;
|
|
246
224
|
exports.SVG_ATTR_FLAG = SVG_ATTR_FLAG;
|
package/dist/index.legacy.js
CHANGED
|
@@ -30,24 +30,6 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
30
30
|
var $random = Math.random;
|
|
31
31
|
var $isThenable = function (o) { return typeof (o === null || o === void 0 ? void 0 : o.then) === 'function'; };
|
|
32
32
|
|
|
33
|
-
// Error handling utilities
|
|
34
|
-
/**
|
|
35
|
-
* * Actually, these functions will be replaced as they are by @rollup/plugin-replace
|
|
36
|
-
* @see ./.scripts/replace.mjs
|
|
37
|
-
*/
|
|
38
|
-
var $throw = function (message) {
|
|
39
|
-
throw new Error('[kt.js error]' + message);
|
|
40
|
-
};
|
|
41
|
-
var $warn = function (message) {
|
|
42
|
-
console.warn('[kt.js warn] ' + message);
|
|
43
|
-
};
|
|
44
|
-
var $error = function (message) {
|
|
45
|
-
console.error('[kt.js error] ' + message);
|
|
46
|
-
};
|
|
47
|
-
var $debug = function (message) {
|
|
48
|
-
console.debug('[kt.js debug] ' + message);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
33
|
// DOM manipulation utilities
|
|
52
34
|
var _a;
|
|
53
35
|
// # dom natives
|
|
@@ -226,7 +208,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
226
208
|
}
|
|
227
209
|
|
|
228
210
|
// Shared utilities and cached native methods for kt.js framework
|
|
229
|
-
Object.defineProperty(window, '__ktjs__', { value: '0.
|
|
211
|
+
Object.defineProperty(window, '__ktjs__', { value: '0.23.0' });
|
|
230
212
|
|
|
231
213
|
exports.$ArrayFrom = $ArrayFrom;
|
|
232
214
|
exports.$append = $append;
|
|
@@ -234,12 +216,10 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
234
216
|
exports.$assign = $assign;
|
|
235
217
|
exports.$buttonDisabledGetter = $buttonDisabledGetter;
|
|
236
218
|
exports.$buttonDisabledSetter = $buttonDisabledSetter;
|
|
237
|
-
exports.$debug = $debug;
|
|
238
219
|
exports.$define = $define;
|
|
239
220
|
exports.$defines = $defines;
|
|
240
221
|
exports.$emptyFn = $emptyFn;
|
|
241
222
|
exports.$entries = $entries;
|
|
242
|
-
exports.$error = $error;
|
|
243
223
|
exports.$hasOwn = $hasOwn;
|
|
244
224
|
exports.$is = $is;
|
|
245
225
|
exports.$isArray = $isArray;
|
|
@@ -249,9 +229,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
249
229
|
exports.$keys = $keys;
|
|
250
230
|
exports.$random = $random;
|
|
251
231
|
exports.$replaceNode = $replaceNode;
|
|
252
|
-
exports.$throw = $throw;
|
|
253
232
|
exports.$toString = $toString;
|
|
254
|
-
exports.$warn = $warn;
|
|
255
233
|
exports.DIRV_TYPE = DIRV_TYPE;
|
|
256
234
|
exports.MATHML_ATTR_FLAG = MATHML_ATTR_FLAG;
|
|
257
235
|
exports.SVG_ATTR_FLAG = SVG_ATTR_FLAG;
|
package/dist/index.mjs
CHANGED
|
@@ -27,24 +27,6 @@ const $entries = Object.entries;
|
|
|
27
27
|
const $random = Math.random;
|
|
28
28
|
const $isThenable = (o) => typeof o?.then === 'function';
|
|
29
29
|
|
|
30
|
-
// Error handling utilities
|
|
31
|
-
/**
|
|
32
|
-
* * Actually, these functions will be replaced as they are by @rollup/plugin-replace
|
|
33
|
-
* @see ./.scripts/replace.mjs
|
|
34
|
-
*/
|
|
35
|
-
const $throw = (message) => {
|
|
36
|
-
throw new Error('[kt.js error]' + message);
|
|
37
|
-
};
|
|
38
|
-
const $warn = (message) => {
|
|
39
|
-
console.warn('[kt.js warn] ' + message);
|
|
40
|
-
};
|
|
41
|
-
const $error = (message) => {
|
|
42
|
-
console.error('[kt.js error] ' + message);
|
|
43
|
-
};
|
|
44
|
-
const $debug = (message) => {
|
|
45
|
-
console.debug('[kt.js debug] ' + message);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
30
|
// DOM manipulation utilities
|
|
49
31
|
// # dom natives
|
|
50
32
|
const $isNode = (x) => x?.nodeType > 0;
|
|
@@ -212,6 +194,6 @@ if (typeof Symbol === 'undefined') {
|
|
|
212
194
|
}
|
|
213
195
|
|
|
214
196
|
// Shared utilities and cached native methods for kt.js framework
|
|
215
|
-
Object.defineProperty(window, '__ktjs__', { value: '0.
|
|
197
|
+
Object.defineProperty(window, '__ktjs__', { value: '0.23.0' });
|
|
216
198
|
|
|
217
|
-
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $
|
|
199
|
+
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isNode, $isSame, $isThenable, $keys, $random, $replaceNode, $toString, DIRV_TYPE, MATHML_ATTR_FLAG, SVG_ATTR_FLAG, applyModel, buildQuery, emplaceParams, extractParams, normalizePath, parseQuery, parseStyle };
|