slice-machine-ui 2.16.2-beta.9 → 2.17.1-alpha.jp-cr-ui-nested-ct-remove-section.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.
Files changed (67) hide show
  1. package/out/404.html +1 -1
  2. package/out/_next/static/0SPBnBOIdcPusg2ceVdAq/_buildManifest.js +1 -0
  3. package/out/_next/static/chunks/248-03446cd9e9f13730.js +1 -0
  4. package/out/_next/static/chunks/268-6a9214b97195af9c.js +1 -0
  5. package/out/_next/static/chunks/33641354.3864aefb6106ae71.js +28 -0
  6. package/out/_next/static/chunks/34-e684c5fd75cc9dd0.js +1 -0
  7. package/out/_next/static/chunks/630-4a8f19a6a113700f.js +1 -0
  8. package/out/_next/static/chunks/647-7b9b5aa9468f9e4b.js +1 -0
  9. package/out/_next/static/chunks/882-151468121d542ed6.js +1 -0
  10. package/out/_next/static/chunks/pages/_app-15912b10c760cd68.js +708 -0
  11. package/out/_next/static/chunks/pages/changelog-063c5e11dfc8fd55.js +1 -0
  12. package/out/_next/static/chunks/pages/changes-564336edb0ed18b0.js +1 -0
  13. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-389d1b7a492fb3e7.js → [customTypeId]-a408f5a660e096a6.js} +1 -1
  14. package/out/_next/static/chunks/pages/{custom-types-2a5fd94ee42ba593.js → custom-types-5acd56959b60346f.js} +1 -1
  15. package/out/_next/static/chunks/pages/{index-02dd147957c8b40f.js → index-0d8cb369de720a35.js} +1 -1
  16. package/out/_next/static/chunks/pages/labs-9630bfb1005be02b.js +1 -0
  17. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-3589bd1f9138a97b.js → [pageTypeId]-f5e851ebe35049a8.js} +1 -1
  18. package/out/_next/static/chunks/pages/settings-01f4aeb9112a1f87.js +1 -0
  19. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-5008e29008aa04f4.js +1 -0
  20. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-bd5e45632c419567.js +1 -0
  21. package/out/_next/static/chunks/pages/slices-4a60cd5f2c71327e.js +1 -0
  22. package/out/_next/static/chunks/webpack-b3522fdebabf510a.js +1 -0
  23. package/out/_next/static/css/cc9b10286400c2b9.css +1 -0
  24. package/out/changelog.html +1 -1
  25. package/out/changes.html +1 -1
  26. package/out/custom-types/[customTypeId].html +1 -1
  27. package/out/custom-types.html +1 -1
  28. package/out/index.html +1 -1
  29. package/out/labs.html +1 -1
  30. package/out/page-types/[pageTypeId].html +1 -1
  31. package/out/settings.html +1 -1
  32. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  33. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  34. package/out/slices.html +1 -1
  35. package/package.json +8 -8
  36. package/src/features/builder/fields/contentRelationship/ContentRelationshipFieldPicker.tsx +1498 -0
  37. package/src/features/builder/fields/contentRelationship/Hint.tsx +28 -0
  38. package/src/features/builder/fields/contentRelationship/__tests__/ContentRelationshipFieldPicker.test.ts +1323 -0
  39. package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +2 -4
  40. package/src/features/customTypes/customTypesTable/{useCustomTypes.ts → useCustomTypesAutoRevalidation.tsx} +1 -34
  41. package/src/features/customTypes/useCustomTypes.ts +48 -0
  42. package/src/legacy/lib/builders/common/Zone/Card/components/Hints/index.tsx +12 -1
  43. package/src/legacy/lib/models/common/widgets/ContentRelationship/Form.tsx +35 -77
  44. package/src/legacy/lib/models/common/widgets/ContentRelationship/index.ts +46 -15
  45. package/src/legacy/lib/models/common/widgets/Link/index.ts +1 -1
  46. package/src/utils/isValidObject.ts +32 -0
  47. package/src/utils/tracking/getLinkTrackingProperties.ts +28 -0
  48. package/src/utils/tracking/trackFieldAdded.ts +2 -5
  49. package/src/utils/tracking/trackFieldUpdated.ts +2 -5
  50. package/out/_next/static/atP3j_itxjBtvIysQoCxK/_buildManifest.js +0 -1
  51. package/out/_next/static/chunks/268-6d5fc7642a1b87c8.js +0 -1
  52. package/out/_next/static/chunks/34-2911c905c8a6e9d9.js +0 -1
  53. package/out/_next/static/chunks/630-93339694ef30b82d.js +0 -1
  54. package/out/_next/static/chunks/867-8164160c810122c6.js +0 -1
  55. package/out/_next/static/chunks/882-28837678beff7e51.js +0 -1
  56. package/out/_next/static/chunks/895-8c214ba470a4e23c.js +0 -1
  57. package/out/_next/static/chunks/pages/_app-2400eb8f7c5ef3cb.js +0 -657
  58. package/out/_next/static/chunks/pages/changelog-80a618708f44f25f.js +0 -1
  59. package/out/_next/static/chunks/pages/changes-d40c17939854b984.js +0 -1
  60. package/out/_next/static/chunks/pages/labs-c6df252ea5d8fb6f.js +0 -1
  61. package/out/_next/static/chunks/pages/settings-170379902605f38a.js +0 -1
  62. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-063fa88ba75f483e.js +0 -1
  63. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-6de02b8ed13b680d.js +0 -1
  64. package/out/_next/static/chunks/pages/slices-071bb494907adf0f.js +0 -1
  65. package/out/_next/static/chunks/webpack-2f903acb0cccbf9e.js +0 -1
  66. package/out/_next/static/css/9c9a7de81f9ac811.css +0 -1
  67. /package/out/_next/static/{atP3j_itxjBtvIysQoCxK → 0SPBnBOIdcPusg2ceVdAq}/_ssgManifest.js +0 -0
@@ -0,0 +1,28 @@
1
+ import { Box, Text } from "@prismicio/editor-ui";
2
+
3
+ export function Hint(args: { show: boolean }) {
4
+ if (!args.show) return null;
5
+
6
+ return (
7
+ <Box
8
+ padding={{ block: 8, inline: 16 }}
9
+ border={{ top: true }}
10
+ borderColor="grey6"
11
+ >
12
+ <Text variant="normal" color="grey11">
13
+ No code snippet for this field.{" "}
14
+ <Text
15
+ component="a"
16
+ href="https://prismic.io/docs/fields/content-relationship"
17
+ rel="noopener noreferrer"
18
+ target="_blank"
19
+ color="grey11"
20
+ underline
21
+ >
22
+ Check the docs
23
+ </Text>{" "}
24
+ for an example.
25
+ </Text>
26
+ </Box>
27
+ );
28
+ }