exodeui 6.3.12 → 6.3.14
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/dist/index.js +30 -34
- package/dist/index.mjs +3429 -9720
- package/dist/src/engine.d.ts +1 -0
- package/dist/src/types.d.ts +17 -0
- package/package.json +1 -1
package/dist/src/engine.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ export declare class ExodeUIEngine {
|
|
|
151
151
|
private handlePointerEvent;
|
|
152
152
|
handleKeyDown(e: KeyboardEvent): void;
|
|
153
153
|
private fireEventForObject;
|
|
154
|
+
private fireAnalyticsEvent;
|
|
154
155
|
private initGlobalAnimationTriggers;
|
|
155
156
|
private triggerGlobalAnimation;
|
|
156
157
|
private handleAnimationFinished;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -166,6 +166,22 @@ export interface Adjustments {
|
|
|
166
166
|
shadows?: number;
|
|
167
167
|
blur?: number;
|
|
168
168
|
}
|
|
169
|
+
export interface AnalyticsParameter {
|
|
170
|
+
key: string;
|
|
171
|
+
value: string;
|
|
172
|
+
type: 'literal' | 'variable';
|
|
173
|
+
}
|
|
174
|
+
export interface AnalyticsConfig {
|
|
175
|
+
isEnabled: boolean;
|
|
176
|
+
eventName: string;
|
|
177
|
+
triggerType: 'click' | 'hover' | 'visible';
|
|
178
|
+
platforms: {
|
|
179
|
+
ga4: boolean;
|
|
180
|
+
meta: boolean;
|
|
181
|
+
mixpanel: boolean;
|
|
182
|
+
};
|
|
183
|
+
parameters: AnalyticsParameter[];
|
|
184
|
+
}
|
|
169
185
|
export interface Style {
|
|
170
186
|
fill?: Fill;
|
|
171
187
|
stroke?: {
|
|
@@ -191,6 +207,7 @@ export interface Style {
|
|
|
191
207
|
liquidFill?: LiquidFillConfig;
|
|
192
208
|
artEffect?: ArtEffectConfig;
|
|
193
209
|
palette?: string[];
|
|
210
|
+
analytics?: AnalyticsConfig;
|
|
194
211
|
}
|
|
195
212
|
export type Geometry = {
|
|
196
213
|
type: 'Rectangle';
|