@cruglobal/godtools-shared 0.9.0-SNAPSHOT.1218 → 0.9.0-SNAPSHOT.1237
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/kotlin-kotlin-stdlib-js-ir.js +112 -112
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-npm.d.ts +108 -3
- package/kotlin-mpp-godtools-tool-parser-parser.js +1296 -1023
- package/kotlin-mpp-godtools-tool-parser-parser.js.map +1 -1
- package/package.json +1 -1
|
@@ -132,6 +132,36 @@ export declare namespace org.cru.godtools.shared.tool.parser.model {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
+
export declare namespace org.cru.godtools.shared.tool.parser.model {
|
|
136
|
+
/* @ts-ignore: extends class with private primary constructor */
|
|
137
|
+
class Animation extends org.cru.godtools.shared.tool.parser.model.Content implements org.cru.godtools.shared.tool.parser.model.Clickable {
|
|
138
|
+
private constructor();
|
|
139
|
+
get resource(): Nullable<org.cru.godtools.shared.tool.parser.model.Resource>;
|
|
140
|
+
get loop(): boolean;
|
|
141
|
+
get autoPlay(): boolean;
|
|
142
|
+
get _playListeners(): any/* kotlin.collections.Set<org.cru.godtools.shared.tool.parser.model.EventId> */;
|
|
143
|
+
get _stopListeners(): any/* kotlin.collections.Set<org.cru.godtools.shared.tool.parser.model.EventId> */;
|
|
144
|
+
get _events(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.EventId> */;
|
|
145
|
+
get url(): Nullable<string>;
|
|
146
|
+
get playListeners(): Array<org.cru.godtools.shared.tool.parser.model.EventId>;
|
|
147
|
+
get stopListeners(): Array<org.cru.godtools.shared.tool.parser.model.EventId>;
|
|
148
|
+
get isClickable(): boolean;
|
|
149
|
+
get events(): Array<org.cru.godtools.shared.tool.parser.model.EventId>;
|
|
150
|
+
readonly __doNotUseOrImplementIt: org.cru.godtools.shared.tool.parser.model.Clickable["__doNotUseOrImplementIt"];
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
export declare namespace org.cru.godtools.shared.tool.parser.model {
|
|
154
|
+
class AspectRatio {
|
|
155
|
+
constructor(width: number, height: number);
|
|
156
|
+
get width(): number;
|
|
157
|
+
get height(): number;
|
|
158
|
+
get ratio(): number;
|
|
159
|
+
copy(width?: number, height?: number): org.cru.godtools.shared.tool.parser.model.AspectRatio;
|
|
160
|
+
toString(): string;
|
|
161
|
+
hashCode(): number;
|
|
162
|
+
equals(other: Nullable<any>): boolean;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
135
165
|
export declare namespace org.cru.godtools.shared.tool.parser.model {
|
|
136
166
|
interface Clickable /* extends org.cru.godtools.shared.tool.parser.model.Base */ {
|
|
137
167
|
readonly isClickable: boolean;
|
|
@@ -276,6 +306,51 @@ export declare namespace org.cru.godtools.shared.tool.parser.model {
|
|
|
276
306
|
readonly __doNotUseOrImplementIt: org.cru.godtools.shared.tool.parser.model.Clickable["__doNotUseOrImplementIt"];
|
|
277
307
|
}
|
|
278
308
|
}
|
|
309
|
+
export declare namespace org.cru.godtools.shared.tool.parser.model {
|
|
310
|
+
/* @ts-ignore: extends class with private primary constructor */
|
|
311
|
+
class Input extends org.cru.godtools.shared.tool.parser.model.Content {
|
|
312
|
+
private constructor();
|
|
313
|
+
get type(): org.cru.godtools.shared.tool.parser.model.Input.Type;
|
|
314
|
+
get name(): Nullable<string>;
|
|
315
|
+
get value(): Nullable<string>;
|
|
316
|
+
get isRequired(): boolean;
|
|
317
|
+
get label(): Nullable<org.cru.godtools.shared.tool.parser.model.Text>;
|
|
318
|
+
get placeholder(): Nullable<org.cru.godtools.shared.tool.parser.model.Text>;
|
|
319
|
+
validateValue(raw: Nullable<string>): Nullable<org.cru.godtools.shared.tool.parser.model.Input.Error>;
|
|
320
|
+
}
|
|
321
|
+
namespace Input {
|
|
322
|
+
abstract class Error {
|
|
323
|
+
protected constructor();
|
|
324
|
+
static get Required(): {
|
|
325
|
+
} & org.cru.godtools.shared.tool.parser.model.Input.Error;
|
|
326
|
+
static get InvalidEmail(): {
|
|
327
|
+
} & org.cru.godtools.shared.tool.parser.model.Input.Error;
|
|
328
|
+
}
|
|
329
|
+
abstract class Type {
|
|
330
|
+
private constructor();
|
|
331
|
+
static get TEXT(): org.cru.godtools.shared.tool.parser.model.Input.Type & {
|
|
332
|
+
get name(): "TEXT";
|
|
333
|
+
get ordinal(): 0;
|
|
334
|
+
};
|
|
335
|
+
static get EMAIL(): org.cru.godtools.shared.tool.parser.model.Input.Type & {
|
|
336
|
+
get name(): "EMAIL";
|
|
337
|
+
get ordinal(): 1;
|
|
338
|
+
};
|
|
339
|
+
static get PHONE(): org.cru.godtools.shared.tool.parser.model.Input.Type & {
|
|
340
|
+
get name(): "PHONE";
|
|
341
|
+
get ordinal(): 2;
|
|
342
|
+
};
|
|
343
|
+
static get HIDDEN(): org.cru.godtools.shared.tool.parser.model.Input.Type & {
|
|
344
|
+
get name(): "HIDDEN";
|
|
345
|
+
get ordinal(): 3;
|
|
346
|
+
};
|
|
347
|
+
static values(): Array<org.cru.godtools.shared.tool.parser.model.Input.Type>;
|
|
348
|
+
static valueOf(value: string): org.cru.godtools.shared.tool.parser.model.Input.Type;
|
|
349
|
+
get name(): "TEXT" | "EMAIL" | "PHONE" | "HIDDEN";
|
|
350
|
+
get ordinal(): 0 | 1 | 2 | 3;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
279
354
|
export declare namespace org.cru.godtools.shared.tool.parser.model {
|
|
280
355
|
class Manifest /* extends org.cru.godtools.shared.tool.parser.model.BaseModel */ /* implements org.cru.godtools.shared.tool.parser.model.Styles */ {
|
|
281
356
|
private constructor();
|
|
@@ -291,7 +366,7 @@ export declare namespace org.cru.godtools.shared.tool.parser.model {
|
|
|
291
366
|
set _pages(value: any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.page.Page> */);
|
|
292
367
|
get shareables(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.shareable.Shareable> */;
|
|
293
368
|
get relatedFiles(): any/* kotlin.collections.Set<string> */;
|
|
294
|
-
static createTestManifest(config?: org.cru.godtools.shared.tool.parser.ParserConfig, type?: org.cru.godtools.shared.tool.parser.model.Manifest.Type, code?: Nullable<string>, locale?: Nullable<string>, primaryColor?: string, primaryTextColor?: string, navBarColor?: Nullable<string>, navBarControlColor?: Nullable<string>, backgroundColor?: string, cardBackgroundColor?: Nullable<string>, categoryLabelColor?: Nullable<string>, pageControlColor?: string, multiselectOptionSelectedColor?: Nullable<string>, textColor?: string, textScale?: number, resources?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.Resource> */>, shareables?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.shareable.Shareable> */>, tips?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tips.Tip> */>, pages?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.page.Page> */>): org.cru.godtools.shared.tool.parser.model.Manifest;
|
|
369
|
+
static createTestManifest(config?: org.cru.godtools.shared.tool.parser.ParserConfig, type?: org.cru.godtools.shared.tool.parser.model.Manifest.Type, code?: Nullable<string>, locale?: Nullable<string>, primaryColor?: string, primaryTextColor?: string, navBarColor?: Nullable<string>, navBarControlColor?: Nullable<string>, backgroundColor?: string, cardBackgroundColor?: Nullable<string>, categoryLabelColor?: Nullable<string>, pageControlColor?: string, multiselectOptionBackgroundColor?: Nullable<string>, multiselectOptionSelectedColor?: Nullable<string>, textColor?: string, textScale?: number, resources?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.Resource> */>, shareables?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.shareable.Shareable> */>, tips?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tips.Tip> */>, pages?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.page.Page> */>): org.cru.godtools.shared.tool.parser.model.Manifest;
|
|
295
370
|
get hasTips(): boolean;
|
|
296
371
|
findPage(id: Nullable<string>): Nullable<org.cru.godtools.shared.tool.parser.model.page.Page>;
|
|
297
372
|
get dismissListeners(): Array<org.cru.godtools.shared.tool.parser.model.EventId>;
|
|
@@ -412,6 +487,34 @@ export declare namespace org.cru.godtools.shared.tool.parser.model {
|
|
|
412
487
|
}
|
|
413
488
|
}
|
|
414
489
|
}
|
|
490
|
+
export declare namespace org.cru.godtools.shared.tool.parser.model {
|
|
491
|
+
/* @ts-ignore: extends class with private primary constructor */
|
|
492
|
+
class Video extends org.cru.godtools.shared.tool.parser.model.Content {
|
|
493
|
+
private constructor();
|
|
494
|
+
get provider(): org.cru.godtools.shared.tool.parser.model.Video.Provider;
|
|
495
|
+
get videoId(): Nullable<string>;
|
|
496
|
+
get aspectRatio(): org.cru.godtools.shared.tool.parser.model.AspectRatio;
|
|
497
|
+
get gravity(): org.cru.godtools.shared.tool.parser.model.Gravity.Horizontal;
|
|
498
|
+
get width(): org.cru.godtools.shared.tool.parser.model.Dimension;
|
|
499
|
+
}
|
|
500
|
+
namespace Video {
|
|
501
|
+
abstract class Provider {
|
|
502
|
+
private constructor();
|
|
503
|
+
static get YOUTUBE(): org.cru.godtools.shared.tool.parser.model.Video.Provider & {
|
|
504
|
+
get name(): "YOUTUBE";
|
|
505
|
+
get ordinal(): 0;
|
|
506
|
+
};
|
|
507
|
+
static get UNKNOWN(): org.cru.godtools.shared.tool.parser.model.Video.Provider & {
|
|
508
|
+
get name(): "UNKNOWN";
|
|
509
|
+
get ordinal(): 1;
|
|
510
|
+
};
|
|
511
|
+
static values(): Array<org.cru.godtools.shared.tool.parser.model.Video.Provider>;
|
|
512
|
+
static valueOf(value: string): org.cru.godtools.shared.tool.parser.model.Video.Provider;
|
|
513
|
+
get name(): "YOUTUBE" | "UNKNOWN";
|
|
514
|
+
get ordinal(): 0 | 1;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
415
518
|
export declare namespace org.cru.godtools.shared.tool.parser.model.page {
|
|
416
519
|
abstract class Page /* extends org.cru.godtools.shared.tool.parser.model.BaseModel */ implements org.cru.godtools.shared.tool.parser.model.HasAnalyticsEvents/*, org.cru.godtools.shared.tool.parser.model.Styles */ {
|
|
417
520
|
get id(): string;
|
|
@@ -486,13 +589,15 @@ export declare namespace org.cru.godtools.shared.tool.parser.model.tract {
|
|
|
486
589
|
get isLastPage(): boolean;
|
|
487
590
|
get header(): Nullable<org.cru.godtools.shared.tool.parser.model.tract.Header>;
|
|
488
591
|
get hero(): Nullable<org.cru.godtools.shared.tool.parser.model.tract.Hero>;
|
|
489
|
-
get
|
|
592
|
+
get _modals(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tract.Modal> */;
|
|
490
593
|
get callToAction(): org.cru.godtools.shared.tool.parser.model.tract.CallToAction;
|
|
491
594
|
static createTestTractPage(manifest?: org.cru.godtools.shared.tool.parser.model.Manifest, fileName?: Nullable<string>, backgroundColor?: string, backgroundImage?: Nullable<string>, primaryColor?: Nullable<string>, backgroundImageGravity?: org.cru.godtools.shared.tool.parser.model.Gravity, backgroundImageScaleType?: any/* org.cru.godtools.shared.tool.parser.model.ImageScaleType */, textColor?: Nullable<string>, textScale?: number, cardBackgroundColor?: Nullable<string>, cardTextColor?: Nullable<string>, cards?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.tract.TractPage) => Nullable<any>/* Nullable<kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tract.TractPage.Card>> */>, callToAction?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.tract.TractPage) => Nullable<org.cru.godtools.shared.tool.parser.model.tract.CallToAction>>): org.cru.godtools.shared.tool.parser.model.tract.TractPage;
|
|
492
595
|
findModal(id: Nullable<string>): Nullable<org.cru.godtools.shared.tool.parser.model.tract.Modal>;
|
|
493
|
-
get
|
|
596
|
+
get _cards(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tract.TractPage.Card> */;
|
|
494
597
|
get visibleCards(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tract.TractPage.Card> */;
|
|
495
598
|
get cardTextColor(): string;
|
|
599
|
+
get cards(): Array<org.cru.godtools.shared.tool.parser.model.tract.TractPage.Card>;
|
|
600
|
+
get modals(): Array<org.cru.godtools.shared.tool.parser.model.tract.Modal>;
|
|
496
601
|
getAnalyticsEvents(type: org.cru.godtools.shared.tool.parser.model.AnalyticsEvent.Trigger): Array<org.cru.godtools.shared.tool.parser.model.AnalyticsEvent>;
|
|
497
602
|
}
|
|
498
603
|
namespace TractPage {
|