@adstore/templates 1.0.0 → 2.0.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +18 -2
  2. package/dist/style.css +1613 -0
  3. package/dist/templates.es.js +2707 -0
  4. package/dist/templates.umd.js +2710 -0
  5. package/package.json +10 -24
  6. package/dist/adstore/apps/templates/src/cacheDriver.d.ts +0 -7
  7. package/dist/adstore/apps/templates/src/constants/animations.d.ts +0 -5
  8. package/dist/adstore/apps/templates/src/constants/breakpoints.d.ts +0 -6
  9. package/dist/adstore/apps/templates/src/plugins/classNamesPlugin.d.ts +0 -22
  10. package/dist/adstore/apps/templates/src/plugins/giftOpenPlugin.d.ts +0 -10
  11. package/dist/adstore/apps/templates/src/plugins/googleFontsPlugin.d.ts +0 -3
  12. package/dist/adstore/apps/templates/src/plugins/highlightPlugin.d.ts +0 -11
  13. package/dist/adstore/apps/templates/src/plugins/index.d.ts +0 -12
  14. package/dist/adstore/apps/templates/src/plugins/injectNodePlugin.d.ts +0 -23
  15. package/dist/adstore/apps/templates/src/plugins/legalInfoPlugin.d.ts +0 -17
  16. package/dist/adstore/apps/templates/src/plugins/patchStylesPlugin.d.ts +0 -12
  17. package/dist/adstore/apps/templates/src/plugins/statePlugin.d.ts +0 -9
  18. package/dist/adstore/apps/templates/src/promos/BonusCard/index.d.ts +0 -2
  19. package/dist/adstore/apps/templates/src/promos/BonusCard/script.d.ts +0 -3
  20. package/dist/adstore/apps/templates/src/promos/ComplexGift/chunks/cardChunk/index.d.ts +0 -4
  21. package/dist/adstore/apps/templates/src/promos/ComplexGift/chunks/cardChunk/script.d.ts +0 -3
  22. package/dist/adstore/apps/templates/src/promos/ComplexGift/index.d.ts +0 -6
  23. package/dist/adstore/apps/templates/src/promos/ComplexGift/script.d.ts +0 -9
  24. package/dist/adstore/apps/templates/src/promos/ComplexPopup/chunks/popupCardChunk/index.d.ts +0 -4
  25. package/dist/adstore/apps/templates/src/promos/ComplexPopup/chunks/popupCardChunk/script.d.ts +0 -3
  26. package/dist/adstore/apps/templates/src/promos/ComplexPopup/index.d.ts +0 -6
  27. package/dist/adstore/apps/templates/src/promos/ComplexPopup/script.d.ts +0 -2
  28. package/dist/adstore/apps/templates/src/promos/ExpressPopup/chunks/matchChunk/index.d.ts +0 -4
  29. package/dist/adstore/apps/templates/src/promos/ExpressPopup/index.d.ts +0 -6
  30. package/dist/adstore/apps/templates/src/promos/ExpressPopup/script.d.ts +0 -3
  31. package/dist/adstore/apps/templates/src/promos/SimplePopup/chunks/textChunk/index.d.ts +0 -3
  32. package/dist/adstore/apps/templates/src/promos/SimplePopup/index.d.ts +0 -6
  33. package/dist/adstore/apps/templates/src/promos/SimplePopup/script.d.ts +0 -3
  34. package/dist/adstore/apps/templates/src/promos/WideCard/chunks/matchesOneTwoSlideChunk/index.d.ts +0 -3
  35. package/dist/adstore/apps/templates/src/promos/WideCard/chunks/matchesOneTwoSlideChunk/script.d.ts +0 -3
  36. package/dist/adstore/apps/templates/src/promos/WideCard/chunks/matchesSlideChunk/index.d.ts +0 -3
  37. package/dist/adstore/apps/templates/src/promos/WideCard/chunks/matchesSlideChunk/script.d.ts +0 -3
  38. package/dist/adstore/apps/templates/src/promos/WideCard/chunks/textSlideChunk/index.d.ts +0 -3
  39. package/dist/adstore/apps/templates/src/promos/WideCard/chunks/textSlideChunk/script.d.ts +0 -3
  40. package/dist/adstore/apps/templates/src/promos/WideCard/index.d.ts +0 -8
  41. package/dist/adstore/apps/templates/src/promos/WideCard/script.d.ts +0 -3
  42. package/dist/adstore/apps/templates/src/promos/index.d.ts +0 -7
  43. package/dist/adstore/apps/templates/src/renderDriver.d.ts +0 -48
  44. package/dist/adstore/apps/templates/src/utils/htmlToElement.d.ts +0 -1
  45. package/dist/adstore/apps/templates/src/utils/injectLink.d.ts +0 -6
  46. package/dist/adstore/apps/templates/src/utils/injectStyle.d.ts +0 -1
  47. package/dist/adstore/apps/templates/src/utils/injectStyleRules.d.ts +0 -2
  48. package/dist/adstore/apps/templates/src/utils/isRenderDriver.d.ts +0 -2
  49. package/dist/adstore/apps/templates/src/utils/isTemplate.d.ts +0 -1
  50. package/dist/adstore/apps/templates/src/utils/switchTextAlignToFlex.d.ts +0 -1
  51. package/dist/adstore/apps/templates/src/utils/toggleClassName.d.ts +0 -1
  52. package/dist/my-lib.d.ts +0 -1
  53. package/dist/my-lib.es.js +0 -2463
  54. package/dist/my-lib.umd.js +0 -247
