@dooboostore/simple-web-component 1.0.37 → 1.0.38

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 (156) hide show
  1. package/README.md +384 -93
  2. package/dist/cjs/SwcAppEngine.js +3 -0
  3. package/dist/cjs/SwcAppEngine.js.map +2 -2
  4. package/dist/cjs/decorators/addEventListener.js +20 -4
  5. package/dist/cjs/decorators/addEventListener.js.map +2 -2
  6. package/dist/cjs/decorators/applyAttribute.js.map +1 -1
  7. package/dist/cjs/decorators/applyClass.js.map +1 -1
  8. package/dist/cjs/decorators/applyNode.js +97 -15
  9. package/dist/cjs/decorators/applyNode.js.map +2 -2
  10. package/dist/cjs/decorators/applySlot.js +16 -9
  11. package/dist/cjs/decorators/applySlot.js.map +2 -2
  12. package/dist/cjs/decorators/applyStyle.js.map +2 -2
  13. package/dist/cjs/decorators/attribute.js.map +1 -1
  14. package/dist/cjs/decorators/elementDefine.js +68 -38
  15. package/dist/cjs/decorators/elementDefine.js.map +2 -2
  16. package/dist/cjs/decorators/emitCustomEvent.js.map +1 -1
  17. package/dist/cjs/decorators/index.js +1 -0
  18. package/dist/cjs/decorators/index.js.map +2 -2
  19. package/dist/cjs/decorators/lifecycles.js +47 -31
  20. package/dist/cjs/decorators/lifecycles.js.map +3 -3
  21. package/dist/cjs/decorators/publishSwcAppMessage.js.map +2 -2
  22. package/dist/cjs/decorators/query.js +1 -1
  23. package/dist/cjs/decorators/query.js.map +2 -2
  24. package/dist/cjs/decorators/queryAll.js.map +1 -1
  25. package/dist/cjs/decorators/setProperty.js.map +1 -1
  26. package/dist/cjs/decorators/state.js +84 -0
  27. package/dist/cjs/decorators/state.js.map +7 -0
  28. package/dist/cjs/decorators/subscribeSwcAppMessageWhileConnected.js.map +1 -1
  29. package/dist/cjs/decorators/subscribeSwcAppRouteChangeWhileConnected.js.map +2 -2
  30. package/dist/cjs/elements/SwcApp.js +193 -305
  31. package/dist/cjs/elements/SwcApp.js.map +3 -3
  32. package/dist/cjs/elements/SwcAppMixin.js +291 -0
  33. package/dist/cjs/elements/SwcAppMixin.js.map +7 -0
  34. package/dist/cjs/elements/index.js +3 -21
  35. package/dist/cjs/elements/index.js.map +3 -3
  36. package/dist/cjs/index.js +1 -3
  37. package/dist/cjs/index.js.map +2 -2
  38. package/dist/cjs/{types.js → types/index.js} +1 -1
  39. package/dist/cjs/types/index.js.map +7 -0
  40. package/dist/cjs/types/window.d.js.map +1 -1
  41. package/dist/cjs/utils/Utils.js +159 -20
  42. package/dist/cjs/utils/Utils.js.map +3 -3
  43. package/dist/esm/SwcAppEngine.js +3 -0
  44. package/dist/esm/SwcAppEngine.js.map +2 -2
  45. package/dist/esm/decorators/addEventListener.js +20 -4
  46. package/dist/esm/decorators/addEventListener.js.map +2 -2
  47. package/dist/esm/decorators/applyAttribute.js.map +1 -1
  48. package/dist/esm/decorators/applyClass.js.map +1 -1
  49. package/dist/esm/decorators/applyNode.js +97 -15
  50. package/dist/esm/decorators/applyNode.js.map +2 -2
  51. package/dist/esm/decorators/applySlot.js +16 -9
  52. package/dist/esm/decorators/applySlot.js.map +2 -2
  53. package/dist/esm/decorators/applyStyle.js.map +2 -2
  54. package/dist/esm/decorators/attribute.js.map +1 -1
  55. package/dist/esm/decorators/elementDefine.js +72 -42
  56. package/dist/esm/decorators/elementDefine.js.map +2 -2
  57. package/dist/esm/decorators/emitCustomEvent.js.map +1 -1
  58. package/dist/esm/decorators/index.js +1 -0
  59. package/dist/esm/decorators/index.js.map +2 -2
  60. package/dist/esm/decorators/lifecycles.js +47 -31
  61. package/dist/esm/decorators/lifecycles.js.map +3 -3
  62. package/dist/esm/decorators/publishSwcAppMessage.js.map +2 -2
  63. package/dist/esm/decorators/query.js +1 -1
  64. package/dist/esm/decorators/query.js.map +2 -2
  65. package/dist/esm/decorators/queryAll.js.map +1 -1
  66. package/dist/esm/decorators/setProperty.js.map +1 -1
  67. package/dist/esm/decorators/state.js +65 -0
  68. package/dist/esm/decorators/state.js.map +7 -0
  69. package/dist/esm/decorators/subscribeSwcAppMessageWhileConnected.js.map +1 -1
  70. package/dist/esm/decorators/subscribeSwcAppRouteChangeWhileConnected.js.map +2 -2
  71. package/dist/esm/elements/SwcApp.js +195 -307
  72. package/dist/esm/elements/SwcApp.js.map +3 -3
  73. package/dist/esm/elements/SwcAppMixin.js +273 -0
  74. package/dist/esm/elements/SwcAppMixin.js.map +7 -0
  75. package/dist/esm/elements/index.js +2 -7
  76. package/dist/esm/elements/index.js.map +2 -2
  77. package/dist/esm/index.js +2 -4
  78. package/dist/esm/index.js.map +2 -2
  79. package/dist/esm/{types.js → types/index.js} +1 -1
  80. package/dist/esm/types/index.js.map +7 -0
  81. package/dist/esm/utils/Utils.js +159 -20
  82. package/dist/esm/utils/Utils.js.map +3 -3
  83. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +3356 -2477
  84. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
  85. package/dist/types/SwcAppEngine.d.ts +1 -1
  86. package/dist/types/SwcAppEngine.d.ts.map +1 -1
  87. package/dist/types/decorators/addEventListener.d.ts +5 -2
  88. package/dist/types/decorators/addEventListener.d.ts.map +1 -1
  89. package/dist/types/decorators/applyAttribute.d.ts.map +1 -1
  90. package/dist/types/decorators/applyClass.d.ts.map +1 -1
  91. package/dist/types/decorators/applyNode.d.ts +22 -6
  92. package/dist/types/decorators/applyNode.d.ts.map +1 -1
  93. package/dist/types/decorators/applySlot.d.ts.map +1 -1
  94. package/dist/types/decorators/applyStyle.d.ts.map +1 -1
  95. package/dist/types/decorators/attribute.d.ts.map +1 -1
  96. package/dist/types/decorators/elementDefine.d.ts.map +1 -1
  97. package/dist/types/decorators/emitCustomEvent.d.ts.map +1 -1
  98. package/dist/types/decorators/index.d.ts +1 -0
  99. package/dist/types/decorators/index.d.ts.map +1 -1
  100. package/dist/types/decorators/lifecycles.d.ts +10 -14
  101. package/dist/types/decorators/lifecycles.d.ts.map +1 -1
  102. package/dist/types/decorators/publishSwcAppMessage.d.ts.map +1 -1
  103. package/dist/types/decorators/query.d.ts +1 -1
  104. package/dist/types/decorators/query.d.ts.map +1 -1
  105. package/dist/types/decorators/queryAll.d.ts.map +1 -1
  106. package/dist/types/decorators/setProperty.d.ts +1 -1
  107. package/dist/types/decorators/setProperty.d.ts.map +1 -1
  108. package/dist/types/decorators/state.d.ts +9 -0
  109. package/dist/types/decorators/state.d.ts.map +1 -0
  110. package/dist/types/decorators/subscribeSwcAppMessageWhileConnected.d.ts.map +1 -1
  111. package/dist/types/decorators/subscribeSwcAppRouteChangeWhileConnected.d.ts +5 -1
  112. package/dist/types/decorators/subscribeSwcAppRouteChangeWhileConnected.d.ts.map +1 -1
  113. package/dist/types/elements/SwcApp.d.ts +35 -6
  114. package/dist/types/elements/SwcApp.d.ts.map +1 -1
  115. package/dist/types/elements/SwcAppMixin.d.ts +405 -0
  116. package/dist/types/elements/SwcAppMixin.d.ts.map +1 -0
  117. package/dist/types/elements/index.d.ts +2 -2
  118. package/dist/types/elements/index.d.ts.map +1 -1
  119. package/dist/types/index.d.ts +1 -1
  120. package/dist/types/index.d.ts.map +1 -1
  121. package/dist/types/{types.d.ts → types/index.d.ts} +11 -11
  122. package/dist/types/types/index.d.ts.map +1 -0
  123. package/dist/types/utils/Utils.d.ts +14 -2
  124. package/dist/types/utils/Utils.d.ts.map +1 -1
  125. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +3358 -2479
  126. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
  127. package/package.json +4 -4
  128. package/src/SwcAppEngine.ts +6 -2
  129. package/src/decorators/addEventListener.ts +21 -5
  130. package/src/decorators/applyAttribute.ts +1 -1
  131. package/src/decorators/applyClass.ts +1 -1
  132. package/src/decorators/applyNode.ts +180 -62
  133. package/src/decorators/applySlot.ts +27 -67
  134. package/src/decorators/applyStyle.ts +4 -4
  135. package/src/decorators/attribute.ts +1 -1
  136. package/src/decorators/elementDefine.ts +110 -58
  137. package/src/decorators/emitCustomEvent.ts +1 -1
  138. package/src/decorators/index.ts +2 -0
  139. package/src/decorators/lifecycles.ts +50 -26
  140. package/src/decorators/publishSwcAppMessage.ts +2 -3
  141. package/src/decorators/query.ts +4 -4
  142. package/src/decorators/queryAll.ts +1 -1
  143. package/src/decorators/setProperty.ts +1 -1
  144. package/src/decorators/state.ts +84 -0
  145. package/src/decorators/subscribeSwcAppMessageWhileConnected.ts +1 -1
  146. package/src/decorators/subscribeSwcAppRouteChangeWhileConnected.ts +4 -3
  147. package/src/elements/SwcApp.ts +239 -441
  148. package/src/elements/SwcAppMixin.ts +328 -0
  149. package/src/elements/index.ts +2 -9
  150. package/src/index.ts +2 -4
  151. package/src/{types.ts → types/index.ts} +13 -10
  152. package/src/types/window.d.ts +3 -0
  153. package/src/utils/Utils.ts +205 -20
  154. package/dist/cjs/types.js.map +0 -7
  155. package/dist/esm/types.js.map +0 -7
  156. package/dist/types/types.d.ts.map +0 -1
