@runtypelabs/persona 3.21.3 → 3.23.0
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/README.md +67 -0
- package/dist/animations/glyph-cycle.cjs +2 -262
- package/dist/animations/glyph-cycle.d.cts +1 -1
- package/dist/animations/glyph-cycle.d.ts +1 -1
- package/dist/animations/glyph-cycle.js +2 -235
- package/dist/animations/{types-CWPIj66R.d.cts → types-BZVr1YOV.d.cts} +10 -0
- package/dist/animations/{types-CWPIj66R.d.ts → types-BZVr1YOV.d.ts} +10 -0
- package/dist/animations/wipe.cjs +2 -72
- package/dist/animations/wipe.d.cts +1 -1
- package/dist/animations/wipe.d.ts +1 -1
- package/dist/animations/wipe.js +2 -45
- package/dist/index.cjs +52 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +474 -6
- package/dist/index.d.ts +474 -6
- package/dist/index.global.js +107 -97
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +52 -45
- package/dist/index.js.map +1 -1
- package/dist/smart-dom-reader.cjs +23 -0
- package/dist/smart-dom-reader.d.cts +4521 -0
- package/dist/smart-dom-reader.d.ts +4521 -0
- package/dist/smart-dom-reader.js +23 -0
- package/dist/testing.cjs +3 -84
- package/dist/testing.js +3 -55
- package/dist/theme-editor.cjs +57 -22501
- package/dist/theme-editor.d.cts +348 -1
- package/dist/theme-editor.d.ts +348 -1
- package/dist/theme-editor.js +57 -22503
- package/package.json +16 -6
- package/src/client.test.ts +165 -0
- package/src/client.ts +144 -23
- package/src/components/event-stream-view.ts +122 -1
- package/src/index.ts +26 -0
- package/src/session.test.ts +258 -0
- package/src/session.ts +886 -30
- package/src/session.webmcp.test.ts +815 -0
- package/src/smart-dom-reader.test.ts +135 -0
- package/src/smart-dom-reader.ts +135 -0
- package/src/theme-editor/color-utils.test.ts +59 -0
- package/src/theme-editor/color-utils.ts +38 -2
- package/src/theme-editor/index.ts +35 -0
- package/src/theme-editor/webmcp/coerce.test.ts +86 -0
- package/src/theme-editor/webmcp/coerce.ts +286 -0
- package/src/theme-editor/webmcp/index.ts +45 -0
- package/src/theme-editor/webmcp/summary.ts +324 -0
- package/src/theme-editor/webmcp/tools.test.ts +205 -0
- package/src/theme-editor/webmcp/tools.ts +795 -0
- package/src/theme-editor/webmcp/types.ts +87 -0
- package/src/types.ts +186 -0
- package/src/ui.composer-keyboard.test.ts +229 -0
- package/src/ui.ts +151 -8
- package/src/utils/composer-history.test.ts +128 -0
- package/src/utils/composer-history.ts +113 -0
- package/src/utils/message-fingerprint.test.ts +20 -0
- package/src/utils/message-fingerprint.ts +2 -0
- package/src/utils/smart-dom-adapter.test.ts +257 -0
- package/src/utils/smart-dom-adapter.ts +217 -0
- package/src/utils/throughput-tracker.test.ts +366 -0
- package/src/utils/throughput-tracker.ts +427 -0
- package/{LICENSE → src/vendor/smart-dom-reader/LICENSE} +2 -2
- package/src/vendor/smart-dom-reader/README.md +61 -0
- package/src/vendor/smart-dom-reader/index.d.ts +476 -0
- package/src/vendor/smart-dom-reader/index.js +1618 -0
- package/src/webmcp-bridge.test.ts +429 -0
- package/src/webmcp-bridge.ts +547 -0
package/dist/animations/wipe.cjs
CHANGED
|
@@ -1,62 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/animations/wipe.ts
|
|
21
|
-
var wipe_exports = {};
|
|
22
|
-
__export(wipe_exports, {
|
|
23
|
-
default: () => wipe_default,
|
|
24
|
-
wipe: () => wipe
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(wipe_exports);
|
|
27
|
-
|
|
28
|
-
// src/utils/stream-animation.ts
|
|
29
|
-
var BUILTIN_PLUGINS = [
|
|
30
|
-
{
|
|
31
|
-
name: "typewriter",
|
|
32
|
-
containerClass: "persona-stream-typewriter",
|
|
33
|
-
wrap: "char",
|
|
34
|
-
useCaret: true
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
name: "pop-bubble",
|
|
38
|
-
bubbleClass: "persona-stream-pop",
|
|
39
|
-
wrap: "none"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: "letter-rise",
|
|
43
|
-
containerClass: "persona-stream-letter-rise",
|
|
44
|
-
wrap: "char"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: "word-fade",
|
|
48
|
-
containerClass: "persona-stream-word-fade",
|
|
49
|
-
wrap: "word"
|
|
50
|
-
}
|
|
51
|
-
];
|
|
52
|
-
var globalRegistry = /* @__PURE__ */ new Map();
|
|
53
|
-
for (const plugin of BUILTIN_PLUGINS) globalRegistry.set(plugin.name, plugin);
|
|
54
|
-
var registerStreamAnimationPlugin = (plugin) => {
|
|
55
|
-
globalRegistry.set(plugin.name, plugin);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
// src/animations/wipe.ts
|
|
59
|
-
var STYLES = `
|
|
1
|
+
"use strict";var r=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var d=(e,t)=>{for(var a in t)r(e,a,{get:t[a],enumerable:!0})},u=(e,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of c(t))!p.call(e,n)&&n!==a&&r(e,n,{get:()=>t[n],enumerable:!(s=l(t,n))||s.enumerable});return e};var g=e=>u(r({},"__esModule",{value:!0}),e);var f={};d(f,{default:()=>w,wipe:()=>o});module.exports=g(f);var A=[{name:"typewriter",containerClass:"persona-stream-typewriter",wrap:"char",useCaret:!0},{name:"pop-bubble",bubbleClass:"persona-stream-pop",wrap:"none"},{name:"letter-rise",containerClass:"persona-stream-letter-rise",wrap:"char"},{name:"word-fade",containerClass:"persona-stream-word-fade",wrap:"word"}],i=new Map;for(let e of A)i.set(e.name,e);var m=e=>{i.set(e.name,e)};var S=`
|
|
60
2
|
@keyframes persona-stream-wipe {
|
|
61
3
|
from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
|
|
62
4
|
to { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
|
|
@@ -92,16 +34,4 @@ var STYLES = `
|
|
|
92
34
|
mask-image: none !important;
|
|
93
35
|
}
|
|
94
36
|
}
|
|
95
|
-
`.trim();
|
|
96
|
-
var wipe = {
|
|
97
|
-
name: "wipe",
|
|
98
|
-
containerClass: "persona-stream-wipe",
|
|
99
|
-
wrap: "word",
|
|
100
|
-
styles: STYLES
|
|
101
|
-
};
|
|
102
|
-
registerStreamAnimationPlugin(wipe);
|
|
103
|
-
var wipe_default = wipe;
|
|
104
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
105
|
-
0 && (module.exports = {
|
|
106
|
-
wipe
|
|
107
|
-
});
|
|
37
|
+
`.trim(),o={name:"wipe",containerClass:"persona-stream-wipe",wrap:"word",styles:S};m(o);var w=o;0&&(module.exports={wipe});
|
package/dist/animations/wipe.js
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var BUILTIN_PLUGINS = [
|
|
3
|
-
{
|
|
4
|
-
name: "typewriter",
|
|
5
|
-
containerClass: "persona-stream-typewriter",
|
|
6
|
-
wrap: "char",
|
|
7
|
-
useCaret: true
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
name: "pop-bubble",
|
|
11
|
-
bubbleClass: "persona-stream-pop",
|
|
12
|
-
wrap: "none"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: "letter-rise",
|
|
16
|
-
containerClass: "persona-stream-letter-rise",
|
|
17
|
-
wrap: "char"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: "word-fade",
|
|
21
|
-
containerClass: "persona-stream-word-fade",
|
|
22
|
-
wrap: "word"
|
|
23
|
-
}
|
|
24
|
-
];
|
|
25
|
-
var globalRegistry = /* @__PURE__ */ new Map();
|
|
26
|
-
for (const plugin of BUILTIN_PLUGINS) globalRegistry.set(plugin.name, plugin);
|
|
27
|
-
var registerStreamAnimationPlugin = (plugin) => {
|
|
28
|
-
globalRegistry.set(plugin.name, plugin);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
// src/animations/wipe.ts
|
|
32
|
-
var STYLES = `
|
|
1
|
+
var r=[{name:"typewriter",containerClass:"persona-stream-typewriter",wrap:"char",useCaret:!0},{name:"pop-bubble",bubbleClass:"persona-stream-pop",wrap:"none"},{name:"letter-rise",containerClass:"persona-stream-letter-rise",wrap:"char"},{name:"word-fade",containerClass:"persona-stream-word-fade",wrap:"word"}],t=new Map;for(let e of r)t.set(e.name,e);var n=e=>{t.set(e.name,e)};var o=`
|
|
33
2
|
@keyframes persona-stream-wipe {
|
|
34
3
|
from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
|
|
35
4
|
to { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
|
|
@@ -65,16 +34,4 @@ var STYLES = `
|
|
|
65
34
|
mask-image: none !important;
|
|
66
35
|
}
|
|
67
36
|
}
|
|
68
|
-
`.trim();
|
|
69
|
-
var wipe = {
|
|
70
|
-
name: "wipe",
|
|
71
|
-
containerClass: "persona-stream-wipe",
|
|
72
|
-
wrap: "word",
|
|
73
|
-
styles: STYLES
|
|
74
|
-
};
|
|
75
|
-
registerStreamAnimationPlugin(wipe);
|
|
76
|
-
var wipe_default = wipe;
|
|
77
|
-
export {
|
|
78
|
-
wipe_default as default,
|
|
79
|
-
wipe
|
|
80
|
-
};
|
|
37
|
+
`.trim(),a={name:"wipe",containerClass:"persona-stream-wipe",wrap:"word",styles:o};n(a);var m=a;export{m as default,a as wipe};
|