react-bricks 4.7.0-beta.1 → 4.7.0-beta.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.
- package/astro/DynamicComponent.astro +27 -22
- package/astro/PageViewer.astro +4 -10
- package/astro/index.js +1 -1
- package/astro/package.json +1 -1
- package/astro/react-bricks-astro.esm.js +1 -1
- package/astro/server/index.js +1 -1
- package/astro/server/package.json +1 -1
- package/astro/server/react-bricks-astro-server.esm.js +1 -1
- package/frontend/package.json +2 -2
- package/package.json +2 -2
- package/rsc/client/package.json +2 -2
- package/rsc/package.json +2 -2
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { types } from 'react-bricks/astro'
|
|
3
3
|
import { reactBricksAstroStore, AstroBrick } from 'react-bricks/astro'
|
|
4
|
-
import PageViewer from '
|
|
5
|
-
|
|
6
|
-
// import type { types } from '@/shared/types'
|
|
7
|
-
// import reactBricksAstroStore from '../../ReactBricks/reactBricksAstroStore'
|
|
8
|
-
// import AstroBrick from '../AstroBrick'
|
|
9
|
-
// import PageViewer from './PageViewer.astro'
|
|
10
|
-
|
|
4
|
+
import PageViewer from './PageViewer.astro'
|
|
5
|
+
|
|
11
6
|
interface Props {
|
|
12
7
|
block: types.IContentBlock
|
|
13
8
|
index?: number
|
|
@@ -16,9 +11,11 @@ interface Props {
|
|
|
16
11
|
[x: string]: unknown
|
|
17
12
|
}
|
|
18
13
|
|
|
14
|
+
|
|
19
15
|
let error = false
|
|
20
16
|
const { block, index, itemsCount, page, ...props } = Astro.props as Props
|
|
21
17
|
const config = reactBricksAstroStore.getConfig()
|
|
18
|
+
|
|
22
19
|
if (!config) {
|
|
23
20
|
console.warn('React Bricks Store is not initialized')
|
|
24
21
|
error = true
|
|
@@ -26,7 +23,6 @@ if (!config) {
|
|
|
26
23
|
|
|
27
24
|
reactBricksAstroStore.setBlock(block)
|
|
28
25
|
|
|
29
|
-
// console.log('DynamicComponent', import.meta.env.SSR, !!config)
|
|
30
26
|
const Brick = reactBricksAstroStore.getBrick(block)
|
|
31
27
|
|
|
32
28
|
let blockProps = { ...block.props, ...props }
|
|
@@ -37,8 +33,6 @@ if (!Brick) {
|
|
|
37
33
|
}
|
|
38
34
|
error = true
|
|
39
35
|
} else {
|
|
40
|
-
// Apply mapExternalDataToProps if it is defined
|
|
41
|
-
// and externalData is supplied
|
|
42
36
|
if (
|
|
43
37
|
Brick.schema.mapExternalDataToProps &&
|
|
44
38
|
typeof Brick.schema.mapExternalDataToProps === 'function' &&
|
|
@@ -60,6 +54,8 @@ const pathname =
|
|
|
60
54
|
Astro.url.pathname === '/'
|
|
61
55
|
? Astro.url.pathname
|
|
62
56
|
: trimEndChar(Astro.url.pathname || '', '/')
|
|
57
|
+
|
|
58
|
+
const isDev = import.meta.env.DEV
|
|
63
59
|
---
|
|
64
60
|
|
|
65
61
|
{
|
|
@@ -79,8 +75,18 @@ const pathname =
|
|
|
79
75
|
block={block}
|
|
80
76
|
pathname={pathname}
|
|
81
77
|
/>
|
|
78
|
+
) : Brick.schema.astroInteractivity && isDev ? (
|
|
79
|
+
<AstroBrick
|
|
80
|
+
client:only
|
|
81
|
+
blockProps={blockProps}
|
|
82
|
+
index={index}
|
|
83
|
+
itemsCount={itemsCount}
|
|
84
|
+
page={page}
|
|
85
|
+
block={block}
|
|
86
|
+
pathname={pathname}
|
|
87
|
+
/>
|
|
82
88
|
) : Brick.schema.astroInteractivity === 'load' ||
|
|
83
|
-
|
|
89
|
+
Brick.schema.astroInteractivity.load === true ? (
|
|
84
90
|
<AstroBrick
|
|
85
91
|
client:load
|
|
86
92
|
blockProps={blockProps}
|
|
@@ -91,7 +97,7 @@ const pathname =
|
|
|
91
97
|
pathname={pathname}
|
|
92
98
|
/>
|
|
93
99
|
) : Brick.schema.astroInteractivity === 'idle' ||
|
|
94
|
-
|
|
100
|
+
Brick.schema.astroInteractivity.idle === true ? (
|
|
95
101
|
<AstroBrick
|
|
96
102
|
client:idle
|
|
97
103
|
blockProps={blockProps}
|
|
@@ -101,10 +107,10 @@ const pathname =
|
|
|
101
107
|
block={block}
|
|
102
108
|
pathname={pathname}
|
|
103
109
|
/>
|
|
104
|
-
) : !!
|
|
110
|
+
) : !!Brick.schema.astroInteractivity.idle?.timeout ? (
|
|
105
111
|
<AstroBrick
|
|
106
112
|
client:idle={{
|
|
107
|
-
timeout:
|
|
113
|
+
timeout: Brick.schema.astroInteractivity.idle?.timeout,
|
|
108
114
|
}}
|
|
109
115
|
blockProps={blockProps}
|
|
110
116
|
index={index}
|
|
@@ -114,7 +120,7 @@ const pathname =
|
|
|
114
120
|
pathname={pathname}
|
|
115
121
|
/>
|
|
116
122
|
) : Brick.schema.astroInteractivity === 'visible' ||
|
|
117
|
-
|
|
123
|
+
Brick.schema.astroInteractivity.visible === true ? (
|
|
118
124
|
<AstroBrick
|
|
119
125
|
client:visible
|
|
120
126
|
blockProps={blockProps}
|
|
@@ -124,11 +130,10 @@ const pathname =
|
|
|
124
130
|
block={block}
|
|
125
131
|
pathname={pathname}
|
|
126
132
|
/>
|
|
127
|
-
) : !!
|
|
133
|
+
) : !!Brick.schema.astroInteractivity.visible?.rootMargin ? (
|
|
128
134
|
<AstroBrick
|
|
129
135
|
client:visible={{
|
|
130
|
-
rootMargin:
|
|
131
|
-
?.rootMargin,
|
|
136
|
+
rootMargin: Brick.schema.astroInteractivity.visible?.rootMargin,
|
|
132
137
|
}}
|
|
133
138
|
blockProps={blockProps}
|
|
134
139
|
index={index}
|
|
@@ -137,9 +142,9 @@ const pathname =
|
|
|
137
142
|
block={block}
|
|
138
143
|
pathname={pathname}
|
|
139
144
|
/>
|
|
140
|
-
) : !!
|
|
145
|
+
) : !!Brick.schema.astroInteractivity.media ? (
|
|
141
146
|
<AstroBrick
|
|
142
|
-
client:media={
|
|
147
|
+
client:media={Brick.schema.astroInteractivity.media}
|
|
143
148
|
blockProps={blockProps}
|
|
144
149
|
index={index}
|
|
145
150
|
itemsCount={itemsCount}
|
|
@@ -147,9 +152,9 @@ const pathname =
|
|
|
147
152
|
block={block}
|
|
148
153
|
pathname={pathname}
|
|
149
154
|
/>
|
|
150
|
-
) : !!
|
|
155
|
+
) : !!Brick.schema.astroInteractivity.only ? (
|
|
151
156
|
<AstroBrick
|
|
152
|
-
client:only={
|
|
157
|
+
client:only={Brick.schema.astroInteractivity.only}
|
|
153
158
|
blockProps={blockProps}
|
|
154
159
|
index={index}
|
|
155
160
|
itemsCount={itemsCount}
|
package/astro/PageViewer.astro
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { types } from 'react-bricks/astro'
|
|
3
|
-
import {
|
|
4
|
-
import DynamicComponent from '
|
|
5
|
-
|
|
6
|
-
// import type { types } from '@/shared/types'
|
|
7
|
-
// import reactBricksAstroStore from '../../ReactBricks/reactBricksAstroStore'
|
|
8
|
-
// import ClickToEdit from '../ClickToEdit'
|
|
9
|
-
// import DynamicComponent from './DynamicComponent.astro'
|
|
3
|
+
import { ClickToEdit, reactBricksAstroStore } from 'react-bricks/astro'
|
|
4
|
+
import DynamicComponent from './DynamicComponent.astro'
|
|
10
5
|
|
|
11
6
|
interface Props {
|
|
12
7
|
page: types.Page
|
|
13
8
|
main?: boolean
|
|
14
9
|
}
|
|
15
10
|
|
|
11
|
+
|
|
16
12
|
let error = false
|
|
17
13
|
const { page, main } = Astro.props as Props
|
|
18
14
|
|
|
@@ -30,13 +26,11 @@ if (!pageType) {
|
|
|
30
26
|
error = true
|
|
31
27
|
}
|
|
32
28
|
|
|
33
|
-
// console.log('is main?', !!main, page.name)
|
|
34
29
|
---
|
|
35
|
-
|
|
36
30
|
{
|
|
37
31
|
error
|
|
38
32
|
? ''
|
|
39
|
-
: (page?.content?.map((block, index) => (
|
|
33
|
+
: (page?.content?.map((block: any, index: any) => (
|
|
40
34
|
<DynamicComponent
|
|
41
35
|
page={page}
|
|
42
36
|
key={`${block.id}-${index}`}
|
package/astro/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("intersection-observer");var e=require("../react-bricks-DBsyFafC.js"),t=require("
|
|
1
|
+
"use strict";require("intersection-observer");var e=require("../react-bricks-DBsyFafC.js"),t=require("react"),r=require("../react-bricks-1Be065Jm.js"),n=require("react-icons/fi"),o=require("../react-bricks-BFoJ4_oR.js");require("../react-bricks-Btf-citH.js"),require("classnames"),require("../react-bricks-BNm3bMhQ.js"),require("ts-md5");var i,s="c"+(i=5,e.__spreadArray([],e.__read(Array(i)),!1).map((function(){return(~~(36*Math.random())).toString(36)})).join("")),a=function(){return t.createElement(t.Fragment,null,t.createElement("style",null,"\n.".concat(s," {\n display:block;\n position: fixed;\n box-sizing: border-box;\n z-index: 999;\n bottom: 20px;\n left: 20px;\n padding: 5px 12px;\n background-color: #ffffffdd;\n display: flex;\n justify-content: center;\n align-items: center;\n color: #1e293b;\n font-size: 11px;\n font-weight: 600;\n border: 1px solid #e2e8f0cc;\n border-radius: 20px;\n text-transform: uppercase;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);\n filter: none;\n transition: all 300ms ease;\n}\n.").concat(s,":hover {\n background-color: #ffffff;\n filter: drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08));\n}\n.").concat(s," .l {\n transition: color 300ms ease;\n}\n.").concat(s,":hover .l {\n color: #f65a8e;\n}\n ")),t.createElement("a",{href:"https://reactbricks.com?utm_campaign=site-badge",target:"_blank",className:s},t.createElement("img",{src:"https://reactbricks.com/_next/static/media/reactbricks_icon.c57a7be4.svg",style:{width:18,height:18,marginRight:6}}),t.createElement("span",null,"Made in ",t.createElement("span",{className:"l"},"React Bricks"))))},c=r.reactBricksAstroStore.getBricks,l=r.reactBricksAstroStore.getPageValues,d=r.reactBricksAstroStore.getBlockValue,p=r.reactBricksAstroStore.isAdmin;r.reactBricksAstroStore.register,Object.defineProperty(exports,"types",{enumerable:!0,get:function(){return e.types}}),exports.File=r.File,exports.Image=r.Image,exports.Link=r.Link,exports.Repeater=r.Repeater,exports.RichText=r.CompatibleRichText,exports.RichTextExt=r.RichText,exports.Text=r.Text,exports.reactBricksAstroStore=r.reactBricksAstroStore,exports.useAdminContext=r.useAdminContext,exports.usePageValues=r.usePageValues,exports.useReactBricksContext=r.useReactBricksContext,exports.useVisualEdit=r.useVisualEdit,exports.Plain=o.Plain,exports.AstroBrick=function(n){var o=n.index,i=n.itemsCount,s=n.blockProps,a=n.page,c=n.block,l=n.pathname,d=void 0===l?"":l,p=e.__read(t.useState(r.reactBricksAstroStore.isRegistered()),2),u=p[0],f=p[1];if(t.useEffect((function(){return r.reactBricksAstroStore.__subscribeConfig((function(){f(!0)}))}),[]),"undefined"!=typeof window&&!u)return null;var x=r.reactBricksAstroStore.getBrick(c);return x?(r.reactBricksAstroStore.setPathname(d),t.createElement(x,e.__assign({},s,{key:s.key,index:o,itemsCount:i,__page:a,__block:c}))):("development"===process.env.NODE_ENV&&console.warn('Missing component for block type "'.concat(c.type,'"')),null)},exports.ClickToEdit=function(i){var s,c,l=i.page,d=e.__read(t.useState(!1),2),p=d[0],u=d[1],f=r.useReactBricksContext();if(t.useEffect((function(){u(!0)}),[]),!p)return null;if(!f)return null;var x,m=(null===(s=null==l?void 0:l.customValues)||void 0===s?void 0:s.___t)&&!o.isPaidPlan(null===(c=l.customValues)||void 0===c?void 0:c.___t),g=localStorage.getItem(e.AUTH_TOKEN_LS_KEY);if(g&&g.length>10&&g.startsWith("ey")){if((null==f?void 0:f.clickToEditSide)===e.types.ClickToEditSide.None)return null;var k=f||{navigate:function(){}},b=k.navigate,h=k.editorPath,E=k.clickToEditSide,_={};return E===e.types.ClickToEditSide.BottomRight&&(_.bottom=50,_.right=0,_.borderTopLeftRadius=999,_.borderBottomLeftRadius=999,_.transform="translate(8px,0)"),E===e.types.ClickToEditSide.BottomLeft&&(_.bottom=50,_.left=0,_.borderTopRightRadius=999,_.borderBottomRightRadius=999,_.transform="translate(-8px,0)"),E===e.types.ClickToEditSide.TopRight&&(_.top=50,_.right=0,_.borderTopLeftRadius=999,_.borderBottomLeftRadius=999,_.transform="translate(8px,0)"),E===e.types.ClickToEditSide.TopLeft&&(_.top=50,_.left=0,_.borderTopRightRadius=999,_.borderBottomRightRadius=999,_.transform="translate(-8px,0)"),t.createElement(t.Fragment,null,t.createElement("style",null,"\n.rb-click-to-edit {\n position: fixed;\n z-index: 10;\n width: 61px;\n height: 38px;\n background-color: #f65a8e;\n display: flex;\n justify-content: center;\n align-items: center;\n color: #fff;\n font-size: 20px;\n cursor: pointer;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n transition: all 150ms ease;\n border: 2px solid #fff;\n}\n.rb-click-to-edit-left:hover {\n transform: translate(-2px,0)!important;\n}\n.rb-click-to-edit-right:hover {\n transform: translate(2px,0)!important;\n}\n "),t.createElement("div",{className:"rb-click-to-edit ".concat((x=E,x===e.types.ClickToEditSide.TopLeft||x===e.types.ClickToEditSide.BottomLeft?"rb-click-to-edit-left":"rb-click-to-edit-right")),style:_,onClick:function(){return b("".concat(h,"?p=").concat(encodeURIComponent(l.id),"&l=").concat(l.language))}},t.createElement(n.FiEdit,null)),m&&t.createElement(a,null))}return m&&t.createElement(a,null)},exports.getBlockValue=d,exports.getBricks=c,exports.getPageValues=l,exports.isAdmin=p;
|
package/astro/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"intersection-observer";import{
|
|
1
|
+
import"intersection-observer";import{c as t,e,b as n,A as r,t as o}from"../react-bricks-BO8V0Yxk.esm.js";import i,{useState as s,useEffect as l}from"react";import{r as m,u as p}from"../react-bricks-vrNJ5_JL.esm.js";export{F as File,I as Image,L as Link,R as Repeater,C as RichText,a as RichTextExt,T as Text,b as useAdminContext,c as usePageValues,d as useVisualEdit}from"../react-bricks-vrNJ5_JL.esm.js";import{FiEdit as f}from"react-icons/fi";import{i as u}from"../react-bricks-DVKooNi6.esm.js";export{P as Plain}from"../react-bricks-DVKooNi6.esm.js";import"../react-bricks-DPkjyT2r.esm.js";import"classnames";import"../react-bricks-HPMmwU16.esm.js";import"ts-md5";var g=function(n){var r=n.index,o=n.itemsCount,a=n.blockProps,c=n.page,d=n.block,p=n.pathname,f=void 0===p?"":p,u=t(s(m.isRegistered()),2),b=u[0],g=u[1];if(l((function(){return m.__subscribeConfig((function(){g(!0)}))}),[]),"undefined"!=typeof window&&!b)return null;var x=m.getBrick(d);return x?(m.setPathname(f),i.createElement(x,e({},a,{key:a.key,index:r,itemsCount:o,__page:c,__block:d}))):("development"===process.env.NODE_ENV&&console.warn('Missing component for block type "'.concat(d.type,'"')),null)},x="c"+n([],t(Array(5)),!1).map((function(){return(~~(36*Math.random())).toString(36)})).join(""),k=function(){return i.createElement(i.Fragment,null,i.createElement("style",null,"\n.".concat(x," {\n display:block;\n position: fixed;\n box-sizing: border-box;\n z-index: 999;\n bottom: 20px;\n left: 20px;\n padding: 5px 12px;\n background-color: #ffffffdd;\n display: flex;\n justify-content: center;\n align-items: center;\n color: #1e293b;\n font-size: 11px;\n font-weight: 600;\n border: 1px solid #e2e8f0cc;\n border-radius: 20px;\n text-transform: uppercase;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);\n filter: none;\n transition: all 300ms ease;\n}\n.").concat(x,":hover {\n background-color: #ffffff;\n filter: drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08));\n}\n.").concat(x," .l {\n transition: color 300ms ease;\n}\n.").concat(x,":hover .l {\n color: #f65a8e;\n}\n ")),i.createElement("a",{href:"https://reactbricks.com?utm_campaign=site-badge",target:"_blank",className:x},i.createElement("img",{src:"https://reactbricks.com/_next/static/media/reactbricks_icon.c57a7be4.svg",style:{width:18,height:18,marginRight:6}}),i.createElement("span",null,"Made in ",i.createElement("span",{className:"l"},"React Bricks"))))},h=function(e){var n,a,c=e.page,d=t(s(!1),2),m=d[0],b=d[1],g=p();if(l((function(){b(!0)}),[]),!m)return null;if(!g)return null;var x,h=(null===(n=null==c?void 0:c.customValues)||void 0===n?void 0:n.___t)&&!u(null===(a=c.customValues)||void 0===a?void 0:a.___t),E=localStorage.getItem(r);if(E&&E.length>10&&E.startsWith("ey")){if((null==g?void 0:g.clickToEditSide)===o.ClickToEditSide.None)return null;var v=g||{navigate:function(){}},R=v.navigate,T=v.editorPath,_=v.clickToEditSide,y={};return _===o.ClickToEditSide.BottomRight&&(y.bottom=50,y.right=0,y.borderTopLeftRadius=999,y.borderBottomLeftRadius=999,y.transform="translate(8px,0)"),_===o.ClickToEditSide.BottomLeft&&(y.bottom=50,y.left=0,y.borderTopRightRadius=999,y.borderBottomRightRadius=999,y.transform="translate(-8px,0)"),_===o.ClickToEditSide.TopRight&&(y.top=50,y.right=0,y.borderTopLeftRadius=999,y.borderBottomLeftRadius=999,y.transform="translate(8px,0)"),_===o.ClickToEditSide.TopLeft&&(y.top=50,y.left=0,y.borderTopRightRadius=999,y.borderBottomRightRadius=999,y.transform="translate(-8px,0)"),i.createElement(i.Fragment,null,i.createElement("style",null,"\n.rb-click-to-edit {\n position: fixed;\n z-index: 10;\n width: 61px;\n height: 38px;\n background-color: #f65a8e;\n display: flex;\n justify-content: center;\n align-items: center;\n color: #fff;\n font-size: 20px;\n cursor: pointer;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n transition: all 150ms ease;\n border: 2px solid #fff;\n}\n.rb-click-to-edit-left:hover {\n transform: translate(-2px,0)!important;\n}\n.rb-click-to-edit-right:hover {\n transform: translate(2px,0)!important;\n}\n "),i.createElement("div",{className:"rb-click-to-edit ".concat((x=_,x===o.ClickToEditSide.TopLeft||x===o.ClickToEditSide.BottomLeft?"rb-click-to-edit-left":"rb-click-to-edit-right")),style:y,onClick:function(){return R("".concat(T,"?p=").concat(encodeURIComponent(c.id),"&l=").concat(c.language))}},i.createElement(f,null)),h&&i.createElement(k,null))}return h&&i.createElement(k,null)},E=m.getBricks,v=m.getPageValues,_=m.getBlockValue,y=m.isAdmin;m.register;export{g as AstroBrick,h as ClickToEdit,_ as getBlockValue,E as getBricks,v as getPageValues,y as isAdmin,m as reactBricksAstroStore,o as types,p as useReactBricksContext};
|
package/astro/server/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("intersection-observer");var e=require("../../react-bricks-DBsyFafC.js"),t=require("../../react-bricks-rwnTYUVT.js"),n=require("../../react-bricks-BFoJ4_oR.js"),a=require("react");require("ts-md5");var r=function(t,n){return e.__awaiter(void 0,void 0,void 0,(function(){var a,r,c
|
|
1
|
+
"use strict";require("intersection-observer");var e=require("../../react-bricks-DBsyFafC.js"),t=require("../../react-bricks-rwnTYUVT.js"),n=require("../../react-bricks-BFoJ4_oR.js"),a=require("react");require("ts-md5");var r=function(t,n){return e.__awaiter(void 0,void 0,void 0,(function(){var a,r,i,c;return e.__generator(this,(function(s){switch(s.label){case 0:return r=(a=n||{}).cache,i=a.next,c={cache:r,next:i},[4,fetch("".concat(e.API_URI,"/app"),e.__assign({headers:{Authorization:"Bearer ".concat(t)}},c))];case 1:return[2,s.sent().json()]}}))}))},i=function(t,n){return function(a){return e.__awaiter(void 0,void 0,void 0,(function(){var r,i,c,s;return e.__generator(this,(function(o){switch(o.label){case 0:return i=(r=n||{}).cache,c=r.next,s={cache:i,next:c},[4,fetch(a.language?"".concat(e.API_URI,"/app/find_page?pageId=").concat(a.id,"&language=").concat(a.language):"".concat(e.API_URI,"/app/find_page?pageId=").concat(a.id),e.__assign({headers:{Authorization:"Bearer ".concat(t)}},s))];case 1:return[2,o.sent().json()]}}))}))}};function c(t){var n="virtual:reactbricks-config",a="\0".concat(n);return{name:"vite-plugin-reactbricks-config",resolveId:function(t){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return t===n?[2,a]:[2]}))}))},load:function(n){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return n===a?[2,"\n import { reactBricksAstroStore } from 'react-bricks/astro';\n import { ClickToEdit as ClickToEdit1, AstroBrick as AstroBrick1 } from 'react-bricks/astro';\n import config from '".concat(t,"';\n\n const isAlreadyRegistered = reactBricksAstroStore.isRegistered();\n if (!isAlreadyRegistered) {\n reactBricksAstroStore.register(config);\n }\n\n export const AstroBrick = AstroBrick1;\n export const ClickToEdit = ClickToEdit1;\n\n export default { config, reactBricksAstroStore };\n ")]:[2]}))}))}}}Object.defineProperty(exports,"types",{enumerable:!0,get:function(){return e.types}}),exports.cleanPage=t.cleanPage,exports.Plain=n.Plain,exports.ReactBricks=function(e){var t=e.children;return a.createElement(a.Fragment,null,t)},exports.fetchPage=function(a){return e.__awaiter(this,arguments,void 0,(function(a,c,s,o,u){var l,g,p,_,f,d,h,v,m,k,y,b,x,A,B,E,w,I;return void 0===c&&(c=""),e.__generator(this,(function(P){switch(P.label){case 0:return"string"==typeof a?l=a:(l=a.slug,s=a.language,u=a.getExternalDataArgs,c=a.config.apiKey,o=a.config.pageTypes,g=a.config.bricks,p=a.fetchOptions),c||"undefined"==typeof window||(c=localStorage.getItem(e.AUTH_TOKEN_LS_KEY)||""),_=t.getBricks(g),f=!1,[4,r(c,p)];case 1:return(null==(d=P.sent())?void 0:d.p)&&(f=n.canEmbedPlan(d.p)),h=function(t,n){return function(a){return e.__awaiter(void 0,void 0,void 0,(function(){var r,i,c,s;return e.__generator(this,(function(o){switch(o.label){case 0:return i=(r=n||{}).cache,c=r.next,s={cache:i,next:c},[4,fetch(a.language?"".concat(e.API_URI,"/app/pages/").concat(a.slug,"/translations/").concat(a.language):"".concat(e.API_URI,"/app/pages/").concat(a.slug),e.__assign({headers:{Authorization:"Bearer ".concat(t)}},s))];case 1:return[2,o.sent().json()]}}))}))}}(c,p),v=i(c,p),[4,h({slug:l.replace("/","|"),language:s})];case 2:return(m=P.sent()).customValues=e.__assign(e.__assign({},m.customValues),{___t:null==d?void 0:d.token,___p:null==d?void 0:d.p}),[4,t.getExternalData(m,o,u)];case 3:return k=P.sent(),[4,t.getEmbeddedEntities(m,o||[],v,f)];case 4:return y=P.sent(),b=y.contentWithEmbeds,x=y.externalDataEmbed,m.content=b,m.externalData=e.__assign(e.__assign({},k||{}),x||{}),(A=null==o?void 0:o.find((function(e){return e.name===m.type})))&&A.getDefaultMeta&&"function"==typeof A.getDefaultMeta&&(m.meta=e.__assign(e.__assign({},m.meta),A.getDefaultMeta(m,k||{}))),_?[4,t.getRelationshipEntities(m,o||[],_,v)]:[3,7];case 5:return B=P.sent(),E=B.contentWithRelationshipValues,w=B.customValuesWithRelationshipValues,m.content=E,m.customValues=w,[4,t.getBrickData(m,_,u)];case 6:I=P.sent(),m.content=I,P.label=7;case 7:return[2,m]}}))}))},exports.fetchPagePreview=function(a){return e.__awaiter(this,arguments,void 0,(function(a){var c,s,o,u,l,g,p,_,f,d,h,v,m,k,y,b,x,A,B,E=a.token,w=a.config,I=a.fetchOptions;return e.__generator(this,(function(a){switch(a.label){case 0:return c=t.getBricks(w.bricks),s=!1,[4,r(w.apiKey,I)];case 1:return(null==(o=a.sent())?void 0:o.p)&&(s=n.canEmbedPlan(o.p)),u=i(w.apiKey,I),g=(l=I||{}).cache,p=l.next,_={cache:g,next:p},[4,fetch("".concat(e.API_URI,"/app/preview/").concat(E),_)];case 2:return[4,a.sent().json()];case 3:return(f=a.sent()).customValues=e.__assign(e.__assign({},f.customValues),{___t:null==o?void 0:o.token,___p:null==o?void 0:o.p}),[4,t.getExternalData(f,w.pageTypes)];case 4:return d=a.sent(),[4,t.getEmbeddedEntities(f,w.pageTypes||[],u,s)];case 5:return h=a.sent(),v=h.contentWithEmbeds,m=h.externalDataEmbed,f.content=v,f.externalData=e.__assign(e.__assign({},d||{}),m||{}),(k=null===(B=w.pageTypes)||void 0===B?void 0:B.find((function(e){return e.name===f.type})))&&k.getDefaultMeta&&"function"==typeof k.getDefaultMeta&&(f.meta=e.__assign(e.__assign({},f.meta),k.getDefaultMeta(f,d||{}))),c?[4,t.getRelationshipEntities(f,w.pageTypes||[],c,u)]:[3,8];case 6:return y=a.sent(),b=y.contentWithRelationshipValues,x=y.customValuesWithRelationshipValues,f.content=b,f.customValues=x,[4,t.getBrickData(f,c)];case 7:A=a.sent(),f.content=A,a.label=8;case 8:return[2,f]}}))}))},exports.fetchPages=function(n,a){return e.__awaiter(this,void 0,void 0,(function(){var r,c,s,o,u,l,g,p,_,f,d,h,v,m,k,y,b,x,A,B,E,w,I,P,D,R,T,S,V,j,z,M;return e.__generator(this,(function(U){switch(U.label){case 0:return d=!1,"string"!=typeof n&&n?(r=n.config.apiKey,c=n.type||"",s=n.types||[],o=n.tag||"",u=n.language||"",l=n.page||1,g=n.pageSize||100,p=n.sort||"",_=n.filterBy||{},f=!!n.usePagination,d=!!n.fetchExternalData,v=n.getExternalDataArgs||null,h=n.config,m=n.fetchOptions):(r=n,c=(null==a?void 0:a.type)||"",s=(null==a?void 0:a.types)||[],o=(null==a?void 0:a.tag)||"",u=(null==a?void 0:a.language)||"",l=(null==a?void 0:a.page)||1,g=(null==a?void 0:a.pageSize)||100,p=(null==a?void 0:a.sort)||"",_=(null==a?void 0:a.filterBy)||{},f=!!(null==a?void 0:a.usePagination)),g<=0&&(g=100),k="type=".concat(c,"&types=").concat(null==s?void 0:s.join(","),"&tag=").concat(o,"&language=").concat(u,"&page=").concat(l,"&pageSize=").concat(g,"&sort=").concat(p,"&filterBy=").concat(JSON.stringify(_)),r||"undefined"==typeof window||(r=localStorage.getItem(e.AUTH_TOKEN_LS_KEY)||""),b=(y=m||{}).cache,x=y.next,A={cache:b,next:x},B=i(r,m),[4,fetch("".concat(e.API_URI,"/app/pages?").concat(k),e.__assign({headers:{Authorization:"Bearer ".concat(r)}},A))];case 1:return[4,(E=U.sent()).json()];case 2:if(w=U.sent(),I=[],!h)return[3,11];P=function(n){var a,r,i;return e.__generator(this,(function(c){switch(c.label){case 0:return d?[4,t.getExternalData(n,h.pageTypes,v)]:[3,2];case 1:a=c.sent(),n.externalData=e.__assign({},a||{}),(r=null===(M=h.pageTypes)||void 0===M?void 0:M.find((function(e){return e.name===n.type})))&&r.getDefaultMeta&&"function"==typeof r.getDefaultMeta&&(n.meta=e.__assign(e.__assign({},n.meta),r.getDefaultMeta(n,a||{}))),c.label=2;case 2:return h.bricks?[4,t.getCustomValuesWithRelationshipValues(n,h.pageTypes||[],B)]:[3,4];case 3:i=c.sent(),n.customValues=i,c.label=4;case 4:return I.push(n),[2]}}))},U.label=3;case 3:U.trys.push([3,8,9,10]),D=e.__values(w),R=D.next(),U.label=4;case 4:return R.done?[3,7]:(T=R.value,[5,P(T)]);case 5:U.sent(),U.label=6;case 6:return R=D.next(),[3,4];case 7:return[3,10];case 8:return S=U.sent(),j={error:S},[3,10];case 9:try{R&&!R.done&&(z=D.return)&&z.call(D)}finally{if(j)throw j.error}return[7];case 10:return[3,12];case 11:I.push.apply(I,e.__spreadArray([],e.__read(w),!1)),U.label=12;case 12:return f?(V=E.headers.has("x-total-count")?parseInt(E.headers.get("x-total-count")||"0",10):0,[2,{items:I,pagination:{page:l,pageSize:g,totalItems:V,totalPages:Math.ceil(V/g)}}]):[2,I]}}))}))},exports.fetchTags=function(t){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return e.__awaiter(void 0,e.__spreadArray([t],e.__read(n),!1),void 0,(function(t,n,a,r,i){var c,s,o,u,l,g;return void 0===n&&(n=1),void 0===a&&(a=100),e.__generator(this,(function(p){switch(p.label){case 0:return t||"undefined"==typeof window||(t=localStorage.getItem(e.AUTH_TOKEN_LS_KEY)||""),s=(c=i||{}).cache,o=c.next,u={cache:s,next:o},[4,fetch("".concat(e.API_URI,"/app/tags?pageSize=").concat(a,"&page=").concat(n).concat((null==r?void 0:r.language)?"&language=".concat(null==r?void 0:r.language):"").concat((null==r?void 0:r.q)?"&q=".concat(null==r?void 0:r.q):""),e.__assign({headers:{Authorization:"Bearer ".concat(t)}},u))];case 1:return l=p.sent(),g=l.headers.has("x-total-count")?parseInt(l.headers.get("x-total-count")||"0",10):0,[4,l.json()];case 2:return[2,{items:p.sent(),pagination:{page:n,pageSize:a,totalItems:g,totalPages:Math.ceil(g/a)}}]}}))}))},exports.reactbricks=function(e){return{name:"react-bricks/astro",hooks:{"astro:config:setup":function(t){var n=t.injectScript;(0,t.updateConfig)({vite:{plugins:[c(e)]}}),n("page-ssr",'\n import { AstroBrick } from "virtual:reactbricks-config";\n import { AstroBrick as AstroBrick2 } from "react-bricks/astro";\n // console.log(\'page-ssr\', AstroBrick)\n '),n("page",'\n import { AstroBrick } from "virtual:reactbricks-config";\n import { AstroBrick as AstroBrick2 } from "react-bricks/astro";\n // console.log(\'page\', AstroBrick, AstroBrick2)\n ')}}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"intersection-observer";import{f as e,h as n,j as a,e as r,A as o,b as s,c as i,i as u}from"../../react-bricks-BO8V0Yxk.esm.js";export{t as types}from"../../react-bricks-BO8V0Yxk.esm.js";import{g as l,a as
|
|
1
|
+
import"intersection-observer";import{f as e,h as n,j as a,e as r,A as o,b as s,c as i,i as u}from"../../react-bricks-BO8V0Yxk.esm.js";export{t as types}from"../../react-bricks-BO8V0Yxk.esm.js";import{g as l,a as p,b as g,d as f,e as d,f as h}from"../../react-bricks-C8uZEwAc.esm.js";export{c as cleanPage}from"../../react-bricks-C8uZEwAc.esm.js";import{c as v}from"../../react-bricks-DVKooNi6.esm.js";export{P as Plain}from"../../react-bricks-DVKooNi6.esm.js";import m from"react";import"ts-md5";var k=function(t,c){return e(void 0,void 0,void 0,(function(){var e,o,s,i;return n(this,(function(n){switch(n.label){case 0:return o=(e=c||{}).cache,s=e.next,i={cache:o,next:s},[4,fetch("".concat(a,"/app"),r({headers:{Authorization:"Bearer ".concat(t)}},i))];case 1:return[2,n.sent().json()]}}))}))},b=function(t,c){return function(o){return e(void 0,void 0,void 0,(function(){var e,s,i,u;return n(this,(function(n){switch(n.label){case 0:return s=(e=c||{}).cache,i=e.next,u={cache:s,next:i},[4,fetch(o.language?"".concat(a,"/app/find_page?pageId=").concat(o.id,"&language=").concat(o.language):"".concat(a,"/app/find_page?pageId=").concat(o.id),r({headers:{Authorization:"Bearer ".concat(t)}},u))];case 1:return[2,n.sent().json()]}}))}))}};function y(t){return e(this,arguments,void 0,(function(e){var t,c,o,s,i,u,h,m,y,x,A,B,w,D,j,S,_,V,E,T=e.token,z=e.config,M=e.fetchOptions;return n(this,(function(e){switch(e.label){case 0:return t=f(z.bricks),c=!1,[4,k(z.apiKey,M)];case 1:return(null==(o=e.sent())?void 0:o.p)&&(c=v(o.p)),s=b(z.apiKey,M),u=(i=M||{}).cache,h=i.next,m={cache:u,next:h},[4,fetch("".concat(a,"/app/preview/").concat(T),m)];case 2:return[4,e.sent().json()];case 3:return(y=e.sent()).customValues=r(r({},y.customValues),{___t:null==o?void 0:o.token,___p:null==o?void 0:o.p}),[4,g(y,z.pageTypes)];case 4:return x=e.sent(),[4,p(y,z.pageTypes||[],s,c)];case 5:return A=e.sent(),B=A.contentWithEmbeds,w=A.externalDataEmbed,y.content=B,y.externalData=r(r({},x||{}),w||{}),(D=null===(E=z.pageTypes)||void 0===E?void 0:E.find((function(e){return e.name===y.type})))&&D.getDefaultMeta&&"function"==typeof D.getDefaultMeta&&(y.meta=r(r({},y.meta),D.getDefaultMeta(y,x||{}))),t?[4,d(y,z.pageTypes||[],t,s)]:[3,8];case 6:return j=e.sent(),S=j.contentWithRelationshipValues,_=j.customValuesWithRelationshipValues,y.content=S,y.customValues=_,[4,l(y,t)];case 7:V=e.sent(),y.content=V,e.label=8;case 8:return[2,y]}}))}))}function x(t){return e(this,arguments,void 0,(function(t,c,s,i,u){var h,m,y,x,A,B,w,D,j,S,_,V,E,T,z,M,I,P;return void 0===c&&(c=""),n(this,(function(R){switch(R.label){case 0:return"string"==typeof t?h=t:(h=t.slug,s=t.language,u=t.getExternalDataArgs,c=t.config.apiKey,i=t.config.pageTypes,m=t.config.bricks,y=t.fetchOptions),c||"undefined"==typeof window||(c=localStorage.getItem(o)||""),x=f(m),A=!1,[4,k(c,y)];case 1:return(null==(B=R.sent())?void 0:B.p)&&(A=v(B.p)),w=function(t,c){return function(o){return e(void 0,void 0,void 0,(function(){var e,s,i,u;return n(this,(function(n){switch(n.label){case 0:return s=(e=c||{}).cache,i=e.next,u={cache:s,next:i},[4,fetch(o.language?"".concat(a,"/app/pages/").concat(o.slug,"/translations/").concat(o.language):"".concat(a,"/app/pages/").concat(o.slug),r({headers:{Authorization:"Bearer ".concat(t)}},u))];case 1:return[2,n.sent().json()]}}))}))}}(c,y),D=b(c,y),[4,w({slug:h.replace("/","|"),language:s})];case 2:return(j=R.sent()).customValues=r(r({},j.customValues),{___t:null==B?void 0:B.token,___p:null==B?void 0:B.p}),[4,g(j,i,u)];case 3:return S=R.sent(),[4,p(j,i||[],D,A)];case 4:return _=R.sent(),V=_.contentWithEmbeds,E=_.externalDataEmbed,j.content=V,j.externalData=r(r({},S||{}),E||{}),(T=null==i?void 0:i.find((function(e){return e.name===j.type})))&&T.getDefaultMeta&&"function"==typeof T.getDefaultMeta&&(j.meta=r(r({},j.meta),T.getDefaultMeta(j,S||{}))),x?[4,d(j,i||[],x,D)]:[3,7];case 5:return z=R.sent(),M=z.contentWithRelationshipValues,I=z.customValuesWithRelationshipValues,j.content=M,j.customValues=I,[4,l(j,x,u)];case 6:P=R.sent(),j.content=P,R.label=7;case 7:return[2,j]}}))}))}function A(t,c){return e(this,void 0,void 0,(function(){var e,l,p,f,d,v,m,k,y,x,A,B,w,D,j,S,_,V,E,T,z,M,I,P,R,W,C,K,O,q,F,J;return n(this,(function(N){switch(N.label){case 0:return A=!1,"string"!=typeof t&&t?(e=t.config.apiKey,l=t.type||"",p=t.types||[],f=t.tag||"",d=t.language||"",v=t.page||1,m=t.pageSize||100,k=t.sort||"",y=t.filterBy||{},x=!!t.usePagination,A=!!t.fetchExternalData,w=t.getExternalDataArgs||null,B=t.config,D=t.fetchOptions):(e=t,l=(null==c?void 0:c.type)||"",p=(null==c?void 0:c.types)||[],f=(null==c?void 0:c.tag)||"",d=(null==c?void 0:c.language)||"",v=(null==c?void 0:c.page)||1,m=(null==c?void 0:c.pageSize)||100,k=(null==c?void 0:c.sort)||"",y=(null==c?void 0:c.filterBy)||{},x=!!(null==c?void 0:c.usePagination)),m<=0&&(m=100),j="type=".concat(l,"&types=").concat(null==p?void 0:p.join(","),"&tag=").concat(f,"&language=").concat(d,"&page=").concat(v,"&pageSize=").concat(m,"&sort=").concat(k,"&filterBy=").concat(JSON.stringify(y)),e||"undefined"==typeof window||(e=localStorage.getItem(o)||""),_=(S=D||{}).cache,V=S.next,E={cache:_,next:V},T=b(e,D),[4,fetch("".concat(a,"/app/pages?").concat(j),r({headers:{Authorization:"Bearer ".concat(e)}},E))];case 1:return[4,(z=N.sent()).json()];case 2:if(M=N.sent(),I=[],!B)return[3,11];P=function(e){var t,a,c;return n(this,(function(n){switch(n.label){case 0:return A?[4,g(e,B.pageTypes,w)]:[3,2];case 1:t=n.sent(),e.externalData=r({},t||{}),(a=null===(J=B.pageTypes)||void 0===J?void 0:J.find((function(t){return t.name===e.type})))&&a.getDefaultMeta&&"function"==typeof a.getDefaultMeta&&(e.meta=r(r({},e.meta),a.getDefaultMeta(e,t||{}))),n.label=2;case 2:return B.bricks?[4,h(e,B.pageTypes||[],T)]:[3,4];case 3:c=n.sent(),e.customValues=c,n.label=4;case 4:return I.push(e),[2]}}))},N.label=3;case 3:N.trys.push([3,8,9,10]),R=u(M),W=R.next(),N.label=4;case 4:return W.done?[3,7]:(C=W.value,[5,P(C)]);case 5:N.sent(),N.label=6;case 6:return W=R.next(),[3,4];case 7:return[3,10];case 8:return K=N.sent(),q={error:K},[3,10];case 9:try{W&&!W.done&&(F=R.return)&&F.call(R)}finally{if(q)throw q.error}return[7];case 10:return[3,12];case 11:I.push.apply(I,s([],i(M),!1)),N.label=12;case 12:return x?(O=z.headers.has("x-total-count")?parseInt(z.headers.get("x-total-count")||"0",10):0,[2,{items:I,pagination:{page:v,pageSize:m,totalItems:O,totalPages:Math.ceil(O/m)}}]):[2,I]}}))}))}var B=function(t){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];return e(void 0,s([t],i(c),!1),void 0,(function(e,t,c,s,i){var u,l,p,g,f,d;return void 0===t&&(t=1),void 0===c&&(c=100),n(this,(function(n){switch(n.label){case 0:return e||"undefined"==typeof window||(e=localStorage.getItem(o)||""),l=(u=i||{}).cache,p=u.next,g={cache:l,next:p},[4,fetch("".concat(a,"/app/tags?pageSize=").concat(c,"&page=").concat(t).concat((null==s?void 0:s.language)?"&language=".concat(null==s?void 0:s.language):"").concat((null==s?void 0:s.q)?"&q=".concat(null==s?void 0:s.q):""),r({headers:{Authorization:"Bearer ".concat(e)}},g))];case 1:return f=n.sent(),d=f.headers.has("x-total-count")?parseInt(f.headers.get("x-total-count")||"0",10):0,[4,f.json()];case 2:return[2,{items:n.sent(),pagination:{page:t,pageSize:c,totalItems:d,totalPages:Math.ceil(d/c)}}]}}))}))},w=function(e){var t=e.children;return m.createElement(m.Fragment,null,t)};function D(t){var a="virtual:reactbricks-config",r="\0".concat(a);return{name:"vite-plugin-reactbricks-config",resolveId:function(t){return e(this,void 0,void 0,(function(){return n(this,(function(e){return t===a?[2,r]:[2]}))}))},load:function(a){return e(this,void 0,void 0,(function(){return n(this,(function(e){return a===r?[2,"\n import { reactBricksAstroStore } from 'react-bricks/astro';\n import { ClickToEdit as ClickToEdit1, AstroBrick as AstroBrick1 } from 'react-bricks/astro';\n import config from '".concat(t,"';\n\n const isAlreadyRegistered = reactBricksAstroStore.isRegistered();\n if (!isAlreadyRegistered) {\n reactBricksAstroStore.register(config);\n }\n\n export const AstroBrick = AstroBrick1;\n export const ClickToEdit = ClickToEdit1;\n\n export default { config, reactBricksAstroStore };\n ")]:[2]}))}))}}}function j(e){return{name:"react-bricks/astro",hooks:{"astro:config:setup":function(t){var n=t.injectScript;(0,t.updateConfig)({vite:{plugins:[D(e)]}}),n("page-ssr",'\n import { AstroBrick } from "virtual:reactbricks-config";\n import { AstroBrick as AstroBrick2 } from "react-bricks/astro";\n // console.log(\'page-ssr\', AstroBrick)\n '),n("page",'\n import { AstroBrick } from "virtual:reactbricks-config";\n import { AstroBrick as AstroBrick2 } from "react-bricks/astro";\n // console.log(\'page\', AstroBrick, AstroBrick2)\n ')}}}}export{w as ReactBricks,x as fetchPage,y as fetchPagePreview,A as fetchPages,B as fetchTags,j as reactbricks};
|
package/frontend/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bricks-frontend",
|
|
3
|
-
"version": "4.7.0-beta.
|
|
3
|
+
"version": "4.7.0-beta.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "react-bricks-frontend.esm.js",
|
|
6
6
|
"types": "../react-bricks.d.ts",
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
"default": "./react-bricks-frontend.esm.js",
|
|
11
11
|
"types": "./../react-bricks.d.ts"
|
|
12
12
|
}
|
|
13
|
-
}
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bricks",
|
|
3
|
-
"version": "4.7.0-beta.
|
|
3
|
+
"version": "4.7.0-beta.3",
|
|
4
4
|
"description": "React Bricks is a CMS with visual editing based on React components for Next.js, Gatsby and Remix.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react bricks",
|
|
@@ -103,4 +103,4 @@
|
|
|
103
103
|
"uuid": "^11.1.0",
|
|
104
104
|
"zustand": "^4.5.6"
|
|
105
105
|
}
|
|
106
|
-
}
|
|
106
|
+
}
|
package/rsc/client/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bricks-rsc-client",
|
|
3
|
-
"version": "4.7.0-beta.
|
|
3
|
+
"version": "4.7.0-beta.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "react-bricks-rsc-client.esm.js",
|
|
6
6
|
"types": "./react-bricks-rsc-client.d.ts",
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
"default": "./react-bricks-rsc-client.esm.js",
|
|
11
11
|
"types": "./react-bricks-rsc-client.d.ts"
|
|
12
12
|
}
|
|
13
|
-
}
|
|
13
|
+
}
|
package/rsc/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bricks-rsc",
|
|
3
|
-
"version": "4.7.0-beta.
|
|
3
|
+
"version": "4.7.0-beta.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "react-bricks-rsc.esm.js",
|
|
6
6
|
"types": "./react-bricks-rsc.d.ts",
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
"default": "./react-bricks-rsc.esm.js",
|
|
11
11
|
"types": "./react-bricks-rsc.d.ts"
|
|
12
12
|
}
|
|
13
|
-
}
|
|
13
|
+
}
|