@@ -0,0 +1,405 @@
1
+ import { SwcAppMessage } from "../types";
2
+ import { SwcAppEngine, SwcAttributeConfigType, SwcConfigType } from "../SwcAppEngine";
3
+ import { Subscription } from "@dooboostore/core";
4
+ import { RouterEventType } from "@dooboostore/core-web";
5
+ export declare const isSSR: (i: HTMLElement) => boolean;
6
+ export declare const setSSRAttribute: (i: HTMLElement) => void;
7
+ export declare const removeSSRAttribute: (i: HTMLElement) => void;
8
+ /**
9
+ * SwcAppMixin: SwcApp 기능을 모든 HTMLElement에 추가할 수 있는 Mixin
10
+ *
11
+ * 사용 예:
12
+ * @elementDefine('custom-app', { window: w })
13
+ * class CustomApp extends SwcAppMixin(w.HTMLElement) implements SwcAppInterface {
14
+ * // 추가 기능 구현
15
+ * }
16
+ */
17
+ export declare function SwcAppMixin<T extends {
18
+ new (...args: any[]): HTMLElement;
19
+ }>(Base: T): {
20
+ new (...args: any[]): {
21
+ __swc_engine: SwcAppEngine;
22
+ _swc_connected_instance: Set<any>;
23
+ _routerSubscription?: Subscription;
24
+ _lastRouterEvent?: RouterEventType;
25
+ _routeChangeInvocations: number;
26
+ _connectedInvocations: number;
27
+ _childrenRouteChangedInterval: any;
28
+ _childrenConnectedDoneInterval: any;
29
+ /**
30
+ * Safari is 속성 처리
31
+ * Safari polyfill에서는 자식부터 만들어지고 부모가 만들어지므로
32
+ * 부모가 자식들을 강제로 등록해주는 형태로 처리
33
+ */
34
+ _connected_safari_and_standby: any[];
35
+ get simpleApplication(): import("@dooboostore/simple-boot").SimpleApplication;
36
+ get config(): SwcConfigType;
37
+ get router(): import("@dooboostore/core-web").Router<any>;
38
+ _invokeRouteChangeSubscribers(instance: HTMLElement, re: RouterEventType): Promise<void>;
39
+ _connected(instance: HTMLElement, option?: {
40
+ noIncrements: boolean;
41
+ }): Promise</*elided*/ any>;
42
+ _connectedDone(instance: any): Promise<void>;
43
+ _disconnected(instance: any): void;
44
+ _handleRouteChange(route: RouterEventType): Promise<void>;
45
+ connect(config?: SwcAttributeConfigType): Promise<void>;
46
+ connectedCallback(): void;
47
+ disconnectedCallback(): void;
48
+ routing(path: string): Promise<void>;
49
+ back(): void;
50
+ forward(): void;
51
+ reload(): void;
52
+ publishMessage(message: SwcAppMessage): void;
53
+ _invokeMessageSubscribers(instance: any, message: SwcAppMessage): void;
54
+ accessKey: string;
55
+ readonly accessKeyLabel: string;
56
+ autocapitalize: string;
57
+ autocorrect: boolean;
58
+ dir: string;
59
+ draggable: boolean;
60
+ hidden: boolean;
61
+ inert: boolean;
62
+ innerText: string;
63
+ lang: string;
64
+ readonly offsetHeight: number;
65
+ readonly offsetLeft: number;
66
+ readonly offsetParent: Element | null;
67
+ readonly offsetTop: number;
68
+ readonly offsetWidth: number;
69
+ outerText: string;
70
+ popover: string | null;
71
+ spellcheck: boolean;
72
+ title: string;
73
+ translate: boolean;
74
+ writingSuggestions: string;
75
+ attachInternals(): ElementInternals;
76
+ click(): void;
77
+ hidePopover(): void;
78
+ showPopover(): void;
79
+ togglePopover(options?: boolean): boolean;
80
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
81
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
82
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
83
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
84
+ readonly attributes: NamedNodeMap;
85
+ get classList(): DOMTokenList;
86
+ set classList(value: string);
87
+ className: string;
88
+ readonly clientHeight: number;
89
+ readonly clientLeft: number;
90
+ readonly clientTop: number;
91
+ readonly clientWidth: number;
92
+ readonly currentCSSZoom: number;
93
+ id: string;
94
+ innerHTML: string;
95
+ readonly localName: string;
96
+ readonly namespaceURI: string | null;
97
+ onfullscreenchange: (this: Element, ev: Event) => any;
98
+ onfullscreenerror: (this: Element, ev: Event) => any;
99
+ outerHTML: string;
100
+ readonly ownerDocument: Document;
101
+ get part(): DOMTokenList;
102
+ set part(value: string);
103
+ readonly prefix: string | null;
104
+ readonly scrollHeight: number;
105
+ scrollLeft: number;
106
+ scrollTop: number;
107
+ readonly scrollWidth: number;
108
+ readonly shadowRoot: ShadowRoot | null;
109
+ slot: string;
110
+ readonly tagName: string;
111
+ attachShadow(init: ShadowRootInit): ShadowRoot;
112
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
113
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K];
114
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K];
115
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K];
116
+ closest<E extends Element = Element>(selectors: string): E;
117
+ computedStyleMap(): StylePropertyMapReadOnly;
118
+ getAttribute(qualifiedName: string): string | null;
119
+ getAttributeNS(namespace: string | null, localName: string): string | null;
120
+ getAttributeNames(): string[];
121
+ getAttributeNode(qualifiedName: string): Attr | null;
122
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
123
+ getBoundingClientRect(): DOMRect;
124
+ getClientRects(): DOMRectList;
125
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
126
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
127
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
128
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
129
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
130
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
131
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
132
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
133
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
134
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
135
+ getHTML(options?: GetHTMLOptions): string;
136
+ hasAttribute(qualifiedName: string): boolean;
137
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
138
+ hasAttributes(): boolean;
139
+ hasPointerCapture(pointerId: number): boolean;
140
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
141
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
142
+ insertAdjacentText(where: InsertPosition, data: string): void;
143
+ matches(selectors: string): boolean;
144
+ releasePointerCapture(pointerId: number): void;
145
+ removeAttribute(qualifiedName: string): void;
146
+ removeAttributeNS(namespace: string | null, localName: string): void;
147
+ removeAttributeNode(attr: Attr): Attr;
148
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
149
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
150
+ scroll(options?: ScrollToOptions): void;
151
+ scroll(x: number, y: number): void;
152
+ scrollBy(options?: ScrollToOptions): void;
153
+ scrollBy(x: number, y: number): void;
154
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
155
+ scrollTo(options?: ScrollToOptions): void;
156
+ scrollTo(x: number, y: number): void;
157
+ setAttribute(qualifiedName: string, value: string): void;
158
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
159
+ setAttributeNode(attr: Attr): Attr | null;
160
+ setAttributeNodeNS(attr: Attr): Attr | null;
161
+ setHTMLUnsafe(html: string): void;
162
+ setPointerCapture(pointerId: number): void;
163
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
164
+ webkitMatchesSelector(selectors: string): boolean;
165
+ textContent: string;
166
+ readonly baseURI: string;
167
+ readonly childNodes: NodeListOf<ChildNode>;
168
+ readonly firstChild: ChildNode | null;
169
+ readonly isConnected: boolean;
170
+ readonly lastChild: ChildNode | null;
171
+ readonly nextSibling: ChildNode | null;
172
+ readonly nodeName: string;
173
+ readonly nodeType: number;
174
+ nodeValue: string | null;
175
+ readonly parentElement: HTMLElement | null;
176
+ readonly parentNode: ParentNode | null;
177
+ readonly previousSibling: ChildNode | null;
178
+ appendChild<T_1 extends Node>(node: T_1): T_1;
179
+ cloneNode(subtree?: boolean): Node;
180
+ compareDocumentPosition(other: Node): number;
181
+ contains(other: Node | null): boolean;
182
+ getRootNode(options?: GetRootNodeOptions): Node;
183
+ hasChildNodes(): boolean;
184
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
185
+ isDefaultNamespace(namespace: string | null): boolean;
186
+ isEqualNode(otherNode: Node | null): boolean;
187
+ isSameNode(otherNode: Node | null): boolean;
188
+ lookupNamespaceURI(prefix: string | null): string | null;
189
+ lookupPrefix(namespace: string | null): string | null;
190
+ normalize(): void;
191
+ removeChild<T_1 extends Node>(child: T_1): T_1;
192
+ replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
193
+ readonly ELEMENT_NODE: 1;
194
+ readonly ATTRIBUTE_NODE: 2;
195
+ readonly TEXT_NODE: 3;
196
+ readonly CDATA_SECTION_NODE: 4;
197
+ readonly ENTITY_REFERENCE_NODE: 5;
198
+ readonly ENTITY_NODE: 6;
199
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
200
+ readonly COMMENT_NODE: 8;
201
+ readonly DOCUMENT_NODE: 9;
202
+ readonly DOCUMENT_TYPE_NODE: 10;
203
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
204
+ readonly NOTATION_NODE: 12;
205
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
206
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
207
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
208
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
209
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
210
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
211
+ dispatchEvent(event: Event): boolean;
212
+ ariaActiveDescendantElement: Element | null;
213
+ ariaAtomic: string | null;
214
+ ariaAutoComplete: string | null;
215
+ ariaBrailleLabel: string | null;
216
+ ariaBrailleRoleDescription: string | null;
217
+ ariaBusy: string | null;
218
+ ariaChecked: string | null;
219
+ ariaColCount: string | null;
220
+ ariaColIndex: string | null;
221
+ ariaColIndexText: string | null;
222
+ ariaColSpan: string | null;
223
+ ariaControlsElements: ReadonlyArray<Element> | null;
224
+ ariaCurrent: string | null;
225
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
226
+ ariaDescription: string | null;
227
+ ariaDetailsElements: ReadonlyArray<Element> | null;
228
+ ariaDisabled: string | null;
229
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
230
+ ariaExpanded: string | null;
231
+ ariaFlowToElements: ReadonlyArray<Element> | null;
232
+ ariaHasPopup: string | null;
233
+ ariaHidden: string | null;
234
+ ariaInvalid: string | null;
235
+ ariaKeyShortcuts: string | null;
236
+ ariaLabel: string | null;
237
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
238
+ ariaLevel: string | null;
239
+ ariaLive: string | null;
240
+ ariaModal: string | null;
241
+ ariaMultiLine: string | null;
242
+ ariaMultiSelectable: string | null;
243
+ ariaOrientation: string | null;
244
+ ariaOwnsElements: ReadonlyArray<Element> | null;
245
+ ariaPlaceholder: string | null;
246
+ ariaPosInSet: string | null;
247
+ ariaPressed: string | null;
248
+ ariaReadOnly: string | null;
249
+ ariaRelevant: string | null;
250
+ ariaRequired: string | null;
251
+ ariaRoleDescription: string | null;
252
+ ariaRowCount: string | null;
253
+ ariaRowIndex: string | null;
254
+ ariaRowIndexText: string | null;
255
+ ariaRowSpan: string | null;
256
+ ariaSelected: string | null;
257
+ ariaSetSize: string | null;
258
+ ariaSort: string | null;
259
+ ariaValueMax: string | null;
260
+ ariaValueMin: string | null;
261
+ ariaValueNow: string | null;
262
+ ariaValueText: string | null;
263
+ role: string | null;
264
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
265
+ getAnimations(options?: GetAnimationsOptions): Animation[];
266
+ after(...nodes: (Node | string)[]): void;
267
+ before(...nodes: (Node | string)[]): void;
268
+ remove(): void;
269
+ replaceWith(...nodes: (Node | string)[]): void;
270
+ readonly nextElementSibling: Element | null;
271
+ readonly previousElementSibling: Element | null;
272
+ readonly childElementCount: number;
273
+ readonly children: HTMLCollection;
274
+ readonly firstElementChild: Element | null;
275
+ readonly lastElementChild: Element | null;
276
+ append(...nodes: (Node | string)[]): void;
277
+ prepend(...nodes: (Node | string)[]): void;
278
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
279
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
280
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
281
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
282
+ querySelector<E extends Element = Element>(selectors: string): E | null;
283
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
284
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
285
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
286
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
287
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
288
+ replaceChildren(...nodes: (Node | string)[]): void;
289
+ readonly assignedSlot: HTMLSlotElement | null;
290
+ readonly attributeStyleMap: StylePropertyMap;
291
+ get style(): CSSStyleDeclaration;
292
+ set style(cssText: string);
293
+ contentEditable: string;
294
+ enterKeyHint: string;
295
+ inputMode: string;
296
+ readonly isContentEditable: boolean;
297
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
298
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
299
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
300
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
301
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
302
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
303
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
304
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
306
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
307
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
308
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
309
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
310
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
311
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
312
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
313
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
314
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
315
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
316
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
317
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
318
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
319
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
320
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
321
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
322
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
323
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
324
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
325
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
326
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
327
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
329
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
330
+ onerror: OnErrorEventHandler;
331
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
332
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
333
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
334
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
335
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
336
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
337
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
338
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
339
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
341
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
342
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
343
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
344
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
345
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
346
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
347
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
348
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
349
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
350
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
351
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
352
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
353
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
354
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
355
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
356
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
357
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
358
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
359
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
360
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
361
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
362
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
363
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
364
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
365
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
366
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
367
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
368
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
369
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
370
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
371
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
372
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
373
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
374
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
375
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
376
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
377
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
378
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
379
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
380
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
381
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
382
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
383
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
384
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
385
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
386
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
387
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
388
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
389
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
390
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
391
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
392
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
393
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
394
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
395
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
396
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
397
+ autofocus: boolean;
398
+ readonly dataset: DOMStringMap;
399
+ nonce?: string;
400
+ tabIndex: number;
401
+ blur(): void;
402
+ focus(options?: FocusOptions): void;
403
+ };
404
+ } & T;
405
+ //# sourceMappingURL=SwcAppMixin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwcAppMixin.d.ts","sourceRoot":"","sources":["../../../src/elements/SwcAppMixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,aAAa,EAAC,MAAM,UAAU,CAAC;AAExD,OAAO,EAAC,YAAY,EAAE,sBAAsB,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAA0C,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACxF,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAGtD,eAAO,MAAM,KAAK,GAAI,GAAG,WAAW,YAEnC,CAAA;AACD,eAAO,MAAM,eAAe,GAAI,GAAG,WAAW,SAE7C,CAAA;AACD,eAAO,MAAM,kBAAkB,GAAI,GAAG,WAAW,SAEhD,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS;IAAE,KAAI,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,WAAW,CAAA;CAAE,EAAE,IAAI,EAAE,CAAC;kBAmB1D,GAAG,EAAE;;;8BAfJ,YAAY;2BACf,eAAe;;;uCAIH,GAAG;wCACF,GAAG;QAEnC;;;;WAIG;;;;;gDAoB2C,WAAW,MAAM,eAAe;6BAuEnD,WAAW,WAAW;YAAE,YAAY,EAAE,OAAO,CAAA;SAAE;iCAqD3C,GAAG;gCAQV,GAAG;kCAOK,eAAe;yBAOxB,sBAAsB;;;sBAsEzB,MAAM;gBAIlB,IAAI;mBAID,IAAI;kBAIL,IAAI;gCAIU,aAAa,GAAG,IAAI;4CAMR,GAAG,WAAW,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BlE"}
@@ -1,3 +1,3 @@
1
- export declare const registerSwcApp: (w: Window) => Promise<CustomElementConstructor>;
2
- export declare const register: ((w: Window) => Promise<CustomElementConstructor>)[];
1
+ export * from './SwcAppMixin';
2
+ export * from './SwcApp';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc,kDAAgB,CAAC;AAK5C,eAAO,MAAM,QAAQ,sDAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elements/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA"}
@@ -4,6 +4,6 @@ export * from './decorators';
4
4
  export * from './types';
