From 8e8475790d7bb6d69d07449fc50965d8ebadeff7 Mon Sep 17 00:00:00 2001 From: Sean Doyle Date: Fri, 13 Dec 2024 23:29:39 -0500 Subject: [PATCH] Export `InnerTemplatePart` Add an entry to the `src/index.ts` to export the new `InnerTemplatePart`. Since consumers are most likely to import `TemplateInstance`, change the `test/template-instance.ts` test file to import properties from the module in a way that more closely resembles the end-user consumer experience. --- src/index.ts | 1 + test/template-instance.ts | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 5ea3b61..176d5d7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ export {TemplateInstance} from './template-instance.js' export {parse} from './template-string-parser.js' export {AttributeTemplatePart, AttributeValueSetter} from './attribute-template-part.js' +export {InnerTemplatePart} from './inner-template-part.js' export {NodeTemplatePart} from './node-template-part.js' export { createProcessor, diff --git a/test/template-instance.ts b/test/template-instance.ts index 76e691a..6bea832 100644 --- a/test/template-instance.ts +++ b/test/template-instance.ts @@ -1,8 +1,12 @@ import {expect} from '@open-wc/testing' -import {TemplateInstance} from '../src/template-instance' -import {NodeTemplatePart} from '../src/node-template-part' -import {InnerTemplatePart} from '../src/inner-template-part' -import {processPropertyIdentity, propertyIdentityOrBooleanAttribute, createProcessor} from '../src/processors' +import { + TemplateInstance, + NodeTemplatePart, + InnerTemplatePart, + processPropertyIdentity, + propertyIdentityOrBooleanAttribute, + createProcessor, +} from '../src/index' describe('template-instance', () => { it('applies data to templated text nodes', () => {