@vertexvis/doc-viewer 0.24.5-canary.8 → 1.0.0-testing.6

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,11 +1,11 @@
1
1
  /*!
2
2
  * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-Ct6uMP9a.js';
5
- export { s as setNonce } from './index-Ct6uMP9a.js';
4
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-CZJPiyR_.js';
5
+ export { s as setNonce } from './index-CZJPiyR_.js';
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.43.3 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.43.4 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var patchBrowser = () => {
@@ -309,7 +309,7 @@ const globalScripts = appGlobalScript;
309
309
  const globalStyles = ":root{--white:#ffffff;--black:#000000}:root{--neutral-050:#fafafa;--neutral-100:#f5f5f5;--neutral-200:#eeeeee;--neutral-300:#e0e0e0;--neutral-400:#bdbdbd;--neutral-500:#9e9e9e;--neutral-600:#757575;--neutral-700:#616161;--neutral-800:#444444;--neutral-900:#212121}:root{--red-050:#fff7f7;--red-100:#ffefef;--red-200:#ffe0e0;--red-300:#ffb3b3;--red-400:#ff4d4d;--red-500:#ff0000;--red-600:#eb0000;--red-700:#d90000;--red-800:#c40000;--red-900:#990000}:root{--orange-050:#fffcf7;--orange-100:#fff9ef;--orange-200:#fff3e0;--orange-300:#ffe0b3;--orange-400:#ffb84d;--orange-500:#ff9900;--orange-600:#ff8400;--orange-700:#ff7300;--orange-800:#e05d00;--orange-900:#993b00}:root{--yellow-050:#fffef7;--yellow-100:#fffdef;--yellow-200:#fffbe0;--yellow-300:#fff5b3;--yellow-400:#ffee6e;--yellow-500:#ffe600;--yellow-600:#ffd300;--yellow-700:#ffc500;--yellow-800:#cc8f00;--yellow-900:#995c00}:root{--green-050:#f7fdf7;--green-100:#effcef;--green-200:#e0f9e0;--green-300:#b3f0b3;--green-400:#4ddb4d;--green-500:#00cc00;--green-600:#00c000;--green-700:#00ad00;--green-800:#008000;--green-900:#004d00}:root{--teal-050:#f8fdfc;--teal-100:#f1fbfa;--teal-200:#e4f7f5;--teal-300:#bcece7;--teal-400:#62d2c7;--teal-500:#1fbeaf;--teal-600:#17af9f;--teal-700:#0a9986;--teal-800:#07705f;--teal-900:#054d43}:root{--blue-050:#f7fcfd;--blue-100:#eff9fc;--blue-200:#e0f3f9;--blue-300:#b3e0f0;--blue-400:#4db8db;--blue-500:#0099cc;--blue-600:#0086c0;--blue-700:#006bad;--blue-800:#004f80;--blue-900:#002f4d}:root{--purple-050:#fdf9fc;--purple-100:#faf2f8;--purple-200:#f6e6f2;--purple-300:#e9c2e0;--purple-400:#cb70b6;--purple-500:#b43296;--purple-600:#a42683;--purple-700:#8c1368;--purple-800:#66124b;--purple-900:#4d0b39}:root{--x-axis-color:#ea3324;--y-axis-color:#4faf32;--z-axis-color:#0000ff;--two-axes-color:#e0e0e0}:root{--padding-1:0.25em;--padding-2:0.5em;--padding-3:0.75em;--padding-4:1em;--padding-5:1.25em;--padding-6:1.5em;--padding-7:1.75em;--padding-8:2em;--abs-padding-1:0.25rem;--abs-padding-2:0.5rem;--abs-padding-3:0.75rem;--abs-padding-4:1rem;--abs-padding-5:1.25rem;--abs-padding-6:1.5rem;--abs-padding-7:1.75rem;--abs-padding-8:2rem}";
310
310
 
311
311
  /*
312
- Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
312
+ Stencil Client Platform v4.43.4 | MIT Licensed | https://stenciljs.com
313
313
  */
314
314
 
315
315
 
