@jaak.ai/stamps 2.5.7 → 2.5.8-dev.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.
Files changed (45) hide show
  1. package/dist/cjs/{index-D6NBn_qu.js → index-BcFBOmM6.js} +30 -4
  2. package/dist/cjs/index-BcFBOmM6.js.map +1 -0
  3. package/dist/cjs/jaak-stamps-webcomponent.cjs.js +2 -2
  4. package/dist/cjs/jaak-stamps.cjs.entry.js +195 -74
  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/{my-component/my-component.js → jaak-stamps/jaak-stamps.js} +140 -36
  10. package/dist/collection/components/jaak-stamps/jaak-stamps.js.map +1 -0
  11. package/dist/collection/components/jaak-stamps/watermark-fallback.js.map +1 -0
  12. package/dist/collection/services/DetectionService.js +60 -38
  13. package/dist/collection/services/DetectionService.js.map +1 -1
  14. package/dist/components/index.js +20 -2
  15. package/dist/components/index.js.map +1 -1
  16. package/dist/components/jaak-stamps.js +197 -73
  17. package/dist/components/jaak-stamps.js.map +1 -1
  18. package/dist/esm/{index-BCfAsrzL.js → index-Cb0ILUvS.js} +30 -4
  19. package/dist/esm/index-Cb0ILUvS.js.map +1 -0
  20. package/dist/esm/jaak-stamps-webcomponent.js +3 -3
  21. package/dist/esm/jaak-stamps.entry.js +195 -74
  22. package/dist/esm/jaak-stamps.entry.js.map +1 -1
  23. package/dist/esm/loader.js +3 -3
  24. package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js +1 -1
  25. package/dist/jaak-stamps-webcomponent/jaak-stamps.entry.esm.js.map +1 -1
  26. package/dist/jaak-stamps-webcomponent/{p-63c2c085.entry.js → p-474f6bec.entry.js} +3 -3
  27. package/dist/jaak-stamps-webcomponent/p-474f6bec.entry.js.map +1 -0
  28. package/dist/jaak-stamps-webcomponent/p-Cb0ILUvS.js +3 -0
  29. package/dist/jaak-stamps-webcomponent/p-Cb0ILUvS.js.map +1 -0
  30. package/dist/types/components/{my-component/my-component.d.ts → jaak-stamps/jaak-stamps.d.ts} +7 -0
  31. package/dist/types/services/DetectionService.d.ts +5 -4
  32. package/package.json +4 -4
  33. package/dist/cjs/index-D6NBn_qu.js.map +0 -1
  34. package/dist/collection/components/my-component/my-component.js.map +0 -1
  35. package/dist/collection/components/my-component/watermark-fallback.js.map +0 -1
  36. package/dist/collection/utils/utils.js +0 -4
  37. package/dist/collection/utils/utils.js.map +0 -1
  38. package/dist/esm/index-BCfAsrzL.js.map +0 -1
  39. package/dist/jaak-stamps-webcomponent/p-63c2c085.entry.js.map +0 -1
  40. package/dist/jaak-stamps-webcomponent/p-BCfAsrzL.js +0 -3
  41. package/dist/jaak-stamps-webcomponent/p-BCfAsrzL.js.map +0 -1
  42. package/dist/types/utils/utils.d.ts +0 -1
  43. /package/dist/collection/components/{my-component/my-component.css → jaak-stamps/jaak-stamps.css} +0 -0
  44. /package/dist/collection/components/{my-component → jaak-stamps}/watermark-fallback.js +0 -0
  45. /package/dist/types/components/{my-component → jaak-stamps}/watermark-fallback.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const NAMESPACE = 'jaak-stamps-webcomponent';
4
- const BUILD = /* jaak-stamps-webcomponent */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
4
+ const BUILD = /* jaak-stamps-webcomponent */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
5
5
 
6
6
  /*
7
7
  Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
@@ -1043,6 +1043,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1043
1043
  `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).`
1044
1044
  );
1045
1045
  }
1046
+ const elm = hostRef.$hostElement$ ;
1046
1047
  const oldVal = hostRef.$instanceValues$.get(propName);
1047
1048
  const flags = hostRef.$flags$;
1048
1049
  const instance = hostRef.$lazyInstance$ ;
@@ -1054,6 +1055,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1054
1055
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1055
1056
  hostRef.$instanceValues$.set(propName, newVal);
1056
1057
  if (instance) {
1058
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1059
+ const watchMethods = cmpMeta.$watchers$[propName];
1060
+ if (watchMethods) {
1061
+ watchMethods.map((watchMethodName) => {
1062
+ try {
1063
+ instance[watchMethodName](newVal, oldVal, propName);
1064
+ } catch (e) {
1065
+ consoleError(e, elm);
1066
+ }
1067
+ });
1068
+ }
1069
+ }
1057
1070
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1058
1071
  if (instance.componentShouldUpdate) {
1059
1072
  if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
@@ -1070,7 +1083,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1070
1083
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1071
1084
  var _a, _b;
1072
1085
  const prototype = Cstr.prototype;
1073
- if (cmpMeta.$members$ || BUILD.watchCallback) {
1086
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1087
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1088
+ cmpMeta.$watchers$ = Cstr.watchers;
1089
+ }
1074
1090
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1075
1091
  members.map(([memberName, [memberFlags]]) => {
1076
1092
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1226,6 +1242,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1226
1242
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1227
1243
  }
1228
1244
  if (!Cstr.isProxied) {
1245
+ {
1246
+ cmpMeta.$watchers$ = Cstr.watchers;
1247
+ }
1229
1248
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1230
1249
  Cstr.isProxied = true;
1231
1250
  }
@@ -1241,6 +1260,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1241
1260
  {
1242
1261
  hostRef.$flags$ &= -9 /* isConstructingInstance */;
1243
1262
  }
1263
+ {
1264
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1265
+ }
1244
1266
  endNewInstance();
1245
1267
  fireConnectedCallback(hostRef.$lazyInstance$, elm);
1246
1268
  } else {
@@ -1361,6 +1383,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1361
1383
  let hasSlotRelocation = false;
1362
1384
  lazyBundles.map((lazyBundle) => {
1363
1385
  lazyBundle[1].map((compactMeta) => {
1386
+ var _a2;
1364
1387
  const cmpMeta = {
1365
1388
  $flags$: compactMeta[0],
1366
1389
  $tagName$: compactMeta[1],
@@ -1373,6 +1396,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1373
1396
  {
1374
1397
  cmpMeta.$members$ = compactMeta[2];
1375
1398
  }
1399
+ {
1400
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1401
+ }
1376
1402
  const tagName = cmpMeta.$tagName$;
1377
1403
  const HostElement = class extends HTMLElement {
1378
1404
  // StencilLazyHost
@@ -1482,6 +1508,6 @@ exports.h = h;
1482
1508
  exports.promiseResolve = promiseResolve;
1483
1509
  exports.registerInstance = registerInstance;
1484
1510
  exports.setNonce = setNonce;
1485
- //# sourceMappingURL=index-D6NBn_qu.js.map
1511
+ //# sourceMappingURL=index-BcFBOmM6.js.map
1486
1512
 
1487
- //# sourceMappingURL=index-D6NBn_qu.js.map
1513
+ //# sourceMappingURL=index-BcFBOmM6.js.map