@prismicio/editor-fields 0.4.53 → 0.4.54
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/core/MediaLibrary/hooks/mediaLibraryData.d.ts +18 -18
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +2 -2
- package/dist/core/service/customType.d.ts +6 -6
- package/dist/core/service/document.d.ts +29 -29
- package/dist/core/service/repository.d.ts +1 -1
- package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
- package/dist/fields/LinkField/Documents/documentsData.d.ts +4 -4
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +13 -13
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -30787,7 +30787,7 @@ function ske(e) {
|
|
|
30787
30787
|
);
|
|
30788
30788
|
}
|
|
30789
30789
|
function uke(e) {
|
|
30790
|
-
const { framework: t,
|
|
30790
|
+
const { framework: t, projectName: n, repositoryName: r } = e, { frameworkNameLabel: i, createProjectCodeSnippet: o } = cke(e), a = [
|
|
30791
30791
|
{
|
|
30792
30792
|
id: "createPrismicProject",
|
|
30793
30793
|
title: "Create your Prismic project",
|
|
@@ -30799,20 +30799,20 @@ function uke(e) {
|
|
|
30799
30799
|
id: "chooseLocale",
|
|
30800
30800
|
title: "Select your main locale",
|
|
30801
30801
|
description: "Choose your first locale",
|
|
30802
|
-
defaultCompleted:
|
|
30802
|
+
defaultCompleted: !0,
|
|
30803
30803
|
content: /* @__PURE__ */ f.jsx(Z, { children: "Locales allow you to create and manage multilingual versions of your content within a single Prismic project." })
|
|
30804
30804
|
},
|
|
30805
30805
|
{
|
|
30806
30806
|
id: "createProject",
|
|
30807
|
-
title: `Create a ${
|
|
30807
|
+
title: `Create a ${i}project`,
|
|
30808
30808
|
description: "Create and set up your project",
|
|
30809
30809
|
videoUrl: "https://res.cloudinary.com/dmtf1daqp/video/upload/v1727768069/DEV_TOOLS/ONBOARDING_GUIDE/Pagebuilder_onboarding_step_3_puh6fx.mp4",
|
|
30810
30810
|
content: /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
30811
30811
|
/* @__PURE__ */ f.jsx(Z, { sx: { marginBottom: 16 }, children: "Now that you have a Prismic project to manage the content of your website, let's create the code project that will be querying your content." }),
|
|
30812
|
-
!!
|
|
30812
|
+
!!o && /* @__PURE__ */ f.jsx(
|
|
30813
30813
|
oF,
|
|
30814
30814
|
{
|
|
30815
|
-
code: `${
|
|
30815
|
+
code: `${o} ${r ?? "<my-project>"}`,
|
|
30816
30816
|
language: "bash"
|
|
30817
30817
|
}
|
|
30818
30818
|
),
|
|
@@ -30826,12 +30826,12 @@ function uke(e) {
|
|
|
30826
30826
|
videoUrl: "https://res.cloudinary.com/dmtf1daqp/video/upload/v1727768069/DEV_TOOLS/ONBOARDING_GUIDE/page_builder_onboarding_step_4_yl8fb8.mp4",
|
|
30827
30827
|
content: /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
30828
30828
|
/* @__PURE__ */ f.jsx(Z, { sx: { marginBottom: 16 }, children: `Slice Machine is the Prismic tool for creating your content models.
|
|
30829
|
-
Install it in your ${
|
|
30829
|
+
Install it in your ${i}project by running these commands:` }),
|
|
30830
30830
|
/* @__PURE__ */ f.jsx(
|
|
30831
30831
|
oF,
|
|
30832
30832
|
{
|
|
30833
|
-
code: `cd ${
|
|
30834
|
-
npx @slicemachine/init@latest --repository ${
|
|
30833
|
+
code: `cd ${n ?? "<your project name>"}
|
|
30834
|
+
npx @slicemachine/init@latest --repository ${r ?? "<my-project>"}`,
|
|
30835
30835
|
language: "bash",
|
|
30836
30836
|
title: "Terminal",
|
|
30837
30837
|
showLineNumbers: !1
|
|
@@ -30886,17 +30886,17 @@ npx @slicemachine/init@latest --repository ${i ?? "<my-project>"}`,
|
|
|
30886
30886
|
"). Your content should now be visible!"
|
|
30887
30887
|
] })
|
|
30888
30888
|
}
|
|
30889
|
-
],
|
|
30889
|
+
], s = {
|
|
30890
30890
|
next: "https://prismic.dev/course/next",
|
|
30891
30891
|
nuxt: "https://prismic.dev/course/nuxt",
|
|
30892
30892
|
sveltekit: "https://prismic.dev/course/sveltekit"
|
|
30893
30893
|
};
|
|
30894
30894
|
return {
|
|
30895
|
-
steps:
|
|
30896
|
-
defaultCompletedStepIds:
|
|
30897
|
-
(
|
|
30895
|
+
steps: a,
|
|
30896
|
+
defaultCompletedStepIds: a.flatMap(
|
|
30897
|
+
(u) => u.defaultCompleted ? [u.id] : []
|
|
30898
30898
|
),
|
|
30899
|
-
tutorialLink: t ?
|
|
30899
|
+
tutorialLink: t ? s[t] : void 0
|
|
30900
30900
|
};
|
|
30901
30901
|
}
|
|
30902
30902
|
function cke(e) {
|
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.54",
|
|
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.
|
|
36
|
+
"@prismicio/editor-ui": "^0.4.54",
|
|
37
37
|
"@testing-library/react": "15.0.7",
|
|
38
38
|
"@types/react": "18.0.18",
|
|
39
39
|
"@types/react-dom": "18.3.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"module": "./dist/index.es.js",
|
|
68
68
|
"name": "@prismicio/editor-fields",
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@prismicio/editor-ui": "^0.4.
|
|
70
|
+
"@prismicio/editor-ui": "^0.4.54",
|
|
71
71
|
"react": "18",
|
|
72
72
|
"react-dom": "18"
|
|
73
73
|
},
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"sideEffects": false,
|
|
85
85
|
"stableVersion": "0.0.0",
|
|
86
86
|
"types": "./dist/index.d.ts",
|
|
87
|
-
"version": "0.4.
|
|
87
|
+
"version": "0.4.54"
|
|
88
88
|
}
|