@ppg_pl/pallete 2.0.8 → 2.0.10

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 (30) hide show
  1. package/dist/cjs/my-backdrop_8.cjs.entry.js +9 -4
  2. package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -1
  3. package/dist/collection/components/api/index.js +2 -2
  4. package/dist/collection/components/api/index.js.map +1 -1
  5. package/dist/collection/components/my-colorinfo/my-colorinfo.js +21 -1
  6. package/dist/collection/components/my-colorinfo/my-colorinfo.js.map +1 -1
  7. package/dist/collection/components/my-component/my-component.js +0 -1
  8. package/dist/collection/components/my-component/my-component.js.map +1 -1
  9. package/dist/components/index2.js +2 -2
  10. package/dist/components/index2.js.map +1 -1
  11. package/dist/components/my-colorinfo2.js +7 -1
  12. package/dist/components/my-colorinfo2.js.map +1 -1
  13. package/dist/components/my-component.js +0 -1
  14. package/dist/components/my-component.js.map +1 -1
  15. package/dist/esm/my-backdrop_8.entry.js +9 -4
  16. package/dist/esm/my-backdrop_8.entry.js.map +1 -1
  17. package/dist/pallete/p-a7ce8105.entry.js +2 -0
  18. package/dist/pallete/p-a7ce8105.entry.js.map +1 -0
  19. package/dist/pallete/pallete.esm.js +1 -1
  20. package/dist/types/components/api/index.d.ts +2 -2
  21. package/dist/types/components/my-colorinfo/my-colorinfo.d.ts +3 -1
  22. package/dist/types/components.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/www/build/p-a7ce8105.entry.js +2 -0
  25. package/www/build/p-a7ce8105.entry.js.map +1 -0
  26. package/www/build/pallete.esm.js +1 -1
  27. package/dist/pallete/p-18ff39a9.entry.js +0 -2
  28. package/dist/pallete/p-18ff39a9.entry.js.map +0 -1
  29. package/www/build/p-18ff39a9.entry.js +0 -2
  30. package/www/build/p-18ff39a9.entry.js.map +0 -1
@@ -24,8 +24,8 @@ const setDataLayer = (obj) => {
24
24
  // export const APIURL = 'http://57.128.200.45:8055';
25
25
  // export const accessToken = '_baZ127gfvFIFmZ5umrrTBUUm6D7ve6p';
26
26
  // PROD
27
- const APIURL = process.env.API_URL; //'https://pallete-colors-backend.herokuapp.com';
28
- const accessToken = process.env.ACCESS_API_TOKEN; //'_baZ127gfvFIFmZ5umrrTBUUm6D7ve6p'
27
+ const APIURL = 'https://color-selector.pl'; //'https://pallete-colors-backend.herokuapp.com';
28
+ const accessToken = 'uBKzhiNM4rkdZSe_PQvKJp9pE-DSTmtu'; //'_baZ127gfvFIFmZ5umrrTBUUm6D7ve6p'
29
29
  class API {
30
30
  async getData(ep) {
31
31
  try {
@@ -96,8 +96,11 @@ const MyColorInfo = class {
96
96
  constructor(hostRef) {
97
97
  index$1.registerInstance(this, hostRef);
98
98
  this.closeInfoBox = index$1.createEvent(this, "closeInfoBox", 7);
99
- this.goToProduct = () => {
99
+ this.close = index$1.createEvent(this, "close", 7);
100
+ this.goToProduct = (e) => {
100
101
  var _a;
102
+ e.preventDefault();
103
+ this.closeModalHandler();
101
104
  this.currentColor &&
102
105
  setDataLayer({
103
106
  event: 'GoToProduct',
@@ -137,6 +140,9 @@ const MyColorInfo = class {
137
140
  this.infoBoxWidth = undefined;
138
141
  this.closeImage = 'close.png';
139
142
  }
143
+ closeModalHandler() {
144
+ this.close.emit();
145
+ }
140
146
  render() {
141
147
  var _a;
142
148
  return (index$1.h("div", { class: `boxes__box-content ${this.currentColor.textWhite ? 'boxes__box-content__white' : ''}`, style: {
@@ -288,7 +294,6 @@ const MyModalBundle = class {
288
294
  render() {
289
295
  let content = null;
290
296
  if (this.show) {
291
- console.log(this.baselink, this.shop, this.product);
292
297
  content = [index$1.h("my-backdrop", null), index$1.h("my-modal", { shop: this.shop, product: this.product, baselink: this.baselink })];
293
298
  }
294
299
  return (index$1.h("div", { onClick: () => {