5
5
  export * from './utils/Utils';
6
6
  export * from './config/config';
7
- declare const _default: (w: Window, other?: (((w: Window) => Promise<CustomElementConstructor> | CustomElementConstructor) | any)[]) => Promise<CustomElementConstructor[]>;
7
+ declare const _default: (w: Window, other?: (((w: Window) => Promise<CustomElementConstructor> | CustomElementConstructor) | any)[]) => Promise<CustomElementConstructor>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,cAAc,YAAY,CAAA;AAK1B,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,eAAe,CAAC;AAG9B,cAAc,iBAAiB,CAAC;yBAGV,GAAG,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC,GAAG,GAAG,CAAC,EAAG;AAAjI,wBAcE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,cAAc,YAAY,CAAA;AAK1B,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,eAAe,CAAC;AAG9B,cAAc,iBAAiB,CAAC;yBAGV,GAAG,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC,GAAG,GAAG,CAAC,EAAG;AAAjI,wBAYE"}
@@ -1,6 +1,6 @@
1
- import { SimpleApplication } from '@dooboostore/simple-boot/SimpleApplication';
1
+ import { SimpleApplication } from '@dooboostore/simple-boot';
2
2
  import { Router } from '@dooboostore/core-web';
3
- import { SwcAttributeConfigType, SwcConfigType } from "./SwcAppEngine";
3
+ import { SwcAttributeConfigType, SwcConfigType } from "../SwcAppEngine";
4
4
  export declare enum InjectSituationType {
5
5
  HOST_SET = "SIMPLE_WEB_COMPONENT://HOSTSET",
6
6
  APP_HOST = "SIMPLE_WEB_COMPONENT://APPHOST",
@@ -44,14 +44,6 @@ export type SwcAppMessage<T = any> = {
44
44
  data?: T;
45
45
  type?: string;
46
46
  };
47
- export interface SwcChooseInterface extends HTMLTemplateElement {
48
- value: any;
49
- refresh(a: any): void;
50
- }
51
- export interface SwcIfInterface extends HTMLTemplateElement {
52
- value: any;
53
- refresh(): void;
54
- }
55
47
  export interface SwcAppInterface extends HTMLElement {
56
48
  simpleApplication?: SimpleApplication;
57
49
  config?: SwcConfigType;
@@ -63,4 +55,12 @@ export interface SwcAppInterface extends HTMLElement {
63
55
  forward(): void;
64
56
  publishMessage(message: SwcAppMessage): void;
65
57
  }
66
- //# sourceMappingURL=types.d.ts.map
58
+ export interface SwcElement {
59
+ createSlotString(id: string): string;
60
+ createEaHtml(id: string, script: string): string;
61
+ createEaText(id: string, script: string): string;
62
+ createEaAttribute(id: string, attributeName: string): string;
63
+ createEaEvent(id: string, eventName: string): string;
64
+ createEaProperty(id: string, propertyName: string): string;
65
+ }
66
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../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C,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IAChD,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IAChD,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5D,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;IACpD,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAAA;CAC3D"}
@@ -1,13 +1,15 @@
1
1
  import { SwcAppInterface, HostSet, HelperSet, HelperHostSet } from '../types';
2
+ import { ExpressionResult } from '@dooboostore/core';
2
3
  import { Router } from "@dooboostore/core-web";
3
4
  export declare const SWC_NOT_FOUND: unique symbol;
4
- export declare const htmlFragment: (html: string, doc?: Document) => DocumentFragment;
5
+ export declare const html: (str: string, document: Document) => ChildNode[];
6
+ export declare const htmlFragment: (html: string | Node | Node[], doc: Document) => DocumentFragment;
5
7
  export declare const textNode: (text: string | any, doc?: Document) => Text;
6
8
  export declare const commentNode: (comment: string | any, doc?: Document) => Comment;
7
9
  export type CreateElementConfig = {
8
10
  innerHtml?: string;
9
11
  property?: Record<string, any>;
10
- attrs?: Record<string, string>;
12
+ attrs?: Record<string, any>;
11
13
  };
12
14
  export declare const createElement: <T extends HTMLElement>(documentOrWindow: Document | Window, tagName: string, options?: CreateElementConfig) => T;
13
15
  export declare const htmlDivElement: (html: string, options?: {
@@ -78,6 +80,16 @@ export declare namespace SwcUtils {
78
80
  const findAllSwcHostsIncludingSelf: (el: HTMLElement | Node) => HTMLElement[];
79
81
  const getHosts: (el: HTMLElement) => HTMLElement[];
80
82
  const getHost: (el: HTMLElement) => HTMLElement | undefined;
83
+ function projectProcessHtml(id: string, htmlOrNode: string, document: Document): string;
84
+ function projectProcessHtml(id: string, htmlOrNode: ((Node)[]) | Node, document: Document): (Node)[];
85
+ function processHtml(id: string, html: string, config: {
86
+ document: Document;
87
+ replaceWrap: {
88
+ start: string | RegExp;
89
+ end: string | RegExp;
90
+ };
91
+ replacer: (id: string, script: string, er: ExpressionResult) => string;
92
+ }): string;
81
93
  const getAppHosts: (el: HTMLElement) => SwcAppInterface[];
82
94
  const getAppHost: (el: HTMLElement) => SwcAppInterface | undefined;
83
95
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../src/utils/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9E,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAE7C,eAAO,MAAM,aAAa,eAA+C,CAAC;AAG1E,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,MAAM,QAAQ,KAAG,gBAM3D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,GAAG,GAAG,EAAE,MAAM,QAAQ,KAAG,IAI7D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,GAAG,GAAG,EAAE,MAAM,QAAQ,KAAG,OAInE,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAAE,CAAC;AAC1H,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,WAAW,EACjD,kBAAkB,QAAQ,GAAG,MAAM,EACnC,SAAS,MAAM,EACf,UAAU,mBAAmB,KAC5B,CAYF,CAAC;AAGF,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,EAAE,UAAU;IAAE,GAAG,CAAC,EAAE,QAAQ,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