@burger-editor/client 4.0.0-alpha.7 → 4.0.0-alpha.71
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 +153 -2
- package/dist/animate-insertion.d.ts +17 -0
- package/dist/animate-insertion.d.ts.map +1 -0
- package/dist/burger-editor-root.d.ts +11 -0
- package/dist/burger-editor-root.d.ts.map +1 -0
- package/dist/client.css +851 -577
- package/dist/client.js +32941 -13779
- package/dist/client.js.map +1 -1
- package/dist/commands/register-engine-commands.d.ts +17 -0
- package/dist/commands/register-engine-commands.d.ts.map +1 -0
- package/dist/components/block-catalog.d.ts +20 -0
- package/dist/components/block-catalog.d.ts.map +1 -0
- package/dist/components/block-menu-button.d.ts +28 -0
- package/dist/components/block-menu-button.d.ts.map +1 -0
- package/dist/components/block-menu.d.ts +23 -0
- package/dist/components/block-menu.d.ts.map +1 -0
- package/dist/components/block-options.d.ts +25 -0
- package/dist/components/block-options.d.ts.map +1 -0
- package/dist/components/draft-switcher.d.ts +23 -0
- package/dist/components/draft-switcher.d.ts.map +1 -0
- package/dist/components/editable-area-view.d.ts +44 -0
- package/dist/components/editable-area-view.d.ts.map +1 -0
- package/dist/components/file-list.d.ts +19 -0
- package/dist/components/file-list.d.ts.map +1 -0
- package/dist/components/file-uploader.d.ts +18 -0
- package/dist/components/file-uploader.d.ts.map +1 -0
- package/dist/components/index.d.ts +16 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/initial-insertion-button.d.ts +10 -0
- package/dist/components/initial-insertion-button.d.ts.map +1 -0
- package/dist/components/item-editor-host.d.ts +23 -0
- package/dist/components/item-editor-host.d.ts.map +1 -0
- package/dist/components/preview.d.ts +18 -0
- package/dist/components/preview.d.ts.map +1 -0
- package/dist/components/table-editor.d.ts +28 -0
- package/dist/components/table-editor.d.ts.map +1 -0
- package/dist/components/tabs.d.ts +27 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/thumbnail.d.ts +17 -0
- package/dist/components/thumbnail.d.ts.map +1 -0
- package/dist/components/wysiwyg-field.d.ts +40 -0
- package/dist/components/wysiwyg-field.d.ts.map +1 -0
- package/dist/editor-dialog.d.ts +41 -0
- package/dist/editor-dialog.d.ts.map +1 -0
- package/dist/form/checkbox.d.ts +34 -0
- package/dist/form/checkbox.d.ts.map +1 -0
- package/dist/form/fieldset.d.ts +31 -0
- package/dist/form/fieldset.d.ts.map +1 -0
- package/dist/form/index.d.ts +8 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/form/number-field.d.ts +37 -0
- package/dist/form/number-field.d.ts.map +1 -0
- package/dist/form/radio-group.d.ts +38 -0
- package/dist/form/radio-group.d.ts.map +1 -0
- package/dist/form/select-field.d.ts +38 -0
- package/dist/form/select-field.d.ts.map +1 -0
- package/dist/form/text-area.d.ts +33 -0
- package/dist/form/text-area.d.ts.map +1 -0
- package/dist/form/text-field.d.ts +35 -0
- package/dist/form/text-field.d.ts.map +1 -0
- package/dist/index.d.ts +34 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/initial-insertion-button-DMGBvuDE.js +9147 -0
- package/dist/initial-insertion-button-DMGBvuDE.js.map +1 -0
- package/dist/invoker-commands.d.ts +24 -0
- package/dist/invoker-commands.d.ts.map +1 -0
- package/dist/mount.d.ts +18 -0
- package/dist/mount.d.ts.map +1 -0
- package/dist/replace-element.d.ts.map +1 -1
- package/dist/ui.d.ts +10 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +989 -0
- package/dist/ui.js.map +1 -0
- package/dist/use-command.d.ts +29 -0
- package/dist/use-command.d.ts.map +1 -0
- package/dist/use-engine.d.ts +53 -0
- package/dist/use-engine.d.ts.map +1 -0
- package/dist/view/create-react-view.d.ts +17 -0
- package/dist/view/create-react-view.d.ts.map +1 -0
- package/package.json +29 -15
- package/dist/block-catalog.svelte.d.ts +0 -1
- package/dist/block-menu-button.svelte.d.ts +0 -1
- package/dist/block-menu.svelte.d.ts +0 -1
- package/dist/block-options.svelte.d.ts +0 -1
- package/dist/draft-switcher.svelte.d.ts +0 -1
- package/dist/file-list.svelte.d.ts +0 -1
- package/dist/file-uploader.svelte.d.ts +0 -1
- package/dist/preview.svelte.d.ts +0 -1
- package/dist/svelte-mount.d.ts +0 -10
- package/dist/svelte-mount.d.ts.map +0 -1
- package/dist/table-editor.svelte.d.ts +0 -1
- package/dist/tabs.svelte.d.ts +0 -1
- package/dist/thumbnail.svelte.d.ts +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare module 'react' {
|
|
2
|
+
interface ButtonHTMLAttributes<T> {
|
|
3
|
+
/**
|
|
4
|
+
* Built-in (`show-modal`, `close`, …) or custom (`--`-prefixed)
|
|
5
|
+
* command to invoke on the `commandfor` target.
|
|
6
|
+
*/
|
|
7
|
+
command?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The id of the element the command is dispatched on. Must be in
|
|
10
|
+
* the same document as the button.
|
|
11
|
+
*/
|
|
12
|
+
commandfor?: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Invoker Commands API attributes for buttons. Re-exported (rather than
|
|
17
|
+
* imported for side effects only) so that the module augmentation above
|
|
18
|
+
* survives d.ts bundling and reaches consumers.
|
|
19
|
+
*/
|
|
20
|
+
export interface InvokerCommandAttributes {
|
|
21
|
+
readonly command?: string;
|
|
22
|
+
readonly commandfor?: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=invoker-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoker-commands.d.ts","sourceRoot":"","sources":["../src/invoker-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,OAAO,CAAC;AAEf,OAAO,QAAQ,OAAO,CAAC;IAEtB,UAAU,oBAAoB,CAAC,CAAC;QAC/B;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACpB;CACD;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
package/dist/mount.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Mount a React node into a DOM container and return a cleanup handle,
|
|
4
|
+
* matching the `UICreator` contract shape used across the engine.
|
|
5
|
+
* @param node - The React node to render
|
|
6
|
+
* @param target - The DOM container
|
|
7
|
+
* @returns An object whose `cleanUp` unmounts the root
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* const { cleanUp } = reactMount(<DraftSwitcher engine={engine} />, container);
|
|
11
|
+
* // When the UI is torn down:
|
|
12
|
+
* cleanUp();
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare function reactMount(node: ReactNode, target: HTMLElement): {
|
|
16
|
+
cleanUp: () => void;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=mount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mount.d.ts","sourceRoot":"","sources":["../src/mount.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW;;EAQ9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-element.d.ts","sourceRoot":"","sources":["../src/replace-element.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,SAAM,
|
|
1
|
+
{"version":3,"file":"replace-element.d.ts","sourceRoot":"","sources":["../src/replace-element.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,SAAM,iBAgFtF"}
|
package/dist/ui.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { InvokerCommandAttributes } from './invoker-commands.js';
|
|
2
|
+
export { EditorDialog } from './editor-dialog.js';
|
|
3
|
+
export { reactMount } from './mount.js';
|
|
4
|
+
export { registerEngineCommands } from './commands/register-engine-commands.js';
|
|
5
|
+
export * from './components/index.js';
|
|
6
|
+
export { useCommand } from './use-command.js';
|
|
7
|
+
export type { CommandHandlers } from './use-command.js';
|
|
8
|
+
export { useComponentEvent, useUIState } from './use-engine.js';
|
|
9
|
+
export * from './form/index.js';
|
|
10
|
+
//# sourceMappingURL=ui.d.ts.map
|
package/dist/ui.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAE/B,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAChE,cAAc,iBAAiB,CAAC"}
|