Convert the bundled backend/internal/plugins/smartblock package into a standalone reactor-mode wasm plugin: - package smartblock -> package main; add wasip1 main.go with wasmguest.Serve(Registration). - Add go.mod (module git.dev.alexdunmow.com/block/smartblock) pinning block/core v0.18.2; no replace directives. - Flesh out plugin.mod (scope=ninja, kind=plugin, categories, tags, display_name, description). - Point web/eslint.config.js at ../../../cms/web/eslint.config.js and switch @block-ninja/ui from workspace:* to the ^0.1.0 registry version; rebuild web/dist. - Add .gitignore (*.bnp, *.wasm, web/node_modules). Behavior unchanged: registers the "smart" block; assets served from web/dist. Builds to smartblock-1.0.0.bnp; check-safety passes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
106 lines
2.9 KiB
JavaScript
106 lines
2.9 KiB
JavaScript
import { importShared } from "./__federation_fn_import-hlt2XzeI.js";
|
|
import { X as requireShim } from "./index-Bs--Ol2m.js";
|
|
|
|
/**
|
|
* @license lucide-react v0.468.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
const mergeClasses = (...classes) =>
|
|
classes
|
|
.filter((className, index, array) => {
|
|
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
})
|
|
.join(" ")
|
|
.trim();
|
|
|
|
/**
|
|
* @license lucide-react v0.468.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
var defaultAttributes = {
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
width: 24,
|
|
height: 24,
|
|
viewBox: "0 0 24 24",
|
|
fill: "none",
|
|
stroke: "currentColor",
|
|
strokeWidth: 2,
|
|
strokeLinecap: "round",
|
|
strokeLinejoin: "round",
|
|
};
|
|
|
|
/**
|
|
* @license lucide-react v0.468.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const { forwardRef: forwardRef$1, createElement: createElement$1 } = await importShared("react");
|
|
|
|
const Icon = forwardRef$1(({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => {
|
|
return createElement$1(
|
|
"svg",
|
|
{
|
|
ref,
|
|
...defaultAttributes,
|
|
width: size,
|
|
height: size,
|
|
stroke: color,
|
|
strokeWidth: absoluteStrokeWidth ? (Number(strokeWidth) * 24) / Number(size) : strokeWidth,
|
|
className: mergeClasses("lucide", className),
|
|
...rest,
|
|
},
|
|
[...iconNode.map(([tag, attrs]) => createElement$1(tag, attrs)), ...(Array.isArray(children) ? children : [children])],
|
|
);
|
|
});
|
|
|
|
/**
|
|
* @license lucide-react v0.468.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const { forwardRef, createElement } = await importShared("react");
|
|
|
|
const createLucideIcon = (iconName, iconNode) => {
|
|
const Component = forwardRef(({ className, ...props }, ref) =>
|
|
createElement(Icon, {
|
|
ref,
|
|
iconNode,
|
|
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
|
...props,
|
|
}),
|
|
);
|
|
Component.displayName = `${iconName}`;
|
|
return Component;
|
|
};
|
|
|
|
/**
|
|
* @license lucide-react v0.468.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const List = createLucideIcon("List", [
|
|
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
["path", { d: "M3 18h.01", key: "1tta3j" }],
|
|
["path", { d: "M3 6h.01", key: "1rqtza" }],
|
|
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
["path", { d: "M8 18h13", key: "1lx6n3" }],
|
|
["path", { d: "M8 6h13", key: "ik3vkj" }],
|
|
]);
|
|
|
|
var shimExports = requireShim();
|
|
|
|
export { List as L, createLucideIcon as c, shimExports as s };
|