xmlui 0.9.2 → 0.9.3

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.
@@ -12,7 +12,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _executor, _DeferredPromise_instances, decorate_fn, _a2;
13
13
  import { delay as delay$1, HttpResponse, http } from "msw";
14
14
  import { isArray, isObject as isObject$1, mapValues } from "lodash-es";
15
- import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-2qtmUAFJ.mjs";
15
+ import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-DHAz4bv_.mjs";
16
16
  import Dexie from "dexie";
17
17
  var POSITIONALS_EXP = /(%?)(%([sdijo]))/g;
18
18
  function serializePositional(positional, flag) {
@@ -2,6 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
3
3
  var __publicField = (obj, key2, value) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
4
4
  var _a, _b;
5
+ import { s as stringify$1, b as stringify$2, z as zwitch, h as htmlVoidElements } from "./index-DHAz4bv_.mjs";
5
6
  let ShikiError$2 = class ShikiError extends Error {
6
7
  constructor(message) {
7
8
  super(message);
@@ -3563,28 +3564,6 @@ var Registry$1 = class Registry {
3563
3564
  }
3564
3565
  };
3565
3566
  var INITIAL = StateStackImpl.NULL;
3566
- const htmlVoidElements = [
3567
- "area",
3568
- "base",
3569
- "basefont",
3570
- "bgsound",
3571
- "br",
3572
- "col",
3573
- "command",
3574
- "embed",
3575
- "frame",
3576
- "hr",
3577
- "image",
3578
- "img",
3579
- "input",
3580
- "keygen",
3581
- "link",
3582
- "meta",
3583
- "param",
3584
- "source",
3585
- "track",
3586
- "wbr"
3587
- ];
3588
3567
  class Schema {
3589
3568
  /**
3590
3569
  * @param {SchemaType['property']} property
@@ -4769,25 +4748,6 @@ function camelcase($0) {
4769
4748
  }
4770
4749
  const html$2 = merge([aria, html$3, xlink, xmlns, xml], "html");
4771
4750
  const svg = merge([aria, svg$1, xlink, xmlns, xml], "svg");
4772
- const own$2 = {}.hasOwnProperty;
4773
- function zwitch(key2, options) {
4774
- const settings = options || {};
4775
- function one2(value, ...parameters) {
4776
- let fn = one2.invalid;
4777
- const handlers = one2.handlers;
4778
- if (value && own$2.call(value, key2)) {
4779
- const id = String(value[key2]);
4780
- fn = own$2.call(handlers, id) ? handlers[id] : one2.unknown;
4781
- }
4782
- if (fn) {
4783
- return fn.call(this, value, ...parameters);
4784
- }
4785
- }
4786
- one2.handlers = settings.handlers || {};
4787
- one2.invalid = settings.invalid;
4788
- one2.unknown = settings.unknown;
4789
- return one2;
4790
- }
4791
4751
  const defaultSubsetRegex = /["&'<>`]/g;
4792
4752
  const surrogatePairsRegex = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
4793
4753
  const controlCharactersRegex = (
@@ -5296,16 +5256,6 @@ function ccount(value, character) {
5296
5256
  }
5297
5257
  return count;
5298
5258
  }
5299
- function stringify$2(values, options) {
5300
- const settings = options || {};
5301
- const input = values[values.length - 1] === "" ? [...values, ""] : values;
5302
- return input.join(
5303
- (settings.padRight ? " " : "") + "," + (settings.padLeft === false ? "" : " ")
5304
- ).trim();
5305
- }
5306
- function stringify$1(values) {
5307
- return values.join(" ").trim();
5308
- }
5309
5259
  const re = /[ \t\n\f\r]/g;
5310
5260
  function whitespace(thing) {
5311
5261
  return typeof thing === "object" ? thing.type === "text" ? empty(thing.value) : false : empty(thing);
@@ -5562,7 +5512,7 @@ function serializeAttribute(state, key2, value) {
5562
5512
  })
5563
5513
  );
5564
5514
  if (value === true) return name;
5565
- value = Array.isArray(value) ? (info.commaSeparated ? stringify$2 : stringify$1)(value, {
5515
+ value = Array.isArray(value) ? (info.commaSeparated ? stringify$1 : stringify$2)(value, {
5566
5516
  padLeft: !state.settings.tightCommaSeparatedLists
5567
5517
  }) : String(value);
5568
5518
  if (state.settings.collapseEmptyAttributes && !value) return name;