slice-machine-ui 2.16.2-beta.1 → 2.16.2-beta.11

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 (78) hide show
  1. package/out/404.html +1 -1
  2. package/out/_next/static/BxXLQmEwuMSmBB0OCTl9m/_buildManifest.js +1 -0
  3. package/out/_next/static/chunks/157-54b8336d20b41933.js +3 -0
  4. package/out/_next/static/chunks/{183-85de38d65a85dc2c.js → 183-4ea255b867ff171b.js} +1 -1
  5. package/out/_next/static/chunks/248-03446cd9e9f13730.js +1 -0
  6. package/out/_next/static/chunks/268-6a9214b97195af9c.js +1 -0
  7. package/out/_next/static/chunks/33641354.3864aefb6106ae71.js +28 -0
  8. package/out/_next/static/chunks/34-e684c5fd75cc9dd0.js +1 -0
  9. package/out/_next/static/chunks/397-e6c340070a3bcb41.js +1 -0
  10. package/out/_next/static/chunks/630-a9927675acae2970.js +1 -0
  11. package/out/_next/static/chunks/647-7b9b5aa9468f9e4b.js +1 -0
  12. package/out/_next/static/chunks/882-53d88aa0b7e3ffeb.js +1 -0
  13. package/out/_next/static/chunks/{main-1c0e53194ff2e726.js → main-c46f4dcf6e3174bd.js} +1 -1
  14. package/out/_next/static/chunks/pages/_app-274bca1ad521803c.js +708 -0
  15. package/out/_next/static/chunks/pages/changelog-063c5e11dfc8fd55.js +1 -0
  16. package/out/_next/static/chunks/pages/changes-564336edb0ed18b0.js +1 -0
  17. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-61a3846ae1654f54.js → [customTypeId]-a408f5a660e096a6.js} +1 -1
  18. package/out/_next/static/chunks/pages/{custom-types-093f2e2213561492.js → custom-types-5acd56959b60346f.js} +1 -1
  19. package/out/_next/static/chunks/pages/{index-0e27ae9805b59004.js → index-0d8cb369de720a35.js} +1 -1
  20. package/out/_next/static/chunks/pages/labs-9630bfb1005be02b.js +1 -0
  21. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-91a4eb622fa3cb7c.js → [pageTypeId]-f5e851ebe35049a8.js} +1 -1
  22. package/out/_next/static/chunks/pages/settings-01f4aeb9112a1f87.js +1 -0
  23. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-5008e29008aa04f4.js +1 -0
  24. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-94c9cad9da2c3089.js +1 -0
  25. package/out/_next/static/chunks/pages/slices-4a60cd5f2c71327e.js +1 -0
  26. package/out/_next/static/chunks/webpack-b3522fdebabf510a.js +1 -0
  27. package/out/_next/static/css/cc9b10286400c2b9.css +1 -0
  28. package/out/changelog.html +1 -1
  29. package/out/changes.html +1 -1
  30. package/out/custom-types/[customTypeId].html +1 -1
  31. package/out/custom-types.html +1 -1
  32. package/out/index.html +1 -1
  33. package/out/labs.html +1 -1
  34. package/out/page-types/[pageTypeId].html +1 -1
  35. package/out/settings.html +1 -1
  36. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  37. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  38. package/out/slices.html +1 -1
  39. package/package.json +9 -9
  40. package/src/apiClient.ts +8 -6
  41. package/src/features/builder/fields/ContentRelationshipFieldPicker.tsx +1233 -0
  42. package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +2 -4
  43. package/src/features/customTypes/customTypesTable/{useCustomTypes.ts → useCustomTypesAutoRevalidation.tsx} +1 -34
  44. package/src/features/customTypes/useCustomTypes.ts +48 -0
  45. package/src/legacy/components/App/index.tsx +0 -2
  46. package/src/legacy/lib/models/common/widgets/ContentRelationship/Form.tsx +35 -77
  47. package/src/legacy/lib/models/common/widgets/ContentRelationship/index.ts +44 -14
  48. package/src/legacy/lib/models/common/widgets/Link/index.ts +1 -1
  49. package/src/modules/loading/types.ts +0 -1
  50. package/src/modules/useSliceMachineActions.ts +0 -23
  51. package/src/modules/userContext/index.ts +1 -33
  52. package/src/modules/userContext/types.ts +0 -13
  53. package/src/styles/modal.css +0 -22
  54. package/src/utils/isValidObject.ts +32 -0
  55. package/test/src/modules/userContext.test.ts +1 -50
  56. package/out/_next/static/9BX45OSSCQeaYmYslFbMt/_buildManifest.js +0 -1
  57. package/out/_next/static/chunks/157-fca2f00f6df07660.js +0 -5
  58. package/out/_next/static/chunks/268-6d5fc7642a1b87c8.js +0 -1
  59. package/out/_next/static/chunks/34-2911c905c8a6e9d9.js +0 -1
  60. package/out/_next/static/chunks/630-93339694ef30b82d.js +0 -1
  61. package/out/_next/static/chunks/867-8164160c810122c6.js +0 -1
  62. package/out/_next/static/chunks/882-28837678beff7e51.js +0 -1
  63. package/out/_next/static/chunks/895-8c214ba470a4e23c.js +0 -1
  64. package/out/_next/static/chunks/pages/_app-4f1854df4dfc747d.js +0 -657
  65. package/out/_next/static/chunks/pages/changelog-80a618708f44f25f.js +0 -1
  66. package/out/_next/static/chunks/pages/changes-d40c17939854b984.js +0 -1
  67. package/out/_next/static/chunks/pages/labs-c6df252ea5d8fb6f.js +0 -1
  68. package/out/_next/static/chunks/pages/settings-0da3553b3a0acc99.js +0 -1
  69. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-063fa88ba75f483e.js +0 -1
  70. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-c71823bf02dc292d.js +0 -1
  71. package/out/_next/static/chunks/pages/slices-7e816c2b32cc6f19.js +0 -1
  72. package/out/_next/static/chunks/webpack-2f903acb0cccbf9e.js +0 -1
  73. package/out/_next/static/css/f0e6d8449ce2bb46.css +0 -1
  74. package/src/legacy/components/ReviewModal/ReviewForm.tsx +0 -169
  75. package/src/legacy/components/ReviewModal/ReviewFormSelect.tsx +0 -35
  76. package/src/legacy/components/ReviewModal/ReviewModal.tsx +0 -56
  77. package/src/legacy/components/ReviewModal/index.ts +0 -1
  78. /package/out/_next/static/{9BX45OSSCQeaYmYslFbMt → BxXLQmEwuMSmBB0OCTl9m}/_ssgManifest.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slice-machine-ui",
