cubing 0.24.0-pre5 → 0.24.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/dist/esm/twisty/index.js +142 -5
- package/dist/esm/twisty/index.js.map +3 -3
- package/dist/types/twisty/index.d.ts +1 -0
- package/dist/types/twisty/views/twizzle/TwizzleLink.css.d.ts +2 -0
- package/dist/types/twisty/views/twizzle/TwizzleLink.d.ts +9 -0
- package/dist/types/twisty/views/twizzle/url-params.d.ts +18 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { TwistyPlayer } from "./views/TwistyPlayer";
|
|
2
2
|
export { TwistyAlgViewer } from "./views/TwistyAlgViewer";
|
|
3
3
|
export { TwistyAlgEditor } from "./views/TwistyAlgEditor/TwistyAlgEditor";
|
|
4
|
+
export { TwizzleLink } from "./views/twizzle/TwizzleLink";
|
|
4
5
|
export type { TwistyPlayerConfig } from "./views/TwistyPlayer";
|
|
5
6
|
export { experimentalForceNewRendererSharing } from "./views/3D/Twisty3DVantage";
|
|
6
7
|
export { NO_VALUE as EXPERIMENTAL_PROP_NO_VALUE } from "./model/props/TwistyProp";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TwistyPlayer } from "../..";
|
|
2
|
+
import { ManagedCustomElement } from "../ManagedCustomElement";
|
|
3
|
+
export declare class TwizzleLink extends ManagedCustomElement {
|
|
4
|
+
twistyPlayer: TwistyPlayer | null;
|
|
5
|
+
a: HTMLAnchorElement | null;
|
|
6
|
+
constructor();
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
addHeading(text: string): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EXPERIMENTAL_PROP_NO_VALUE } from "../../../../cubing/twisty";
|
|
2
|
+
import type { AlgProp } from "../../../../cubing/twisty/model/props/puzzle/state/AlgProp";
|
|
3
|
+
import type { TwistyPlayerModel } from "../../../../cubing/twisty/model/TwistyPlayerModel";
|
|
4
|
+
import type { TwistyPropSource } from "../../../../cubing/twisty/model/props/TwistyProp";
|
|
5
|
+
import { TwistyPlayerConfig } from "../../../../cubing/twisty/views/TwistyPlayer";
|
|
6
|
+
export declare type URLParamUpdaterOptions = {
|
|
7
|
+
prefix?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class URLParamUpdater {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(model: TwistyPlayerModel, options?: URLParamUpdaterOptions);
|
|
12
|
+
setURLParam(unprefixedKey: string, value: string, defaultString: string): void;
|
|
13
|
+
listenToStringSourceProp(prop: TwistyPropSource<string>, key: string, defaultString?: string): Promise<void>;
|
|
14
|
+
listenToStringOrNoValueProp(prop: TwistyPropSource<string | typeof EXPERIMENTAL_PROP_NO_VALUE>, key: string, defaultString: string | typeof EXPERIMENTAL_PROP_NO_VALUE): Promise<void>;
|
|
15
|
+
listenToAlgProp(prop: AlgProp, key: string): void;
|
|
16
|
+
}
|
|
17
|
+
export declare function getConfigFromURL(prefix?: string, url?: string): TwistyPlayerConfig;
|
|
18
|
+
export declare function remapLegacyURLParams(mapping: Record<string, string | null>): void;
|