@prismicio/editor-fields 0.4.49-alpha.feat-onboarding-guide.10 → 0.4.49-alpha.feat-onboarding-guide.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/dist/index.es.js
CHANGED
|
@@ -30648,7 +30648,7 @@ function lFe(e) {
|
|
|
30648
30648
|
function fFe(e) {
|
|
30649
30649
|
const { href: t } = e;
|
|
30650
30650
|
return /* @__PURE__ */ f.jsx(B, { justifyContent: "center", padding: { block: 6 }, children: /* @__PURE__ */ f.jsxs(Z, { href: t, variant: "smallBold", color: "grey11", children: [
|
|
30651
|
-
"
|
|
30651
|
+
"Or watch our in-depth course",
|
|
30652
30652
|
/* @__PURE__ */ f.jsx(
|
|
30653
30653
|
sn,
|
|
30654
30654
|
{
|
|
@@ -30711,7 +30711,7 @@ function pFe(e) {
|
|
|
30711
30711
|
}
|
|
30712
30712
|
function p(h) {
|
|
30713
30713
|
c(h), s(!0), o.track({
|
|
30714
|
-
event: "onboarding:step-opened",
|
|
30714
|
+
event: "shared-onboarding:step-opened",
|
|
30715
30715
|
stepId: h.id,
|
|
30716
30716
|
stepTitle: h.title,
|
|
30717
30717
|
source: o.source
|
|
@@ -30928,51 +30928,55 @@ function v3e(e) {
|
|
|
30928
30928
|
const { onboardingState: t, tracking: n, onToggleStep: r, onToggleGuide: i } = e, { steps: o, defaultCompletedStepIds: a, tutorialLink: s } = mFe(
|
|
30929
30929
|
t.context.framework,
|
|
30930
30930
|
t.context.starterId || void 0
|
|
30931
|
-
), u =
|
|
30932
|
-
/* @__PURE__ */ new Set([
|
|
30933
|
-
...t.completedSteps.filter((v) => u.includes(v)),
|
|
30934
|
-
...a
|
|
30935
|
-
])
|
|
30936
|
-
), [l, d] = te(
|
|
30931
|
+
), u = C(t.completedSteps), [c, l] = te(
|
|
30937
30932
|
t.isDismissed
|
|
30938
|
-
), { throwConfetti:
|
|
30939
|
-
|
|
30933
|
+
), { throwConfetti: d, confettiCannonRef: p, confettiContainerRef: A } = vFe(lA), { isFadedOut: h, isFading: g, fadeOut: S, resetFadeOut: b } = CFe(
|
|
30934
|
+
T,
|
|
30940
30935
|
yFe,
|
|
30941
30936
|
bFe
|
|
30942
30937
|
);
|
|
30943
|
-
function
|
|
30944
|
-
i(),
|
|
30938
|
+
function _() {
|
|
30939
|
+
i(), b(), l(!1);
|
|
30945
30940
|
}
|
|
30946
|
-
function
|
|
30947
|
-
i(),
|
|
30941
|
+
function T() {
|
|
30942
|
+
i(), l(!0);
|
|
30948
30943
|
}
|
|
30949
|
-
async function
|
|
30944
|
+
async function m(v) {
|
|
30950
30945
|
const I = await r(v.id);
|
|
30951
30946
|
I.includes(v.id) && n.track({
|
|
30952
|
-
event: "onboarding:step-completed",
|
|
30947
|
+
event: "shared-onboarding:step-completed",
|
|
30953
30948
|
stepId: v.id,
|
|
30954
30949
|
stepTitle: v.title,
|
|
30955
30950
|
source: n.source
|
|
30956
|
-
}), I.length === o.length && (n.track({
|
|
30957
|
-
event: "onboarding:completed",
|
|
30951
|
+
}), C(I).length === o.length && (n.track({
|
|
30952
|
+
event: "shared-onboarding:completed",
|
|
30958
30953
|
source: n.source
|
|
30959
|
-
}),
|
|
30954
|
+
}), d(), S());
|
|
30955
|
+
}
|
|
30956
|
+
function C(v) {
|
|
30957
|
+
const I = o.map(({ id: w }) => w);
|
|
30958
|
+
return Array.from(
|
|
30959
|
+
/* @__PURE__ */ new Set([
|
|
30960
|
+
...v.filter((w) => I.includes(w)),
|
|
30961
|
+
...a
|
|
30962
|
+
])
|
|
30963
|
+
);
|
|
30960
30964
|
}
|
|
30961
30965
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
30962
|
-
|
|
30966
|
+
c && /* @__PURE__ */ f.jsx(
|
|
30963
30967
|
PH,
|
|
30964
30968
|
{
|
|
30965
30969
|
textVariant: "normal",
|
|
30966
30970
|
backgroundColor: "transparent",
|
|
30967
30971
|
startIcon: "notStarted",
|
|
30968
|
-
onClick:
|
|
30972
|
+
onClick: _,
|
|
30969
30973
|
children: "Get started"
|
|
30970
30974
|
}
|
|
30971
30975
|
),
|
|
30972
|
-
!
|
|
30976
|
+
!c && /* @__PURE__ */ f.jsx(Ff, { enterDuration: 0, exitDuration: tF, children: !h && /* @__PURE__ */ f.jsxs(
|
|
30973
30977
|
"div",
|
|
30974
30978
|
{
|
|
30975
|
-
ref:
|
|
30979
|
+
ref: A,
|
|
30976
30980
|
style: {
|
|
30977
30981
|
position: "relative"
|
|
30978
30982
|
},
|
|
@@ -30981,17 +30985,17 @@ function v3e(e) {
|
|
|
30981
30985
|
hFe,
|
|
30982
30986
|
{
|
|
30983
30987
|
steps: o,
|
|
30984
|
-
completedSteps:
|
|
30988
|
+
completedSteps: u,
|
|
30985
30989
|
tutorialLink: s,
|
|
30986
30990
|
tracking: n,
|
|
30987
|
-
onToggleStep:
|
|
30988
|
-
onClose:
|
|
30991
|
+
onToggleStep: m,
|
|
30992
|
+
onClose: g ? void 0 : T
|
|
30989
30993
|
}
|
|
30990
30994
|
),
|
|
30991
30995
|
/* @__PURE__ */ f.jsx(
|
|
30992
30996
|
"div",
|
|
30993
30997
|
{
|
|
30994
|
-
ref:
|
|
30998
|
+
ref: p,
|
|
30995
30999
|
style: {
|
|
30996
31000
|
position: "absolute",
|
|
30997
31001
|
bottom: 0,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@floating-ui/react-dom-interactions": "0.9.3",
|
|
4
|
-
"@prismicio/editor-support": "0.4.
|
|
4
|
+
"@prismicio/editor-support": "0.4.49-alpha.feat-onboarding-guide.1",
|
|
5
5
|
"@prismicio/richtext": "2.1.1",
|
|
6
6
|
"@prismicio/types-internal": "2.8.0",
|
|
7
7
|
"@tanstack/react-query": "5.55.4",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"zod": "3.21.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@prismicio/editor-ui": "^0.4.49-alpha.feat-onboarding-guide.
|
|
36
|
+
"@prismicio/editor-ui": "^0.4.49-alpha.feat-onboarding-guide.3",
|
|
37
37
|
"@testing-library/react": "15.0.7",
|
|
38
38
|
"@types/react": "18.0.18",
|
|
39
39
|
"@types/react-dom": "18.3.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"module": "./dist/index.es.js",
|
|
69
69
|
"name": "@prismicio/editor-fields",
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@prismicio/editor-ui": "^0.4.49-alpha.feat-onboarding-guide.
|
|
71
|
+
"@prismicio/editor-ui": "^0.4.49-alpha.feat-onboarding-guide.3",
|
|
72
72
|
"react": "18",
|
|
73
73
|
"react-dom": "18"
|
|
74
74
|
},
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"sideEffects": false,
|
|
86
86
|
"stableVersion": "0.0.0",
|
|
87
87
|
"types": "./dist/index.d.ts",
|
|
88
|
-
"version": "0.4.49-alpha.feat-onboarding-guide.
|
|
88
|
+
"version": "0.4.49-alpha.feat-onboarding-guide.12"
|
|
89
89
|
}
|