@hazem3500/palette 0.9.140 → 0.9.142

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/setup.js CHANGED
@@ -1 +1 @@
1
- import{a as n,d as o}from"./chunk-U5T4E3R7.js";import"./chunk-ZEJDB2HZ.js";import"./chunk-HHUTDVTM.js";import"./chunk-RBHY7UDS.js";import"./chunk-LMXFSXO6.js";import"./chunk-5HZI7HRR.js";import"./chunk-2BS2OWWH.js";import"./chunk-UWTBLOTJ.js";import"./chunk-VX6XCU4E.js";import"./chunk-QFONAD5S.js";function r(r){return(t={})=>o(n({...r,...t}))}var t=r;export{t as defineKomo,r as definePalette};
1
+ import{a as n,d as o}from"./chunk-U4PPYJHK.js";import"./chunk-ZEJDB2HZ.js";import"./chunk-HHUTDVTM.js";import"./chunk-RBHY7UDS.js";import"./chunk-LMXFSXO6.js";import"./chunk-5HZI7HRR.js";import"./chunk-2BS2OWWH.js";import"./chunk-UWTBLOTJ.js";import"./chunk-VX6XCU4E.js";import"./chunk-QFONAD5S.js";function r(r){return(t={})=>o(n({...r,...t}))}var t=r;export{t as defineKomo,r as definePalette};
@@ -0,0 +1,3 @@
1
+ import type { PaletteTheme } from "./types.js";
2
+ /** Flip the host's `light` class as the page asks: "auto" reads the page's color-scheme, then its painted background, then the OS. */
3
+ export declare function followTheme(host: HTMLElement, theme: PaletteTheme | undefined, signal: AbortSignal): void;
package/dist/types.d.ts CHANGED
@@ -187,7 +187,10 @@ export interface PaletteSnapshots {
187
187
  }
188
188
  /** @deprecated Use `PaletteSnapshots`. */
189
189
  export type KomoSnapshots = PaletteSnapshots;
190
+ export type PaletteTheme = "auto" | "light" | "dark";
190
191
  export interface CommentsOptions {
192
+ /** Inline surfaces follow the page ("auto", the default), or stay "light" or "dark". */
193
+ theme?: PaletteTheme;
191
194
  /** Used by the hosted setup screen to reuse the sidebar account UI. */
192
195
  onboarding?: OnboardingOptions;
193
196
  /** Shared API URL. Never put a private credential here. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazem3500/palette",
3
- "version": "0.9.140",
3
+ "version": "0.9.142",
4
4
  "description": "Point, area, and threaded comments for website branches.",
5
5
  "type": "module",
6
6
  "license": "MIT",