@cloudcannon/editable-regions 0.0.18 → 0.0.20-rc.1
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/helpers/checks.ts +0 -22
- package/helpers/hydrate-editable-regions.ts +2 -1
- package/integrations/astro/react-renderer.mjs +94 -19
- package/integrations/astro/svelte-renderer.mjs +72 -15
- package/integrations/astro/vue-renderer.mjs +61 -0
- package/integrations/eleventy/browser/collect-config.mjs +69 -8
- package/integrations/eleventy/browser/inert.mjs +35 -0
- package/integrations/eleventy/browser/process-shim.mjs +32 -0
- package/integrations/eleventy/browser/stub-mode.mjs +61 -0
- package/integrations/eleventy/index.cjs +28 -1
- package/integrations/eleventy/index.mjs +82 -30
- package/integrations/hugo/browser/entry.js +13 -0
- package/integrations/hugo/browser/errors.ts +41 -0
- package/integrations/hugo/browser/index.ts +344 -0
- package/integrations/hugo/browser/logger.ts +42 -0
- package/integrations/hugo/browser/wasm_exec.js +575 -0
- package/integrations/hugo/hugo-module/layouts/partials/editable-regions/find-config-files.html +14 -0
- package/integrations/hugo/hugo-module/layouts/partials/editable-regions/find-dep-template-files.html +66 -0
- package/integrations/hugo/hugo-module/layouts/partials/editable-regions/find-files-with-extension.html +27 -0
- package/integrations/hugo/hugo-module/layouts/partials/editable-regions/find-template-files.html +51 -0
- package/integrations/hugo/hugo-module/layouts/partials/editable-regions/load-deps.html +5 -0
- package/integrations/hugo/hugo-module/layouts/partials/editable-regions/normalize-extensions.html +9 -0
- package/integrations/hugo/hugo-module/layouts/partials/editable-regions/resources.html +87 -0
- package/integrations/hugo/hugo-module/layouts/partials/editable-regions/wasm-url.html +28 -0
- package/integrations/hugo/hugo-module/layouts/partials/editable-regions.html +6 -0
- package/integrations/hugo/renderer/build.sh +24 -0
- package/integrations/hugo/renderer/go.mod +100 -0
- package/integrations/hugo/renderer/go.sum +241 -0
- package/integrations/hugo/renderer/main.go +412 -0
- package/integrations/liquid/README.md +92 -3
- package/integrations/liquid/errors.mjs +3 -1
- package/integrations/liquid/fs.mjs +11 -1
- package/integrations/liquid/globals.mjs +131 -26
- package/integrations/liquid/index.mjs +5 -2
- package/integrations/vue.mjs +28 -0
- package/nodes/editable-array-item.ts +6 -1
- package/nodes/editable-component.ts +2 -3
- package/nodes/editable-text.ts +6 -0
- package/nodes/editable.ts +6 -1
- package/package.json +132 -90
- package/types/astro.d.ts +4 -0
- package/types/eleventy.d.ts +11 -4
- package/types/hugo.d.ts +69 -0
- package/types/liquid.d.ts +0 -1
- package/types/vue.d.ts +40 -0
package/types/vue.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference path="./cloudcannon.d.ts" />
|
|
2
|
+
|
|
3
|
+
import type { HTMLAttributes } from "vue";
|
|
4
|
+
|
|
5
|
+
export function registerVueComponent(key: string, component: unknown): void;
|
|
6
|
+
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
"editable-component": HTMLAttributes & {
|
|
11
|
+
class?: string;
|
|
12
|
+
"data-prop": string;
|
|
13
|
+
"data-component": string;
|
|
14
|
+
};
|
|
15
|
+
"editable-text": HTMLAttributes & {
|
|
16
|
+
class?: string;
|
|
17
|
+
"data-prop": string;
|
|
18
|
+
"data-type"?: "block" | "text" | "span";
|
|
19
|
+
};
|
|
20
|
+
"editable-source": HTMLAttributes & {
|
|
21
|
+
class?: string;
|
|
22
|
+
"data-path": string;
|
|
23
|
+
"data-key": string;
|
|
24
|
+
};
|
|
25
|
+
"editable-array": HTMLAttributes & {
|
|
26
|
+
class?: string;
|
|
27
|
+
"data-prop": string;
|
|
28
|
+
"data-id-key"?: string;
|
|
29
|
+
"data-component-key"?: string;
|
|
30
|
+
"data-component"?: string;
|
|
31
|
+
"data-direction"?: "column" | "row" | "column-reverse" | "row-reverse";
|
|
32
|
+
};
|
|
33
|
+
"editable-array-item": HTMLAttributes & {
|
|
34
|
+
class?: string;
|
|
35
|
+
"data-id"?: string;
|
|
36
|
+
"data-component"?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|