@preprio/toolkit 0.5.0-rc.2 → 0.5.0-rc.3

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 (50) hide show
  1. package/README.md +207 -10
  2. package/dist/astro/index.cjs +1174 -1
  3. package/dist/astro/index.d.cts +47 -1
  4. package/dist/astro/index.d.ts +47 -1
  5. package/dist/astro/index.js +1177 -1
  6. package/dist/chunk-42Z2VW7G.js +1161 -0
  7. package/dist/chunk-6WY3MWCX.js +246 -0
  8. package/dist/chunk-MDAV2FLM.js +26 -0
  9. package/dist/{chunk-FLPNN3CV.js → chunk-PP3O7RB4.js} +1370 -623
  10. package/dist/chunk-S3VT4UWM.js +75 -0
  11. package/dist/chunk-SXUDBGLZ.js +184 -0
  12. package/dist/chunk-URXSDJOU.js +356 -0
  13. package/dist/index.cjs +3108 -392
  14. package/dist/index.d.cts +238 -4
  15. package/dist/index.d.ts +238 -4
  16. package/dist/index.js +189 -149
  17. package/dist/live-preview-EADA3ZL4.js +18 -0
  18. package/dist/nextjs/components.cjs +1522 -359
  19. package/dist/nextjs/components.d.cts +1 -1
  20. package/dist/nextjs/components.d.ts +1 -1
  21. package/dist/nextjs/components.js +4 -1
  22. package/dist/nextjs/index.cjs +1065 -6
  23. package/dist/nextjs/index.d.cts +73 -1
  24. package/dist/nextjs/index.d.ts +73 -1
  25. package/dist/nextjs/index.js +1059 -7
  26. package/dist/nextjs/live-action.cjs +285 -0
  27. package/dist/nextjs/live-action.d.cts +12 -0
  28. package/dist/nextjs/live-action.d.ts +12 -0
  29. package/dist/nextjs/live-action.js +68 -0
  30. package/dist/nextjs/live.cjs +1838 -0
  31. package/dist/nextjs/live.d.cts +52 -0
  32. package/dist/nextjs/live.d.ts +52 -0
  33. package/dist/nextjs/live.js +265 -0
  34. package/dist/nuxt/index.cjs +1 -1
  35. package/dist/nuxt/index.js +1 -1
  36. package/dist/nuxt/live-preview-PTEC3GPC.js +1462 -0
  37. package/dist/nuxt/live.cjs +1662 -0
  38. package/dist/nuxt/live.d.cts +43 -0
  39. package/dist/nuxt/live.d.ts +43 -0
  40. package/dist/nuxt/live.js +94 -0
  41. package/dist/{pixel-B3oQNbZ3.d.cts → pixel-CX422dCO.d.cts} +10 -1
  42. package/dist/{pixel-B3oQNbZ3.d.ts → pixel-CX422dCO.d.ts} +10 -1
  43. package/dist/react/components.cjs +1522 -359
  44. package/dist/react/components.d.cts +9 -0
  45. package/dist/react/components.d.ts +9 -0
  46. package/dist/react/components.js +1522 -359
  47. package/dist/sveltekit/index.cjs +1 -1
  48. package/dist/sveltekit/index.js +1 -1
  49. package/package.json +12 -1
  50. package/src/astro/PreprToolbar.astro +7 -1
@@ -2,6 +2,8 @@ type Dictionary = Record<string, unknown>;
2
2
  declare const dictionaries: {
3
3
  en: Dictionary;
4
4
  nl: Dictionary;
5
+ fr: Dictionary;
6
+ de: Dictionary;
5
7
  };
6
8
  type Locale = keyof typeof dictionaries;
7
9
 
@@ -68,6 +70,13 @@ interface PreprPreviewOptions extends PreprToolbarOptions {
68
70
  * receives the field-edit events, which carry content item ids.
69
71
  */
70
72
  allowedEditorOrigins?: string[];
73
+ /**
74
+ * Set when your preview token uses GraphQL strict mode, where required
75
+ * fields are never null. The editor then holds back new entries until
76
+ * their required fields are filled, and never sends a cleared required
77
+ * field as null.
78
+ */
79
+ strictMode?: boolean;
71
80
  /**
72
81
  * Strip the invisible stega characters out of visible text at runtime.
73
82
  * Default `true`.
@@ -2,6 +2,8 @@ type Dictionary = Record<string, unknown>;
2
2
  declare const dictionaries: {
3
3
  en: Dictionary;
4
4
  nl: Dictionary;
5
+ fr: Dictionary;
6
+ de: Dictionary;
5
7
  };
6
8
  type Locale = keyof typeof dictionaries;
7
9
 
@@ -68,6 +70,13 @@ interface PreprPreviewOptions extends PreprToolbarOptions {
68
70
  * receives the field-edit events, which carry content item ids.
69
71
  */
70
72
  allowedEditorOrigins?: string[];
73
+ /**
74
+ * Set when your preview token uses GraphQL strict mode, where required
75
+ * fields are never null. The editor then holds back new entries until
76
+ * their required fields are filled, and never sends a cleared required
77
+ * field as null.
78
+ */
79
+ strictMode?: boolean;
71
80
  /**
72
81
  * Strip the invisible stega characters out of visible text at runtime.
73
82
  * Default `true`.