@chaibuilder/pages 0.7.7 → 0.7.8
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-B0lHrRII.js → B4MFY5CR-3qzIlgT8.js} +1 -1
- package/dist/{B4MFY5CR-DUa-PuhZ.cjs → B4MFY5CR-CpFV9cRI.cjs} +1 -1
- package/dist/{HO4MOOFI-z6xl2OS2.cjs → HO4MOOFI-BIYWx7mY.cjs} +1 -1
- package/dist/{HO4MOOFI-Cueri-LI.js → HO4MOOFI-BuYNN3wg.js} +2 -2
- package/dist/{HUY7CZI3-BaZv1nJw.cjs → HUY7CZI3-Bxt9ylG-.cjs} +1 -1
- package/dist/{HUY7CZI3-CrBwmWq4.js → HUY7CZI3-D5Zd9WMP.js} +2 -2
- package/dist/index-oMOwrxks.cjs +6 -0
- package/dist/{index-DLcU_9UE.js → index-uVniY_5_.js} +3349 -3137
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/index.js +11 -10
- package/package.json +3 -3
- package/dist/index-Bou8PCr4.cjs +0 -6
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-oMOwrxks.cjs"),t=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.registerChaiSiteSetting=e.registerChaiSiteSetting;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(t).forEach(a=>{a!=="default"&&!Object.prototype.hasOwnProperty.call(exports,a)&&Object.defineProperty(exports,a,{enumerable:!0,get:()=>t[a]})});
|
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,16 @@ declare interface ChaiBuilderPagesRealtimeInterface {
|
|
|
46
46
|
|
|
47
47
|
export declare const ChaiJsonInput: React.FC<SmartJsonInputProps>;
|
|
48
48
|
|
|
49
|
+
declare interface ChaiSiteSetting {
|
|
50
|
+
id: string;
|
|
51
|
+
label: string;
|
|
52
|
+
panel: ComponentType;
|
|
53
|
+
button: React.ComponentType<{
|
|
54
|
+
isActive: boolean;
|
|
55
|
+
onClick: () => void;
|
|
56
|
+
}>;
|
|
57
|
+
}
|
|
58
|
+
|
|
49
59
|
declare type ChaiWebsiteSetting = {
|
|
50
60
|
fallbackLang: string;
|
|
51
61
|
languages: string[];
|
|
@@ -101,6 +111,13 @@ export declare const PermissionChecker: ({ permission, permissions, children, fa
|
|
|
101
111
|
|
|
102
112
|
export declare const registerChaiLoginComponent: (component: ComponentType) => void;
|
|
103
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Register a new site setting tab
|
|
116
|
+
* @param settingId - Unique identifier for the setting
|
|
117
|
+
* @param options - Configuration options for the setting
|
|
118
|
+
*/
|
|
119
|
+
export declare const registerChaiSiteSetting: (settingId: string, options: Omit<ChaiSiteSetting, "id">) => void;
|
|
120
|
+
|
|
104
121
|
declare interface SmartJsonInputProps {
|
|
105
122
|
value: string;
|
|
106
123
|
onChange: (value: string) => void;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ai as s, a6 as t, a5 as i, a4 as u, X as g, a3 as r, W as h, a7 as n, a8 as o, Y as P, Z as C, ad as c, a9 as d, af as l, ah as m, _ as p, ag as f, a0 as S, aa as b, a1 as L, a2 as k, ae as A, ab as F, ac as I } from "./index-uVniY_5_.js";
|
|
2
2
|
export * from "@chaibuilder/sdk";
|
|
3
3
|
export {
|
|
4
4
|
s as ChaiBuilderPagesRealtime,
|
|
@@ -8,16 +8,17 @@ export {
|
|
|
8
8
|
g as NestedPathSelector,
|
|
9
9
|
r as PermissionChecker,
|
|
10
10
|
h as default,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
P as
|
|
11
|
+
n as registerChaiLoginComponent,
|
|
12
|
+
o as registerChaiSiteSetting,
|
|
13
|
+
P as useActivePage,
|
|
14
|
+
C as useBuilderPageData,
|
|
14
15
|
c as useChaiAuth,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
d as useChaiCurrentPage,
|
|
17
|
+
l as useChaiFetch,
|
|
18
|
+
m as useChaiUserInfo,
|
|
19
|
+
p as useFallbackLang,
|
|
20
|
+
f as useFetch,
|
|
21
|
+
S as useGotoPage,
|
|
21
22
|
b as useLanguagePages,
|
|
22
23
|
L as usePageTypes,
|
|
23
24
|
k as useUpdateActivePageMetadata,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"author": "Suraj Air",
|
|
4
4
|
"license": "Private",
|
|
5
5
|
"homepage": "https://chaibuilder.com",
|
|
6
|
-
"version": "0.7.
|
|
6
|
+
"version": "0.7.8",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@chaibuilder/runtime": "2.2.0",
|
|
58
|
-
"@chaibuilder/sdk": "2.3.
|
|
58
|
+
"@chaibuilder/sdk": "2.3.3",
|
|
59
59
|
"@types/react": "*",
|
|
60
60
|
"@types/react-dom": "*",
|
|
61
61
|
"react": "^18.0 || ^19.0 || ^19.1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@chaibuilder/runtime": "2.2.0",
|
|
74
|
-
"@chaibuilder/sdk": "2.3.
|
|
74
|
+
"@chaibuilder/sdk": "2.3.5",
|
|
75
75
|
"@mhsdesign/jit-browser-tailwindcss": "^0.4.2",
|
|
76
76
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
77
77
|
"@tailwindcss/forms": "^0.5.10",
|