elowen-plugin-ui-kit 0.11.0 → 0.12.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.
Files changed (3) hide show
  1. package/index.d.ts +11 -1
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import type { ComponentType } from 'react';
11
11
  * Deliberately a LITERAL type: the web app re-declares the value and annotates it with
12
12
  * `typeof PLUGIN_UI_API_VERSION`, so a kit bump that forgets the host fails the web typecheck instead
13
13
  * of drifting silently. */
14
- export declare const PLUGIN_UI_API_VERSION: 16;
14
+ export declare const PLUGIN_UI_API_VERSION: 17;
15
15
 
16
16
  /** Public props of `ElowenUiRuntime.components.Slider`. */
17
17
  export interface SliderProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'min' | 'max' | 'step' | 'type'> {
@@ -37,6 +37,16 @@ export interface ProjectIconProps {
37
37
  className?: string;
38
38
  }
39
39
 
40
+ /** `ElowenUiRuntime.components.Calendar` (API 17) is the host's shadcn Calendar, built on
41
+ * `react-day-picker` v9, and its props ARE that library's: a controlled `month`, `selected`,
42
+ * `modifiers`, `components.DayButton`, `locale`, `hidden`/`disabled`, `onSelect`. v9 has NO
43
+ * `DayContent`: a caller replaces the day's own button, and has to forward every prop the library
44
+ * computed and honour `modifiers.focused`, or the grid's arrow keys stop moving. Deliberately not
45
+ * re-declared here as a second interface: the truth is one `import type { DayPicker } from
46
+ * 'react-day-picker'` away in the bundle's own runtime type, while dragging the dependency into this
47
+ * kit would make every plugin build install it just to host-render one grid. A bundle types the
48
+ * element it destructures off `runtime().components.Calendar` with the props it actually passes. */
49
+
40
50
  export interface PluginConfigField {
41
51
  key: string;
42
52
  label: string;
package/index.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * `window.ElowenUiRuntime` stamped with this number; a bundle whose `requiresApiVersion` is NEWER
3
3
  * renders a placeholder instead of executing against a contract it was not built for. Bump whenever
4
4
  * a released bundle requires a newly published `ElowenUiRuntime` contract (see index.d.ts). */
5
- export const PLUGIN_UI_API_VERSION = 16;
5
+ export const PLUGIN_UI_API_VERSION = 17;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elowen-plugin-ui-kit",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Contract types and esbuild toolchain for building Elowen plugin browser-UI bundles.",
5
5
  "license": "MIT",
6
6
  "type": "module",