@wcstack/fetch 1.31.0 → 1.33.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 (2) hide show
  1. package/dist/index.d.ts +21 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -339,5 +339,26 @@ declare const WCS_FETCH_ERROR_CODE: {
339
339
  readonly Aborted: "aborted";
340
340
  };
341
341
 
342
+ declare class FetchHeader extends HTMLElement {
343
+ connectedCallback(): void;
344
+ get headerName(): string;
345
+ get headerValue(): string;
346
+ }
347
+
348
+ declare class FetchBody extends HTMLElement {
349
+ constructor();
350
+ get contentType(): string;
351
+ get bodyContent(): string;
352
+ }
353
+
354
+ declare global {
355
+ interface HTMLElementTagNameMap {
356
+ "wcs-fetch": Fetch;
357
+ "wcs-fetch-header": FetchHeader;
358
+ "wcs-fetch-body": FetchBody;
359
+ "wcs-infinite-scroll": InfiniteScroll;
360
+ }
361
+ }
362
+
342
363
  export { FetchCore, WCS_FETCH_ERROR_CODE, Fetch as WcsFetch, InfiniteScroll as WcsInfiniteScroll, bootstrapFetch, getConfig };
343
364
  export type { FetchRequestOptions, IWritableConfig, IWritableTagNames, WcsFetchCoreValues, WcsFetchHttpError, WcsFetchValues, WcsIoErrorInfo, WcsIoErrorPhase };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wcstack/fetch",
3
- "version": "1.31.0",
3
+ "version": "1.33.0",
4
4
  "description": "Declarative fetch component for Web Components. Framework-agnostic async data fetching via wc-bindable-protocol.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.esm.js",