assign-gingerly 0.0.68 → 0.0.69

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.
@@ -0,0 +1,31 @@
1
+ import { ElementEnhancementGateway, SpawnContext, AddEventListenerConfig } from "../assign-gingerly/types";
2
+
3
+ export interface EndUserProps{
4
+ /**
5
+ * Event-binding configuration(s), parsed from the JSON value of the
6
+ * do-assign (or 🪧) attribute. A single config object, or an array of
7
+ * them. See assign-gingerly's event-binding documentation for the shape.
8
+ */
9
+ assignConfig: AddEventListenerConfig | AddEventListenerConfig[],
10
+
11
+ /**
12
+ * id of a peer element (within the same root node) to treat as the host.
13
+ * If not provided, the host is found by searching upwards for an
14
+ * itemscope-managed element, falling back to the shadow root host.
15
+ */
16
+ host?: string,
17
+ }
18
+
19
+ export interface AllProps extends EndUserProps{
20
+ enhancedElement: Element & ElementEnhancementGateway;
21
+ resolved?: boolean;
22
+ }
23
+
24
+ export type AP = AllProps;
25
+ export type PAP = Partial<AP>;
26
+ export type ProPAP = Promise<PAP>;
27
+
28
+ export interface Actions {
29
+ init(self: AP, enhancedElement: Element & ElementEnhancementGateway, ctx: SpawnContext, initVals: PAP): Promise<void>;
30
+ hydrate(self: AP): ProPAP;
31
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assign-gingerly",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "description": "This package provides a utility function for carefully merging one object into another.",
5
5
  "homepage": "https://github.com/bahrus/assign-gingerly#readme",
6
6
  "bugs": {
@@ -87,6 +87,10 @@
87
87
  "default": "./resolveAndAssignFeatures.js",
88
88
  "types": "./resolveAndAssignFeatures.ts"
89
89
  },
90
+ "./handlers/addEventListener.js": {
91
+ "default": "./handlers/addEventListener.js",
92
+ "types": "./handlers/addEventListener.ts"
93
+ },
90
94
  "./handlers/lazyLoad.js": {
91
95
  "default": "./handlers/lazyLoad.js",
92
96
  "types": "./handlers/lazyLoad.ts"
@@ -195,9 +199,7 @@
195
199
  "chrome": "npx playwright cr http://localhost:8000"
196
200
  },
197
201
  "devDependencies": {
198
- "@playwright/test": "1.61.1",
199
- "spa-ssi": "0.0.27",
200
- "@types/node": "26.1.0",
201
- "typescript": "6.0.3"
202
+ "@playwright/test": "1.62.0",
203
+ "spa-ssi": "0.0.27"
202
204
  }
203
205
  }