@@ -747,6 +747,31 @@ var newVNode = (tag, text) => {
747
747
  var Host = {};
748
748
  var isHost = (node) => node && node.$tag$ === Host;
749
749
 
750
+ // src/runtime/normalize-watchers.ts
751
+ var normalizeWatchers = (raw) => {
752
+ if (!raw) return void 0;
753
+ const keys = Object.keys(raw);
754
+ if (keys.length === 0) return void 0;
755
+ let hasLegacy = false;
756
+ for (const propName of keys) {
757
+ if (hasLegacy) break;
758
+ for (const h2 of raw[propName]) {
759
+ if (typeof h2 === "string") {
760
+ hasLegacy = true;
761
+ break;
762
+ }
763
+ }
764
+ }
765
+ if (!hasLegacy) return raw;
766
+ const out = {};
767
+ for (const propName of keys) {
768
+ out[propName] = raw[propName].map(
769
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
770
+ );
771
+ }
772
+ return out;
773
+ };
774
+
750
775
  // src/runtime/parse-property-value.ts
751
776
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
752
777
  if (propValue != null && !isComplexType(propValue)) {
@@ -1433,7 +1458,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1433
1458
  if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1434
1459
  {
1435
1460
  if (Cstr.watchers && !cmpMeta.$watchers$) {
1436
- cmpMeta.$watchers$ = Cstr.watchers;
1461
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1437
1462
  }
1438
1463
  if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1439
1464
  cmpMeta.$deserializers$ = Cstr.deserializers;
@@ -1559,11 +1584,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1559
1584
  return;
1560
1585
  }
1561
1586
  const propFlags = members.find(([m]) => m === propName);
1562
- if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1587
+ const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
1588
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1589
+ if (isBooleanTarget) {
1563
1590
  newValue = newValue === null || newValue === "false" ? false : true;
1564
1591
  }
1565
1592
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1566
- if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1593
+ if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1567
1594
  this[propName] = newValue;
1568
1595
  }
1569
1596
  });
@@ -1608,7 +1635,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1608
1635
  }
1609
1636
  if (!Cstr.isProxied) {
1610
1637
  {
1611
- cmpMeta.$watchers$ = Cstr.watchers;
1638
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1612
1639
  cmpMeta.$serializers$ = Cstr.serializers;
1613
1640
  cmpMeta.$deserializers$ = Cstr.deserializers;
1614
1641
  }
@@ -1761,7 +1788,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1761
1788
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1762
1789
  lazyBundles.map((lazyBundle) => {
1763
1790
  lazyBundle[1].map((compactMeta) => {
1764
- var _a2, _b, _c;
1791
+ var _a2, _b;
1765
1792
  const cmpMeta = {
1766
1793
  $flags$: compactMeta[0],
1767
1794
  $tagName$: compactMeta[1],
@@ -1775,9 +1802,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1775
1802
  cmpMeta.$attrsToReflect$ = [];
1776
1803
  }
1777
1804
  {
1778
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1779
- cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1780
- cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1805
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
1806
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
1807
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
1781
1808
  }
1782
1809
  const tagName = transformTag(cmpMeta.$tagName$);
1783
1810
  const HostElement = class extends HTMLElement {
@@ -0,0 +1,3 @@
1
+ /*!
2
+ * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
3
+ */
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import { g as globalScripts, b as bootstrapLazy } from './index-Ct6uMP9a.js';
5
- export { s as setNonce } from './index-Ct6uMP9a.js';
4
+ import { g as globalScripts, b as bootstrapLazy } from './index-CZJPiyR_.js';
5
+ export { s as setNonce } from './index-CZJPiyR_.js';
6
6
 
7
7
  const defineCustomElements = async (win, options) => {
8
8
  if (typeof window === 'undefined') return undefined;
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
3
+ */
4
+ import { g as globalScripts, b as bootstrapLazy } from './index-CZJPiyR_.js';
5
+ export { s as setNonce } from './index-CZJPiyR_.js';
6
+
7
+ const defineCustomElements = async (win, options) => {
8
+ if (typeof window === 'undefined') return undefined;
9
+ await globalScripts();
10
+ return bootstrapLazy([["vertex-document-viewer",[[257,"vertex-document-viewer",{"src":[1],"documentId":[513,"document-id"],"provider":[1040],"interactionMode":[1,"interaction-mode"],"documentState":[1040],"layers":[1040],"config":[16],"resizeDebounce":[2,"resize-debounce"],"panByDelta":[64],"zoomTo":[64],"loadPage":[64]},null,{"src":[{"handleSrcChange":0}],"config":[{"handleConfigChange":0}],"interactionMode":[{"handleInteractionModeChange":0}]}]]]], options);
11
+ };
12
+
13
+ export { defineCustomElements };