@decocms/apps 1.2.0 → 1.3.1
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 +16 -2
- package/vtex/client.ts +1 -1
- package/vtex/commerceLoaders.ts +1 -1
- package/vtex/manifest.gen.ts +2 -0
- package/website/client.ts +21 -0
- package/website/components/Analytics.tsx +146 -0
- package/website/components/Seo.tsx +139 -0
- package/website/components/Theme.tsx +47 -0
- package/website/components/Video.tsx +44 -0
- package/website/flags/audience.ts +56 -0
- package/website/flags/everyone.ts +19 -0
- package/website/flags/flag.ts +15 -0
- package/website/flags/multivariate/image.ts +11 -0
- package/website/flags/multivariate/message.ts +11 -0
- package/website/flags/multivariate/page.ts +16 -0
- package/website/flags/multivariate/section.ts +16 -0
- package/website/flags/multivariate.ts +1 -0
- package/website/index.ts +22 -0
- package/website/loaders/environment.ts +45 -0
- package/website/loaders/fonts/googleFonts.ts +119 -0
- package/website/loaders/fonts/local.ts +85 -0
- package/website/loaders/secret.ts +60 -0
- package/website/loaders/secretString.ts +18 -0
- package/website/manifest.gen.ts +31 -0
- package/website/matchers/always.ts +12 -0
- package/website/matchers/cookie.ts +33 -0
- package/website/matchers/cron.ts +109 -0
- package/website/matchers/date.ts +29 -0
- package/website/matchers/device.ts +40 -0
- package/website/matchers/environment.ts +21 -0
- package/website/matchers/host.ts +25 -0
- package/website/matchers/location.ts +113 -0
- package/website/matchers/multi.ts +24 -0
- package/website/matchers/negate.ts +21 -0
- package/website/matchers/never.ts +12 -0
- package/website/matchers/pathname.ts +69 -0
- package/website/matchers/queryString.ts +98 -0
- package/website/matchers/random.ts +24 -0
- package/website/matchers/site.ts +21 -0
- package/website/matchers/userAgent.ts +23 -0
- package/website/mod.ts +48 -0
- package/website/sections/Analytics/Analytics.tsx +7 -0
- package/website/sections/Seo/Seo.tsx +14 -0
- package/website/sections/Seo/SeoV2.tsx +58 -0
- package/website/types.ts +125 -0
- package/website/utils/html.ts +1 -0
- package/website/utils/location.ts +20 -0
- package/website/utils/multivariate.ts +20 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { MultivariateFlag, Variant } from "../types";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @title Multivariate
|
|
5
|
+
*/
|
|
6
|
+
export interface MultivariateProps<T> {
|
|
7
|
+
/**
|
|
8
|
+
* @minItems 1
|
|
9
|
+
* @addBehavior 1
|
|
10
|
+
*/
|
|
11
|
+
variants: Variant<T>[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @title Variant
|
|
16
|
+
* @label hidden
|
|
17
|
+
*/
|
|
18
|
+
export default function multivariate<T>(props: MultivariateProps<T>): MultivariateFlag<T> {
|
|
19
|
+
return props;
|
|
20
|
+
}
|