@animatorkit/editor 0.5.0-beta → 0.6.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.
@@ -7,8 +7,8 @@
7
7
  export function keyFolder(): URL | null;
8
8
  /**
9
9
  * The key file of the site of folder, in the user config folder of the GitHub CLI rule:
10
- * $XDG_CONFIG_HOME when it is an absolute path, as the XDG spec asks, %APPDATA% on Windows, as
11
- * Microsoft asks for no file at the profile root, ~/.config otherwise. One file for each site, so a
10
+ * $XDG_CONFIG_HOME when it is an absolute path, as the XDG spec asks, %APPDATA% on Windows, the
11
+ * roaming application data of the user, ~/.config otherwise. One file for each site, so a
12
12
  * key only goes to the site that issued it. The host is encoded, as Windows takes no colon in a file
13
13
  * name.
14
14
  * @param {URL} folder
@@ -27,15 +27,17 @@ export function readEditorKitKey(): {
27
27
  * The `license` route of the editor save server. It asks the website once per server start, on the
28
28
  * first request, with the saved Editor Kit key, and answers the fields it reads, never the website
29
29
  * body as it is nor the key. Without a key or an answer it answers null, so the editor stays
30
- * unlocked, and asks again 30 seconds later, so one failed call does not disable the check for the
30
+ * unlocked, and asks again 5 seconds later, so one failed call does not disable the check for the
31
31
  * whole run, and a page that asks in a loop does not make the server call the site with the key on
32
- * every request.
32
+ * every request. A refusal is asked again the same way, so the page reload after a removal on the
33
+ * account page unlocks, and only an answer of the site replaces it: a site that is down unlocks
34
+ * nothing.
33
35
  * @return {(req: IncomingMessage, res: ServerResponse) => Promise<void>}
34
36
  */
35
37
  export function createLicenseRoute(): (req: IncomingMessage, res: ServerResponse) => Promise<void>;
36
38
  /**
37
- * The license route body: the status fields of the website, `{ locked: true }` when the website
38
- * refuses the key, or null without an answer.
39
+ * The license route body: the status fields of the website, `{ locked: true }` with the reason
40
+ * when the website refuses the key or the editor has no machine id, or null without an answer.
39
41
  */
40
42
  export type LicenseAnswer = {
41
43
  updatesUntil: string | null;
@@ -43,6 +45,7 @@ export type LicenseAnswer = {
43
45
  installable: boolean;
44
46
  } | {
45
47
  locked: true;
48
+ message: string;
46
49
  } | null;
47
50
  import type { IncomingMessage } from 'node:http';
48
51
  import type { ServerResponse } from 'node:http';
@@ -0,0 +1,9 @@
1
+ export namespace GATE_IMAGES {
2
+ let stagger: string;
3
+ let random: string;
4
+ let spring: string;
5
+ let steps: string;
6
+ let irregular: string;
7
+ let onScroll: string;
8
+ let gizmo: string;
9
+ }
@@ -1,14 +1,15 @@
1
1
  /**
2
2
  * The license state of an answer of the license route, for the running Editor Kit version on the
3
- * given day. Only a refused key locks, no answer leaves the editor unlocked. A field that is no
4
- * version or no date counts as absent, the state builds labels and html from them.
3
+ * given day. Only a refused key locks, no answer leaves the editor unlocked. A refusal shows the
4
+ * reason of the site, or the lock text without one, over the one button of a lock: the site sets
5
+ * the text, never the link. A field that is no version or no date counts as absent, the state
6
+ * builds labels and html from them.
5
7
  * @param {LicenseAnswer} answer
6
8
  * @param {string} version
7
9
  * @param {string} today The date as YYYY-MM-DD, the format of updatesUntil.
8
10
  * @return {LicenseState}
9
11
  */
10
12
  export function readLicenseAnswer(answer: LicenseAnswer, version: string, today: string): LicenseState;
11
- export const LOCK_NOTICE: Notice;
12
13
  /**
13
14
  * The Editor Kit license as the save server answered it, read by the Status tab, its toggle dot
14
15
  * and the gates. The notice is built once per answer, so the render allocates nothing. The free
package/version.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * Anime.js Editor v0.5.0-beta
2
+ * Anime.js Editor v0.6.0
3
3
  * Copyright (c) Julian Garnier. All rights reserved.
4
4
  * Free to use under the Anime.js Editor License, see LICENSE.md. It may be redistributed only
5
5
  * as the unmodified @animatorkit/editor package, and it may not be copied or modified.
6
6
  */
7
- const e="0.5.0-beta";export{e as v};
7
+ const o="0.6.0";export{o as v};
package/vite.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Anime.js Editor v0.5.0-beta
2
+ * Anime.js Editor v0.6.0
3
3
  * Copyright (c) Julian Garnier. All rights reserved.
4
4
  * Free to use under the Anime.js Editor License, see LICENSE.md. It may be redistributed only
5
5
  * as the unmodified @animatorkit/editor package, and it may not be copied or modified.