@uniformdev/canvas-next-rsc 19.29.1-alpha.21 → 19.30.0

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.
@@ -1,4 +1,4 @@
1
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CANVAS_DRAFT_STATE, CANVAS_PUBLISHED_STATE } from '@uniformdev/canvas';
3
3
  import { notFound, redirect } from 'next/navigation';
4
4
  import { Suspense } from 'react';
@@ -11,8 +11,7 @@ import { UniformComponent } from './UniformComponent';
11
11
  import { UniformProvider } from './UniformContext';
12
12
  import { UniformScript } from './UniformScript';
13
13
  export const UniformComposition = ({ suspense = {
14
- mode: 'fallback',
15
- fallback: _jsx(_Fragment, {}),
14
+ mode: 'off',
16
15
  }, ...props }) => (_jsx(ConditionalWrapper, { options: suspense, children: _jsx(UniformCompositionInner, { ...props }) }));
17
16
  const ConditionalWrapper = ({ children, options }) => {
18
17
  if (options.mode === 'off') {
@@ -2,7 +2,8 @@ import { DefaultNotImplementedComponent } from '../components/DefaultNotImplemen
2
2
  import { getTypeWithVariant } from './getTypeWithVariant';
3
3
  export const createComponentStoreResolver = ({ store }) => {
4
4
  return (component) => {
5
- const resolved = store.get(getTypeWithVariant(component.type, component.variant));
5
+ var _a;
6
+ const resolved = (_a = store.get(getTypeWithVariant(component.type, component.variant))) !== null && _a !== void 0 ? _a : store.get(getTypeWithVariant(component.type));
6
7
  return resolved || DefaultNotImplementedComponent;
7
8
  };
8
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc",
3
- "version": "19.29.1-alpha.21+e4a85089b",
3
+ "version": "19.30.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "dev": "pnpm build --watch",
@@ -56,12 +56,12 @@
56
56
  "typescript": "^5.0.4"
57
57
  },
58
58
  "dependencies": {
59
- "@uniformdev/canvas": "^19.29.1-alpha.21+e4a85089b",
60
- "@uniformdev/canvas-react": "^19.29.1-alpha.21+e4a85089b",
61
- "@uniformdev/context": "^19.29.1-alpha.21+e4a85089b",
62
- "@uniformdev/project-map": "^19.29.1-alpha.21+e4a85089b",
63
- "@uniformdev/redirect": "^19.29.1-alpha.21+e4a85089b",
64
- "@uniformdev/webhooks": "^19.29.1-alpha.21+e4a85089b",
59
+ "@uniformdev/canvas": "^19.30.0",
60
+ "@uniformdev/canvas-react": "^19.30.0",
61
+ "@uniformdev/context": "^19.30.0",
62
+ "@uniformdev/project-map": "^19.30.0",
63
+ "@uniformdev/redirect": "^19.30.0",
64
+ "@uniformdev/webhooks": "^19.30.0",
65
65
  "@vercel/edge-config": "^0.1.5",
66
66
  "dequal": "^2.0.3",
67
67
  "js-cookie": "^3.0.5",
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "e4a85089be25614f3eefba2382c9704e80789a4b"
78
+ "gitHead": "4ba30652b254065ff8bd322072afa3149c29167e"
79
79
  }