eddev 0.3.9 → 0.3.11
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.
|
@@ -26,7 +26,7 @@ exports.installFieldTypes = void 0;
|
|
|
26
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
var fields_1 = __importDefault(require("@manifest/fields"));
|
|
29
|
-
var ReactDOM = __importStar(require("react-dom"));
|
|
29
|
+
var ReactDOM = __importStar(require("react-dom/client"));
|
|
30
30
|
var react_1 = require("react");
|
|
31
31
|
function installFieldTypes() {
|
|
32
32
|
// @ts-ignore
|
|
@@ -35,12 +35,11 @@ function installFieldTypes() {
|
|
|
35
35
|
var type = fields_1.default[name_1];
|
|
36
36
|
var Component = type.render;
|
|
37
37
|
var init = function (field) {
|
|
38
|
-
console.log("Field is", field);
|
|
39
38
|
var $el = field.$el, cid = field.cid, data = field.data;
|
|
40
39
|
var input = $el.find("input[type='hidden']");
|
|
41
40
|
var container = document.createElement("div");
|
|
42
41
|
$el.append(container);
|
|
43
|
-
ReactDOM.render((0, jsx_runtime_1.jsx)(FieldWrapper, { defaultValue: type.defaultValue, validate: type.validate, field: data, input: input[0], settings: input.data("settings"), Component: Component }, void 0)
|
|
42
|
+
ReactDOM.createRoot(container).render((0, jsx_runtime_1.jsx)(FieldWrapper, { defaultValue: type.defaultValue, validate: type.validate, field: data, input: input[0], settings: input.data("settings"), Component: Component }, void 0));
|
|
44
43
|
};
|
|
45
44
|
acf.addAction("ready_field/type=" + name_1, init);
|
|
46
45
|
acf.addAction("append_field/type=" + name_1, init);
|
package/blocks/inlineEditing.js
CHANGED
|
@@ -76,21 +76,17 @@ function EditableText(_a) {
|
|
|
76
76
|
exports.EditableText = EditableText;
|
|
77
77
|
var Appender = function (props) {
|
|
78
78
|
if (props.type === "button") {
|
|
79
|
-
return (0, jsx_runtime_1.jsx)(block_editor_1.ButtonBlockAppender, {}, void 0);
|
|
80
|
-
}
|
|
81
|
-
else if (typeof props.type === "function") {
|
|
82
|
-
return props.type({});
|
|
79
|
+
return (0, jsx_runtime_1.jsx)(block_editor_1.ButtonBlockAppender, { rootClientId: props.clientId }, void 0);
|
|
83
80
|
}
|
|
84
81
|
else {
|
|
85
|
-
return (0, jsx_runtime_1.jsx)(block_editor_1.DefaultBlockAppender, {}, void 0);
|
|
82
|
+
return (0, jsx_runtime_1.jsx)(block_editor_1.DefaultBlockAppender, { rootClientId: props.clientId }, void 0);
|
|
86
83
|
}
|
|
87
84
|
};
|
|
88
85
|
function InnerBlocks(props) {
|
|
89
86
|
if (process.admin) {
|
|
90
87
|
var allowedBlocks = props.allowedBlocks;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
templateLock: props.templateLock, template: props.template }, void 0) }), void 0));
|
|
88
|
+
var ctx_1 = (0, block_editor_1.useBlockEditContext)();
|
|
89
|
+
return ((0, jsx_runtime_1.jsx)(InnerBlocksAdminWrapper, __assign({ orientation: props.orientation || "vertical" }, { children: (0, jsx_runtime_1.jsx)(block_editor_1.InnerBlocks, { orientation: props.orientation, allowedBlocks: allowedBlocks, renderAppender: props.appender ? function () { return (0, jsx_runtime_1.jsx)(Appender, __assign({}, props.appender, { clientId: ctx_1.clientId }), void 0); } : undefined, templateLock: props.templateLock, template: props.template }, void 0) }), void 0));
|
|
94
90
|
}
|
|
95
91
|
else {
|
|
96
92
|
var blocks = (0, blockAttributes_1.useInnerBlocks)();
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { DefaultThemeMap } from "@stitches/react";
|
|
2
3
|
import { ConfigType } from "@stitches/core/types/config";
|
|
3
4
|
import { Properties as CSS } from "csstype";
|
|
@@ -658,7 +659,7 @@ export declare function createStitches<Prefix extends string = "", Media extends
|
|
|
658
659
|
} & { [Scale_4 in keyof (Theme & { [Scale_1 in keyof Responsive]: { [T_1 in keyof Responsive[Scale_1]]: string; }; })]: { [Token_2 in keyof (Theme & { [Scale_1 in keyof Responsive]: { [T_1 in keyof Responsive[Scale_1]]: string; }; })[Scale_4]]: import("@stitches/react/types/theme").Token<Extract<Token_2, string | number>, string, Extract<Scale_4, string | void>, "">; }; };
|
|
659
660
|
reset: () => void;
|
|
660
661
|
getCssText: () => string;
|
|
661
|
-
css: <Composers extends (string | import("
|
|
662
|
+
css: <Composers extends (string | import("react").JSXElementConstructor<any> | import("@stitches/react/types/util").Function | import("react").ExoticComponent<any> | {
|
|
662
663
|
[name: string]: unknown;
|
|
663
664
|
})[], CSS_1 = import("@stitches/react/types/css-util").CSS<{
|
|
664
665
|
initial: "";
|
|
@@ -781,7 +782,7 @@ export declare function createStitches<Prefix extends string = "", Media extends
|
|
|
781
782
|
gridColumn: string;
|
|
782
783
|
"--grid-columns": number;
|
|
783
784
|
};
|
|
784
|
-
}>>(...composers: { [K_1 in keyof Composers]: string extends Composers[K_1] ? Composers[K_1] : Composers[K_1] extends string | import("
|
|
785
|
+
}>>(...composers: { [K_1 in keyof Composers]: string extends Composers[K_1] ? Composers[K_1] : Composers[K_1] extends string | import("react").JSXElementConstructor<any> | import("@stitches/react/types/util").Function | import("react").ExoticComponent<any> ? Composers[K_1] : import("@stitches/react/types/stitches").RemoveIndex<CSS_1> & {
|
|
785
786
|
variants?: {
|
|
786
787
|
[x: string]: {
|
|
787
788
|
[x: string]: CSS_1;
|