coralite 0.28.5 → 0.29.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.
- package/bin/coralite.js +0 -2
- package/dist/lib/coralite.d.ts +35 -58
- package/dist/lib/coralite.d.ts.map +1 -1
- package/dist/lib/dom.d.ts +5 -5
- package/dist/lib/dom.d.ts.map +1 -1
- package/dist/lib/index.js +317 -638
- package/dist/lib/index.js.map +3 -3
- package/dist/lib/parse.d.ts +9 -9
- package/dist/lib/parse.d.ts.map +1 -1
- package/dist/lib/script-manager.d.ts +16 -16
- package/dist/lib/script-manager.d.ts.map +1 -1
- package/dist/lib/type-helper.d.ts +6 -6
- package/dist/lib/type-helper.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +6 -6
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/plugins/define-component.d.ts +1 -0
- package/dist/plugins/define-component.d.ts.map +1 -1
- package/dist/plugins/define-component.js +16 -11
- package/dist/plugins/metadata.js +5 -5
- package/dist/plugins/refs.d.ts.map +1 -1
- package/dist/plugins/refs.js +19 -18
- package/dist/types/collection.d.ts +1 -1
- package/dist/types/{document.d.ts → component.d.ts} +18 -18
- package/dist/types/component.d.ts.map +1 -0
- package/dist/types/core.d.ts +1 -5
- package/dist/types/core.d.ts.map +1 -1
- package/dist/types/dom.d.ts +16 -16
- package/dist/types/dom.d.ts.map +1 -1
- package/dist/types/index.d.ts +15 -12
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/module.d.ts +2 -2
- package/dist/types/module.d.ts.map +1 -1
- package/dist/types/plugin.d.ts +7 -7
- package/dist/types/plugin.d.ts.map +1 -1
- package/dist/types/script.d.ts +36 -10
- package/dist/types/script.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/types/document.d.ts.map +0 -1
package/bin/coralite.js
CHANGED
|
@@ -23,7 +23,6 @@ program
|
|
|
23
23
|
.option('-i, --ignore-attribute <key=value...>', 'Ignore elements by attribute name value pair', [])
|
|
24
24
|
.option('-s, --skip-render-attribute <key...>', 'Parse elements but exclude them from final render output', [])
|
|
25
25
|
.option('-d, --dry-run', 'Run in dry-run mode')
|
|
26
|
-
.option('--standalone <path>', 'Output directory for standalone client-side web components')
|
|
27
26
|
.option('-a, --assets <mapping...>', 'Static assets to copy. Format: pkg:path:dest (or pkg:path)')
|
|
28
27
|
|
|
29
28
|
program.parse(process.argv)
|
|
@@ -73,7 +72,6 @@ const coraliteOptions = {
|
|
|
73
72
|
ignoreByAttribute,
|
|
74
73
|
skipRenderByAttribute: options.skipRenderAttribute,
|
|
75
74
|
mode: options.mode,
|
|
76
|
-
standaloneOutput: options.standalone,
|
|
77
75
|
output,
|
|
78
76
|
assets,
|
|
79
77
|
plugins: []
|
package/dist/lib/coralite.d.ts
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* CoraliteModule,
|
|
6
6
|
* CoraliteResult,
|
|
7
7
|
* CoraliteModuleValues,
|
|
8
|
-
*
|
|
8
|
+
* CoraliteComponent,
|
|
9
9
|
* CoraliteCollectionItem,
|
|
10
|
-
*
|
|
10
|
+
* CoraliteComponentRoot,
|
|
11
11
|
* CoraliteCollectionEventSet,
|
|
12
12
|
* Attribute,
|
|
13
|
-
*
|
|
13
|
+
* CoraliteComponentResult,
|
|
14
14
|
* CoraliteValues,
|
|
15
15
|
* InstanceContext} from '../types/index.js'
|
|
16
16
|
*
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
* @param {import('../types/core.js').CoraliteStaticAsset[]} [options.assets] - Static assets to copy during build
|
|
30
30
|
* @param {Array<string | Attribute>} [options.ignoreByAttribute] - Elements to ignore with attribute name value pair
|
|
31
31
|
* @param {Array<string | Attribute>} [options.skipRenderByAttribute] - Element attributes to parse but exclude from final render output
|
|
32
|
-
* @param {string} [options.standaloneOutput] - Output directory for standalone client-side web components
|
|
33
32
|
* @param {string} [options.output] - Output directory for build artifacts
|
|
34
33
|
* @example
|
|
35
34
|
* const coralite = new Coralite({
|
|
@@ -41,7 +40,7 @@
|
|
|
41
40
|
* skipRenderByAttribute: ['data-skip-render']
|
|
42
41
|
* });
|
|
43
42
|
*/
|
|
44
|
-
export function Coralite({ components, pages, plugins, assets, ignoreByAttribute, skipRenderByAttribute, mode,
|
|
43
|
+
export function Coralite({ components, pages, plugins, assets, ignoreByAttribute, skipRenderByAttribute, mode, output }: {
|
|
45
44
|
components: string;
|
|
46
45
|
plugins?: CoralitePluginInstance[];
|
|
47
46
|
pages: string;
|
|
@@ -49,7 +48,6 @@ export function Coralite({ components, pages, plugins, assets, ignoreByAttribute
|
|
|
49
48
|
assets?: import("../types/core.js").CoraliteStaticAsset[];
|
|
50
49
|
ignoreByAttribute?: Array<string | Attribute>;
|
|
51
50
|
skipRenderByAttribute?: Array<string | Attribute>;
|
|
52
|
-
standaloneOutput?: string;
|
|
53
51
|
output?: string;
|
|
54
52
|
}): void;
|
|
55
53
|
export class Coralite {
|
|
@@ -60,12 +58,12 @@ export class Coralite {
|
|
|
60
58
|
* CoraliteModule,
|
|
61
59
|
* CoraliteResult,
|
|
62
60
|
* CoraliteModuleValues,
|
|
63
|
-
*
|
|
61
|
+
* CoraliteComponent,
|
|
64
62
|
* CoraliteCollectionItem,
|
|
65
|
-
*
|
|
63
|
+
* CoraliteComponentRoot,
|
|
66
64
|
* CoraliteCollectionEventSet,
|
|
67
65
|
* Attribute,
|
|
68
|
-
*
|
|
66
|
+
* CoraliteComponentResult,
|
|
69
67
|
* CoraliteValues,
|
|
70
68
|
* InstanceContext} from '../types/index.js'
|
|
71
69
|
*
|
|
@@ -84,7 +82,6 @@ export class Coralite {
|
|
|
84
82
|
* @param {import('../types/core.js').CoraliteStaticAsset[]} [options.assets] - Static assets to copy during build
|
|
85
83
|
* @param {Array<string | Attribute>} [options.ignoreByAttribute] - Elements to ignore with attribute name value pair
|
|
86
84
|
* @param {Array<string | Attribute>} [options.skipRenderByAttribute] - Element attributes to parse but exclude from final render output
|
|
87
|
-
* @param {string} [options.standaloneOutput] - Output directory for standalone client-side web components
|
|
88
85
|
* @param {string} [options.output] - Output directory for build artifacts
|
|
89
86
|
* @example
|
|
90
87
|
* const coralite = new Coralite({
|
|
@@ -96,7 +93,7 @@ export class Coralite {
|
|
|
96
93
|
* skipRenderByAttribute: ['data-skip-render']
|
|
97
94
|
* });
|
|
98
95
|
*/
|
|
99
|
-
constructor({ components, pages, plugins, assets, ignoreByAttribute, skipRenderByAttribute, mode,
|
|
96
|
+
constructor({ components, pages, plugins, assets, ignoreByAttribute, skipRenderByAttribute, mode, output }: {
|
|
100
97
|
components: string;
|
|
101
98
|
plugins?: CoralitePluginInstance[];
|
|
102
99
|
pages: string;
|
|
@@ -104,7 +101,6 @@ export class Coralite {
|
|
|
104
101
|
assets?: import("../types/core.js").CoraliteStaticAsset[];
|
|
105
102
|
ignoreByAttribute?: Array<string | Attribute>;
|
|
106
103
|
skipRenderByAttribute?: Array<string | Attribute>;
|
|
107
|
-
standaloneOutput?: string;
|
|
108
104
|
output?: string;
|
|
109
105
|
});
|
|
110
106
|
options: {
|
|
@@ -112,10 +108,9 @@ export class Coralite {
|
|
|
112
108
|
pages: string;
|
|
113
109
|
plugins: CoralitePluginInstance[];
|
|
114
110
|
assets: import("../types/core.js").CoraliteStaticAsset[];
|
|
115
|
-
ignoreByAttribute: (string | import("../types/
|
|
116
|
-
skipRenderByAttribute: (string | import("../types/
|
|
111
|
+
ignoreByAttribute: (string | import("../types/component.js").Attribute)[];
|
|
112
|
+
skipRenderByAttribute: (string | import("../types/component.js").Attribute)[];
|
|
117
113
|
mode: string;
|
|
118
|
-
standaloneOutput: string;
|
|
119
114
|
path: {
|
|
120
115
|
components: string;
|
|
121
116
|
pages: string;
|
|
@@ -148,7 +143,7 @@ export class Coralite {
|
|
|
148
143
|
getHtmlFile: typeof getHtmlFile;
|
|
149
144
|
createElement: typeof createElement;
|
|
150
145
|
createTextNode: typeof createTextNode;
|
|
151
|
-
transform: (root:
|
|
146
|
+
transform: (root: CoraliteComponentRoot | CoraliteAnyNode | CoraliteAnyNode[], options?: DomSerializerOptions) => string;
|
|
152
147
|
};
|
|
153
148
|
context: {
|
|
154
149
|
plugins: {};
|
|
@@ -156,7 +151,7 @@ export class Coralite {
|
|
|
156
151
|
components: string;
|
|
157
152
|
pages: string;
|
|
158
153
|
};
|
|
159
|
-
excludeByAttribute: (string | import("../types/
|
|
154
|
+
excludeByAttribute: (string | import("../types/component.js").Attribute)[];
|
|
160
155
|
components: CoraliteCollection;
|
|
161
156
|
pages: CoraliteCollection;
|
|
162
157
|
};
|
|
@@ -187,13 +182,6 @@ export class Coralite {
|
|
|
187
182
|
* @returns {Object}
|
|
188
183
|
*/
|
|
189
184
|
_createRenderContext(buildId?: string): any;
|
|
190
|
-
/**
|
|
191
|
-
* Compiles reusable Web Components for the standalone output target.
|
|
192
|
-
*
|
|
193
|
-
* @internal
|
|
194
|
-
* @return {AsyncGenerator<CoraliteResult>}
|
|
195
|
-
*/
|
|
196
|
-
_generateStandaloneComponents(): AsyncGenerator<CoraliteResult>;
|
|
197
185
|
/**
|
|
198
186
|
* Compiles specified page(s) by rendering their document content and measuring render time.
|
|
199
187
|
* Processes pages based on provided path(s), replacing custom elements with components,
|
|
@@ -458,11 +446,11 @@ export class Coralite {
|
|
|
458
446
|
/**
|
|
459
447
|
* Renders the provided node or array of nodes using the render function.
|
|
460
448
|
*
|
|
461
|
-
* @param {
|
|
449
|
+
* @param {CoraliteComponentRoot | CoraliteAnyNode | CoraliteAnyNode[]} root - The node(s) to be rendered.
|
|
462
450
|
* @param {DomSerializerOptions} [options] - Changes serialization behavior
|
|
463
451
|
* @returns {string} returns raw HTML
|
|
464
452
|
*/
|
|
465
|
-
transform(root:
|
|
453
|
+
transform(root: CoraliteComponentRoot | CoraliteAnyNode | CoraliteAnyNode[], options?: DomSerializerOptions): string;
|
|
466
454
|
/**
|
|
467
455
|
* Adds a page to the current render queue.
|
|
468
456
|
* @param {string|CoraliteCollectionItem} value - The path to a page or a CoraliteCollectionItem to add to the render queue.
|
|
@@ -476,43 +464,32 @@ export class Coralite {
|
|
|
476
464
|
* @returns {string[]} An array of page paths linked to the custom element component.
|
|
477
465
|
*/
|
|
478
466
|
getPagePathsUsingCustomElement(path: string): string[];
|
|
467
|
+
/**
|
|
468
|
+
* Recursively resolves imperative component dependencies, bundling their HTML and state for the client.
|
|
469
|
+
*
|
|
470
|
+
* @param {string[]} componentIds - Array of component IDs to process.
|
|
471
|
+
* @param {Object} renderContext - The current build render context.
|
|
472
|
+
* @param {CoraliteComponent} parentComponent - The document context in which the module is being processed
|
|
473
|
+
* @returns {Promise<void>}
|
|
474
|
+
*/
|
|
475
|
+
_processDependentComponents(componentIds: string[], renderContext: any, parentComponent: CoraliteComponent): Promise<void>;
|
|
479
476
|
/**
|
|
480
477
|
* @param {Object} options
|
|
481
478
|
* @param {string} options.id - id - Unique identifier for the component
|
|
482
479
|
* @param {CoraliteModuleValues} [options.values={}] - Token values available for replacement
|
|
483
480
|
* @param {CoraliteElement} [options.element] - Mapping of component IDs to their module definitions
|
|
484
|
-
* @param {
|
|
481
|
+
* @param {CoraliteComponent} options.component - Current document being processed
|
|
485
482
|
* @param {string} [options.contextId] - Context Id
|
|
486
483
|
* @param {number} [options.index] - Context index
|
|
487
484
|
* @param {Object} [options.renderContext] - Render Context
|
|
488
485
|
* @param {boolean} [head=true] - Indicates if the current function call is for the head of the recursion
|
|
489
486
|
* @returns {Promise<CoraliteElement | void>}
|
|
490
|
-
*
|
|
491
|
-
* @example
|
|
492
|
-
* ```
|
|
493
|
-
* // example usage:
|
|
494
|
-
* const component = await createComponent({
|
|
495
|
-
* id: 'my-component',
|
|
496
|
-
* tokens: {
|
|
497
|
-
* 'some-value': 'value-for-component'
|
|
498
|
-
* },
|
|
499
|
-
* components: {
|
|
500
|
-
* 'my-component': {
|
|
501
|
-
* id: 'my-component',
|
|
502
|
-
* component: someComponent,
|
|
503
|
-
* script: someScript,
|
|
504
|
-
* values: someValues
|
|
505
|
-
* }
|
|
506
|
-
* },
|
|
507
|
-
* document: documentInstance
|
|
508
|
-
* })
|
|
509
|
-
* ```
|
|
510
487
|
*/
|
|
511
|
-
|
|
488
|
+
createComponentElement({ id, values, element, component, contextId, index, renderContext }: {
|
|
512
489
|
id: string;
|
|
513
490
|
values?: CoraliteModuleValues;
|
|
514
491
|
element?: CoraliteElement;
|
|
515
|
-
|
|
492
|
+
component: CoraliteComponent;
|
|
516
493
|
contextId?: string;
|
|
517
494
|
index?: number;
|
|
518
495
|
renderContext?: any;
|
|
@@ -530,17 +507,17 @@ export class Coralite {
|
|
|
530
507
|
* @param {CoraliteModule} data.module - The Coralite module to parse
|
|
531
508
|
* @param {CoraliteModuleValues} data.values - Replacement tokens for the component
|
|
532
509
|
* @param {CoraliteElement} data.element - The Coralite module to parse
|
|
533
|
-
* @param {
|
|
510
|
+
* @param {CoraliteComponent} data.component - The document context in which the module is being processed
|
|
534
511
|
* @param {string} data.contextId - Context Id
|
|
535
512
|
* @param {Object} data.renderContext - Render Context
|
|
536
513
|
*
|
|
537
514
|
* @returns {Promise<CoraliteModuleValues>}
|
|
538
515
|
*/
|
|
539
|
-
_evaluateDevelopment({ module, values, element,
|
|
516
|
+
_evaluateDevelopment({ module, values, element, component, contextId, renderContext }: {
|
|
540
517
|
module: CoraliteModule;
|
|
541
518
|
values: CoraliteModuleValues;
|
|
542
519
|
element: CoraliteElement;
|
|
543
|
-
|
|
520
|
+
component: CoraliteComponent;
|
|
544
521
|
contextId: string;
|
|
545
522
|
renderContext: any;
|
|
546
523
|
}): Promise<CoraliteModuleValues>;
|
|
@@ -552,17 +529,17 @@ export class Coralite {
|
|
|
552
529
|
* @param {CoraliteModule} data.module - The Coralite module to parse
|
|
553
530
|
* @param {CoraliteModuleValues} data.values - Replacement tokens for the component
|
|
554
531
|
* @param {CoraliteElement} data.element - The Coralite module to parse
|
|
555
|
-
* @param {
|
|
532
|
+
* @param {CoraliteComponent} data.component - The document context in which the module is being processed
|
|
556
533
|
* @param {string} data.contextId - Context Id
|
|
557
534
|
* @param {Object} data.renderContext - Render Context
|
|
558
535
|
*
|
|
559
536
|
* @returns {Promise<CoraliteModuleValues>}
|
|
560
537
|
*/
|
|
561
|
-
_evaluateProduction({ module, values, element,
|
|
538
|
+
_evaluateProduction({ module, values, element, component, contextId, renderContext }: {
|
|
562
539
|
module: CoraliteModule;
|
|
563
540
|
values: CoraliteModuleValues;
|
|
564
541
|
element: CoraliteElement;
|
|
565
|
-
|
|
542
|
+
component: CoraliteComponent;
|
|
566
543
|
contextId: string;
|
|
567
544
|
renderContext: any;
|
|
568
545
|
}): Promise<CoraliteModuleValues>;
|
|
@@ -574,7 +551,7 @@ export class Coralite {
|
|
|
574
551
|
* @param {CoraliteModule} data.module - The Coralite module to parse
|
|
575
552
|
* @param {CoraliteModuleValues} data.values - Replacement tokens for the component
|
|
576
553
|
* @param {CoraliteElement} data.element - The Coralite module to parse
|
|
577
|
-
* @param {
|
|
554
|
+
* @param {CoraliteComponent} data.component - The document context in which the module is being processed
|
|
578
555
|
* @param {string} data.contextId - Context Id
|
|
579
556
|
* @param {Object} data.renderContext - Render Context
|
|
580
557
|
*
|
|
@@ -615,13 +592,13 @@ import { getHtmlFiles } from './html.js';
|
|
|
615
592
|
import { getHtmlFile } from './html.js';
|
|
616
593
|
import { createElement } from './parse.js';
|
|
617
594
|
import { createTextNode } from './parse.js';
|
|
618
|
-
import type {
|
|
595
|
+
import type { CoraliteComponentRoot } from '../types/index.js';
|
|
619
596
|
import type { CoraliteAnyNode } from '../types/index.js';
|
|
620
597
|
import type { DomSerializerOptions } from 'dom-serializer';
|
|
621
598
|
import CoraliteCollection from './collection.js';
|
|
622
599
|
import type { CoraliteResult } from '../types/index.js';
|
|
600
|
+
import type { CoraliteComponent } from '../types/index.js';
|
|
623
601
|
import type { CoraliteModuleValues } from '../types/index.js';
|
|
624
602
|
import type { CoraliteElement } from '../types/index.js';
|
|
625
|
-
import type { CoraliteDocument } from '../types/index.js';
|
|
626
603
|
import type { CoraliteModule } from '../types/index.js';
|
|
627
604
|
//# sourceMappingURL=coralite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coralite.d.ts","sourceRoot":"","sources":["../../lib/coralite.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"coralite.d.ts","sourceRoot":"","sources":["../../lib/coralite.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,yHAlBG;IAAwB,UAAU,EAA1B,MAAM;IAC6B,OAAO,GAA1C,sBAAsB,EAAE;IACR,KAAK,EAArB,MAAM;IACW,IAAI,GAArB,MAAM;IACqD,MAAM,GAAjE,OAAO,kBAAkB,EAAE,mBAAmB,EAAE;IACZ,iBAAiB,GAArD,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;IACW,qBAAqB,GAAzD,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;IACR,MAAM,GAAvB,MAAM;CACd,QAuLF;;IAzND;;;;;;;;;;;;;;;;;OAiBG;IAEH;;OAEG;IAEH;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,4GAlBG;QAAwB,UAAU,EAA1B,MAAM;QAC6B,OAAO,GAA1C,sBAAsB,EAAE;QACR,KAAK,EAArB,MAAM;QACW,IAAI,GAArB,MAAM;QACqD,MAAM,GAAjE,OAAO,kBAAkB,EAAE,mBAAmB,EAAE;QACZ,iBAAiB,GAArD,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;QACW,qBAAqB,GAAzD,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;QACR,MAAM,GAAvB,MAAM;KACd,EAuLF;IAhJC;;;;;;;;;;;;;MAUC;IAED,oDAAoD;IACpD,eADW,GAAG,CAAC,MAAM,EAAE,sBAAsB,EAAE,CAAC,CAClB;IAG9B;;;;;;;;;;;;;;MAcC;IAGD,8BAAyC;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6B,MAAM,EAA3B,cAAc;QACa,MAAM,EAAjC,oBAAoB;QACE,OAAO,EAA7B,eAAe;QACS,SAAS,EAAjC,iBAAiB;QACJ,SAAS,EAAtB,MAAM;QACO,aAAa;KAElC,GAAU,OAAO,CAAC,oBAAoB,CAAC,CAiHzC;IAED;;;;;;;;;;;;;OAaG;IACH,yBAFa,OAAO,CAAC,oBAAoB,CAAC,CAOzC;IAED;;;;;;;;;;OAUG;IACH,mBAVsB,CAAC,wBAMZ,WAAW,GAAC,cAAc,GAAC,cAAc,GAAC,gBAAgB,GAAC,mBAAmB,GAAC,mBAAmB,GAAC,oBAAoB,GAAC,mBAAmB,GAAC,eAAe,GAAC,cAAc,QAC1K,CAAC,GACA,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAc5B;IAED;;;;;;;OAOG;IACH,qBAHW,WAAW,GAAC,cAAc,GAAC,cAAc,GAAC,gBAAgB,GAAC,mBAAmB,GAAC,mBAAmB,GAAC,oBAAoB,GAAC,mBAAmB,GAAC,eAAe,GAAC,cAAc,4BAapL;;;wCAvnCU,cAAc,KACZ,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG;4CAnuBY,oBAAoB;+BAFrC,mBAAmB;4CAAnB,mBAAmB;8BA9Bf,qBAAqB;0BAFmB,YAAY;4BAAZ,YAAY;6BADxC,WAAW;4BAAX,WAAW;8BACiB,YAAY;+BAAZ,YAAY;2CAgCxD,mBAAmB;qCAAnB,mBAAmB;0CAMN,gBAAgB;+BAxBxB,iBAAiB;oCAkBtB,mBAAmB;uCAAnB,mBAAmB;0CAAnB,mBAAmB;qCAAnB,mBAAmB;oCAAnB,mBAAmB"}
|
package/dist/lib/dom.d.ts
CHANGED
|
@@ -24,10 +24,10 @@ export function createCoraliteComment(node: RawCoraliteComment): CoraliteComment
|
|
|
24
24
|
export function createCoraliteDirective(node: RawCoraliteDirective): CoraliteDirective;
|
|
25
25
|
/**
|
|
26
26
|
* Creates an enhanced Coralite Document Root
|
|
27
|
-
* @param {
|
|
28
|
-
* @returns {
|
|
27
|
+
* @param {RawCoraliteComponentRoot} node
|
|
28
|
+
* @returns {CoraliteComponentRoot}
|
|
29
29
|
*/
|
|
30
|
-
export function
|
|
30
|
+
export function createCoraliteComponent(node: RawCoraliteComponentRoot): CoraliteComponentRoot;
|
|
31
31
|
import type { RawCoraliteElement } from '../types/index.js';
|
|
32
32
|
import type { CoraliteElement } from '../types/index.js';
|
|
33
33
|
import type { RawCoraliteTextNode } from '../types/index.js';
|
|
@@ -36,6 +36,6 @@ import type { RawCoraliteComment } from '../types/index.js';
|
|
|
36
36
|
import type { CoraliteComment } from '../types/index.js';
|
|
37
37
|
import type { RawCoraliteDirective } from '../types/index.js';
|
|
38
38
|
import type { CoraliteDirective } from '../types/index.js';
|
|
39
|
-
import type {
|
|
40
|
-
import type {
|
|
39
|
+
import type { RawCoraliteComponentRoot } from '../types/index.js';
|
|
40
|
+
import type { CoraliteComponentRoot } from '../types/index.js';
|
|
41
41
|
//# sourceMappingURL=dom.d.ts.map
|
package/dist/lib/dom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../lib/dom.js"],"names":[],"mappings":"AAiRA;;;;GAIG;AACH,4CAHW,kBAAkB,GAChB,eAAe,CAM3B;AAyDD;;;;GAIG;AACH,6CAHW,mBAAmB,GACjB,gBAAgB,CAM5B;AAyDD;;;;GAIG;AACH,4CAHW,kBAAkB,GAChB,eAAe,CAM3B;AAyCD;;;;GAIG;AACH,8CAHW,oBAAoB,GAClB,iBAAiB,CAM7B;AA6ED;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../lib/dom.js"],"names":[],"mappings":"AAiRA;;;;GAIG;AACH,4CAHW,kBAAkB,GAChB,eAAe,CAM3B;AAyDD;;;;GAIG;AACH,6CAHW,mBAAmB,GACjB,gBAAgB,CAM5B;AAyDD;;;;GAIG;AACH,4CAHW,kBAAkB,GAChB,eAAe,CAM3B;AAyCD;;;;GAIG;AACH,8CAHW,oBAAoB,GAClB,iBAAiB,CAM7B;AA6ED;;;;GAIG;AACH,8CAHW,wBAAwB,GACtB,qBAAqB,CAMjC;wCAzhBS,mBAAmB;qCAAnB,mBAAmB;yCAAnB,mBAAmB;sCAAnB,mBAAmB;wCAAnB,mBAAmB;qCAAnB,mBAAmB;0CAAnB,mBAAmB;uCAAnB,mBAAmB;8CAAnB,mBAAmB;2CAAnB,mBAAmB"}
|