@jaak.ai/stamps 2.5.7-dev.4 → 2.5.7

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.
Files changed (45) hide show
  1. package/dist/cjs/{index-BcFBOmM6.js → index-D6NBn_qu.js} +4 -30
  2. package/dist/cjs/index-D6NBn_qu.js.map +1 -0
  3. package/dist/cjs/jaak-stamps-webcomponent.cjs.js +2 -2
  4. package/dist/cjs/jaak-stamps.cjs.entry.js +72 -145
  5. package/dist/cjs/jaak-stamps.cjs.entry.js.map +1 -1
  6. package/dist/cjs/jaak-stamps.entry.cjs.js.map +1 -1
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/{jaak-stamps/jaak-stamps.js → my-component/my-component.js} +34 -90
  10. package/dist/collection/components/my-component/my-component.js.map +1 -0
  11. package/dist/collection/components/my-component/watermark-fallback.js.map +1 -0
  12. package/dist/collection/services/DetectionService.js +38 -60
  13. package/dist/collection/services/DetectionService.js.map +1 -1
  14. package/dist/collection/utils/utils.js +4 -0
  15. package/dist/collection/utils/utils.js.map +1 -0
  16. package/dist/components/index.js +2 -20
  17. package/dist/components/index.js.map +1 -1
  18. package/dist/components/jaak-stamps.js +71 -147
  19. package/dist/components/jaak-stamps.js.map +1 -1
  20. package/dist/esm/{index-Cb0ILUvS.js → index-BCfAsrzL.js} +4 -30
  21. package/dist/esm/index-BCfAsrzL.js.map +1 -0
  22. package/dist/esm/jaak-stamps-webcomponent.js +3 -3
  23. package/dist/esm/jaak-stamps.entry.js +72 -145
  24. package/dist/esm/jaak-stamps.entry.js.map +1 -1
  25. package/dist/esm/loader.js +3 -3
  26. package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js +1 -1
  27. package/dist/jaak-stamps-webcomponent/jaak-stamps.entry.esm.js.map +1 -1
  28. package/dist/jaak-stamps-webcomponent/{p-9afd846d.entry.js → p-63c2c085.entry.js} +3 -3
  29. package/dist/jaak-stamps-webcomponent/p-63c2c085.entry.js.map +1 -0
  30. package/dist/jaak-stamps-webcomponent/p-BCfAsrzL.js +3 -0
  31. package/dist/jaak-stamps-webcomponent/p-BCfAsrzL.js.map +1 -0
  32. package/dist/types/components/{jaak-stamps/jaak-stamps.d.ts → my-component/my-component.d.ts} +0 -5
  33. package/dist/types/services/DetectionService.d.ts +4 -5
  34. package/dist/types/utils/utils.d.ts +1 -0
  35. package/package.json +4 -4
  36. package/dist/cjs/index-BcFBOmM6.js.map +0 -1
  37. package/dist/collection/components/jaak-stamps/jaak-stamps.js.map +0 -1
  38. package/dist/collection/components/jaak-stamps/watermark-fallback.js.map +0 -1
  39. package/dist/esm/index-Cb0ILUvS.js.map +0 -1
  40. package/dist/jaak-stamps-webcomponent/p-9afd846d.entry.js.map +0 -1
  41. package/dist/jaak-stamps-webcomponent/p-Cb0ILUvS.js +0 -3
  42. package/dist/jaak-stamps-webcomponent/p-Cb0ILUvS.js.map +0 -1
  43. /package/dist/collection/components/{jaak-stamps/jaak-stamps.css → my-component/my-component.css} +0 -0
  44. /package/dist/collection/components/{jaak-stamps → my-component}/watermark-fallback.js +0 -0
  45. /package/dist/types/components/{jaak-stamps → my-component}/watermark-fallback.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'jaak-stamps-webcomponent';
2
- const BUILD = /* jaak-stamps-webcomponent */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
2
+ const BUILD = /* jaak-stamps-webcomponent */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
@@ -1041,7 +1041,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1041
1041
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
1042
1042
  );
1043
1043
  }
1044
- const elm = hostRef.$hostElement$ ;
1045
1044
  const oldVal = hostRef.$instanceValues$.get(propName);
1046
1045
  const flags = hostRef.$flags$;
1047
1046
  const instance = hostRef.$lazyInstance$ ;
@@ -1053,18 +1052,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1053
1052
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1054
1053
  hostRef.$instanceValues$.set(propName, newVal);
1055
1054
  if (instance) {
1056
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1057
- const watchMethods = cmpMeta.$watchers$[propName];
1058
- if (watchMethods) {
1059
- watchMethods.map((watchMethodName) => {
1060
- try {
1061
- instance[watchMethodName](newVal, oldVal, propName);
1062
- } catch (e) {
1063
- consoleError(e, elm);
1064
- }
1065
- });
1066
- }
1067
- }
1068
1055
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1069
1056
  if (instance.componentShouldUpdate) {
1070
1057
  if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
@@ -1081,10 +1068,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1081
1068
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1082
1069
  var _a, _b;
1083
1070
  const prototype = Cstr.prototype;
1084
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1085
- if (Cstr.watchers && !cmpMeta.$watchers$) {
1086
- cmpMeta.$watchers$ = Cstr.watchers;
1087
- }
1071
+ if (cmpMeta.$members$ || BUILD.watchCallback) {
1088
1072
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1089
1073
  members.map(([memberName, [memberFlags]]) => {
1090
1074
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1240,9 +1224,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1240
1224
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1241
1225
  }
1242
1226
  if (!Cstr.isProxied) {
1243
- {
1244
- cmpMeta.$watchers$ = Cstr.watchers;
1245
- }
1246
1227
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1247
1228
  Cstr.isProxied = true;
1248
1229
  }
@@ -1258,9 +1239,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1258
1239
  {
1259
1240
  hostRef.$flags$ &= -9 /* isConstructingInstance */;
1260
1241
  }
1261
- {
1262
- hostRef.$flags$ |= 128 /* isWatchReady */;
1263
- }
1264
1242
  endNewInstance();
1265
1243
  fireConnectedCallback(hostRef.$lazyInstance$, elm);
1266
1244
  } else {
@@ -1381,7 +1359,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1381
1359
  let hasSlotRelocation = false;
1382
1360
  lazyBundles.map((lazyBundle) => {
1383
1361
  lazyBundle[1].map((compactMeta) => {
1384
- var _a2;
1385
1362
  const cmpMeta = {
1386
1363
  $flags$: compactMeta[0],
1387
1364
  $tagName$: compactMeta[1],
@@ -1394,9 +1371,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1394
1371
  {
1395
1372
  cmpMeta.$members$ = compactMeta[2];
1396
1373
  }
1397
- {
1398
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1399
- }
1400
1374
  const tagName = cmpMeta.$tagName$;
1401
1375
  const HostElement = class extends HTMLElement {
1402
1376
  // StencilLazyHost
@@ -1500,6 +1474,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1500
1474
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1501
1475
 
1502
1476
  export { bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1503
- //# sourceMappingURL=index-Cb0ILUvS.js.map
1477
+ //# sourceMappingURL=index-BCfAsrzL.js.map
1504
1478
 
1505
- //# sourceMappingURL=index-Cb0ILUvS.js.map
1479
+ //# sourceMappingURL=index-BCfAsrzL.js.map