@plitzi/sdk-elements 0.39.11 → 0.39.12
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/CHANGELOG.md +14 -0
- package/dist/Element/hooks/useElementState.d.ts +1 -1
- package/dist/builder/index.d.ts +2 -0
- package/dist/builder/index.mjs +4 -1
- package/dist/builder/ruleFields.d.ts +16 -0
- package/dist/builder/ruleFields.mjs +86 -0
- package/dist/builder/ruleSummary.d.ts +6 -0
- package/dist/builder/ruleSummary.mjs +33 -0
- package/dist/dataSource/GlobalSources.mjs +120 -99
- package/dist/dataSource/index.d.ts +1 -0
- package/dist/dataSource/index.mjs +6 -5
- package/dist/dataSource/useAudienceScope.d.ts +8 -0
- package/dist/dataSource/useAudienceScope.mjs +40 -0
- package/dist/dataSource/useExperiments.d.ts +12 -0
- package/dist/dataSource/useExperiments.mjs +58 -0
- package/dist/elements/basic/Link/declaration.mjs +1 -1
- package/dist/elements/declarations/index.d.ts +112 -2
- package/dist/elements/declarations/index.mjs +55 -49
- package/dist/elements/index.d.ts +5 -1
- package/dist/elements/index.mjs +6 -2
- package/dist/elements/media/Embed/declaration.d.ts +1 -1
- package/dist/elements/media/Embed/index.d.ts +1 -1
- package/dist/elements/provider/Channel/declaration.mjs +1 -1
- package/dist/elements/settings.mjs +8 -2
- package/dist/elements/structure/TimeWindow/Settings.d.ts +8 -0
- package/dist/elements/structure/TimeWindow/Settings.mjs +40 -0
- package/dist/elements/structure/TimeWindow/TimeWindow.d.ts +14 -0
- package/dist/elements/structure/TimeWindow/TimeWindow.mjs +32 -0
- package/dist/elements/structure/TimeWindow/declaration.d.ts +34 -0
- package/dist/elements/structure/TimeWindow/declaration.mjs +26 -0
- package/dist/elements/structure/TimeWindow/index.d.ts +32 -0
- package/dist/elements/structure/TimeWindow/index.mjs +5 -0
- package/dist/elements/testing/Variants/Settings.d.ts +14 -0
- package/dist/elements/testing/Variants/Settings.mjs +280 -0
- package/dist/elements/testing/Variants/VariantItem/Settings.d.ts +13 -0
- package/dist/elements/testing/Variants/VariantItem/Settings.mjs +140 -0
- package/dist/elements/testing/Variants/VariantItem/VariantItem.d.ts +18 -0
- package/dist/elements/testing/Variants/VariantItem/VariantItem.mjs +11 -0
- package/dist/elements/testing/Variants/VariantItem/declaration.d.ts +38 -0
- package/dist/elements/testing/Variants/VariantItem/declaration.mjs +29 -0
- package/dist/elements/testing/Variants/VariantItem/index.d.ts +36 -0
- package/dist/elements/testing/Variants/VariantItem/index.mjs +5 -0
- package/dist/elements/testing/Variants/Variants.d.ts +28 -0
- package/dist/elements/testing/Variants/Variants.mjs +31 -0
- package/dist/elements/testing/Variants/declaration.d.ts +44 -0
- package/dist/elements/testing/Variants/declaration.mjs +30 -0
- package/dist/elements/testing/Variants/index.d.ts +77 -0
- package/dist/elements/testing/Variants/index.mjs +9 -0
- package/dist/elements/testing/childOfItem.d.ts +7 -0
- package/dist/elements/testing/childOfItem.mjs +9 -0
- package/dist/index.d.ts +108 -1
- package/dist/index.mjs +13 -9
- package/package.json +8 -8
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import e from "../../../dataSource/useAudienceScope.mjs";
|
|
2
|
+
import t from "../../../Element/hocs/withElement.mjs";
|
|
3
|
+
import n from "../../../Element/hooks/useElement.mjs";
|
|
4
|
+
import { RootElement as r } from "../../../Element/RootElement.mjs";
|
|
5
|
+
import { childOfItem as i } from "../childOfItem.mjs";
|
|
6
|
+
import { useCommonStore as a, useRenderSettings as o } from "@plitzi/sdk-shared/store";
|
|
7
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
8
|
+
import { experimentNameOf as c, indexOfVariant as l, isExperimentVariant as u } from "@plitzi/sdk-shared/experiments";
|
|
9
|
+
import d from "clsx";
|
|
10
|
+
import { HIDDEN_CLASS as f } from "@plitzi/sdk-shared/style";
|
|
11
|
+
import { chooseAudienceVariant as p } from "@plitzi/sdk-shared/audiences";
|
|
12
|
+
// src/elements/testing/Variants/Variants.tsx
|
|
13
|
+
var m = ({ ref: t, className: m = "", children: h, chooseBy: g = "chance", experiment: _ = "", builderVariant: v = 0 }) => {
|
|
14
|
+
let { id: y, definition: b } = n(), x = b.items ?? [], { builder: S, previewMode: C } = o(), [w] = a("runtime.sources.experiments"), [T] = a(x.map((e) => `schema.flat.${e}.attributes.when`)), E = e(), D;
|
|
15
|
+
if (S && !C) D = v;
|
|
16
|
+
else if (g === "rules") D = p(T, E);
|
|
17
|
+
else {
|
|
18
|
+
let e = c({
|
|
19
|
+
id: y,
|
|
20
|
+
attributes: { experiment: _ }
|
|
21
|
+
}), t = e === void 0 ? void 0 : w?.[e];
|
|
22
|
+
D = u(t) ? l(t) : 0;
|
|
23
|
+
}
|
|
24
|
+
let O = i(h, x[D]);
|
|
25
|
+
return /* @__PURE__ */ s(r, {
|
|
26
|
+
ref: t,
|
|
27
|
+
className: d("plitzi-component__variants", m, { [f]: !O }),
|
|
28
|
+
children: O
|
|
29
|
+
});
|
|
30
|
+
}, h = t(m);
|
|
31
|
+
export { m as Variants, h as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { VariantsProps } from './Variants';
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
|
+
import { ChooseBy } from '@plitzi/sdk-shared/variants';
|
|
4
|
+
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
5
|
+
export type VariantsAttributes = AuthorableAttributes<VariantsProps>;
|
|
6
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
7
|
+
readonly type: "variants";
|
|
8
|
+
readonly attributeValues: {
|
|
9
|
+
readonly chooseBy: readonly string[];
|
|
10
|
+
};
|
|
11
|
+
readonly content: {
|
|
12
|
+
readonly attributes: {
|
|
13
|
+
readonly chooseBy: "chance";
|
|
14
|
+
readonly experiment: "";
|
|
15
|
+
readonly builderVariant: 0;
|
|
16
|
+
};
|
|
17
|
+
readonly definition: {
|
|
18
|
+
readonly label: "Variants";
|
|
19
|
+
readonly description: string;
|
|
20
|
+
readonly items: [];
|
|
21
|
+
};
|
|
22
|
+
readonly builder: {
|
|
23
|
+
readonly itemsAllowed: ["variantItem"];
|
|
24
|
+
};
|
|
25
|
+
readonly market: {
|
|
26
|
+
readonly category: "testing";
|
|
27
|
+
readonly icon: "fa-solid fa-shuffle";
|
|
28
|
+
};
|
|
29
|
+
readonly defaultStyle: {
|
|
30
|
+
readonly style: {
|
|
31
|
+
readonly base: {
|
|
32
|
+
readonly default: {};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly subTypes: {};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly initialItems: readonly ["variantItem", "variantItem"];
|
|
39
|
+
}, Partial<{
|
|
40
|
+
chooseBy?: ChooseBy | undefined;
|
|
41
|
+
experiment?: string | undefined;
|
|
42
|
+
builderVariant?: number | undefined;
|
|
43
|
+
}>>;
|
|
44
|
+
export default declaration;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring";
|
|
2
|
+
import { CHOOSE_BY as n, VARIANTS_TYPE as r, VARIANT_ITEM_TYPE as i } from "@plitzi/sdk-shared/variants";
|
|
3
|
+
// src/elements/testing/Variants/declaration.ts
|
|
4
|
+
var a = e()({
|
|
5
|
+
type: r,
|
|
6
|
+
attributeValues: { chooseBy: t()(n) },
|
|
7
|
+
content: {
|
|
8
|
+
attributes: {
|
|
9
|
+
chooseBy: "chance",
|
|
10
|
+
experiment: "",
|
|
11
|
+
builderVariant: 0
|
|
12
|
+
},
|
|
13
|
+
definition: {
|
|
14
|
+
label: "Variants",
|
|
15
|
+
description: "Shows each visitor one of its variants, chosen by chance or by who they are. By chance (`chooseBy: 'chance'`, an A/B test) it holds two to five `variantItem`s, A first: each is shown to its `weight` — the percent of the visitors it gets, the variants’ adding up to 100 — and a visitor keeps theirs when they reload or come back, through a cookie. Its `experiment` names it — left empty, the element’s id does — and `{{ experiments.<name> }}` reads the visitor's (`'a'`, `'b'`…). By rules (`chooseBy: 'rules'`) it shows the first variant whose `when` the visitor matches: a rule group over what a flag sees — `queryParams.<name>` (`utm_source`…), `user.authenticated`, `user.roles`… — and the visitor: `visitor.returning`, `visitor.language` (`es`), `visitor.device` (`mobile`, `tablet`, `desktop`); a variant with no conditions is for everybody else, last. Each variant keeps both, so switching how it chooses loses neither. The server draws only the variant shown.",
|
|
16
|
+
items: []
|
|
17
|
+
},
|
|
18
|
+
builder: { itemsAllowed: [i] },
|
|
19
|
+
market: {
|
|
20
|
+
category: "testing",
|
|
21
|
+
icon: "fa-solid fa-shuffle"
|
|
22
|
+
},
|
|
23
|
+
defaultStyle: {
|
|
24
|
+
style: { base: { default: {} } },
|
|
25
|
+
subTypes: {}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
initialItems: [i, i]
|
|
29
|
+
});
|
|
30
|
+
export { a as default };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare const Variants: import('react').FC<import('../../..').WithElementProps<import('./Variants').VariantsProps>> & {
|
|
2
|
+
plugins: {
|
|
3
|
+
variantItem: import('react').FC<import('../../..').WithElementProps<import('./VariantItem/VariantItem').VariantItemProps>> & {
|
|
4
|
+
readonly type: "variantItem";
|
|
5
|
+
readonly ancestorType: "variants";
|
|
6
|
+
readonly content: {
|
|
7
|
+
readonly attributes: {
|
|
8
|
+
readonly weight: 50;
|
|
9
|
+
};
|
|
10
|
+
readonly definition: {
|
|
11
|
+
readonly label: "Variant";
|
|
12
|
+
readonly description: string;
|
|
13
|
+
readonly items: [];
|
|
14
|
+
};
|
|
15
|
+
readonly builder: {
|
|
16
|
+
readonly canSnippet: false;
|
|
17
|
+
readonly itemsNotAllowed: ["variantItem"];
|
|
18
|
+
};
|
|
19
|
+
readonly market: {
|
|
20
|
+
readonly category: "testing";
|
|
21
|
+
readonly icon: "fa-solid fa-code-branch";
|
|
22
|
+
};
|
|
23
|
+
readonly defaultStyle: {
|
|
24
|
+
readonly style: {
|
|
25
|
+
readonly base: {
|
|
26
|
+
readonly default: {};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly subTypes: {};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
} & {
|
|
33
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
34
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
35
|
+
when?: import('@plitzi/sdk-shared').RuleGroup | undefined;
|
|
36
|
+
weight?: number | undefined;
|
|
37
|
+
}>>;
|
|
38
|
+
};
|
|
39
|
+
type: "variants";
|
|
40
|
+
attributeValues: {
|
|
41
|
+
readonly chooseBy: readonly string[];
|
|
42
|
+
};
|
|
43
|
+
content: {
|
|
44
|
+
readonly attributes: {
|
|
45
|
+
readonly chooseBy: "chance";
|
|
46
|
+
readonly experiment: "";
|
|
47
|
+
readonly builderVariant: 0;
|
|
48
|
+
};
|
|
49
|
+
readonly definition: {
|
|
50
|
+
readonly label: "Variants";
|
|
51
|
+
readonly description: string;
|
|
52
|
+
readonly items: [];
|
|
53
|
+
};
|
|
54
|
+
readonly builder: {
|
|
55
|
+
readonly itemsAllowed: ["variantItem"];
|
|
56
|
+
};
|
|
57
|
+
readonly market: {
|
|
58
|
+
readonly category: "testing";
|
|
59
|
+
readonly icon: "fa-solid fa-shuffle";
|
|
60
|
+
};
|
|
61
|
+
readonly defaultStyle: {
|
|
62
|
+
readonly style: {
|
|
63
|
+
readonly base: {
|
|
64
|
+
readonly default: {};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly subTypes: {};
|
|
68
|
+
};
|
|
69
|
+
} & import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
70
|
+
initialItems: readonly ["variantItem", "variantItem"];
|
|
71
|
+
__attributes: Partial<{
|
|
72
|
+
chooseBy?: import('@plitzi/sdk-shared/variants').ChooseBy | undefined;
|
|
73
|
+
experiment?: string | undefined;
|
|
74
|
+
builderVariant?: number | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
};
|
|
77
|
+
export default Variants;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The child drawn for an item, found by its key rather than its place: an item a flag switched off is not among the
|
|
4
|
+
* children, so the third item may be the second child. A child's key is its item's id (`Children.toArray` writes it as
|
|
5
|
+
* `.$<id>`), with the layout's suffix (`<id>_<layout>`) inside a layout.
|
|
6
|
+
*/
|
|
7
|
+
export declare const childOfItem: (children: ReactNode, itemId: string | undefined) => ReactElement | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Children as e, isValidElement as t } from "react";
|
|
2
|
+
// src/elements/testing/childOfItem.ts
|
|
3
|
+
var n = (n, r) => {
|
|
4
|
+
if (r !== void 0) return e.toArray(n).filter(t).find((e) => {
|
|
5
|
+
let t = (e.key ?? "").replace(/^\.\$/, "");
|
|
6
|
+
return t === r || t.startsWith(`${r}_`);
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export { n as childOfItem };
|
package/dist/index.d.ts
CHANGED
|
@@ -1428,6 +1428,113 @@ export declare const defaultElements: {
|
|
|
1428
1428
|
initialItems: readonly ["tabContainerHeader", "tabContainerBody"];
|
|
1429
1429
|
__attributes: unknown;
|
|
1430
1430
|
};
|
|
1431
|
+
timeWindow: import('react').FC<import('.').WithElementProps<import('./elements/structure/TimeWindow/TimeWindow').TimeWindowProps>> & {
|
|
1432
|
+
readonly type: "timeWindow";
|
|
1433
|
+
readonly content: {
|
|
1434
|
+
readonly attributes: {
|
|
1435
|
+
readonly startsAt: "";
|
|
1436
|
+
readonly endsAt: "";
|
|
1437
|
+
};
|
|
1438
|
+
readonly definition: {
|
|
1439
|
+
readonly label: "Time Window";
|
|
1440
|
+
readonly description: string;
|
|
1441
|
+
readonly items: [];
|
|
1442
|
+
};
|
|
1443
|
+
readonly market: {
|
|
1444
|
+
readonly category: "structure";
|
|
1445
|
+
readonly icon: "fa-regular fa-calendar";
|
|
1446
|
+
};
|
|
1447
|
+
readonly defaultStyle: {
|
|
1448
|
+
readonly style: {
|
|
1449
|
+
readonly base: {
|
|
1450
|
+
readonly default: {};
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
readonly subTypes: {};
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1456
|
+
} & {
|
|
1457
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
1458
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
1459
|
+
startsAt?: string | undefined;
|
|
1460
|
+
endsAt?: string | undefined;
|
|
1461
|
+
}>>;
|
|
1462
|
+
variants: import('react').FC<import('.').WithElementProps<import('./elements/testing/Variants/Variants').VariantsProps>> & {
|
|
1463
|
+
plugins: {
|
|
1464
|
+
variantItem: import('react').FC<import('.').WithElementProps<import('./elements/testing/Variants/VariantItem/VariantItem').VariantItemProps>> & {
|
|
1465
|
+
readonly type: "variantItem";
|
|
1466
|
+
readonly ancestorType: "variants";
|
|
1467
|
+
readonly content: {
|
|
1468
|
+
readonly attributes: {
|
|
1469
|
+
readonly weight: 50;
|
|
1470
|
+
};
|
|
1471
|
+
readonly definition: {
|
|
1472
|
+
readonly label: "Variant";
|
|
1473
|
+
readonly description: string;
|
|
1474
|
+
readonly items: [];
|
|
1475
|
+
};
|
|
1476
|
+
readonly builder: {
|
|
1477
|
+
readonly canSnippet: false;
|
|
1478
|
+
readonly itemsNotAllowed: ["variantItem"];
|
|
1479
|
+
};
|
|
1480
|
+
readonly market: {
|
|
1481
|
+
readonly category: "testing";
|
|
1482
|
+
readonly icon: "fa-solid fa-code-branch";
|
|
1483
|
+
};
|
|
1484
|
+
readonly defaultStyle: {
|
|
1485
|
+
readonly style: {
|
|
1486
|
+
readonly base: {
|
|
1487
|
+
readonly default: {};
|
|
1488
|
+
};
|
|
1489
|
+
};
|
|
1490
|
+
readonly subTypes: {};
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
} & {
|
|
1494
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
1495
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
1496
|
+
when?: import('@plitzi/sdk-shared').RuleGroup | undefined;
|
|
1497
|
+
weight?: number | undefined;
|
|
1498
|
+
}>>;
|
|
1499
|
+
};
|
|
1500
|
+
type: "variants";
|
|
1501
|
+
attributeValues: {
|
|
1502
|
+
readonly chooseBy: readonly string[];
|
|
1503
|
+
};
|
|
1504
|
+
content: {
|
|
1505
|
+
readonly attributes: {
|
|
1506
|
+
readonly chooseBy: "chance";
|
|
1507
|
+
readonly experiment: "";
|
|
1508
|
+
readonly builderVariant: 0;
|
|
1509
|
+
};
|
|
1510
|
+
readonly definition: {
|
|
1511
|
+
readonly label: "Variants";
|
|
1512
|
+
readonly description: string;
|
|
1513
|
+
readonly items: [];
|
|
1514
|
+
};
|
|
1515
|
+
readonly builder: {
|
|
1516
|
+
readonly itemsAllowed: ["variantItem"];
|
|
1517
|
+
};
|
|
1518
|
+
readonly market: {
|
|
1519
|
+
readonly category: "testing";
|
|
1520
|
+
readonly icon: "fa-solid fa-shuffle";
|
|
1521
|
+
};
|
|
1522
|
+
readonly defaultStyle: {
|
|
1523
|
+
readonly style: {
|
|
1524
|
+
readonly base: {
|
|
1525
|
+
readonly default: {};
|
|
1526
|
+
};
|
|
1527
|
+
};
|
|
1528
|
+
readonly subTypes: {};
|
|
1529
|
+
};
|
|
1530
|
+
} & import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
1531
|
+
initialItems: readonly ["variantItem", "variantItem"];
|
|
1532
|
+
__attributes: Partial<{
|
|
1533
|
+
chooseBy?: import('@plitzi/sdk-shared/variants').ChooseBy | undefined;
|
|
1534
|
+
experiment?: string | undefined;
|
|
1535
|
+
builderVariant?: number | undefined;
|
|
1536
|
+
}>;
|
|
1537
|
+
};
|
|
1431
1538
|
carousel: import('react').FC<import('.').WithElementProps<import('./elements/structure/Carousel/Carousel').CarouselProps>> & {
|
|
1432
1539
|
plugins: {
|
|
1433
1540
|
carouselTrack: import('react').FC<import('.').WithElementProps<import('./elements/structure/Carousel/CarouselTrack/CarouselTrack').CarouselTrackProps>> & {
|
|
@@ -1867,9 +1974,9 @@ export declare const defaultElements: {
|
|
|
1867
1974
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
1868
1975
|
title?: string | undefined;
|
|
1869
1976
|
src?: string | undefined;
|
|
1977
|
+
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
1870
1978
|
allow?: string | undefined;
|
|
1871
1979
|
loading?: "lazy" | "eager" | undefined;
|
|
1872
|
-
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
1873
1980
|
sandbox?: string | undefined;
|
|
1874
1981
|
}>>;
|
|
1875
1982
|
chart: import('react').FC<import('.').WithElementProps<import('./elements/media/Chart/Chart').ChartProps>> & {
|
package/dist/index.mjs
CHANGED
|
@@ -44,15 +44,17 @@ import H from "./elements/structure/List/index.mjs";
|
|
|
44
44
|
import U from "./elements/structure/ModalContainer/index.mjs";
|
|
45
45
|
import W from "./elements/structure/Pagination/index.mjs";
|
|
46
46
|
import G from "./elements/structure/TabContainer/index.mjs";
|
|
47
|
-
import K from "./
|
|
48
|
-
import q from "./
|
|
49
|
-
import
|
|
50
|
-
import Y from "./Element/
|
|
51
|
-
import X from "./Element/
|
|
52
|
-
import Z from "./Element/
|
|
53
|
-
import Q from "./Element/
|
|
47
|
+
import K from "./elements/structure/TimeWindow/index.mjs";
|
|
48
|
+
import q from "./elements/testing/Variants/index.mjs";
|
|
49
|
+
import J from "./Element/PluginRemote.mjs";
|
|
50
|
+
import Y from "./Element/ReplicaProvider.mjs";
|
|
51
|
+
import { RootElement as X } from "./Element/RootElement.mjs";
|
|
52
|
+
import Z from "./Element/helpers/elementChildren.mjs";
|
|
53
|
+
import Q from "./Element/hooks/useElementVisible.mjs";
|
|
54
|
+
import $ from "./Element/hooks/usePluginTrigger.mjs";
|
|
55
|
+
import ee from "./Element/ElementContext.mjs";
|
|
54
56
|
// src/index.ts
|
|
55
|
-
var
|
|
57
|
+
var te = {
|
|
56
58
|
dropdown: h,
|
|
57
59
|
notFound: D,
|
|
58
60
|
loading: E,
|
|
@@ -68,6 +70,8 @@ var $ = {
|
|
|
68
70
|
dialogContainer: B,
|
|
69
71
|
modalContainer: U,
|
|
70
72
|
tabContainer: G,
|
|
73
|
+
timeWindow: K,
|
|
74
|
+
variants: q,
|
|
71
75
|
carousel: R,
|
|
72
76
|
heading: g,
|
|
73
77
|
image: M,
|
|
@@ -90,4 +94,4 @@ var $ = {
|
|
|
90
94
|
apiContainer: F,
|
|
91
95
|
channel: L
|
|
92
96
|
};
|
|
93
|
-
export { F as ApiContainer, s as BlockHtml, c as BlockJsx, m as Button, R as Carousel, L as Channel, k as Chart, z as Container, l as Custom, B as DialogContainer, h as Dropdown,
|
|
97
|
+
export { F as ApiContainer, s as BlockHtml, c as BlockJsx, m as Button, R as Carousel, L as Channel, k as Chart, z as Container, l as Custom, B as DialogContainer, h as Dropdown, ee as ElementContext, A as Embed, V as FocusGroup, j as FontAwesome, C as Form, w as FormControl, g as Heading, M as Image, t as JsxManager, T as LayoutContainer, _ as Link, H as List, E as Loading, v as Markdown, U as ModalContainer, u as NodeHtml, D as NotFound, O as Page, W as Pagination, y as Paragraph, I as PluginManager, J as PluginRemote, o as PluginSource, p as Reference, Y as ReplicaProvider, b as RichText, X as RootElement, N as Svg, G as TabContainer, x as Text, S as ThemeToggle, K as TimeWindow, q as Variants, P as Video, te as defaultElements, Z as elementChildren, n as elements, r as useChannel, f as useElement, Q as useElementVisible, a as useFlag, i as useJob, $ as usePluginTrigger, e as useRscData, d as withElement };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-elements",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.12",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@dr.pogodin/react-helmet": "^3.3.2",
|
|
36
36
|
"@plitzi/nexus": "^1.5.1",
|
|
37
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
38
|
-
"@plitzi/sdk-auth": "0.39.
|
|
39
|
-
"@plitzi/sdk-event-bridge": "0.39.
|
|
40
|
-
"@plitzi/sdk-interactions": "0.39.
|
|
41
|
-
"@plitzi/sdk-navigation": "0.39.
|
|
42
|
-
"@plitzi/sdk-schema": "0.39.
|
|
43
|
-
"@plitzi/sdk-shared": "0.39.
|
|
37
|
+
"@plitzi/plitzi-ui": "^1.6.41",
|
|
38
|
+
"@plitzi/sdk-auth": "0.39.12",
|
|
39
|
+
"@plitzi/sdk-event-bridge": "0.39.12",
|
|
40
|
+
"@plitzi/sdk-interactions": "0.39.12",
|
|
41
|
+
"@plitzi/sdk-navigation": "0.39.12",
|
|
42
|
+
"@plitzi/sdk-schema": "0.39.12",
|
|
43
|
+
"@plitzi/sdk-shared": "0.39.12",
|
|
44
44
|
"clsx": "^2.1.1",
|
|
45
45
|
"dompurify": "^3.4.18",
|
|
46
46
|
"immer": "^11.2.10",
|