msc-ai-assistant
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -140,5 +140,12 @@ import { _wcl } from './common-lib.js'; | ||
opacity: 1; | ||
inset-block-start: var(--assistant-inset-block-start); | ||
@starting-style { | ||
opacity: 0; | ||
inset-block-start: calc(var(--assistant-inset-block-start) + 20px); | ||
} | ||
} | ||
opacity: 0; | ||
inset-block-start: calc(var(--assistant-inset-block-start) - 50px); | ||
@@ -155,8 +162,2 @@ will-change: inline-size,inset-inline-start,inset-block-start,opacity,display; | ||
@starting-style { | ||
&:popover-open { | ||
opacity: 0; | ||
} | ||
} | ||
.ai-assistant__head { | ||
@@ -1036,2 +1037,6 @@ display: flex; | ||
get open() { | ||
return this.#nodes.assistant.matches(':popover-open'); | ||
} | ||
get available() { | ||
@@ -1038,0 +1043,0 @@ return available; |
{ | ||
"name": "msc-ai-assistant", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "<msc-ai-assistant /> is a web component based on Chrome Built-in AI Prompt API. Web developers could use <msc-ai-assistant /> to help user consult anything they like to know.", | ||
@@ -5,0 +5,0 @@ "main": "index.html", |
@@ -178,2 +178,3 @@ # msc-ai-assistant | ||
| l10n | Object | Getter / Setter localization for title or or form information. Developers could set `subject`、`placeholder` and `error` here. | | ||
| open | Boolean | Getter <msc-ai-assistant /> open or not. | | ||
| available | String | Getter available. Web developers will get "`no`" if current browser doesn't support Build-in AI. | | ||
@@ -196,4 +197,3 @@ | ||
- [AI on Chrome > Built-in AI](https://developer.chrome.com/docs/ai/built-in) | ||
- [Join the early preview program | ||
](https://docs.google.com/forms/d/e/1FAIpQLSfZXeiwj9KO9jMctffHPym88ln12xNWCrVkMY_u06WfSTulQg/viewform) | ||
- [Join the early preview program](https://docs.google.com/forms/d/e/1FAIpQLSfZXeiwj9KO9jMctffHPym88ln12xNWCrVkMY_u06WfSTulQg/viewform) | ||
- [Built-in AI > Prompt API](https://docs.google.com/document/d/1VG8HIyz361zGduWgNG7R_R8Xkv0OOJ8b5C9QKeCjU0c/edit?tab=t.0) | ||
@@ -200,0 +200,0 @@ - [<msc-ai-assistant /> demo](https://blog.lalacube.com/mei/webComponent_msc-ai-assistant.html) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124277
2697