@shell-shock/plugin-banner 0.1.37 → 0.1.38
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/components/banner-builtin.d.cts +1 -2
- package/dist/components/banner-builtin.d.cts.map +1 -1
- package/dist/components/banner-builtin.d.mts +1 -2
- package/dist/components/banner-builtin.d.mts.map +1 -1
- package/dist/components/banner-builtin.mjs.map +1 -1
- package/dist/components/banner-function-declaration.cjs +0 -1
- package/dist/components/banner-function-declaration.d.cts.map +1 -1
- package/dist/components/banner-function-declaration.d.mts.map +1 -1
- package/dist/components/banner-function-declaration.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +15 -15
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
1
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
3
2
|
import { CommandTree } from "@shell-shock/core";
|
|
4
3
|
|
|
@@ -12,7 +11,7 @@ type BannerBuiltinProps = Omit<BuiltinFileProps, "id" | "description"> & {
|
|
|
12
11
|
/**
|
|
13
12
|
* A built-in banner module for Shell Shock.
|
|
14
13
|
*/
|
|
15
|
-
declare function BannerBuiltin(props: BannerBuiltinProps):
|
|
14
|
+
declare function BannerBuiltin(props: BannerBuiltinProps): import("@alloy-js/core").Children;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { BannerBuiltin, BannerBuiltinProps };
|
|
18
17
|
//# sourceMappingURL=banner-builtin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner-builtin.d.cts","names":[],"sources":["../../src/components/banner-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"banner-builtin.d.cts","names":[],"sources":["../../src/components/banner-builtin.tsx"],"mappings":";;;;KAgCY,kBAAA,GAAqB,IAAA,CAC/B,gBAAA;;AADF;;EAOE,OAAA,EAAS,WAAA;AAAA;;;;iBAMK,aAAA,CAAc,KAAA,EAAO,kBAAkB,4BAAA,QAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
1
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
3
2
|
import { CommandTree } from "@shell-shock/core";
|
|
4
3
|
|
|
@@ -12,7 +11,7 @@ type BannerBuiltinProps = Omit<BuiltinFileProps, "id" | "description"> & {
|
|
|
12
11
|
/**
|
|
13
12
|
* A built-in banner module for Shell Shock.
|
|
14
13
|
*/
|
|
15
|
-
declare function BannerBuiltin(props: BannerBuiltinProps):
|
|
14
|
+
declare function BannerBuiltin(props: BannerBuiltinProps): import("@alloy-js/core").Children;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { BannerBuiltin, BannerBuiltinProps };
|
|
18
17
|
//# sourceMappingURL=banner-builtin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner-builtin.d.mts","names":[],"sources":["../../src/components/banner-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"banner-builtin.d.mts","names":[],"sources":["../../src/components/banner-builtin.tsx"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner-builtin.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"banner-builtin.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
3
|
let _alloy_js_core = require("@alloy-js/core");
|
|
5
4
|
let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner-function-declaration.d.cts","names":[],"sources":["../../src/components/banner-function-declaration.tsx"],"mappings":";;;;;UAsCiB,qCAAA;EACf,OAAA,GAAU,WAAA;EACV,QAAA,GAAW,
|
|
1
|
+
{"version":3,"file":"banner-function-declaration.d.cts","names":[],"sources":["../../src/components/banner-function-declaration.tsx"],"mappings":";;;;;UAsCiB,qCAAA;EACf,OAAA,GAAU,WAAA;EACV,QAAA,GAAW,QAAQ;AAAA;;;;;;;iBASL,gCAAA,CACd,KAAA,EAAO,qCAAA,GAAqC,QAAA;AAAA,UA8B7B,kCAAA,SAA2C,8BAA8B;EACxF,KAAA;EACA,MAAA;EACA,MAAA;EACA,WAAA;EACA,0BAAA;EACA,yBAAA;EACA,6BAAA;AAAA;AArC4C;AA8B9C;;;;;AA9B8C,iBA8C9B,6BAAA,CACd,KAAA,EAAO,kCAAA,GAAkC,QAAA;AAAA,UAyM1B,8BAAA,SAAuC,qCAAqC;EAC3F,OAAA,GAAU,iBAAA;EACV,aAAA;EACA,yBAAA;AAAA;;;AAtN6B;AAS/B;;;iBAsNgB,yBAAA,CACd,KAAA,EAAO,8BAAA,GAA8B,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner-function-declaration.d.mts","names":[],"sources":["../../src/components/banner-function-declaration.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"banner-function-declaration.d.mts","names":[],"sources":["../../src/components/banner-function-declaration.tsx"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner-function-declaration.mjs","names":[],"sources":["../../src/components/banner-function-declaration.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Children } from \"@alloy-js/core\";\nimport { code, computed, Show } from \"@alloy-js/core\";\nimport { FunctionDeclaration, IfStatement } from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n TSDoc,\n TSDocParam\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport {\n formatDescription,\n getAppDescription,\n getAppTitle\n} from \"@shell-shock/core/plugin-utils\";\nimport type { CommandTree } from \"@shell-shock/core/types/command\";\nimport { useTheme } from \"@shell-shock/plugin-theme/contexts/theme\";\nimport type { ThemeColorVariant } from \"@shell-shock/plugin-theme/types/theme\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport type { BannerPluginContext } from \"../types\";\n\nexport interface BannerFunctionDeclarationWrapperProps {\n command?: CommandTree;\n children?: Children;\n}\n\n/**\n * A component to generate the `banner` function for a specific command or application.\n *\n * @remarks\n * This function will display a banner in the console with the application's name, version, and description. It can be customized with different variants for styling and supports conditional rendering based on flags or environment variables.\n */\nexport function BannerFunctionDeclarationWrapper(\n props: BannerFunctionDeclarationWrapperProps\n) {\n const { command, children } = props;\n\n const context = usePowerlines<BannerPluginContext>();\n\n return (\n <>\n <TSDoc\n heading={`Write the ${getAppTitle(context, true)} command-line interface application banner ${\n command ? `for the ${command.title} command ` : \"\"\n }to the console.`}>\n <TSDocParam name=\"sleepTimeoutMs\">\n {`The amount of time in milliseconds to sleep before displaying the banner. This can be used to create a delay before the banner is shown, allowing for any necessary setup or initialization to occur first. The default value is 500 milliseconds.`}\n </TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n export\n async\n name=\"showBanner\"\n parameters={[{ name: \"sleepTimeoutMs\", type: \"number\", default: 500 }]}>\n {children}\n <IfStatement condition={code`isInteractive && !isHelp()`}>\n {code`await sleep(sleepTimeoutMs);`}\n </IfStatement>\n </FunctionDeclaration>\n </>\n );\n}\n\nexport interface BannerFunctionBodyDeclarationProps extends BannerFunctionDeclarationProps {\n title?: string;\n header?: string;\n footer?: string;\n description: string;\n insertNewlineBeforeCommand?: boolean;\n insertNewlineBeforeBanner?: boolean;\n insertNewlineAfterDescription?: boolean;\n}\n\n/**\n * A component to generate the `banner` function's body for a specific command or application.\n *\n * @remarks\n * This function will display a banner in the console with the application's name, version, and description. It can be customized with different variants for styling and supports conditional rendering based on flags or environment variables.\n */\nexport function BannerFunctionBodyDeclaration(\n props: BannerFunctionBodyDeclarationProps\n) {\n const {\n consoleFnName = \"log\",\n variant = \"primary\",\n title,\n header,\n footer,\n description,\n command,\n children,\n insertNewlineBeforeCommand = false,\n insertNewlineBeforeBanner = true,\n insertNewlineAfterDescription = false\n } = props;\n\n const theme = useTheme();\n\n const borderStyle = theme.borderStyles.banner.outline[variant];\n const icon = theme.icons.banner.header[variant];\n\n const bannerPadding = computed(\n () =>\n Math.max(theme.padding.app, 0) * 2 +\n borderStyle.left.length +\n borderStyle.right.length\n );\n const innerPadding = computed(() => Math.max(theme.padding.banner, 2));\n const totalPadding = computed(\n () => Math.max(theme.padding.banner, 0) * 2 + bannerPadding.value\n );\n const headerRepeat = computed(() =>\n Math.max(Math.floor(innerPadding.value / 2) - 1, 2)\n );\n const headerStaticWidth = computed(\n () =>\n borderStyle.topLeft.length +\n headerRepeat.value +\n (icon ? 1 + icon.length + 1 + borderStyle.top.length + 1 : 1) +\n (header ? header.length : 0) +\n 1 +\n borderStyle.topRight.length\n );\n const footerStaticWidth = computed(\n () =>\n borderStyle.bottomLeft.length +\n 1 +\n (footer ? footer.length : 0) +\n 1 +\n headerRepeat.value +\n borderStyle.bottomRight.length\n );\n\n return (\n <>\n {code`\n if (useMeta().get(\"banner\") || hasFlag(\"no-banner\") || hasFlag(\"hide-banner\") || isMinimal) {\n return;\n }\n\n useMeta().set(\"banner\", true); `}\n <Spacing />\n <Show when={insertNewlineBeforeBanner}>{code`writeLine(\"\"); `}</Show>\n <Spacing />\n {code`writeLine(borderColors.banner.outline.${variant}(\"${\n borderStyle.topLeft\n }\") + borderColors.banner.outline.${\n variant\n }(\"${borderStyle.top}\".repeat(${headerRepeat.value}))${\n icon\n ? ` + \" \" + textColors.banner.header.${\n variant\n }(\"${icon}\") + \" \" + borderColors.banner.outline.${variant}(\"${\n borderStyle.top\n }\")`\n : \"\"\n } + \" \" + bold(textColors.banner.header.${variant}(\"${formatDescription(\n header || \"\"\n )}\")) + \" \" + borderColors.banner.outline.${\n variant\n }(\"${borderStyle.top}\".repeat(Math.max(getTerminalSize().columns - ${\n headerStaticWidth.value\n }, 0))) + borderColors.banner.outline.${\n variant\n }(\"${borderStyle.topRight}\"), { consoleFn: console.${consoleFnName} }); `}\n <Spacing />\n <Show when={isSetString(title) && !children}>\n {code`splitText(\"${formatDescription(\n title || \"\"\n )}\", Math.max(getTerminalSize().columns - ${\n totalPadding.value\n }, 20)).forEach((line) => {\n writeLine(borderColors.banner.outline.${variant}(\"${\n borderStyle.left\n }\") + \" \".repeat(Math.max(Math.floor((getTerminalSize().columns - (stripAnsi(line).length + ${\n bannerPadding.value\n })) / 2), 0)) + bold(textColors.banner.title.${\n variant\n }(line)) + \" \".repeat(Math.max(Math.ceil((getTerminalSize().columns - (stripAnsi(line).length + ${\n bannerPadding.value\n })) / 2), 0)) + borderColors.banner.outline.${variant}(\"${\n borderStyle.right\n }\"), { consoleFn: console.${consoleFnName} });\n }); `}\n </Show>\n {children}\n <Show when={isSetString(command?.title)}>\n <Show when={insertNewlineBeforeCommand}>\n {code`writeLine(borderColors.banner.outline.${variant}(\"${\n borderStyle.left\n }\") + \" \".repeat(Math.max(getTerminalSize().columns - ${\n bannerPadding.value\n }, 0)) + borderColors.banner.outline.${variant}(\"${\n borderStyle.right\n }\"), { consoleFn: console.${consoleFnName} }); `}\n </Show>\n {code`writeLine(borderColors.banner.outline.${variant}(\"${\n borderStyle.left\n }\") + \" \".repeat(Math.max(Math.floor((getTerminalSize().columns - (stripAnsi(\"${formatDescription(\n command?.title || \"\"\n )}\").length + ${\n bannerPadding.value\n })) / 2), 0)) + bold(textColors.banner.command.${\n variant\n }(\"${formatDescription(\n command?.title || \"\"\n )}\")) + \" \".repeat(Math.max(Math.ceil((getTerminalSize().columns - (stripAnsi(\"${formatDescription(\n command?.title || \"\"\n )}\").length + ${\n bannerPadding.value\n })) / 2), 0)) + borderColors.banner.outline.${variant}(\"${\n borderStyle.right\n }\"), { consoleFn: console.${consoleFnName} }); `}\n </Show>\n <Spacing />\n {code`splitText(bold(textColors.banner.${\n command ? \"description\" : \"command\"\n }.${variant}(\\`${formatDescription(description)}\\`)), Math.max(${\n command\n ? `${\n totalPadding.value * 2\n } > getTerminalSize().columns / 2 ? getTerminalSize().columns - ${Math.max(\n bannerPadding.value + 4,\n 6\n )} : `\n : \"\"\n }getTerminalSize().columns - ${\n totalPadding.value\n }, 20)).forEach((line) => {\n writeLine(borderColors.banner.outline.${\n variant\n }(\"${borderStyle.left}\") + \" \".repeat(Math.max(Math.floor((getTerminalSize().columns - (stripAnsi(line).length + ${\n bannerPadding.value\n })) / 2), 0)) + textColors.banner.description.${\n variant\n }(line) + \" \".repeat(Math.max(Math.ceil((getTerminalSize().columns - (stripAnsi(line).length + ${\n bannerPadding.value\n })) / 2), 0)) + borderColors.banner.outline.${variant}(\"${\n borderStyle.right\n }\"), { consoleFn: console.${consoleFnName} });\n }); `}\n <Spacing />\n <Show when={insertNewlineAfterDescription}>\n {code`writeLine(borderColors.banner.outline.${variant}(\"${\n borderStyle.left\n }\") + \" \".repeat(Math.max(getTerminalSize().columns - ${\n bannerPadding.value\n }, 0)) + borderColors.banner.outline.${variant}(\"${\n borderStyle.right\n }\"), { consoleFn: console.${consoleFnName} }); `}\n </Show>\n <Spacing />\n {code`writeLine(borderColors.banner.outline.${variant}(\"${\n borderStyle.bottomLeft\n }\") + ${\n footer\n ? `borderColors.banner.outline.${variant}(\"${\n borderStyle.bottom\n }\".repeat(Math.max(getTerminalSize().columns - ${\n footerStaticWidth.value\n }, 0))) + \" \" + bold(textColors.banner.footer.${\n variant\n }(\"${formatDescription(\n footer\n )}\")) + \" \" + borderColors.banner.outline.${variant}(\"${\n borderStyle.bottom\n }\".repeat(${headerRepeat.value}))`\n : `borderColors.banner.outline.${variant}(\"${\n borderStyle.bottom\n }\".repeat(Math.max(getTerminalSize().columns - ${\n borderStyle.bottomLeft.length + borderStyle.bottomRight.length\n }, 0)))`\n } + borderColors.banner.outline.${variant}(\"${\n borderStyle.bottomRight\n }\"), { consoleFn: console.${consoleFnName} }); `}\n <Spacing />\n {code`writeLine(\"\"); `}\n </>\n );\n}\n\nexport interface BannerFunctionDeclarationProps extends BannerFunctionDeclarationWrapperProps {\n variant?: ThemeColorVariant;\n consoleFnName?: \"log\" | \"info\" | \"warn\" | \"error\" | \"debug\";\n insertNewlineBeforeBanner?: boolean;\n}\n\n/**\n * A component to generate the `banner` function for a specific command or application.\n *\n * @remarks\n * This function will display a banner in the console with the application's name, version, and description. It can be customized with different variants for styling and supports conditional rendering based on flags or environment variables.\n */\nexport function BannerFunctionDeclaration(\n props: BannerFunctionDeclarationProps\n) {\n const {\n consoleFnName = \"log\",\n variant = \"primary\",\n command,\n children,\n insertNewlineBeforeBanner = true\n } = props;\n\n const theme = useTheme();\n const context = usePowerlines<BannerPluginContext>();\n\n const header = computed(\n () =>\n `${theme.labels.banner.header[variant] || getAppTitle(context, false)} v${\n context.packageJson.version || \"1.0.0\"\n }`\n );\n const footer = computed(() => theme.labels.banner.footer[variant]);\n const title = computed(\n () =>\n context.config.banner.title ||\n getAppTitle(context, true).replace(\n `v${context.packageJson.version || \"1.0.0\"}`,\n \"\"\n )\n );\n const description = computed(\n () => command?.description || getAppDescription(context)\n );\n\n return (\n <BannerFunctionDeclarationWrapper command={command}>\n <BannerFunctionBodyDeclaration\n title={!children ? title.value : undefined}\n header={header.value}\n description={description.value}\n footer={footer.value}\n variant={variant}\n consoleFnName={consoleFnName}\n command={command}\n insertNewlineBeforeCommand\n insertNewlineBeforeBanner={insertNewlineBeforeBanner}>\n {children}\n </BannerFunctionBodyDeclaration>\n </BannerFunctionDeclarationWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAiCA,SAAS,iCAAqC,OAAM;CACpD,MAAO,EACP,SACA;CAEA,MAAO,UAAU,eAAA;AACf,QAAO,CAAC,gBAAa,OAAA;EACrB,IAAA,UAAW;AACb,UAAA,aAAA,YAAA,SAAA,KAAA,CAAA,6CAAA,UAAA,WAAA,QAAA,MAAA,aAAA,GAAA;;EAEE,IAAA,WAAA;AACG,UAAA,gBAA0B,YAAS;IACvC,MAAA;IACG,UAAA;IACG,CAAC;;EAER,CAAA,EAAM,gBAAU,qBAAA;EACd,UAAO;EACP,OAAA;EACA,MAAQ;;GAER,MAAM;;GAEN,SAAO;GACJ,CAAA;EACD,IAAG,WAAA;AACD,UAAE,CAAA,UAAgB,gBAAkB,aAAa;IAC/C,WAAW,IAAE;IACb,UAAQ,IAAA;IACT,CAAC,CAAC;;EAEN,CAAC,CAAC;;;;;;;;AAQL,SAAS,8BAA4B,OAAgB;CACnD,MAAM,EACJ,gBAAM,OACN,UAAI,WACJ,OACD,QACH,qBAEA,SACE,UACA,6BAAe,OACf,4BAAe,MACf,gCAAmB,UACnB;CACA,MAAA,QAAA,UAAA;CACA,MAAA,cAAA,MAAA,aAAuC,OAAA,QAAA;CACzC,MAAA,OAAA,MAAA,MAAA,OAAA,OAAA;;CAEE,MAAA,eAAA,eAAA,KAAA,IAAA,MAAA,QAAA,QAAA,EAAA,CAAA;CACA,MAAG,eAAa,eAAoB,KAAE,IAAA,MAAW,QAAU,QAAC,EA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AA,OAAA,WAAA,aAAA,MAAA,MAAA,+BAAA,QAAA,IAAA,YAAA,OAAA,gDAAA,YAAA,WAAA,SAAA,YAAA,YAAA,OAAA,QAAA,iCAAA,QAAA,IAAA,YAAA,YAAA,2BAAA,cAAA,OAAA;EAAA,gBAAA,SAAA,EAAA,CAAA;EAAA,IAAA;EAAA;;;;;;;;AAQpC,SAAG,0BAAA,OAAA;CACD,MAAM,EACJ,gBAAI,OACJ,UAAE,WACF,SACA,UACA,4BAAI,SACF;CACJ,MAAI,QAAA,UAAY;CAChB,MAAC,UAAA,eAAA;;CAED,MAAM,SAAC,eAAA,MAAA,OAAA,OAAA,OAAA,SAAA;CACP,MAAG,QAAA,eAAA,QAAA,OAAA,OAAA,SAAA,YAAA,SAAA,KAAA,CAAA,QAAA,IAAA,QAAA,YAAA,WAAA,WAAA,GAAA,CAAA;CACH,MAAK,cAAI,eAAA,SAAA,eAAA,kBAAA,QAAA,CAAA;AACT,QAAM,gBAAmB,kCAAkC;EACnD;EACN,IAAI,WAAA;;IAEA,IAAA,QAAU;AACX,YAAS,CAAA,WAAA,MAAA,QAAA;;IAET,IAAA,SAAS;AACT,YAAK,OAAU;;IAEd,IAAI,cAAa;AACjB,YAAA,YAAA;;IAEA,IAAA,SAAA;AACE,YAAO,OAAK;;IAEL;IACH;IACC;IACP,4BAAK;IACmB;IACd;IACX,CAAC;;EAEL,CAAC"}
|
|
1
|
+
{"version":3,"file":"banner-function-declaration.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/index.cjs
CHANGED
|
@@ -21,7 +21,7 @@ const plugin = (options = {}) => {
|
|
|
21
21
|
...(0, _shell_shock_plugin_theme.default)(options.theme),
|
|
22
22
|
(0, _shell_shock_plugin_console.default)(options.console),
|
|
23
23
|
{
|
|
24
|
-
name: "shell-shock
|
|
24
|
+
name: "shell-shock/banner",
|
|
25
25
|
enforce: "post",
|
|
26
26
|
config() {
|
|
27
27
|
return { banner: { title: options.title } };
|
package/dist/index.d.cts
CHANGED
|
@@ -7,5 +7,5 @@ import { Plugin } from "powerlines";
|
|
|
7
7
|
*/
|
|
8
8
|
declare const plugin: <TContext extends BannerPluginContext = BannerPluginContext>(options?: BannerPluginOptions) => Plugin<TContext>[];
|
|
9
9
|
//#endregion
|
|
10
|
-
export { BannerPluginContext, BannerPluginOptions, BannerPluginResolvedConfig, BannerPluginUserConfig, plugin as default, plugin };
|
|
10
|
+
export { type BannerPluginContext, type BannerPluginOptions, type BannerPluginResolvedConfig, type BannerPluginUserConfig, plugin as default, plugin };
|
|
11
11
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -7,5 +7,5 @@ import { Plugin } from "powerlines";
|
|
|
7
7
|
*/
|
|
8
8
|
declare const plugin: <TContext extends BannerPluginContext = BannerPluginContext>(options?: BannerPluginOptions) => Plugin<TContext>[];
|
|
9
9
|
//#endregion
|
|
10
|
-
export { BannerPluginContext, BannerPluginOptions, BannerPluginResolvedConfig, BannerPluginUserConfig, plugin as default, plugin };
|
|
10
|
+
export { type BannerPluginContext, type BannerPluginOptions, type BannerPluginResolvedConfig, type BannerPluginUserConfig, plugin as default, plugin };
|
|
11
11
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":""}
|
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;UAiCiB,mBAAA;;AAAjB;;EAIE,KAAA,GAAQ,kBAAA;EAKsB;;;EAA9B,OAAA,GAAU,
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;UAiCiB,mBAAA;;AAAjB;;EAIE,KAAA,GAAQ,kBAAA;EAKsB;;;EAA9B,OAAA,GAAU,oBAAoB;EAApB;;;EAKV,KAAA;AAAA;AAAA,KAGU,sBAAA,GAAyB,qBAAA,GACnC,uBAAA,GACA,UAAA;EACE,MAAA,EAAQ,IAAA,CAAK,mBAAA;AAAA;AAAA,KAGL,0BAAA,GAA6B,yBAAA,GACvC,2BAAA,GACA,cAAA;EACE,MAAA,EAAQ,IAAA,CAAK,mBAAA;AAAA;AAAA,KAGL,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,kBAAA,CAAmB,eAAA,IACrB,oBAAA,CAAqB,eAAA,IACrB,OAAA,CAAQ,eAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/plugin-banner",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to generate banner built-in modules that display information about the application.",
|
|
6
6
|
"keywords": [
|
|
@@ -50,22 +50,22 @@
|
|
|
50
50
|
"typings": "dist/index.d.mts",
|
|
51
51
|
"files": ["dist/**/*"],
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@alloy-js/core": "0.23.
|
|
54
|
-
"@alloy-js/typescript": "0.23.0
|
|
55
|
-
"@powerlines/deepkit": "^0.
|
|
56
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
57
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
58
|
-
"@shell-shock/core": "
|
|
59
|
-
"@shell-shock/plugin-theme": "
|
|
60
|
-
"@shell-shock/plugin-console": "
|
|
61
|
-
"@stryke/path": "^0.
|
|
62
|
-
"@stryke/type-checks": "^0.6.
|
|
53
|
+
"@alloy-js/core": "^0.23.1",
|
|
54
|
+
"@alloy-js/typescript": "^0.23.0",
|
|
55
|
+
"@powerlines/deepkit": "^0.9.78",
|
|
56
|
+
"@powerlines/plugin-alloy": "^0.26.217",
|
|
57
|
+
"@powerlines/plugin-plugin": "^0.12.536",
|
|
58
|
+
"@shell-shock/core": "0.17.11",
|
|
59
|
+
"@shell-shock/plugin-theme": "0.4.24",
|
|
60
|
+
"@shell-shock/plugin-console": "0.2.15",
|
|
61
|
+
"@stryke/path": "^0.29.11",
|
|
62
|
+
"@stryke/type-checks": "^0.6.17",
|
|
63
63
|
"defu": "^6.1.7",
|
|
64
|
-
"powerlines": "^0.47.
|
|
64
|
+
"powerlines": "^0.47.124"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
68
|
-
"@types/node": "^25.
|
|
67
|
+
"@powerlines/plugin-deepkit": "^0.11.467",
|
|
68
|
+
"@types/node": "^25.9.1"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": { "access": "public" },
|
|
71
71
|
"exports": {
|
|
@@ -155,5 +155,5 @@
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "9401c1de122d800040306fc89ad1835930c1a826"
|
|
159
159
|
}
|