@buddhilive/bah-client-ui-brand 0.1.2-alpha.2
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/LICENSE +21 -0
- package/lib/client.js +101 -0
- package/lib/index.js +11 -0
- package/lib/types/client/BuddhiLogo.d.ts +10 -0
- package/lib/types/client/BuddhiWordmark.d.ts +10 -0
- package/lib/types/client/index.d.ts +16 -0
- package/lib/types/index.d.ts +12 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DeepSeek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/lib/client.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
window.__ModuleLoader__.load({
|
|
2
|
+
id: "@buddhilive/bah-client-ui-brand",
|
|
3
|
+
factory: (require) => {
|
|
4
|
+
var module = { exports: {} };
|
|
5
|
+
var exports = module.exports;
|
|
6
|
+
Object.defineProperties(exports, {
|
|
7
|
+
__esModule: { value: true },
|
|
8
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
9
|
+
});
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
//#region lib/types/client/BuddhiLogo.js
|
|
12
|
+
/**
|
|
13
|
+
* BuddhiAI mark: renders the official BuddhiAI PNG logo mark.
|
|
14
|
+
*/
|
|
15
|
+
function BuddhiLogo({ size = 24, className, style, ...props }) {
|
|
16
|
+
return (0, react_jsx_runtime.jsx)("img", {
|
|
17
|
+
src: "/buddhi-logo.png",
|
|
18
|
+
alt: "BuddhiAI",
|
|
19
|
+
width: size,
|
|
20
|
+
height: size,
|
|
21
|
+
className,
|
|
22
|
+
style: {
|
|
23
|
+
objectFit: "contain",
|
|
24
|
+
display: "inline-block",
|
|
25
|
+
verticalAlign: "middle",
|
|
26
|
+
borderRadius: "4px",
|
|
27
|
+
...style
|
|
28
|
+
},
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region lib/types/client/BuddhiWordmark.js
|
|
34
|
+
/**
|
|
35
|
+
* Typographic wordmark for BuddhiAI Harness.
|
|
36
|
+
*/
|
|
37
|
+
function BuddhiWordmark({ className, ...props }) {
|
|
38
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
39
|
+
style: {
|
|
40
|
+
display: "inline-flex",
|
|
41
|
+
alignItems: "baseline",
|
|
42
|
+
gap: "6px",
|
|
43
|
+
fontWeight: 600,
|
|
44
|
+
letterSpacing: "-0.02em",
|
|
45
|
+
fontFamily: "Inter, system-ui, -apple-system, sans-serif",
|
|
46
|
+
userSelect: "none"
|
|
47
|
+
},
|
|
48
|
+
className,
|
|
49
|
+
...props,
|
|
50
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
51
|
+
style: {
|
|
52
|
+
fontSize: "15px",
|
|
53
|
+
color: "currentColor"
|
|
54
|
+
},
|
|
55
|
+
children: "BuddhiAI"
|
|
56
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
57
|
+
style: {
|
|
58
|
+
fontSize: "11px",
|
|
59
|
+
fontWeight: 700,
|
|
60
|
+
textTransform: "uppercase",
|
|
61
|
+
letterSpacing: "0.06em",
|
|
62
|
+
padding: "1px 5px",
|
|
63
|
+
borderRadius: "4px",
|
|
64
|
+
backgroundColor: "var(--color-bg-base, #DD603C)",
|
|
65
|
+
color: "var(--color-bg-base, #121214)",
|
|
66
|
+
opacity: .9
|
|
67
|
+
},
|
|
68
|
+
children: "Harness"
|
|
69
|
+
})]
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region lib/types/client/index.js
|
|
74
|
+
/**
|
|
75
|
+
* BuddhiAI Harness brand occupants for generic browser-brand slots.
|
|
76
|
+
*
|
|
77
|
+
* @module @buddhilive/bah-client-ui-brand/client
|
|
78
|
+
*/
|
|
79
|
+
const inject = ["slots"];
|
|
80
|
+
function apply(ctx) {
|
|
81
|
+
ctx.slots.inject("sidebar.brand.mark", () => ctx.slots.inject("sidebar.brand.name", () => ctx.slots.inject("conversation.hero.brand.mark", function* () {
|
|
82
|
+
yield ctx.slots.register({ name: "sidebar.brand.mark" }, BuddhiLogo);
|
|
83
|
+
yield ctx.slots.register({ name: "sidebar.brand.name" }, BuddhiWordmark);
|
|
84
|
+
yield ctx.slots.register({ name: "conversation.hero.brand.mark" }, BuddhiLogo);
|
|
85
|
+
})));
|
|
86
|
+
}
|
|
87
|
+
var client_default = {
|
|
88
|
+
inject,
|
|
89
|
+
apply
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
exports.BuddhiLogo = BuddhiLogo;
|
|
93
|
+
exports.BuddhiWordmark = BuddhiWordmark;
|
|
94
|
+
exports.apply = apply;
|
|
95
|
+
exports.default = client_default;
|
|
96
|
+
exports.inject = inject;
|
|
97
|
+
return module.exports;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
//# sourceMappingURL=client.js.map
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region lib/types/index.js
|
|
2
|
+
/**
|
|
3
|
+
* BuddhiAI Harness brand plugin, host entry.
|
|
4
|
+
* Contributes browser presentation through exports["./client"].
|
|
5
|
+
*
|
|
6
|
+
* @module @buddhilive/bah-client-ui-brand
|
|
7
|
+
*/
|
|
8
|
+
function apply() {}
|
|
9
|
+
var types_default = { apply };
|
|
10
|
+
//#endregion
|
|
11
|
+
export { apply, types_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ImgHTMLAttributes } from 'react';
|
|
2
|
+
export interface BuddhiLogoProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'size'> {
|
|
3
|
+
size?: number | undefined;
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* BuddhiAI mark: renders the official BuddhiAI PNG logo mark.
|
|
8
|
+
*/
|
|
9
|
+
export declare function BuddhiLogo({ size, className, style, ...props }: BuddhiLogoProps): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=BuddhiLogo.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export interface BuddhiWordmarkProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
includeMark?: boolean | undefined;
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Typographic wordmark for BuddhiAI Harness.
|
|
8
|
+
*/
|
|
9
|
+
export declare function BuddhiWordmark({ className, ...props }: BuddhiWordmarkProps): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=BuddhiWordmark.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BuddhiAI Harness brand occupants for generic browser-brand slots.
|
|
3
|
+
*
|
|
4
|
+
* @module @buddhilive/bah-client-ui-brand/client
|
|
5
|
+
*/
|
|
6
|
+
import type { Context as ClientContext } from '@deepseek-ai/cordis';
|
|
7
|
+
export { BuddhiLogo } from './BuddhiLogo.tsx';
|
|
8
|
+
export { BuddhiWordmark } from './BuddhiWordmark.tsx';
|
|
9
|
+
export declare const inject: string[];
|
|
10
|
+
export declare function apply(ctx: ClientContext): void;
|
|
11
|
+
declare const _default: {
|
|
12
|
+
inject: string[];
|
|
13
|
+
apply: typeof apply;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BuddhiAI Harness brand plugin, host entry.
|
|
3
|
+
* Contributes browser presentation through exports["./client"].
|
|
4
|
+
*
|
|
5
|
+
* @module @buddhilive/bah-client-ui-brand
|
|
6
|
+
*/
|
|
7
|
+
export declare function apply(): void;
|
|
8
|
+
declare const _default: {
|
|
9
|
+
apply: typeof apply;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@buddhilive/bah-client-ui-brand",
|
|
3
|
+
"description": "BuddhiAI Harness brand occupants for the Web client sidebar and conversation Hero slots",
|
|
4
|
+
"version": "0.1.2-alpha.2",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/Buddhilive/buddhi-ai-harness.git",
|
|
11
|
+
"directory": "packages/client/ui-brand-buddhi"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "lib/index.js",
|
|
15
|
+
"types": "lib/types/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./lib/types/index.d.ts",
|
|
19
|
+
"default": "./lib/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./client": {
|
|
22
|
+
"types": "./lib/types/client/index.d.ts",
|
|
23
|
+
"default": "./lib/client.js"
|
|
24
|
+
},
|
|
25
|
+
"./src/*": "./src/*",
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
"dsh": {
|
|
29
|
+
"client": {
|
|
30
|
+
"inject": [
|
|
31
|
+
"@deepseek-ai/dsh-client-ui-renderer",
|
|
32
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
33
|
+
"@deepseek-ai/dsh-client-ui-sidebar"
|
|
34
|
+
],
|
|
35
|
+
"platform": "web"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@deepseek-ai/cordis": "^4.0.2"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@testing-library/react": "^16.1.0",
|
|
44
|
+
"@types/react": "~18.3.1",
|
|
45
|
+
"react": "^18.2.0",
|
|
46
|
+
"react-dom": "^18.2.0",
|
|
47
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "^0.1.2-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.2-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-alpha.2",
|
|
51
|
+
"@deepseek-ai/cordis": "^4.0.2"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"lib/index.js",
|
|
55
|
+
"lib/client.js",
|
|
56
|
+
"lib/types/**/*.d.ts"
|
|
57
|
+
],
|
|
58
|
+
"scripts": {
|
|
59
|
+
"bundle": "tsdown",
|
|
60
|
+
"watch": "tsdown --watch"
|
|
61
|
+
}
|
|
62
|
+
}
|