@sitecore-feaas/clientside 0.0.1
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/.prettierrc +9 -0
- package/README.md +115 -0
- package/dist/browser/index.cjs +3 -0
- package/dist/browser/index.d.ts +25 -0
- package/dist/browser/index.js +3 -0
- package/dist/browser/react.cjs +3 -0
- package/dist/browser/react.d.ts +36 -0
- package/dist/browser/react.js +3 -0
- package/dist/browser/webcomponent-189a307d.d.ts +103 -0
- package/dist/node/index.cjs +1301 -0
- package/dist/node/index.d.ts +25 -0
- package/dist/node/index.js +1286 -0
- package/dist/node/react.cjs +1358 -0
- package/dist/node/react.d.ts +36 -0
- package/dist/node/react.js +1339 -0
- package/dist/node/webcomponent-189a307d.d.ts +103 -0
- package/examples/index.html +54 -0
- package/index.cjs +3 -0
- package/index.d.ts +25 -0
- package/index.js +3 -0
- package/package.json +64 -0
- package/react.cjs +3 -0
- package/react.d.ts +36 -0
- package/react.js +3 -0
- package/src/cloud.ts +58 -0
- package/src/dom.ts +321 -0
- package/src/fetch.ts +64 -0
- package/src/index.ts +11 -0
- package/src/react.ts +66 -0
- package/src/webcomponent.ts +169 -0
- package/test/render.ts +858 -0
- package/tsconfig.json +12 -0
- package/webcomponent-189a307d.d.ts +103 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { b as FEAASComponentProps, C as CloudStylesheet, H as HTMLFeaasComponent, a as HTMLFeaasStylesheet, D as Datascopes, F as FEAASCustomizations } from './webcomponent-189a307d.js';
|
|
3
|
+
export { C as CloudStylesheet, k as CloudTemplate, D as Datascopes, E as ExplicitTemplate, b as FEAASComponentProps, F as FEAASCustomizations, H as HTMLFeaasComponent, a as HTMLFeaasStylesheet, d as autoloadScripts, c as cleanCollectionBit, t as fetchComponent, u as fetchStylesheet, m as getComponentURL, p as getStylesheetURL, l as loadScript, n as normalizeCollectionScope, o as observeDOMElement, q as queryScopes, i as renderComponent, r as renderComponentElement, j as renderComponentPromise, f as renderDOMContent, e as renderDOMElement, g as renderStylesheet, h as renderStylesheetPromise, s as setDOMAttribute } from './webcomponent-189a307d.js';
|
|
4
|
+
|
|
5
|
+
declare function Component(props: FEAASComponentProps): React.DetailedReactHTMLElement<{
|
|
6
|
+
ref: React.MutableRefObject<HTMLElement>;
|
|
7
|
+
className: string;
|
|
8
|
+
}, HTMLElement>;
|
|
9
|
+
declare function Stylesheet(props: CloudStylesheet): React.DetailedReactHTMLElement<{
|
|
10
|
+
ref: React.MutableRefObject<HTMLStyleElement>;
|
|
11
|
+
rel: string;
|
|
12
|
+
className: string;
|
|
13
|
+
'data-library-id': string;
|
|
14
|
+
}, HTMLStyleElement>;
|
|
15
|
+
declare const _default: {
|
|
16
|
+
Stylesheet: typeof Stylesheet;
|
|
17
|
+
Component: typeof Component;
|
|
18
|
+
HTMLFeaasComponent: typeof HTMLFeaasComponent;
|
|
19
|
+
HTMLFeaasStylesheet: typeof HTMLFeaasStylesheet;
|
|
20
|
+
renderComponentElement(content: string, datasources?: Datascopes): HTMLDivElement;
|
|
21
|
+
cleanCollectionBit(path: string): string;
|
|
22
|
+
normalizeCollectionScope(path: string): string;
|
|
23
|
+
queryScopes(scopes: any, datapath: string, singleValue?: boolean, json?: any): any;
|
|
24
|
+
setDOMAttribute(element: HTMLElement, attribute: string, value: any, config?: FEAASCustomizations): void;
|
|
25
|
+
observeDOMElement(element: HTMLElement): MutationObserver;
|
|
26
|
+
autoloadScripts(element: HTMLElement, observe?: boolean): MutationObserver;
|
|
27
|
+
loadScript(element: HTMLElement, src: string): boolean;
|
|
28
|
+
renderDOMElement(input: HTMLElement | DocumentFragment, datascopes?: any, config?: FEAASCustomizations, isNested?: boolean): HTMLElement;
|
|
29
|
+
renderDOMContent(root: HTMLElement, template: string, data?: Datascopes, config?: FEAASCustomizations): HTMLElement;
|
|
30
|
+
renderStylesheet(props: CloudStylesheet, style?: HTMLStyleElement): HTMLStyleElement;
|
|
31
|
+
renderStylesheetPromise(props: CloudStylesheet, style?: HTMLStyleElement): Promise<HTMLStyleElement>;
|
|
32
|
+
renderComponent(props: FEAASComponentProps, root?: HTMLElement): HTMLElement;
|
|
33
|
+
renderComponentPromise(props: FEAASComponentProps, root?: HTMLElement): Promise<HTMLElement>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { Component, Stylesheet, _default as default };
|