@tamagui/code-to-html 1.110.2 → 1.110.4

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/esm/index.js CHANGED
@@ -3968,7 +3968,8 @@ var html = create({
3968
3968
  autoComplete: spaceSeparated,
3969
3969
  autoFocus: boolean,
3970
3970
  autoPlay: boolean,
3971
- capture: boolean,
3971
+ blocking: spaceSeparated,
3972
+ capture: null,
3972
3973
  charSet: null,
3973
3974
  checked: boolean,
3974
3975
  cite: null,
@@ -3993,6 +3994,7 @@ var html = create({
3993
3994
  draggable: booleanish,
3994
3995
  encType: null,
3995
3996
  enterKeyHint: null,
3997
+ fetchPriority: null,
3996
3998
  form: null,
3997
3999
  formAction: null,
3998
4000
  formEncType: null,
@@ -4010,6 +4012,7 @@ var html = create({
4010
4012
  id: null,
4011
4013
  imageSizes: null,
4012
4014
  imageSrcSet: null,
4015
+ inert: boolean,
4013
4016
  inputMode: null,
4014
4017
  integrity: null,
4015
4018
  is: null,
@@ -4045,6 +4048,7 @@ var html = create({
4045
4048
  onAuxClick: null,
4046
4049
  onBeforeMatch: null,
4047
4050
  onBeforePrint: null,
4051
+ onBeforeToggle: null,
4048
4052
  onBeforeUnload: null,
4049
4053
  onBlur: null,
4050
4054
  onCancel: null,
@@ -4133,6 +4137,9 @@ var html = create({
4133
4137
  ping: spaceSeparated,
4134
4138
  placeholder: null,
4135
4139
  playsInline: boolean,
4140
+ popover: null,
4141
+ popoverTarget: null,
4142
+ popoverTargetAction: null,
4136
4143
  poster: null,
4137
4144
  preload: null,
4138
4145
  readOnly: boolean,
@@ -4147,6 +4154,9 @@ var html = create({
4147
4154
  scoped: boolean,
4148
4155
  seamless: boolean,
4149
4156
  selected: boolean,
4157
+ shadowRootClonable: boolean,
4158
+ shadowRootDelegatesFocus: boolean,
4159
+ shadowRootMode: null,
4150
4160
  shape: null,
4151
4161
  size: number,
4152
4162
  sizes: null,
@@ -4170,6 +4180,7 @@ var html = create({
4170
4180
  value: booleanish,
4171
4181
  width: number,
4172
4182
  wrap: null,
4183
+ writingSuggestions: null,
4173
4184
  // Legacy.
4174
4185
  // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
4175
4186
  align: null,
@@ -4448,6 +4459,7 @@ var svg = create({
4448
4459
  textAnchor: "text-anchor",
4449
4460
  textDecoration: "text-decoration",
4450
4461
  textRendering: "text-rendering",
4462
+ transformOrigin: "transform-origin",
4451
4463
  typeOf: "typeof",
4452
4464
  underlinePosition: "underline-position",
4453
4465
  underlineThickness: "underline-thickness",
@@ -4813,6 +4825,7 @@ var svg = create({
4813
4825
  typeOf: commaOrSpaceSeparated,
4814
4826
  to: null,
4815
4827
  transform: null,
4828
+ transformOrigin: null,
4816
4829
  u1: null,
4817
4830
  u2: null,
4818
4831
  underlinePosition: number,
@@ -4927,17 +4940,17 @@ function zwitch(key2, options) {
4927
4940
  }
4928
4941
 
4929
4942
  // ../../../node_modules/stringify-entities/lib/core.js
4943
+ var defaultSubsetRegex = /["&'<>`]/g, surrogatePairsRegex = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, controlCharactersRegex = (
4944
+ // eslint-disable-next-line no-control-regex, unicorn/no-hex-escape
4945
+ /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g
4946
+ ), regexEscapeRegex = /[|\\{}()[\]^$+*?.]/g, subsetToRegexCache = /* @__PURE__ */ new WeakMap();
4930
4947
  function core(value, options) {
4931
4948
  if (value = value.replace(
4932
- options.subset ? charactersToExpression(options.subset) : /["&'<>`]/g,
4949
+ options.subset ? charactersToExpressionCached(options.subset) : defaultSubsetRegex,
4933
4950
  basic2
4934
4951
  ), options.subset || options.escapeOnly)
4935
4952
  return value;
4936
- return value.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, surrogate).replace(
4937
- // eslint-disable-next-line no-control-regex, unicorn/no-hex-escape
4938
- /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,
4939
- basic2
4940
- );
4953
+ return value.replace(surrogatePairsRegex, surrogate).replace(controlCharactersRegex, basic2);
4941
4954
  function surrogate(pair, index2, all3) {
4942
4955
  return options.format(
4943
4956
  (pair.charCodeAt(0) - 55296) * 1024 + pair.charCodeAt(1) - 56320 + 65536,
@@ -4953,23 +4966,29 @@ function core(value, options) {
4953
4966
  );
4954
4967
  }
4955
4968
  }
4969
+ function charactersToExpressionCached(subset) {
4970
+ let cached = subsetToRegexCache.get(subset);
4971
+ return cached || (cached = charactersToExpression(subset), subsetToRegexCache.set(subset, cached)), cached;
4972
+ }
4956
4973
  function charactersToExpression(subset) {
4957
4974
  let groups = [], index2 = -1;
4958
4975
  for (; ++index2 < subset.length; )
4959
- groups.push(subset[index2].replace(/[|\\{}()[\]^$+*?.]/g, "\\$&"));
4976
+ groups.push(subset[index2].replace(regexEscapeRegex, "\\$&"));
4960
4977
  return new RegExp("(?:" + groups.join("|") + ")", "g");
4961
4978
  }
4962
4979
 
4963
4980
  // ../../../node_modules/stringify-entities/lib/util/to-hexadecimal.js
4981
+ var hexadecimalRegex = /[\dA-Fa-f]/;
4964
4982
  function toHexadecimal(code, next, omit) {
4965
4983
  let value = "&#x" + code.toString(16).toUpperCase();
4966
- return omit && next && !/[\dA-Fa-f]/.test(String.fromCharCode(next)) ? value : value + ";";
4984
+ return omit && next && !hexadecimalRegex.test(String.fromCharCode(next)) ? value : value + ";";
4967
4985
  }
4968
4986
 
4969
4987
  // ../../../node_modules/stringify-entities/lib/util/to-decimal.js
4988
+ var decimalRegex = /\d/;
4970
4989
  function toDecimal(code, next, omit) {
4971
4990
  let value = "&#" + String(code);
4972
- return omit && next && !/\d/.test(String.fromCharCode(next)) ? value : value + ";";
4991
+ return omit && next && !decimalRegex.test(String.fromCharCode(next)) ? value : value + ";";
4973
4992
  }
4974
4993
 
4975
4994
  // ../../../node_modules/character-entities-legacy/index.js
@@ -5354,11 +5373,12 @@ var dangerous = [
5354
5373
  var own3 = {}.hasOwnProperty, characters = {}, key;
5355
5374
  for (key in characterEntitiesHtml4)
5356
5375
  own3.call(characterEntitiesHtml4, key) && (characters[characterEntitiesHtml4[key]] = key);
5376
+ var notAlphanumericRegex = /[^\dA-Za-z]/;
5357
5377
  function toNamed(code, next, omit, attribute) {
5358
5378
  let character = String.fromCharCode(code);
5359
5379
  if (own3.call(characters, character)) {
5360
5380
  let name = characters[character], value = "&" + name;
5361
- return omit && characterEntitiesLegacy.includes(name) && !dangerous.includes(name) && (!attribute || next && next !== 61 && /[^\da-z]/i.test(String.fromCharCode(next))) ? value : value + ";";
5381
+ return omit && characterEntitiesLegacy.includes(name) && !dangerous.includes(name) && (!attribute || next && next !== 61 && notAlphanumericRegex.test(String.fromCharCode(next))) ? value : value + ";";
5362
5382
  }
5363
5383
  return "";
5364
5384
  }
@@ -12952,7 +12972,7 @@ function isPlainObject(value) {
12952
12972
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
12953
12973
  }
12954
12974
 
12955
- // ../../../node_modules/trough/index.js
12975
+ // ../../../node_modules/trough/lib/index.js
12956
12976
  function trough() {
12957
12977
  let fns = [], pipeline = { run, use };
12958
12978
  return pipeline;
@@ -12997,7 +13017,7 @@ function wrap(middleware, callback) {
12997
13017
  throw exception;
12998
13018
  return done(exception);
12999
13019
  }
13000
- fnExpectsCallback || (result instanceof Promise ? result.then(then, done) : result instanceof Error ? done(result) : then(result));
13020
+ fnExpectsCallback || (result && result.then && typeof result.then == "function" ? result.then(then, done) : result instanceof Error ? done(result) : then(result));
13001
13021
  }
13002
13022
  function done(error, ...output) {
13003
13023
  called || (called = !0, callback(error, ...output));