package/package.json CHANGED
@@ -1,40 +1,26 @@
1
1
  {
2
2
  "name": "@adstore/templates",
3
- "version": "1.0.0",
4
3
  "private": false,
4
+ "version": "2.0.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
- "main": "./dist/my-lib.umd.cjs",
10
- "module": "./dist/my-lib.js",
11
- "exports": {
12
- ".": {
13
- "import": "./dist/my-lib.js",
14
- "require": "./dist/my-lib.umd.cjs"
15
- }
16
- },
17
- "engines": {
18
- "node": ">=14.18.3"
19
- },
9
+ "types": "./dist/templates.es.d.ts",
10
+ "main": "./dist/templates.umd.js",
11
+ "module": "./dist/templates.es.js",
20
12
  "scripts": {
21
- "lint": "eslint **/*.ts*",
22
- "lint:fix": "eslint **/*.ts* --fix",
23
- "typecheck": "tsc --noEmit",
13
+ "dev": "vite build --watch",
24
14
  "build": "vite build",
25
- "dev": "vite build --watch"
15
+ "preview": "vite preview"
26
16
  },
27
17
  "dependencies": {
28
- "@adstore/utils": "*",
29
18
  "classnames": "^2.3.2",
30
- "lodash.merge": "^4.6.2",
31
- "lodash.mergewith": "^4.6.2"
19
+ "preact": "^10.13.1"
32
20
  },
33
21
  "devDependencies": {
34
- "@adstore/eslint-config-custom": "*",
35
- "prettier": "^2.5.1",
36
- "sass": "^1.60.0",
37
- "typescript": "^4.4.4",
38
- "vite-plugin-dts": "^2.2.0"
22
+ "@preact/preset-vite": "^2.5.0",
23
+ "typescript": "^5.0.2",
24
+ "vite": "^4.3.2"
39
25
  }
40
26
  }
