@sevenfold/setto-client 0.3.4 → 0.5.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/README.md +61 -36
- package/dist/SettoRepeater.d.ts +2 -1
- package/dist/admin/App.d.ts +4 -5
- package/dist/edit-mode/constants.d.ts +4 -2
- package/dist/edit-mode/document-layout.d.ts +4 -2
- package/dist/edit-mode/mount.d.ts +2 -2
- package/dist/edit-mode/setto-mark.d.ts +16 -0
- package/dist/guest-edit.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/lib/theme-store.d.ts +2 -0
- package/dist/lib/urls.d.ts +13 -3
- package/dist/lib/use-site-access.d.ts +16 -0
- package/dist/provider.d.ts +10 -5
- package/dist/setto-client.js +426 -249
- package/dist/setto-client.js.map +1 -1
- package/dist/theme-target-utils.d.ts +2 -2
- package/package.json +3 -2
|
@@ -3,5 +3,5 @@ import type { CSSProperties, MouseEvent } from 'react';
|
|
|
3
3
|
export declare function isTextEditClick(target: HTMLElement): boolean;
|
|
4
4
|
/** True when the click landed on a nested theme target inside `container`. */
|
|
5
5
|
export declare function isNestedThemeTarget(target: HTMLElement, container: HTMLElement): boolean;
|
|
6
|
-
export declare function handleThemeTargetClick(e: MouseEvent<HTMLElement>,
|
|
7
|
-
export declare function themeTargetEditStyle(
|
|
6
|
+
export declare function handleThemeTargetClick(e: MouseEvent<HTMLElement>, editable: boolean, themeId: string, selected: boolean, selectSection: (id: string | null) => void, onClick?: (e: MouseEvent<HTMLElement>) => void): void;
|
|
7
|
+
export declare function themeTargetEditStyle(editable: boolean, selected: boolean, accent?: string): CSSProperties;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sevenfold/setto-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "bun@1.3.7",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "vite build && tsc",
|
|
26
26
|
"dev": "vite build --watch",
|
|
27
|
-
"typecheck": "tsc --noEmit"
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"prepare": "bun run build"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
30
31
|
"i18next": ">=23.0.0",
|