@chaibuilder/pages 0.7.1-beta.2 → 0.7.1-beta.4
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/dist/{B4MFY5CR-DXulpjuf.js → B4MFY5CR-B5RbWDvn.js} +1 -1
- package/dist/{B4MFY5CR-BZxWJ7zv.cjs → B4MFY5CR-MvVQPqx-.cjs} +1 -1
- package/dist/{HO4MOOFI-FbC2oevJ.js → HO4MOOFI-BGhx1dZB.js} +2 -2
- package/dist/{HO4MOOFI-BVjj5z_y.cjs → HO4MOOFI-D367LnD1.cjs} +1 -1
- package/dist/{HUY7CZI3-BhKIDTHM.js → HUY7CZI3-BF2TaF71.js} +2 -2
- package/dist/{HUY7CZI3-DvxfQh-B.cjs → HUY7CZI3-BhtK5u8t.cjs} +1 -1
- package/dist/{index-C0wqsYPh.cjs → index-C4_XU5pA.cjs} +4 -4
- package/dist/{index-D8t9Rrcz.js → index-C4y39hMA.js} +15 -14
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.js +21 -20
- package/package.json +1 -1
|
@@ -6126,7 +6126,7 @@ const Bd = () => {
|
|
|
6126
6126
|
{
|
|
6127
6127
|
dataType: "value",
|
|
6128
6128
|
data: c ?? {},
|
|
6129
|
-
onSelect: (b) => d && d(b,
|
|
6129
|
+
onSelect: (b) => d && d(b, l)
|
|
6130
6130
|
}
|
|
6131
6131
|
),
|
|
6132
6132
|
/* @__PURE__ */ r(
|
|
@@ -8721,7 +8721,7 @@ var km = (e, t = !1) => {
|
|
|
8721
8721
|
const t = _i(() => {
|
|
8722
8722
|
const n = this, [s] = X(this, Kt), [a] = X(this, Ht), [i] = X(this, Wt), [l] = X(this, Qt), [c] = X(this, zt);
|
|
8723
8723
|
let d;
|
|
8724
|
-
return X(this, Yt) ? d = X(this, Yt) : (d = Pi(() => import("./HO4MOOFI-
|
|
8724
|
+
return X(this, Yt) ? d = X(this, Yt) : (d = Pi(() => import("./HO4MOOFI-BGhx1dZB.js")), ye(this, Yt, d)), Qi(X(this, Rn), X(this, Vt)), Ti(d, Ci({
|
|
8725
8725
|
get queryFlavor() {
|
|
8726
8726
|
return X(n, On);
|
|
8727
8727
|
},
|
|
@@ -8815,7 +8815,7 @@ var km = (e, t = !1) => {
|
|
|
8815
8815
|
const t = _i(() => {
|
|
8816
8816
|
const n = this, [s] = X(this, Zt), [a] = X(this, en), [i] = X(this, tn), [l] = X(this, nn), [c] = X(this, Jt), [d] = X(this, sn);
|
|
8817
8817
|
let u;
|
|
8818
|
-
return X(this, rn) ? u = X(this, rn) : (u = Pi(() => import("./HUY7CZI3-
|
|
8818
|
+
return X(this, rn) ? u = X(this, rn) : (u = Pi(() => import("./HUY7CZI3-BF2TaF71.js")), ye(this, rn, u)), Qi(X(this, jn), X(this, Xt)), Ti(u, Ci({
|
|
8819
8819
|
get queryFlavor() {
|
|
8820
8820
|
return X(n, Mn);
|
|
8821
8821
|
},
|
|
@@ -10263,17 +10263,18 @@ export {
|
|
|
10263
10263
|
st as a3,
|
|
10264
10264
|
ui as a4,
|
|
10265
10265
|
zh as a5,
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10266
|
+
$d as a6,
|
|
10267
|
+
im as a7,
|
|
10268
|
+
Fe as a8,
|
|
10269
|
+
xt as a9,
|
|
10270
|
+
Ds as aa,
|
|
10271
|
+
Ut as ab,
|
|
10272
|
+
it as ac,
|
|
10273
|
+
_d as ad,
|
|
10274
|
+
Rm as ae,
|
|
10275
|
+
J as af,
|
|
10276
|
+
Bt as ag,
|
|
10277
|
+
Um as ah,
|
|
10277
10278
|
Oe as b,
|
|
10278
10279
|
Qe as c,
|
|
10279
10280
|
Tu as d,
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-C4_XU5pA.cjs"),s=require("@chaibuilder/sdk");exports.ChaiBuilderPagesRealtime=e.ChaiBuilderPagesRealtime;exports.ChaiJsonInput=e.SmartJsonInput;exports.ImagePicker=e.ImagePicker;exports.LanguageSwitcher=e.LanguageSwitcher;exports.NestedPathSelector=e.NestedPathSelector;exports.PermissionChecker=e.PermissionChecker;exports.default=e.ChaiBuilderPages;exports.registerChaiLoginComponent=e.registerLoginComponent;exports.useActivePage=e.useActivePage;exports.useBuilderPageData=e.useBuilderPageData;exports.useChaiAuth=e.useChaiAuth;exports.useChaiCurrentPage=e.useCurrentPage;exports.useChaiFetch=e.useChaiFetch;exports.useChaiUserInfo=e.useChaiUserInfo;exports.useFallbackLang=e.useFallbackLang;exports.useFetch=e.useFetch;exports.useGotoPage=e.useGotoPage;exports.useLanguagePages=e.useLanguagePages;exports.usePageTypes=e.usePageTypes;exports.useUpdateActivePageMetadata=e.useUpdateActivePageMetadata;exports.useUserPermissions=e.useUserRoleAndPermissions;exports.useWebsitePages=e.useWebsitePages;exports.useWebsiteSetting=e.useWebsiteSetting;Object.keys(s).forEach(a=>{a!=="default"&&!Object.prototype.hasOwnProperty.call(exports,a)&&Object.defineProperty(exports,a,{enumerable:!0,get:()=>s[a]})});
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ declare interface ChaiBuilderPagesRealtimeInterface {
|
|
|
44
44
|
listenEvent: (event: LISTEN_EVENTS, callback: (payload: any) => void) => void;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
export declare const ChaiJsonInput: React.FC<SmartJsonInputProps>;
|
|
48
|
+
|
|
47
49
|
declare type ChaiWebsiteSetting = {
|
|
48
50
|
fallbackLang: string;
|
|
49
51
|
languages: string[];
|
|
@@ -99,6 +101,18 @@ export declare const PermissionChecker: ({ permission, permissions, children, fa
|
|
|
99
101
|
|
|
100
102
|
export declare const registerChaiLoginComponent: (component: ComponentType) => void;
|
|
101
103
|
|
|
104
|
+
declare interface SmartJsonInputProps {
|
|
105
|
+
value: string;
|
|
106
|
+
onChange: (value: string) => void;
|
|
107
|
+
disabled?: boolean;
|
|
108
|
+
readOnly?: boolean;
|
|
109
|
+
placeholder?: string;
|
|
110
|
+
rows?: number;
|
|
111
|
+
id?: string;
|
|
112
|
+
pageData?: Record<string, any>;
|
|
113
|
+
handleFieldInsert?: (field: string, inputId: string) => void;
|
|
114
|
+
}
|
|
115
|
+
|
|
102
116
|
export declare const useActivePage: () => {
|
|
103
117
|
data: any;
|
|
104
118
|
isFetching: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ah as s, a6 as t, a5 as i, a4 as u, X as g, a3 as r, W as h, a7 as o, Y as n, Z as P, ac as c, a8 as C, ae as d, ag as l, _ as m, af as p, a0 as f, a9 as b, a1 as L, a2 as k, ad as A, aa as F, ab as I } from "./index-C4y39hMA.js";
|
|
2
2
|
export * from "@chaibuilder/sdk";
|
|
3
3
|
export {
|
|
4
4
|
s as ChaiBuilderPagesRealtime,
|
|
5
|
-
t as
|
|
6
|
-
i as
|
|
7
|
-
u as
|
|
8
|
-
g as
|
|
9
|
-
r as
|
|
5
|
+
t as ChaiJsonInput,
|
|
6
|
+
i as ImagePicker,
|
|
7
|
+
u as LanguageSwitcher,
|
|
8
|
+
g as NestedPathSelector,
|
|
9
|
+
r as PermissionChecker,
|
|
10
|
+
h as default,
|
|
10
11
|
o as registerChaiLoginComponent,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
n as useActivePage,
|
|
13
|
+
P as useBuilderPageData,
|
|
14
|
+
c as useChaiAuth,
|
|
15
|
+
C as useChaiCurrentPage,
|
|
16
|
+
d as useChaiFetch,
|
|
17
|
+
l as useChaiUserInfo,
|
|
18
|
+
m as useFallbackLang,
|
|
19
|
+
p as useFetch,
|
|
19
20
|
f as useGotoPage,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
b as useLanguagePages,
|
|
22
|
+
L as usePageTypes,
|
|
23
|
+
k as useUpdateActivePageMetadata,
|
|
24
|
+
A as useUserPermissions,
|
|
25
|
+
F as useWebsitePages,
|
|
26
|
+
I as useWebsiteSetting
|
|
26
27
|
};
|