formeo 4.1.0 → 4.1.1

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/formeo.es.js CHANGED
@@ -1,14 +1,14 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 4.0.0
4
+ Version: 4.1.0
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
8
8
  var __defProp = Object.defineProperty;
9
9
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
10
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
11
- var _a, _b;
11
+ var _a, _b, _c;
12
12
  async function fetchData(url) {
13
13
  try {
14
14
  const response = await fetch(url);
@@ -435,7 +435,7 @@ if (window !== void 0) {
435
435
  window.SmartTooltip = SmartTooltip;
436
436
  }
437
437
  const name$1 = "formeo";
438
- const version$2 = "4.0.0";
438
+ const version$2 = "4.1.0";
439
439
  const type = "module";
440
440
  const main = "dist/formeo.cjs.js";
441
441
  const module = "dist/formeo.es.js";
@@ -1706,7 +1706,7 @@ const POLYFILLS = [
1706
1706
  ];
1707
1707
  const relativeSpritePath = `../../lib/icons/${formeoSpriteId}.svg`;
1708
1708
  const localSpriteUrl = typeof import.meta.resolve === "function" ? import.meta.resolve(relativeSpritePath) : relativeSpritePath;
1709
- const isDev = ((_b = (_a = import.meta) == null ? void 0 : _a.env) == null ? void 0 : _b.DEV) || process.env.NODE_ENV === "development" || false;
1709
+ const isDev = ((_b = (_a = import.meta) == null ? void 0 : _a.env) == null ? void 0 : _b.DEV) || typeof process !== "undefined" && ((_c = process.env) == null ? void 0 : _c.NODE_ENV) === "development" || false;
1710
1710
  const SVG_SPRITE_URL = isDev ? localSpriteUrl : `https://cdn.jsdelivr.net/npm/formeo@${version$1}/dist/${formeoSpriteId}.svg`;
1711
1711
  const FALLBACK_SVG_SPRITE_URL = `https://draggable.github.io/formeo/assets/img/${formeoSpriteId}.svg`;
1712
1712
  const CSS_URL = `https://cdn.jsdelivr.net/npm/formeo@${version$1}/dist/formeo.min.css`;
@@ -4953,13 +4953,13 @@ const iconFontTemplates = {
4953
4953
  };
4954
4954
  const inputTags = /* @__PURE__ */ new Set(["input", "textarea", "select"]);
4955
4955
  const getName = (elem = {}) => {
4956
- var _a2, _b2, _c;
4956
+ var _a2, _b2, _c2;
4957
4957
  let name2 = ((_a2 = elem == null ? void 0 : elem.attrs) == null ? void 0 : _a2.name) || (elem == null ? void 0 : elem.name);
4958
4958
  if (name2) {
4959
4959
  return name2;
4960
4960
  }
4961
4961
  const id = uuid(elem);
4962
- let label = ((_b2 = elem.config) == null ? void 0 : _b2.label) || ((_c = elem.attrs) == null ? void 0 : _c.label) || (elem == null ? void 0 : elem.label);
4962
+ let label = ((_b2 = elem.config) == null ? void 0 : _b2.label) || ((_c2 = elem.attrs) == null ? void 0 : _c2.label) || (elem == null ? void 0 : elem.label);
4963
4963
  if (label) {
4964
4964
  if (typeof label === "object") {
4965
4965
  label = dom.create(label).textContent;