@makeswift/runtime 0.11.11 → 0.11.12
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/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/react-page.cjs.js +2 -1
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +2 -1
- package/dist/react-page.es.js.map +1 -1
- package/dist/types/src/controls/rich-text-v2/rich-text-v2.d.ts +1 -1
- package/dist/types/src/controls/rich-text-v2/rich-text-v2.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1249,7 +1249,7 @@ async function fonts(_req, res, { getFonts } = {}) {
|
|
|
1249
1249
|
const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
|
|
1250
1250
|
return res.json(fonts2);
|
|
1251
1251
|
}
|
|
1252
|
-
const version = "0.11.
|
|
1252
|
+
const version = "0.11.12";
|
|
1253
1253
|
async function handler(req, res, { apiKey, siteVersions }) {
|
|
1254
1254
|
if (req.query.secret !== apiKey) {
|
|
1255
1255
|
return res.status(401).json({ message: "Unauthorized" });
|
package/dist/index.es.js
CHANGED
|
@@ -1216,7 +1216,7 @@ async function fonts(_req, res, { getFonts } = {}) {
|
|
|
1216
1216
|
const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
|
|
1217
1217
|
return res.json(fonts2);
|
|
1218
1218
|
}
|
|
1219
|
-
const version = "0.11.
|
|
1219
|
+
const version = "0.11.12";
|
|
1220
1220
|
async function handler(req, res, { apiKey, siteVersions }) {
|
|
1221
1221
|
if (req.query.secret !== apiKey) {
|
|
1222
1222
|
return res.status(401).json({ message: "Unauthorized" });
|
package/dist/react-page.cjs.js
CHANGED
|
@@ -3937,11 +3937,12 @@ const RichTextV2Mode = {
|
|
|
3937
3937
|
Block: "makeswift::controls::rich-text-v2::mode::block"
|
|
3938
3938
|
};
|
|
3939
3939
|
function RichText(config = {}) {
|
|
3940
|
+
var _a;
|
|
3940
3941
|
return {
|
|
3941
3942
|
type: RichTextV2ControlType,
|
|
3942
3943
|
config: {
|
|
3943
3944
|
mode: config.mode,
|
|
3944
|
-
defaultValue: (config == null ? void 0 : config.mode) === RichTextV2Mode.Inline ? "Edit this text" : ipsum__default["default"](3),
|
|
3945
|
+
defaultValue: (_a = config.defaultValue) != null ? _a : (config == null ? void 0 : config.mode) === RichTextV2Mode.Inline ? "Edit this text" : ipsum__default["default"](3),
|
|
3945
3946
|
plugins: (config == null ? void 0 : config.mode) === RichTextV2Mode.Inline ? [InlineModePlugin()] : [BlockPlugin(), TypographyPlugin(), TextAlignPlugin(), InlinePlugin(), LinkPlugin()]
|
|
3946
3947
|
}
|
|
3947
3948
|
};
|