@jaak.ai/stamps 2.5.7 → 2.5.8-dev.2

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 +264 -75
  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} +209 -37
  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 +266 -74
  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 +264 -75
  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-Cb0ILUvS.js +3 -0
  27. package/dist/jaak-stamps-webcomponent/p-Cb0ILUvS.js.map +1 -0
  28. package/dist/jaak-stamps-webcomponent/{p-63c2c085.entry.js → p-b4834625.entry.js} +3 -3
  29. package/dist/jaak-stamps-webcomponent/p-b4834625.entry.js.map +1 -0
  30. package/dist/types/components/{my-component/my-component.d.ts → jaak-stamps/jaak-stamps.d.ts} +12 -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,5 +1,5 @@
1
1
  const NAMESPACE = 'jaak-stamps-webcomponent';
2
- const BUILD = /* jaak-stamps-webcomponent */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
2
+ const BUILD = /* jaak-stamps-webcomponent */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
@@ -1041,6 +1041,7 @@ 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$ ;
1044
1045
  const oldVal = hostRef.$instanceValues$.get(propName);
1045
1046
  const flags = hostRef.$flags$;
1046
1047
  const instance = hostRef.$lazyInstance$ ;
@@ -1052,6 +1053,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1052
1053
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1053
1054
  hostRef.$instanceValues$.set(propName, newVal);
1054
1055
  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
+ }
1055
1068
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1056
1069
  if (instance.componentShouldUpdate) {
1057
1070
  if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
@@ -1068,7 +1081,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1068
1081
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1069
1082
  var _a, _b;
1070
1083
  const prototype = Cstr.prototype;
1071
- if (cmpMeta.$members$ || BUILD.watchCallback) {
1084
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1085
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1086
+ cmpMeta.$watchers$ = Cstr.watchers;
1087
+ }
1072
1088
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1073
1089
  members.map(([memberName, [memberFlags]]) => {
1074
1090
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1224,6 +1240,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1224
1240
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1225
1241
  }
1226
1242
  if (!Cstr.isProxied) {
1243
+ {
1244
+ cmpMeta.$watchers$ = Cstr.watchers;
1245
+ }
1227
1246
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1228
1247
  Cstr.isProxied = true;
1229
1248
  }
@@ -1239,6 +1258,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1239
1258
  {
1240
1259
  hostRef.$flags$ &= -9 /* isConstructingInstance */;
1241
1260
  }
1261
+ {
1262
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1263
+ }
1242
1264
  endNewInstance();
1243
1265
  fireConnectedCallback(hostRef.$lazyInstance$, elm);
1244
1266
  } else {
@@ -1359,6 +1381,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1359
1381
  let hasSlotRelocation = false;
1360
1382
  lazyBundles.map((lazyBundle) => {
1361
1383
  lazyBundle[1].map((compactMeta) => {
1384
+ var _a2;
1362
1385
  const cmpMeta = {
1363
1386
  $flags$: compactMeta[0],
1364
1387
  $tagName$: compactMeta[1],
@@ -1371,6 +1394,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1371
1394
  {
1372
1395
  cmpMeta.$members$ = compactMeta[2];
1373
1396
  }
1397
+ {
1398
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1399
+ }
1374
1400
  const tagName = cmpMeta.$tagName$;
1375
1401
  const HostElement = class extends HTMLElement {
1376
1402
  // StencilLazyHost
@@ -1474,6 +1500,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1474
1500
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1475
1501
 
1476
1502
  export { bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1477
- //# sourceMappingURL=index-BCfAsrzL.js.map
1503
+ //# sourceMappingURL=index-Cb0ILUvS.js.map
1478
1504
 
1479
- //# sourceMappingURL=index-BCfAsrzL.js.map
1505
+ //# sourceMappingURL=index-Cb0ILUvS.js.map