@designcrowd/fe-shared-lib 1.8.9-ai-switch-2 → 1.8.9-ai-switch-3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.8.9-ai-switch-2",
3
+ "version": "1.8.9-ai-switch-3",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -92,13 +92,11 @@ const randomizeStars = () => {
92
92
  };
93
93
 
94
94
  const toggleSwitch = () => {
95
- // toggle left align class
96
- // if moving right to left, play star animation after movement
97
95
  isAi.value = !isAi.value;
98
96
  if (isAi.value && props.showStars) {
99
97
  randomizeStars();
100
98
  }
101
- emit.toggledSwitch = isAi.value;
99
+ emit('toggledSwitch', isAi.value);
102
100
  };
103
101
  </script>
104
102