@adhese/sdk-devtools 0.3.0 → 0.5.0

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.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactElement } from 'react';
3
+ import { ComputedRef, Ref, MaybeRef } from '@vue/runtime-core';
3
4
  import * as zod from 'zod';
4
5
  import { TypeOf, ZodType } from 'zod';
5
6
 
@@ -64,7 +65,7 @@ type SlotManager = {
64
65
  /**
65
66
  * Adds a new slot to the Adhese instance and renders it.
66
67
  */
67
- add(slot: Omit<AdheseSlotOptions, 'context'>): Promise<Readonly<AdheseSlot>>;
68
+ add(slot: Omit<AdheseSlotOptions, 'context'>): Readonly<AdheseSlot>;
68
69
  /**
69
70
  * Finds all slots in the DOM and adds them to the Adhese instance.
70
71
  */
@@ -88,13 +89,8 @@ type SlotManagerOptions = {
88
89
  context: AdheseContext;
89
90
  };
90
91
 
91
- declare const baseAdResponseScheme: zod.ZodObject<{
92
+ declare const baseSchema: zod.ZodObject<{
92
93
  adDuration: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
93
- adDuration2nd: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
94
- adDuration3rd: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
95
- adDuration4th: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
96
- adDuration5th: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
97
- adDuration6th: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
98
94
  adFormat: zod.ZodOptional<zod.ZodString>;
99
95
  adType: zod.ZodString;
100
96
  additionalCreativeTracker: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, URL | undefined, string>>;
@@ -106,13 +102,12 @@ declare const baseAdResponseScheme: zod.ZodObject<{
106
102
  advertiserId: zod.ZodOptional<zod.ZodString>;
107
103
  altText: zod.ZodOptional<zod.ZodString>;
108
104
  auctionable: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodLiteral<"">]>>;
109
- body: zod.ZodOptional<zod.ZodString>;
105
+ body: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, Record<string, unknown> | readonly unknown[], string>, zod.ZodEffects<zod.ZodString, string, string>]>]>, string | Record<string, unknown> | readonly unknown[] | undefined, string>>;
110
106
  clickTag: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, URL | undefined, string>>;
111
107
  comment: zod.ZodOptional<zod.ZodString>;
112
108
  creativeName: zod.ZodOptional<zod.ZodString>;
113
109
  deliveryGroupId: zod.ZodOptional<zod.ZodString>;
114
110
  deliveryMultiples: zod.ZodOptional<zod.ZodString>;
115
- dm: zod.ZodOptional<zod.ZodString>;
116
111
  ext: zod.ZodOptional<zod.ZodString>;
117
112
  extension: zod.ZodOptional<zod.ZodObject<{
118
113
  mediaType: zod.ZodString;
@@ -124,22 +119,16 @@ declare const baseAdResponseScheme: zod.ZodObject<{
124
119
  mediaType: string;
125
120
  prebid?: unknown;
126
121
  }>>;
127
- extraField1: zod.ZodOptional<zod.ZodString>;
128
- extraField2: zod.ZodOptional<zod.ZodString>;
129
- height: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
130
- height3rd: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
131
- height4th: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
132
- height5th: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
133
- height6th: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
134
- heightLarge: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
122
+ height: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">, zod.ZodNumber]>, string | undefined, string | number>>;
135
123
  id: zod.ZodOptional<zod.ZodString>;
136
124
  impressionCounter: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, URL | undefined, string>>;
137
125
  libId: zod.ZodOptional<zod.ZodString>;
138
126
  orderId: zod.ZodOptional<zod.ZodString>;
139
127
  orderName: zod.ZodOptional<zod.ZodString>;
140
128
  orderProperty: zod.ZodOptional<zod.ZodString>;
141
- origin: zod.ZodOptional<zod.ZodString>;
129
+ origin: zod.ZodUnion<[zod.ZodLiteral<"JERLICIA">, zod.ZodLiteral<"DALE">]>;
142
130
  originData: zod.ZodOptional<zod.ZodUnknown>;
131
+ originInstance: zod.ZodOptional<zod.ZodString>;
143
132
  poolPath: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, URL | undefined, string>>;
144
133
  preview: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodLiteral<"">]>>;
145
134
  priority: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
@@ -147,12 +136,7 @@ declare const baseAdResponseScheme: zod.ZodObject<{
147
136
  slotID: zod.ZodString;
148
137
  slotName: zod.ZodString;
149
138
  swfSrc: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, URL | undefined, string>>;
150
- swfSrc2nd: zod.ZodOptional<zod.ZodString>;
151
- swfSrc3rd: zod.ZodOptional<zod.ZodString>;
152
- swfSrc4th: zod.ZodOptional<zod.ZodString>;
153
- swfSrc5th: zod.ZodOptional<zod.ZodString>;
154
- swfSrc6th: zod.ZodOptional<zod.ZodString>;
155
- tag: zod.ZodString;
139
+ tag: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodUnion<[zod.ZodEffects<zod.ZodString, Record<string, unknown> | readonly unknown[], string>, zod.ZodEffects<zod.ZodString, string, string>]>]>, string | Record<string, unknown> | readonly unknown[] | undefined, string>>;
156
140
  tagUrl: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, URL | undefined, string>>;
157
141
  timeStamp: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, Date | undefined, string>>;
158
142
  trackedImpressionCounter: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, URL | undefined, string>>;
@@ -160,23 +144,14 @@ declare const baseAdResponseScheme: zod.ZodObject<{
160
144
  trackingUrl: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, URL | undefined, string>>;
161
145
  url: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, URL | undefined, string>>;
162
146
  viewableImpressionCounter: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, URL | undefined, string>>;
163
- width: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
164
- width3rd: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
165
- width4th: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
166
- width5th: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
167
- width6th: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
168
- widthLarge: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">]>, number | undefined, string>>;
147
+ width: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">, zod.ZodNumber]>, string | undefined, string | number>>;
148
+ widthLarge: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodLiteral<"">, zod.ZodNumber]>, string | undefined, string | number>>;
169
149
  }, "strip", zod.ZodTypeAny, {
170
150
  adType: string;
151
+ origin: "JERLICIA" | "DALE";
171
152
  slotID: string;
172
153
  slotName: string;
173
- tag: string;
174
154
  adDuration?: number | undefined;
175
- adDuration2nd?: number | undefined;
176
- adDuration3rd?: number | undefined;
177
- adDuration4th?: number | undefined;
178
- adDuration5th?: number | undefined;
179
- adDuration6th?: number | undefined;
180
155
  adFormat?: string | undefined;
181
156
  additionalCreativeTracker?: URL | undefined;
182
157
  additionalViewableTracker?: string | undefined;
@@ -187,44 +162,32 @@ declare const baseAdResponseScheme: zod.ZodObject<{
187
162
  advertiserId?: string | undefined;
188
163
  altText?: string | undefined;
189
164
  auctionable?: boolean | "" | undefined;
190
- body?: string | undefined;
165
+ body?: string | Record<string, unknown> | readonly unknown[] | undefined;
191
166
  clickTag?: URL | undefined;
192
167
  comment?: string | undefined;
193
168
  creativeName?: string | undefined;
194
169
  deliveryGroupId?: string | undefined;
195
170
  deliveryMultiples?: string | undefined;
196
- dm?: string | undefined;
197
171
  ext?: string | undefined;
198
172
  extension?: {
199
173
  mediaType: string;
200
174
  prebid?: unknown;
201
175
  } | undefined;
202
- extraField1?: string | undefined;
203
- extraField2?: string | undefined;
204
- height?: number | undefined;
205
- height3rd?: number | undefined;
206
- height4th?: number | undefined;
207
- height5th?: number | undefined;
208
- height6th?: number | undefined;
209
- heightLarge?: number | undefined;
176
+ height?: string | undefined;
210
177
  id?: string | undefined;
211
178
  impressionCounter?: URL | undefined;
212
179
  libId?: string | undefined;
213
180
  orderId?: string | undefined;
214
181
  orderName?: string | undefined;
215
182
  orderProperty?: string | undefined;
216
- origin?: string | undefined;
217
183
  originData?: unknown;
184
+ originInstance?: string | undefined;
218
185
  poolPath?: URL | undefined;
219
186
  preview?: boolean | "" | undefined;
220
187
  priority?: number | undefined;
221
188
  share?: string | undefined;
222
189
  swfSrc?: URL | undefined;
223
- swfSrc2nd?: string | undefined;
224
- swfSrc3rd?: string | undefined;
225
- swfSrc4th?: string | undefined;
226
- swfSrc5th?: string | undefined;
227
- swfSrc6th?: string | undefined;
190
+ tag?: string | Record<string, unknown> | readonly unknown[] | undefined;
228
191
  tagUrl?: URL | undefined;
229
192
  timeStamp?: Date | undefined;
230
193
  trackedImpressionCounter?: URL | undefined;
@@ -232,23 +195,14 @@ declare const baseAdResponseScheme: zod.ZodObject<{
232
195
  trackingUrl?: URL | undefined;
233
196
  url?: URL | undefined;
234
197
  viewableImpressionCounter?: URL | undefined;
235
- width?: number | undefined;
236
- width3rd?: number | undefined;
237
- width4th?: number | undefined;
238
- width5th?: number | undefined;
239
- width6th?: number | undefined;
240
- widthLarge?: number | undefined;
198
+ width?: string | undefined;
199
+ widthLarge?: string | undefined;
241
200
  }, {
242
201
  adType: string;
202
+ origin: "JERLICIA" | "DALE";
243
203
  slotID: string;
244
204
  slotName: string;
245
- tag: string;
246
205
  adDuration?: string | undefined;
247
- adDuration2nd?: string | undefined;
248
- adDuration3rd?: string | undefined;
249
- adDuration4th?: string | undefined;
250
- adDuration5th?: string | undefined;
251
- adDuration6th?: string | undefined;
252
206
  adFormat?: string | undefined;
253
207
  additionalCreativeTracker?: string | undefined;
254
208
  additionalViewableTracker?: string | undefined;
@@ -265,38 +219,26 @@ declare const baseAdResponseScheme: zod.ZodObject<{
265
219
  creativeName?: string | undefined;
266
220
  deliveryGroupId?: string | undefined;
267
221
  deliveryMultiples?: string | undefined;
268
- dm?: string | undefined;
269
222
  ext?: string | undefined;
270
223
  extension?: {
271
224
  mediaType: string;
272
225
  prebid?: unknown;
273
226
  } | undefined;
274
- extraField1?: string | undefined;
275
- extraField2?: string | undefined;
276
- height?: string | undefined;
277
- height3rd?: string | undefined;
278
- height4th?: string | undefined;
279
- height5th?: string | undefined;
280
- height6th?: string | undefined;
281
- heightLarge?: string | undefined;
227
+ height?: string | number | undefined;
282
228
  id?: string | undefined;
283
229
  impressionCounter?: string | undefined;
284
230
  libId?: string | undefined;
285
231
  orderId?: string | undefined;
286
232
  orderName?: string | undefined;
287
233
  orderProperty?: string | undefined;
288
- origin?: string | undefined;
289
234
  originData?: unknown;
235
+ originInstance?: string | undefined;
290
236
  poolPath?: string | undefined;
291
237
  preview?: boolean | "" | undefined;
292
238
  priority?: string | undefined;
293
239
  share?: string | undefined;
294
240
  swfSrc?: string | undefined;
295
- swfSrc2nd?: string | undefined;
296
- swfSrc3rd?: string | undefined;
297
- swfSrc4th?: string | undefined;
298
- swfSrc5th?: string | undefined;
299
- swfSrc6th?: string | undefined;
241
+ tag?: string | undefined;
300
242
  tagUrl?: string | undefined;
301
243
  timeStamp?: string | undefined;
302
244
  trackedImpressionCounter?: string | undefined;
@@ -304,19 +246,18 @@ declare const baseAdResponseScheme: zod.ZodObject<{
304
246
  trackingUrl?: string | undefined;
305
247
  url?: string | undefined;
306
248
  viewableImpressionCounter?: string | undefined;
307
- width?: string | undefined;
308
- width3rd?: string | undefined;
309
- width4th?: string | undefined;
310
- width5th?: string | undefined;
311
- width6th?: string | undefined;
312
- widthLarge?: string | undefined;
249
+ width?: string | number | undefined;
250
+ widthLarge?: string | number | undefined;
313
251
  }>;
314
- type AdResponse = TypeOf<typeof baseAdResponseScheme> & {
252
+ type AdResponse = (TypeOf<typeof baseSchema> & {
315
253
  additionalCreatives?: ReadonlyArray<AdResponse> | string;
316
- };
254
+ });
317
255
  declare const adResponseSchema: ZodType<AdResponse>;
318
- type Ad = TypeOf<typeof adResponseSchema> & {
319
- additionalCreatives?: ReadonlyArray<Ad> | string;
256
+ type PreParsedAd = TypeOf<typeof adResponseSchema> & {
257
+ additionalCreatives?: ReadonlyArray<PreParsedAd> | string;
258
+ };
259
+ type Ad<T = string | Record<string, unknown> | ReadonlyArray<unknown>> = Omit<PreParsedAd, 'tag'> & {
260
+ tag: T;
320
261
  };
321
262
 
322
263
  type RenderMode = 'iframe' | 'inline';
@@ -363,6 +304,15 @@ type AdheseSlotOptions = {
363
304
  * Callback that is called when the format of the slot changes.
364
305
  */
365
306
  onNameChange?(newName: string, oldName: string): void;
307
+ /**
308
+ * Callback that is called when the slot is rendered.
309
+ */
310
+ onRender?(element: HTMLElement): void;
311
+ /**
312
+ * Callback that is called before the ad is rendered. This can be used to modify the ad before it is rendered.
313
+ * Particularly useful for rendering ads with custom HTML if the ad tag contains a JSON object.
314
+ */
315
+ onBeforeRender?(ad: Ad): Ad | void;
366
316
  } & ({
367
317
  /**
368
318
  * If the slot should be lazy loaded. This means that the ad will only be requested when the slot is in the viewport.
@@ -381,49 +331,48 @@ type AdheseSlotOptions = {
381
331
  });
382
332
  type AdheseSlot = Merge<Omit<AdheseSlotOptions, 'onDispose' | 'context' | 'onFormatChange' | 'format'>, {
383
333
  /**
384
- * The location of the slot. This is the location that is used to determine the current page URL.
385
- */
386
- location: string;
387
- /**
388
- * The parameters that are used to render the ad.
389
- */
390
- parameters: Map<string, ReadonlyArray<string> | string>;
391
- /**
392
- * Renders the slot in the containing element. If no ad is provided, a new ad will be requested from the API.
334
+ * The name of the slot. This is used to identify the slot in the Adhese instance.
335
+ *
336
+ * The name is generated based on the location, format, and slot of the slot.
393
337
  */
394
- render(ad?: Ad): Promise<HTMLElement>;
338
+ name: ComputedRef<string>;
395
339
  /**
396
- * Returns the rendered element.
340
+ * The format code of the slot. Used to find the correct element on the page to render the ad in.
341
+ *
342
+ * If the format is a string, it is used as the format code. If the format is an array, the format code is determined
343
+ * by the query detector.
344
+ *
345
+ * When you change the format, the slot will request a new ad from the API automatically.
397
346
  */
398
- getElement(): HTMLElement | null;
347
+ format: Ref<string>;
399
348
  /**
400
- * Returns the name of the slot.
349
+ * The location of the slot. This is the location that is used to determine the current page URL.
401
350
  */
402
- getName(): string;
351
+ location: string;
403
352
  /**
404
- * Returns the ad that is to be rendered in the slot or is currently rendered in the slot.
353
+ * The parameters that are used to render the ad.
405
354
  */
406
- getAd(): Ad | null;
355
+ parameters: Map<string, ReadonlyArray<string> | string>;
407
356
  /**
408
- * Sets the ad that is to be rendered in the slot. If the slot is in the viewport, the ad will be rendered immediately.
357
+ * Whether the viewability tracking pixel has been fired.
409
358
  */
410
- setAd(ad: Ad): Promise<void>;
359
+ isViewabilityTracked: ComputedRef<boolean>;
411
360
  /**
412
- * Returns whether the viewability tracking pixel has been fired.
361
+ * Whether the impression tracking pixel has been fired.
413
362
  */
414
- isViewabilityTracked(): boolean;
363
+ isImpressionTracked: ComputedRef<boolean>;
415
364
  /**
416
- * Returns whether the impression tracking pixel has been fired.
365
+ * Ad object that is fetched from the API.
417
366
  */
418
- isImpressionTracked(): boolean;
367
+ ad: Ref<Ad | null>;
419
368
  /**
420
- * Sets the format of the slot. This is used to change the format of the slot after it has been created.
369
+ * Renders the slot in the containing element. If no ad is provided, a new ad will be requested from the API.
421
370
  */
422
- setFormat(format: string): Promise<void>;
371
+ render(ad?: Ad): Promise<HTMLElement>;
423
372
  /**
424
- * Returns the format of the slot.
373
+ * Returns the rendered element.
425
374
  */
426
- getFormat(): string;
375
+ getElement(): HTMLElement | null;
427
376
  /**
428
377
  * Removes the slot from the DOM and cleans up the slot instance.
429
378
  */
@@ -434,41 +383,13 @@ type AdRequestOptions = {
434
383
  /**
435
384
  * List of slots you want to fetch the ad for
436
385
  */
437
- slots: ReadonlyArray<Pick<AdheseSlot, 'getName' | 'parameters'>>;
438
- /**
439
- * Host that you want to fetch the ads from
440
- */
441
- host: UrlString;
442
- /**
443
- * The Adhese account name.
444
- */
445
- account: string;
446
- /**
447
- * Request method to use for the requestAds
448
- *
449
- * @default 'POST'
450
- */
451
- method?: 'GET' | 'POST' | 'get' | 'post';
452
- /**
453
- * The parameters that are used for all ads.
454
- */
455
- parameters?: Map<string, ReadonlyArray<string> | string>;
456
- context: Partial<Adhese>;
386
+ slots: ReadonlyArray<{
387
+ name: MaybeRef<string>;
388
+ parameters: Map<string, ReadonlyArray<string> | string>;
389
+ }>;
390
+ context: AdheseContext;
457
391
  };
458
392
 
459
- declare class MapWithEvents<T, U> extends Map<T, U> {
460
- private readonly listeners;
461
- addEventListener(listener: () => void): void;
462
- removeEventListener(listener: () => void): void;
463
- set(key: T, value: U): this;
464
- clear(): void;
465
- delete(key: T): boolean;
466
- /**
467
- * Remove all listeners and clear the map.
468
- */
469
- dispose(): void;
470
- }
471
-
472
393
  /**
473
394
  * A log entry saved by the logger
474
395
  */
@@ -662,7 +583,7 @@ type Adhese = Omit<AdheseOptions, 'location' | 'parameters' | 'consent'> & Merge
662
583
  /**
663
584
  * The parameters that are used for all ads.
664
585
  */
665
- parameters: MapWithEvents<string, ReadonlyArray<string> | string>;
586
+ parameters: Map<string, ReadonlyArray<string> | string>;
666
587
  /**
667
588
  * The event manager for the Adhese instance.
668
589
  */
package/dist/style.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- ! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
2
+ ! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com
3
3
  *//*
4
4
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
5
5
  2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
@@ -179,6 +179,7 @@ textarea {
179
179
  font-size: 100%; /* 1 */
180
180
  font-weight: inherit; /* 1 */
181
181
  line-height: inherit; /* 1 */
182
+ letter-spacing: inherit; /* 1 */
182
183
  color: inherit; /* 1 */
183
184
  margin: 0; /* 2 */
184
185
  padding: 0; /* 3 */
@@ -199,9 +200,9 @@ select {
199
200
  */
200
201
 
201
202
  button,
202
- [type='button'],
203
- [type='reset'],
204
- [type='submit'] {
203
+ input:where([type='button']),
204
+ input:where([type='reset']),
205
+ input:where([type='submit']) {
205
206
  -webkit-appearance: button; /* 1 */
206
207
  background-color: transparent; /* 2 */
207
208
  background-image: none; /* 2 */
@@ -480,6 +481,10 @@ video {
480
481
  --tw-backdrop-opacity: ;
481
482
  --tw-backdrop-saturate: ;
482
483
  --tw-backdrop-sepia: ;
484
+ --tw-contain-size: ;
485
+ --tw-contain-layout: ;
486
+ --tw-contain-paint: ;
487
+ --tw-contain-style: ;
483
488
  }
484
489
 
485
490
  ::backdrop {
@@ -530,6 +535,10 @@ video {
530
535
  --tw-backdrop-opacity: ;
531
536
  --tw-backdrop-saturate: ;
532
537
  --tw-backdrop-sepia: ;
538
+ --tw-contain-size: ;
539
+ --tw-contain-layout: ;
540
+ --tw-contain-paint: ;
541
+ --tw-contain-style: ;
533
542
  }
534
543
  .sr-only {
535
544
  position: absolute;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adhese/sdk-devtools",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.5.0",
5
5
  "description": "Adhese SDK Devtools",
6
6
  "license": "GPL-3.0",
7
7
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "lint:fix": "eslint --fix .",
23
23
  "clean": "rm -rf dist",
24
24
  "typecheck": "tsc --noEmit",
25
- "release": "npm publish --access public"
25
+ "prepareRelease": "npm run build"
26
26
  },
27
27
  "dependencies": {
28
28
  "@radix-ui/react-dialog": "^1.0.5",
@@ -40,7 +40,7 @@
40
40
  "tailwindcss-animate": "^1.0.7"
41
41
  },
42
42
  "devDependencies": {
43
- "@types/react": "^18.2.71",
44
- "@types/react-dom": "^18.2.22"
43
+ "@types/react": "^18.2.74",
44
+ "@types/react-dom": "^18.2.23"
45
45
  }
46
46
  }