@chaibuilder/pages 0.9.9 → 0.10.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/dist/{HO4MOOFI-BM_yJvwA.cjs → LNWAZHJI-BVkB8sD5.cjs} +1 -1
- package/dist/{HO4MOOFI-CdNx_RC3.js → LNWAZHJI-DnDvbfjC.js} +2 -2
- package/dist/{HUY7CZI3-BCqKZaOi.cjs → MWZ6AO7Z-Dy8xff8F.cjs} +1 -1
- package/dist/{HUY7CZI3-C4CEfcWL.js → MWZ6AO7Z-nL0GUia8.js} +2 -2
- package/dist/{B4MFY5CR-BuhNz_-I.js → YPM2AS64-BfIlFBkW.js} +2914 -2770
- package/dist/YPM2AS64-BtESonfG.cjs +1214 -0
- package/dist/{index-BZLKCbav.js → index-D8NHX8y5.js} +3801 -3897
- package/dist/index-DhpE4jG5.cjs +13 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/render.d.ts +2 -2
- package/package.json +28 -28
- package/dist/B4MFY5CR-Bz8GyXPk.cjs +0 -1200
- package/dist/index-DHDqsSIJ.cjs +0 -13
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-DhpE4jG5.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
|
@@ -2,14 +2,14 @@ import { ChaiBuilderEditorProps } from '@chaibuilder/sdk';
|
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { default as default_2 } from 'react';
|
|
4
4
|
import { DefinedUseQueryResult } from '@tanstack/react-query';
|
|
5
|
-
import { JSX
|
|
5
|
+
import { JSX } from 'react/jsx-runtime';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
import { RESET } from 'jotai/utils';
|
|
8
8
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
9
9
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
10
10
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
11
11
|
|
|
12
|
-
declare const ChaiBuilderPages: (props: ChaiBuilderPagesProps) =>
|
|
12
|
+
declare const ChaiBuilderPages: (props: ChaiBuilderPagesProps) => JSX.Element;
|
|
13
13
|
export default ChaiBuilderPages;
|
|
14
14
|
|
|
15
15
|
declare type ChaiBuilderPagesProps = {
|
|
@@ -91,7 +91,7 @@ declare interface ImagePickerProps {
|
|
|
91
91
|
export declare const LanguageSwitcher: ({ showAdd, variant, }: {
|
|
92
92
|
showAdd?: boolean;
|
|
93
93
|
variant?: "ghost" | "outline";
|
|
94
|
-
}) =>
|
|
94
|
+
}) => JSX.Element | null;
|
|
95
95
|
|
|
96
96
|
declare type LISTEN_EVENTS = "PAGE_LOCKED" | "USER_JOINED" | "TAKE_OVER_REQUESTED" | "UPDATE_ONLINE_USERS" | "TAKE_OVER_REQUEST_ACCEPTED" | "TAKE_OVER_REQUEST_REJECTED";
|
|
97
97
|
|
|
@@ -105,7 +105,7 @@ declare type LoggedInUser = {
|
|
|
105
105
|
expiresAt: number;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
export declare function NestedPathSelector({ data, onSelect, dataType, disabled, }: NestedPathSelectorProps):
|
|
108
|
+
export declare function NestedPathSelector({ data, onSelect, dataType, disabled, }: NestedPathSelectorProps): JSX.Element;
|
|
109
109
|
|
|
110
110
|
declare type NestedPathSelectorProps = {
|
|
111
111
|
data: Record<string, any>;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aj as s, a7 as t, a6 as i, a5 as u, Y as g, a4 as r, X as h, a8 as n, a9 as o, Z as P, _ as C, ae as c, aa as d, ag as l, ai as m, a0 as p, ah as f, a1 as S, ab as b, a2 as L, a3 as k, af as A, ac as F, ad as I } from "./index-D8NHX8y5.js";
|
|
2
2
|
export * from "@chaibuilder/sdk";
|
|
3
3
|
export {
|
|
4
4
|
s as ChaiBuilderPagesRealtime,
|
package/dist/render.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChaiBlock } from '@chaibuilder/runtime';
|
|
2
2
|
import { ChaiPageProps } from '@chaibuilder/runtime';
|
|
3
|
-
import { JSX
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
export declare const RenderChaiBlocks: (props: RenderChaiBlocksProps) =>
|
|
5
|
+
export declare const RenderChaiBlocks: (props: RenderChaiBlocksProps) => JSX.Element;
|
|
6
6
|
|
|
7
7
|
export declare type RenderChaiBlocksProps = {
|
|
8
8
|
blocks: ChaiBlock[];
|
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.10.3",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@chaibuilder/runtime": "2.2.0",
|
|
68
|
-
"@chaibuilder/sdk": "2.
|
|
68
|
+
"@chaibuilder/sdk": "2.5.3",
|
|
69
69
|
"@types/react": "*",
|
|
70
70
|
"@types/react-dom": "*",
|
|
71
71
|
"react": "^18.0 || ^19.0 || ^19.1",
|
|
@@ -81,49 +81,49 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@chaibuilder/runtime": "2.2.0",
|
|
84
|
-
"@chaibuilder/sdk": "2.
|
|
84
|
+
"@chaibuilder/sdk": "2.5.3",
|
|
85
85
|
"@mhsdesign/jit-browser-tailwindcss": "^0.4.2",
|
|
86
86
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
87
87
|
"@tailwindcss/forms": "^0.5.10",
|
|
88
88
|
"@tailwindcss/typography": "^0.5.16",
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
91
|
-
"
|
|
92
|
-
"canvas
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
89
|
+
"@tailwindcss/container-queries": "0.1.1",
|
|
90
|
+
"@tanstack/react-query": "^5.85.0",
|
|
91
|
+
"@types/express-fileupload": "1.5.1",
|
|
92
|
+
"canvas": "3.1.2",
|
|
93
|
+
"canvas-confetti": "1.9.3",
|
|
94
|
+
"compressorjs": "1.2.1",
|
|
95
|
+
"cssnano": "7.1.0",
|
|
96
|
+
"date-fns": "4.1.0",
|
|
97
|
+
"express-fileupload": "1.5.2",
|
|
98
|
+
"framer-motion": "12.23.12",
|
|
98
99
|
"fs": "0.0.1-security",
|
|
99
100
|
"jotai": "2.12.1",
|
|
100
101
|
"lodash-es": "^4.17.21",
|
|
101
|
-
"lucide-react": "^0.
|
|
102
|
+
"lucide-react": "^0.539.0",
|
|
102
103
|
"path": "^0.12.7",
|
|
103
|
-
"react-diff-view": "
|
|
104
|
+
"react-diff-view": "3.3.2",
|
|
104
105
|
"react-dropzone": "^14.3.8",
|
|
105
106
|
"react-filerobot-image-editor": "^4.9.1",
|
|
106
|
-
"
|
|
107
|
-
"
|
|
107
|
+
"react-paginate": "^8.3.0",
|
|
108
|
+
"sonner": "^2.0.7",
|
|
109
|
+
"tailwind-merge": "^3.3.1",
|
|
108
110
|
"tailwindcss-animate": "^1.0.7",
|
|
109
|
-
"
|
|
110
|
-
"zod": "^3.24.1"
|
|
111
|
+
"zod": "^4.0.17"
|
|
111
112
|
},
|
|
112
113
|
"devDependencies": {
|
|
113
|
-
"@eslint/js": "^9.
|
|
114
|
+
"@eslint/js": "^9.33.0",
|
|
114
115
|
"@supabase/supabase-js": "^2.50.2",
|
|
115
|
-
"@tanstack/react-query-devtools": "^5.
|
|
116
|
-
"@testing-library/jest-dom": "^6.6.
|
|
117
|
-
"@testing-library/react": "^16.
|
|
116
|
+
"@tanstack/react-query-devtools": "^5.85.0",
|
|
117
|
+
"@testing-library/jest-dom": "^6.6.4",
|
|
118
|
+
"@testing-library/react": "^16.3.0",
|
|
118
119
|
"@testing-library/user-event": "^14.6.1",
|
|
119
120
|
"@types/canvas-confetti": "^1.9.0",
|
|
120
|
-
"@types/cors": "^2.8.
|
|
121
|
-
"@types/express": "^5.0.
|
|
121
|
+
"@types/cors": "^2.8.19",
|
|
122
|
+
"@types/express": "^5.0.3",
|
|
122
123
|
"@types/lodash-es": "^4.17.12",
|
|
123
124
|
"@types/node": "^22.10.10",
|
|
124
|
-
"@types/react": "^
|
|
125
|
-
"@types/react-dom": "^
|
|
126
|
-
"@uploadcare/react-uploader": "^1.4.0",
|
|
125
|
+
"@types/react": "^19.1.10",
|
|
126
|
+
"@types/react-dom": "^19.1.7",
|
|
127
127
|
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
128
128
|
"autoprefixer": "^10.4.20",
|
|
129
129
|
"chokidar": "^4.0.3",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"express": "^4.21.2",
|
|
136
136
|
"global-jsdom": "^26.0.0",
|
|
137
137
|
"globals": "^15.14.0",
|
|
138
|
-
"jotai-devtools": "^0.
|
|
138
|
+
"jotai-devtools": "^0.12.0",
|
|
139
139
|
"jsdom": "^26.0.0",
|
|
140
140
|
"msw": "^2.7.0",
|
|
141
141
|
"nodemon": "^3.1.9",
|