3
- "version": "2.16.2-beta.1",
3
+ "version": "2.16.2-beta.11",
4
4
  "license": "MIT",
5
5
  "description": "A visual builder for your Slice Models with all the tools you need to generate data models and mock CMS content locally.",
6
6
  "repository": {
@@ -35,20 +35,20 @@
35
35
  "start-slicemachine": "./bin/start-slicemachine.cjs"
36
36
  },
37
37
  "dependencies": {
38
- "@slicemachine/manager": "0.24.16-beta.1",
39
- "start-slicemachine": "0.12.58-beta.1"
38
+ "@slicemachine/manager": "0.24.16-beta.11",
39
+ "start-slicemachine": "0.12.58-beta.11"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@emotion/react": "11.11.1",
43
43
  "@extractus/oembed-extractor": "3.1.8",
44
44
  "@prismicio/client": "7.17.0",
45
- "@prismicio/editor-fields": "0.4.75",
46
- "@prismicio/editor-support": "0.4.75",
47
- "@prismicio/editor-ui": "0.4.75",
45
+ "@prismicio/editor-fields": "0.4.77",
46
+ "@prismicio/editor-support": "0.4.77",
47
+ "@prismicio/editor-ui": "0.4.77",
48
48
  "@prismicio/mock": "0.7.1",
49
- "@prismicio/mocks": "2.13.0",
49
+ "@prismicio/mocks": "2.14.0",
50
50
  "@prismicio/simulator": "0.1.4",
51
- "@prismicio/types-internal": "3.10.0",
51
+ "@prismicio/types-internal": "3.11.2",
52
52
  "@radix-ui/react-hover-card": "1.0.6",
53
53
  "@radix-ui/react-tabs": "1.0.4",
54
54
  "@radix-ui/react-visually-hidden": "1.1.1",
@@ -97,7 +97,7 @@
97
97
  "monocle-ts": "2.3.13",
98
98
  "msw": "1.1.0",
99
99
  "newtype-ts": "0.3.5",
100
- "next": "14.2.26",
100
+ "next": "14.2.30",
101
101
  "next-router-mock": "0.8.0",
102
102
  "node-fetch": "3.3.1",
103
103
  "parse-multipart-data": "1.5.0",
package/src/apiClient.ts CHANGED
@@ -72,15 +72,17 @@ export const getState = async (): Promise<ServerState> => {
72
72
  export type CustomTypeUpdateMeta = {
73
73
  fieldIdChanged?: {
74
74
  /**
75
- * Previous path of the changed field. Can be used to identify the field
76
- * that had an API ID rename (e.g. ["page", "title"])
75
+ * Previous path of the changed field, excluding the custom type id. Can be
76
+ * used to identify the field that had an API ID rename (e.g. ["fieldA"] or
77
+ * ["groupA", "fieldA"])
77
78
  */
78
- previousPath: string[];
79
+ previousPath: [string] | [string, string];
79
80
  /**
80
- * New path of the changed field. Can be used to identify the field that
81
- * had an API ID rename (e.g. ["page", "title2"])
81
+ * New path of the changed field, excluding the custom type id. Can be used to
82
+ * identify the field that had an API ID rename (e.g. ["fieldB"] or ["groupA",
83
+ * "fieldB"])
82
84
  */
83
- newPath: string[];
85
+ newPath: [string] | [string, string];
84
86
  };
85
87
  };
86
88