Skip to content

Commit

Permalink
Update lume/cli and lume/element, update decorator usage accordingly.…
Browse files Browse the repository at this point in the history
… With this we were able to make some double `__underscored` properties actually `#private` but still reactive. We also renamed some `__underscored` properties to be public in `CompositionTracker` because they could be useful in subclasses. Add a unit test file for the live-code package.
  • Loading branch information
trusktr committed Oct 1, 2024
1 parent 6b1d056 commit a214656
Show file tree
Hide file tree
Showing 162 changed files with 1,626 additions and 1,191 deletions.
2 changes: 1 addition & 1 deletion apps/first-person-shooter
6 changes: 3 additions & 3 deletions dist/behaviors/Behavior.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ import type { AnyConstructor } from 'lowclass/dist/Constructor.js';
export declare function behavior(name: string): <T extends AnyConstructor<PossibleBehaviorInstance>>(Class: T, context?: ClassDecoratorContext) => T;
export declare function behavior<T extends AnyConstructor<PossibleBehaviorInstance>>(Class: T, context?: ClassDecoratorContext): T;
declare const Behavior_base: {
new (...args: any[]): {
new (...a: any[]): {
connectedCallback(): void;
disconnectedCallback(): void;
readonly observedObject: object;
_propChangedCallback(propName: string | symbol, value: any): void;
"__#6@#propChangedCallback": (propName: string | symbol, value: any) => void;
receiveProps(): void;
unreceiveProps(): void;
receivedProperties?: never[] | undefined;
"__#5@#getReceivedProps"(): never[];
"__#6@#getReceivedProps"(): never[];
receiveInitialValues(): void;
adoptedCallback?(): void;
attributeChangedCallback?(name: string, oldVal: string | null, newVal: string | null): void;
Expand Down
2 changes: 1 addition & 1 deletion dist/behaviors/Behavior.d.ts.map

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

2 changes: 1 addition & 1 deletion dist/behaviors/Behavior.js

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

2 changes: 1 addition & 1 deletion dist/behaviors/Behavior.js.map

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

2 changes: 1 addition & 1 deletion dist/behaviors/InitialBehaviors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Constructor } from 'lowclass/dist/Constructor.js';
export declare function InitialBehaviors<T extends Constructor<HTMLElement>>(Base: T): {
new (...args: any[]): {
initialBehaviors?: Record<string, string>;
"__#17@#setBehaviors"(): void;
"__#19@#setBehaviors"(): void;
connectedCallback?(): void;
disconnectedCallback?(): void;
adoptedCallback?(): void;
Expand Down
2 changes: 1 addition & 1 deletion dist/behaviors/InitialBehaviors.d.ts.map

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

5 changes: 1 addition & 4 deletions dist/behaviors/InitialBehaviors.js

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

2 changes: 1 addition & 1 deletion dist/behaviors/InitialBehaviors.js.map

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

6 changes: 3 additions & 3 deletions dist/behaviors/PropReceiver.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import type { PossiblyCustomElement } from '../core/PossibleCustomElement.js';
* ```
*/
export declare function PropReceiver<T extends Constructor<PossiblyCustomElement>>(Base?: T): {
new (...args: any[]): {
new (...a: any[]): {
connectedCallback(): void;
disconnectedCallback(): void;
/**
Expand All @@ -42,7 +42,7 @@ export declare function PropReceiver<T extends Constructor<PossiblyCustomElement
* A subclass should specify the object to observe by defining a `get observedObject` getter.
*/
readonly observedObject: object;
_propChangedCallback(propName: PropKey, value: any): void;
"__#6@#propChangedCallback": (propName: PropKey, value: any) => void;
receiveProps(): void;
unreceiveProps(): void;
/**
Expand All @@ -53,7 +53,7 @@ export declare function PropReceiver<T extends Constructor<PossiblyCustomElement
* An array of strings, the properties of observedObject to observe.
*/
receivedProperties?: never[] | undefined;
"__#5@#getReceivedProps"(): never[];
"__#6@#getReceivedProps"(): never[];
receiveInitialValues(): void;
adoptedCallback?(): void;
attributeChangedCallback?(name: string, oldVal: string | null, newVal: string | null): void;
Expand Down
2 changes: 1 addition & 1 deletion dist/behaviors/PropReceiver.d.ts.map

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

14 changes: 5 additions & 9 deletions dist/behaviors/PropReceiver.js

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

Loading

0 comments on commit a214656

Please sign in to comment.