@@ -1,7 +0,0 @@
1
- import { AnyObject } from '@adstore/utils';
2
- export declare const cacheDriver: (id: string) => {
3
- update: (id: any, data: AnyObject) => void;
4
- get: <TResult = unknown>(id: string) => TResult;
5
- cache: any[];
6
- id: string;
7
- };
@@ -1,5 +0,0 @@
1
- export declare const slideAnimations: {
2
- label: string;
3
- value: string;
4
- animationName: string;
5
- }[];
@@ -1,6 +0,0 @@
1
- export declare const BREAKPOINTS: {
2
- readonly mobile: 320;
3
- readonly tablet: 768;
4
- readonly laptop: 1024;
5
- readonly desktop: 1920;
6
- };
@@ -1,22 +0,0 @@
1
- import classNames from 'classnames';
2
- import { EmitterType } from '../renderDriver';
3
- /**
4
- * Плагин устанавливает classList. Используется либа для классов
5
- * https://github.com/JedWatson/classnames
6
- *
7
- * Плюс, запоминает классы которые были при первом вызове правила
8
- * и эти классы не перезаписывает
9
- *
10
- * renderDriver.render({
11
- * [layer]: {
12
- * $classNames: ['testClass'] | 'class' | {[class]: true}
13
- * }
14
- * })
15
- */
16
- declare module 'src/renderDriver' {
17
- interface RenderDriverRule {
18
- $classNames?: classNames.Argument | classNames.ArgumentArray;
19
- }
20
- }
21
- declare const _default: (emitter: EmitterType) => void;
22
- export default _default;
@@ -1,10 +0,0 @@
1
- import { EmitterType } from '../renderDriver';
2
- declare const defaultOptions: {
3
- toggleTarget: string;
4
- bodyTarget: string;
5
- closeTarget: string;
6
- delay: number;
7
- openClassName: string;
8
- };
9
- declare const _default: (options: typeof defaultOptions) => (emitter: EmitterType) => void;
10
- export default _default;
@@ -1,3 +0,0 @@
1
- import { EmitterType } from '../renderDriver';
2
- declare const _default: (emitter: EmitterType) => void;
3
- export default _default;
@@ -1,11 +0,0 @@
1
- import { EmitterType } from '../renderDriver';
2
- /**
3
- * Подсвечивает выбранный слой
4
- */
5
- declare module 'src/renderDriver' {
6
- interface RenderDriverRule {
7
- $highlight?: boolean;
8
- }
9
- }
10
- declare const _default: (emitter: EmitterType) => void;
11
- export default _default;
@@ -1,12 +0,0 @@
1
- import classNamesPlugin from './classNamesPlugin';
2
- import containerWidthPlugin from './containerWidthPlugin';
3
- import deviceClassNamesPlugin from './deviceClassNamesPlugin';
4
- import giftOpenPlugin from './giftOpenPlugin';
5
- import googleFontsPlugin from './googleFontsPlugin';
6
- import highlightPlugin from './highlightPlugin';
7
- import injectNodePlugin from './injectNodePlugin';
8
- import legalInfoPlugin from './legalInfoPlugin';
9
- import patchRulesPlugin from './patchRulesPlugin';
10
- import patchStylesPlugin from './patchStylesPlugin';
11
- import statePlugin from './statePlugin';
12
- export { classNamesPlugin, containerWidthPlugin, deviceClassNamesPlugin, giftOpenPlugin, googleFontsPlugin, highlightPlugin, injectNodePlugin, legalInfoPlugin, patchRulesPlugin, patchStylesPlugin, statePlugin };
@@ -1,23 +0,0 @@
1
- import { EmitterType } from '../renderDriver';
2
- /**
3
- * Плагин может добавлять RenderDriver внутрь слоёв
4
- *
5
- * renderDriver.render({
6
- * [layerName]: {
7
- * $children: RenderDriver | RenderDriver[]
8
- * }
9
- * })
10
- *
11
- * Как это работает: Прилетает массив renderDriver которые должны быть добавлены
12
- * фильтруются только те которые ещё не были отрисованы
13
- * потом оставшиеся элементы добавляются отрисовываются в родителя
14
- *
15
- * Как удалить ребёнка: Наверху (где вызывается render) у ребёнка вызвать .destroy()
16
- */
17
- declare module 'src/renderDriver' {
18
- interface RenderDriverRule {
19
- $children?: RenderDriverInstance | RenderDriverInstance[];
20
- }
21
- }
22
- declare const _default: (emitter: EmitterType) => void;
23
- export default _default;
@@ -1,17 +0,0 @@
1
- import { EmitterType } from '../renderDriver';
2
- /**
3
- * Плагин работает с разворачиванием юр. информации
4
- */
5
- declare module 'src/renderDriver' {
6
- interface RenderDriverRule {
7
- $legalOpenText?: string;
8
- $legalCloseText?: string;
9
- }
10
- }
11
- declare const defaultOptions: {
12
- wrapperLayerName: string;
13
- buttonLayerName: string;
14
- openClassName: string;
15
- };
16
- declare const _default: (options: typeof defaultOptions) => (emitter: EmitterType) => void;
17
- export default _default;
@@ -1,12 +0,0 @@
1
- import { EmitterType } from '../renderDriver';
2
- import { StyleRules } from '../utils/injectStyleRules';
3
- /**
4
- * Этот плагин применяет inline стили для слоёв
5
- */
6
- declare module 'src/renderDriver' {
7
- interface RenderDriverRule {
8
- $styles?: StyleRules;
9
- }
10
- }
11
- declare const _default: (emitter: EmitterType) => void;
12
- export default _default;
@@ -1,9 +0,0 @@
1
- import { EmitterType } from '../renderDriver';
2
- export declare const globalCache: {
3
- update: (id: any, data: import("@adstore/utils").AnyObject<any>) => void;
4
- get: <TResult = unknown>(id: string) => TResult;
5
- cache: any[];
6
- id: string;
7
- };
8
- declare const _default: (emitter: EmitterType, id: string) => void;
9
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (id: string) => import('../../renderDriver').RenderDriverInstance<string, AnyObject>;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import { EmitterType } from '../../renderDriver';
2
- declare const _default: (emitter: EmitterType) => void;
3
- export default _default;
@@ -1,4 +0,0 @@
1
- type Layers = 'root' | 'logo' | 'line' | 'text' | 'button' | 'buttonText' | 'legal';
2
- export type ComplexGiftBonusDriver = typeof driver;
3
- declare const driver: (id: string) => import('../../../../renderDriver').RenderDriverInstance<Layers, AnyObject>;
4
- export default driver;
@@ -1,3 +0,0 @@
1
- import { EmitterType } from '../../../../renderDriver';
2
- declare const _default: (emitter: EmitterType) => void;
3
- export default _default;
@@ -1,6 +0,0 @@
1
- type Layers = 'root' | 'icon' | 'iconTarget' | 'body' | 'arrow' | 'container' | 'close' | 'promotion' | 'headerIcon' | 'title' | 'cards';
2
- export type ComplexGiftDriver = typeof driver;
3
- declare const driver: (id: string) => import('../../renderDriver').RenderDriverInstance<Layers, {
4
- bonus: (id: string) => import('../../renderDriver').RenderDriverInstance<"button" | "root" | "logo" | "legal" | "text" | "line" | "buttonText", AnyObject>;
5
- }>;
6
- export default driver;
@@ -1,9 +0,0 @@
1
- import { EmitterType } from '../../renderDriver';
2
- export declare const animationsMap: {
3
- fade: string;
4
- pulse: string;
5
- wiggle: string;
6
- gradient: string;
7
- };
8
- declare const _default: (emitter: EmitterType) => void;
9
- export default _default;
@@ -1,4 +0,0 @@
1
- type Layers = 'root' | 'header' | 'logo' | 'text' | 'button' | 'legal';
2
- export type ComplexPopupBonusDriver = typeof driver;
3
- declare const driver: (id: string) => import('../../../../renderDriver').RenderDriverInstance<Layers, AnyObject>;
4
- export default driver;
@@ -1,3 +0,0 @@
1
- import { EmitterType } from '../../../../renderDriver';
2
- declare const _default: (emitter: EmitterType) => void;
3
- export default _default;
@@ -1,6 +0,0 @@
1
- type Layers = 'root' | 'title' | 'cards';
2
- export type ComplexPopupDriver = typeof driver;
3
- declare const driver: (id: string) => import('../../renderDriver').RenderDriverInstance<Layers, {
4
- bonus: (id: string) => import('../../renderDriver').RenderDriverInstance<"button" | "header" | "root" | "logo" | "legal" | "text", AnyObject>;
5
- }>;
6
- export default driver;
@@ -1,2 +0,0 @@
1
- declare const _default: (emitter: EmitterType) => void;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- type Layers = 'root' | 'league' | 'logo' | 'teams' | 'teamName' | 'oddLabel' | 'oddValue';
2
- export type ExpressPopupMatchDriver = typeof driver;
3
- declare const driver: (id: string) => import('../../../../renderDriver').RenderDriverInstance<Layers, AnyObject>;
4
- export default driver;
@@ -1,6 +0,0 @@
1
- type Layers = 'root' | 'body' | 'head' | 'title' | 'logo' | 'content' | 'text' | 'buttonWrapper' | 'buttonHead' | 'buttonTarget' | 'legal';
2
- export type ExpressPopupDriver = typeof driver;
3
- declare const driver: (id: string) => import('../../renderDriver').RenderDriverInstance<Layers, {
4
- match: (id: string) => import('../../renderDriver').RenderDriverInstance<"root" | "logo" | "teamName" | "league" | "teams" | "oddLabel" | "oddValue", AnyObject>;
5
- }>;
6
- export default driver;
@@ -1,3 +0,0 @@
1
- import { EmitterType } from '../../renderDriver';
2
- declare const _default: (emitter: EmitterType) => void;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- export type TextChunkLayers = 'root';
2
- declare const _default: (id: string) => import('../../../../renderDriver').RenderDriverInstance<"root", AnyObject>;
3
- export default _default;
@@ -1,6 +0,0 @@
1
- type Layers = 'root' | 'body' | 'logo' | 'content' | 'button' | 'legal';
2
- export type SimplePopupDriver = typeof driver;
3
- declare const driver: (id: string) => import('../../renderDriver').RenderDriverInstance<Layers, {
4
- line: (id: string) => import('../../renderDriver').RenderDriverInstance<"root", AnyObject>;
5
- }>;
6
- export default driver;
@@ -1,3 +0,0 @@
1
- import { EmitterType } from '../../renderDriver';
2
- declare const _default: (emitter: EmitterType) => void;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- export type MatchesOneTwoSlideChunkLayers = 'root' | 'logo' | 'team1Name' | 'team2Name' | 'teamName' | 'titleLabel' | 'titleValue' | 'value' | 'value1' | 'value2';
2
- declare const _default: (id: string) => import('../../../../renderDriver').RenderDriverInstance<MatchesOneTwoSlideChunkLayers, AnyObject>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { EmitterType } from '../../../../renderDriver';
2
- declare const _default: (emitter: EmitterType) => void;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- export type MatchesSlideChunkLayers = 'side1Logo' | 'side1Label' | 'coefX' | 'coefValue' | 'side2Logo' | 'side2Label';
2
- declare const _default: (id: string) => import('../../../../renderDriver').RenderDriverInstance<MatchesSlideChunkLayers, AnyObject>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { EmitterType } from '../../../../renderDriver';
2
- declare const _default: (emitter: EmitterType) => void;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- export type TextSlideChunkLayers = 'root';
2
- declare const _default: (id: string) => import('../../../../renderDriver').RenderDriverInstance<"root", AnyObject>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { EmitterType } from '../../../../renderDriver';
2
- declare const _default: (emitter: EmitterType) => void;
3
- export default _default;
@@ -1,8 +0,0 @@
1
- type Layers = 'root' | 'background' | 'logo' | 'slides' | 'button';
2
- export type WideCardDriver = typeof driver;
3
- declare const driver: (id: string) => import('../../renderDriver').RenderDriverInstance<Layers, {
4
- text: (id: string) => import('../../renderDriver').RenderDriverInstance<"root", AnyObject>;
5
- matches: (id: string) => import('../../renderDriver').RenderDriverInstance<import("./chunks/matchesSlideChunk").MatchesSlideChunkLayers, AnyObject>;
6
- matchesOneTwo: (id: string) => import('../../renderDriver').RenderDriverInstance<import("./chunks/matchesOneTwoSlideChunk").MatchesOneTwoSlideChunkLayers, AnyObject>;
7
- }>;
8
- export default driver;
@@ -1,3 +0,0 @@
1
- import { EmitterType } from '../../renderDriver';
2
- declare const _default: (emitter: EmitterType) => void;
3
- export default _default;
@@ -1,7 +0,0 @@
1
- import WideCard from './WideCard';
2
- import SimplePopup from './SimplePopup';
3
- import ExpressPopup from './ExpressPopup';
4
- import ComplexPopup from './ComplexPopup';
5
- import ComplexGift from './ComplexGift';
6
- import BonusCard from './BonusCard';
7
- export { WideCard, SimplePopup, ExpressPopup, ComplexPopup, ComplexGift, BonusCard };
@@ -1,48 +0,0 @@
1
- import { Layer, Callback } from '@adstore/utils';
2
- import { EventEmitter } from './eventEmitter';
3
- export interface RenderDriverRule {
4
- [key: string]: any;
5
- }
6
- export type AnyRules<TLayers extends string> = Record<TLayers, RenderDriverRule>;
7
- export type EmitterType<TLayers extends string = string> = EventEmitter<EmitterEvents<TLayers>>;
8
- interface EmitterEvents<TLayers extends string, TChunks = Chunks> {
9
- mount: Callback<[{
10
- layers: Layer<TLayers>[];
11
- chunks: TChunks;
12
- }], Callback | void>;
13
- destroy: Callback;
14
- render: Callback<[{
15
- rules: AnyRules<TLayers>;
16
- chunks: TChunks;
17
- }]>;
18
- renderNode: Callback<[{
19
- rule: RenderDriverRule;
20
- layer: Layer<TLayers>;
21
- chunks: TChunks;
22
- }]>;
23
- runRender: Callback<[Partial<AnyRules<TLayers>>]>;
24
- }
25
- type Plugin = Callback<[EmitterType, string], void>;
26
- export type Chunks = Record<string, RenderDriver>;
27
- interface DriverOptions<TChunks extends Chunks> {
28
- html: string;
29
- styles?: string[];
30
- plugins?: Plugin[];
31
- chunks?: TChunks;
32
- }
33
- export type RenderDriver<TLayers extends string = string, TChunks extends Chunks = Chunks> = (id: string) => RenderDriverInstance<TLayers, TChunks>;
34
- export type InstanceFromDriver<TInput extends RenderDriver> = ReturnType<TInput>;
35
- export type LayersFromDriver<TInput> = TInput extends RenderDriver<infer TLayers> ? TLayers : TInput;
36
- export type RenderDriverInstance<TLayers extends string = string, TChunks extends Chunks = Chunks> = {
37
- render: (rules: Partial<AnyRules<TLayers>>) => void;
38
- mount: (target: HTMLElement) => RenderDriverInstance['destroy'];
39
- destroy: Callback<unknown[], void>;
40
- addPlugins: Callback<Plugin[], void>;
41
- getState: Callback<unknown[], State>;
42
- id: string;
43
- on: EmitterType<TLayers>['on'];
44
- chunks?: TChunks;
45
- };
46
- type State = 'mounted' | 'declare' | 'destroyed';
47
- export declare const renderDriver: <TLayers extends string = string, TChunks extends any = AnyObject>({ html, styles, plugins, chunks }: DriverOptions<TChunks>) => (id: string) => RenderDriverInstance<TLayers, TChunks>;
48
- export {};
@@ -1 +0,0 @@
1
- export declare const htmlToElement: (htmlString: string) => ChildNode | null;
@@ -1,6 +0,0 @@
1
- interface Options {
2
- rel: string;
3
- href: string;
4
- }
5
- export declare const injectLink: ({ rel, href }: Options) => HTMLLinkElement;
6
- export {};
@@ -1 +0,0 @@
1
- export declare const injectStyle: (styleString: string) => HTMLStyleElement;
@@ -1,2 +0,0 @@
1
- export type StyleRules = Partial<Omit<CSSStyleDeclaration, 'setProperty' | 'getPropertyPriority' | 'getPropertyValue'>>;
2
- export declare const injectStyleRules: <TKey extends number | "left" | "right" | "contain" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "all" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backdropFilter" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clear" | "clip" | "clipPath" | "clipRule" | "color" | "colorInterpolation" | "colorInterpolationFilters" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "container" | "containerName" | "containerType" | "content" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "cursor" | "direction" | "display" | "dominantBaseline" | "emptyCells" | "fill" | "fillOpacity" | "fillRule" | "filter" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "floodColor" | "floodOpacity" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontPalette" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "fontWeight" | "gap" | "grid" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "hyphenateCharacter" | "hyphens" | "imageOrientation" | "imageRendering" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "length" | "letterSpacing" | "lightingColor" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marker" | "markerEnd" | "markerMid" | "markerStart" | "mask" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offset" | "offsetDistance" | "offsetPath" | "offsetRotate" | "opacity" | "order" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowAnchor" | "overflowClipMargin" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "paintOrder" | "parentRule" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "printColorAdjust" | "quotes" | "resize" | "rotate" | "rowGap" | "rubyPosition" | "scale" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textAnchor" | "textCombineUpright" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "top" | "touchAction" | "transform" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "translate" | "unicodeBidi" | "userSelect" | "verticalAlign" | "visibility" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextSizeAdjust" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "zIndex" | "item" | "removeProperty">(node: HTMLElement, key: TKey, value: Partial<Omit<CSSStyleDeclaration, "setProperty" | "getPropertyPriority" | "getPropertyValue">>[TKey]) => void;
@@ -1,2 +0,0 @@
1
- import { RenderDriverInstance } from '../renderDriver';
2
- export declare const isRenderDriver: (input: any) => input is RenderDriverInstance<string, any>;
@@ -1 +0,0 @@
1
- export declare const isTemplate: (input: any) => input is Template;
@@ -1 +0,0 @@
1
- export declare const switchTextAlignToFlex: (textAlign: string) => string;
@@ -1 +0,0 @@
1
- export declare const toggleClassName: (element: HTMLElement, className: string, value?: boolean) => void;
package/dist/my-lib.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './adstore/apps/templates/index'