@chaibuilder/pages 0.7.7 → 0.8.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.
- package/dist/{B4MFY5CR-B0lHrRII.js → B4MFY5CR-C5E8Uba7.js} +1 -1
- package/dist/{B4MFY5CR-DUa-PuhZ.cjs → B4MFY5CR-CZjLmz3a.cjs} +1 -1
- package/dist/{HO4MOOFI-Cueri-LI.js → HO4MOOFI-Ck17HqXO.js} +2 -2
- package/dist/{HO4MOOFI-z6xl2OS2.cjs → HO4MOOFI-c8AUp_HF.cjs} +1 -1
- package/dist/{HUY7CZI3-CrBwmWq4.js → HUY7CZI3-D92fmduy.js} +2 -2
- package/dist/{HUY7CZI3-BaZv1nJw.cjs → HUY7CZI3-DiWsUPL1.cjs} +1 -1
- package/dist/index-COmCyTz5.cjs +6 -0
- package/dist/{index-DLcU_9UE.js → index-ClL_uiNV.js} +3444 -3219
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -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-COmCyTz5.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
|
@@ -19,6 +19,7 @@ declare type ChaiBuilderPagesProps = {
|
|
|
19
19
|
getPreviewUrl?: (slug: string) => string;
|
|
20
20
|
getLiveUrl?: (slug: string) => string;
|
|
21
21
|
onLogout?: () => void;
|
|
22
|
+
getAccessToken?: () => Promise<string>;
|
|
22
23
|
realtimeInstance?: ChaiBuilderPagesRealtimeInterface;
|
|
23
24
|
} & Pick<ChaiBuilderEditorProps, "onError" | "translations" | "locale" | "htmlDir" | "autoSaveSupport" | "autoSaveInterval" | "fallbackLang" | "languages" | "themePresets">;
|
|
24
25
|
|
|
@@ -46,6 +47,16 @@ declare interface ChaiBuilderPagesRealtimeInterface {
|
|
|
46
47
|
|
|
47
48
|
export declare const ChaiJsonInput: React.FC<SmartJsonInputProps>;
|
|
48
49
|
|
|
50
|
+
declare interface ChaiSiteSetting {
|
|
51
|
+
id: string;
|
|
52
|
+
label: string;
|
|
53
|
+
panel: ComponentType;
|
|
54
|
+
button: React.ComponentType<{
|
|
55
|
+
isActive: boolean;
|
|
56
|
+
onClick: () => void;
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
|
|
49
60
|
declare type ChaiWebsiteSetting = {
|
|
50
61
|
fallbackLang: string;
|
|
51
62
|
languages: string[];
|
|
@@ -101,6 +112,13 @@ export declare const PermissionChecker: ({ permission, permissions, children, fa
|
|
|
101
112
|
|
|
102
113
|
export declare const registerChaiLoginComponent: (component: ComponentType) => void;
|
|
103
114
|
|
|
115
|
+
/**
|
|
116
|
+
* Register a new site setting tab
|
|
117
|
+
* @param settingId - Unique identifier for the setting
|
|
118
|
+
* @param options - Configuration options for the setting
|
|
119
|
+
*/
|
|
120
|
+
export declare const registerChaiSiteSetting: (settingId: string, options: Omit<ChaiSiteSetting, "id">) => void;
|
|
121
|
+
|
|
104
122
|
declare interface SmartJsonInputProps {
|
|
105
123
|
value: string;
|
|
106
124
|
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-ClL_uiNV.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.
|
|
6
|
+
"version": "0.8.0",
|
|
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",
|