Skip to content

Commit

Permalink
Bite the bullet and commit build outputs so that they are as accessib…
Browse files Browse the repository at this point in the history
…le as possible for people that may not be able to run the build in some OS or setup. An upside of this is that examples and documentation can be served out of the box without having to build them. Remove package.json 'prepare' scripts because they are no longer needed, as installing from git will already include build outputs.
  • Loading branch information
trusktr committed Sep 8, 2023
1 parent 3a4f7f9 commit 0dea87b
Show file tree
Hide file tree
Showing 47 changed files with 656 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
node_modules/
package-lock.json
dist/
.vscode/
*.log

/jsx-runtime.*
50 changes: 50 additions & 0 deletions dist/LumeElement.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import type { AttributeHandler } from './attribute';
import type { DashCasedProps } from './_utils';
declare const HTMLElement: {
new (): HTMLElement;
prototype: HTMLElement;
};
declare class LumeElement extends HTMLElement {
#private;
static elementName: string;
static defineElement(name?: string, registry?: CustomElementRegistry): typeof LumeElement;
static reactiveProperties?: string[];
static observedAttributes?: string[] | Record<string, AttributeHandler>;
private __attributesToProps?;
protected _preUpgradeValues: Map<PropertyKey, unknown>;
protected __propsSetAtLeastOnce__?: Set<PropertyKey>;
protected __reactifiedProps__?: Set<PropertyKey>;
protected ___init___: void;
private __handleInitialPropertyValuesIfAny;
protected template?: Template;
protected css?: string | (() => string);
protected static css?: string | (() => string);
readonly hasShadow: boolean;
private __root;
protected get root(): Node;
protected set root(v: Node);
protected get styleRoot(): Node;
attachShadow(options: ShadowRootInit): ShadowRoot;
private __dispose?;
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback?(name: string, oldVal: string | null, newVal: string | null): void;
private static __styleRootNodeRefCountPerTagName;
private __styleRootNode;
private __setStyle;
private static __elementId;
private __id;
private __dynamicStyle;
private __cleanupStyle;
adoptedCallback(): void;
}
export { LumeElement as Element };
import type { JSX } from './jsx-runtime';
declare type JSXOrDOM = JSX.Element | globalThis.Element;
declare type TemplateContent = JSXOrDOM | JSXOrDOM[];
declare type Template = TemplateContent | (() => TemplateContent);
export declare type ElementAttributes<ElementType, SelectedProperties extends keyof ElementType, AdditionalProperties extends object = {}> = WithStringValues<DashCasedProps<Partial<Pick<ElementType, SelectedProperties>>>> & AdditionalProperties & Omit<JSX.HTMLAttributes<ElementType>, SelectedProperties | keyof AdditionalProperties>;
declare type WithStringValues<Type extends object> = {
[Property in keyof Type]: Type[Property] extends string ? Type[Property] : Type[Property] | string;
};
//# sourceMappingURL=LumeElement.d.ts.map
1 change: 1 addition & 0 deletions dist/LumeElement.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

183 changes: 183 additions & 0 deletions dist/LumeElement.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/LumeElement.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0dea87b

Please sign in to comment.