keyframekit 1.1.9 → 1.2.1

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.
Files changed (46) hide show
  1. package/README.md +8 -1
  2. package/dist/KeyframeKit.d.ts +3 -3
  3. package/dist/KeyframeKit.d.ts.map +1 -1
  4. package/dist/KeyframeKit.js +3 -3
  5. package/dist/KeyframeKit.js.map +1 -1
  6. package/dist/KeyframeKit.min.js +1 -0
  7. package/dist/KeyframeKit.min.js.map +1 -0
  8. package/package.json +7 -4
  9. package/src/KeyframeKit.ts +6 -6
  10. package/docs/.vitepress/components/Playground/Playground.js +0 -243
  11. package/docs/.vitepress/components/Playground/Playground.vue +0 -208
  12. package/docs/.vitepress/components/Playground/defaultExample.js +0 -175
  13. package/docs/.vitepress/components/Playground/interFont.js +0 -14
  14. package/docs/.vitepress/components/Playground/themes/githubDark.js +0 -402
  15. package/docs/.vitepress/components/Playground/themes/githubLight.js +0 -399
  16. package/docs/.vitepress/components/Playground/themes.js +0 -24
  17. package/docs/.vitepress/config.ts +0 -87
  18. package/docs/.vitepress/referenceNavigation.ts +0 -37
  19. package/docs/.vitepress/theme/base-styles.css +0 -104
  20. package/docs/.vitepress/theme/env.d.ts +0 -5
  21. package/docs/.vitepress/theme/index.ts +0 -40
  22. package/docs/docs/get-started.md +0 -133
  23. package/docs/docs/index.md +0 -17
  24. package/docs/docs/public/icon.png +0 -0
  25. package/docs/docs/public/og-image.png +0 -0
  26. package/docs/docs/public/playground/KeyframeKit/dist/KeyframeKit.d.ts +0 -172
  27. package/docs/docs/public/playground/KeyframeKit/dist/KeyframeKit.d.ts.map +0 -1
  28. package/docs/docs/public/playground/KeyframeKit/dist/KeyframeKit.js +0 -327
  29. package/docs/docs/public/playground/KeyframeKit/dist/KeyframeKit.js.map +0 -1
  30. package/docs/docs/reference/classes/KeyframeEffectParameters.md +0 -97
  31. package/docs/docs/reference/classes/ParsedKeyframes.md +0 -49
  32. package/docs/docs/reference/index.md +0 -20
  33. package/docs/docs/reference/interfaces/KeyframesFactory.md +0 -180
  34. package/docs/docs/reference/navigation.json +0 -64
  35. package/docs/docs/reference/type-aliases/CSSStyleSheetSource.md +0 -7
  36. package/docs/docs/reference/type-aliases/KeyframeArgument.md +0 -9
  37. package/docs/docs/reference/type-aliases/ParsedKeyframesRules.md +0 -15
  38. package/docs/docs/reference/variables/default.md +0 -7
  39. package/docs/package-lock.json +0 -2321
  40. package/docs/package.json +0 -22
  41. package/docs/typedoc/plugin-markdown-mdn-links-fix.js +0 -43
  42. package/docs/typedoc/plugin-param-names.js +0 -17
  43. package/docs/typedoc.config.js +0 -78
  44. package/rollup.config.js +0 -42
  45. package/tsconfig.json +0 -47
  46. package/vercel.json +0 -14
package/docs/package.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "type": "module",
3
- "scripts": {
4
- "dev": "vitepress dev",
5
- "build": "vitepress build",
6
- "preview": "vitepress preview",
7
- "bump": "npm run reference && npm run playground:bumplib",
8
- "reference": "typedoc",
9
- "playground:bumplib": "mkdir -p ./docs/public/playground/KeyframeKit && cp -r ../dist ./docs/public/playground/KeyframeKit/"
10
- },
11
- "dependencies": {
12
- "vitepress": "^2.0.0-alpha.16",
13
- "vue": "^3.5.28",
14
- "@monaco-editor/loader": "^1.7.0"
15
- },
16
- "devDependencies": {
17
- "typedoc": "^0.28.17",
18
- "typedoc-plugin-markdown": "^4.10.0",
19
- "typedoc-plugin-mdn-links": "^5.1.1",
20
- "typedoc-plugin-no-inherit": "^1.6.1"
21
- }
22
- }
@@ -1,43 +0,0 @@
1
- // @ts-check
2
-
3
- import { MarkdownThemeContext } from 'typedoc-plugin-markdown';
4
- import { UnionType } from 'typedoc';
5
-
6
- /// https://typedoc-plugin-markdown.org/docs/customization#hooks
7
- /**
8
- * @param {import('typedoc-plugin-markdown').MarkdownApplication} app
9
- */
10
- export function load(app) {
11
-
12
- app.renderer.markdownHooks.on('page.begin', (context) => {
13
-
14
- context.partials.unionType = (model) => { return unionType(context, model) };
15
-
16
- // console.log(context);
17
-
18
- return '';
19
- // return `**Generated using "page.begin" hook**`;
20
-
21
- });
22
-
23
- }
24
-
25
- /// https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/src/theme/context/partials/type.union.ts
26
- /**
27
- * @param {MarkdownThemeContext} thiss @param {UnionType} model @returns {string}
28
- */
29
- function unionType(
30
- thiss,
31
- model,
32
- ) {
33
- // const useCodeBlocks = thiss.options.getValue('useCodeBlocks');
34
- const typesOut = model.types.map((unionType) =>
35
- thiss.partials.someType(unionType, { forceCollapse: true }),
36
- );
37
- /* const shouldFormat =
38
- useCodeBlocks &&
39
- (typesOut?.join('').length > 70 || typesOut?.join('').includes('\n')); */
40
- const md = typesOut.join(` \\| `); // typesOut.join(shouldFormat ? `\n \\| ` : ` \\| `);
41
- // console.log(md);
42
- return md; // shouldFormat ? `\n \\| ` + md : md;
43
- }
@@ -1,17 +0,0 @@
1
- // @ts-check
2
-
3
- import * as td from "typedoc";
4
-
5
- /** @param {td.Application} app */
6
- export function load(app) {
7
- app.converter.on(td.Converter.EVENT_CREATE_SIGNATURE, (context, sig) => {
8
- if (!sig.parameters) {
9
- return;
10
- }
11
- for (const [i, param] of sig.parameters.entries()) {
12
- if (param.name === '__namedParameters') {
13
- param.name = 'obj';
14
- }
15
- }
16
- });
17
- }
@@ -1,78 +0,0 @@
1
- // @ts-check
2
-
3
- /** @type {import('typedoc').TypeDocOptions & import('typedoc-plugin-markdown').PluginOptions & { inheritNone?: boolean }} */
4
- export default {
5
- "name": "KeyframeKit",
6
-
7
- "plugin": [
8
- "typedoc-plugin-markdown",
9
- "typedoc-plugin-mdn-links",
10
- "typedoc-plugin-no-inherit",
11
- "./typedoc/plugin-param-names.js",
12
- "./typedoc/plugin-markdown-mdn-links-fix.js",
13
- //"typedoc-plugin-inline-sources",
14
- //"typedoc-plugin-remark",
15
- //"typedoc-github-wiki-theme",
16
- //"typedoc-plugin-missing-exports"
17
- ],
18
-
19
- "entryPoints": ["../src/KeyframeKit.ts"],
20
- "out": "docs/reference",
21
-
22
- "validation": {
23
- "notExported": false
24
- },
25
-
26
- //"excludeExternals": true,
27
- //"placeInternalsInOwningModule": true,
28
-
29
- "disableSources": true,
30
-
31
- //"flattenOutputFiles": false,
32
-
33
- "router": "member", // "module"
34
-
35
- "readme": "none",
36
-
37
- //"sidebar": {
38
- //"autoConfiguration": false,
39
- //"heading": "[KeyframeKit](../wiki)"
40
- //},
41
-
42
- /* "remarkPlugins": [
43
- ["remark-insert-headings", { "text": "Contents", "minHeadingCount": 1 }],
44
- ["remark-toc", { "maxDepth": 3, "tight": true }],
45
- //["remark-collapse", {"test": "Contents"}]
46
- ], */
47
-
48
- //"modulesFileName": "index", // KeyframeKit
49
-
50
- "entryFileName": "index",
51
-
52
- "expandParameters": true,
53
- "expandObjects": true,
54
-
55
- //"parametersFormat": "htmlTable",
56
-
57
- "useCodeBlocks": true,
58
-
59
- //"hidePageTitle": true,
60
- "hidePageHeader": true,
61
-
62
- //"namedParamName": "obj"
63
-
64
- "navigationJson": "docs/reference/navigation.json",
65
- "navigation": {
66
- "includeCategories": true,
67
- "includeGroups": true,
68
- "includeFolders": true,
69
- },
70
-
71
- "inheritNone": true,
72
-
73
- //"pageTitleTemplates": {
74
- //"index": "Reference"
75
- //},
76
-
77
- //"hideBreadcrumbs": true
78
- };
package/rollup.config.js DELETED
@@ -1,42 +0,0 @@
1
- import typescript from '@rollup/plugin-typescript';
2
- import terser from '@rollup/plugin-terser';
3
-
4
- import MagicString from 'magic-string';
5
-
6
- function header() {
7
-
8
- return {
9
-
10
- renderChunk( code ) {
11
-
12
- code = new MagicString( code );
13
-
14
- code.prepend( `/*
15
- * KeyframeKit
16
- * MIT License
17
- */\n` );
18
-
19
- return {
20
- code: code.toString(),
21
- map: code.generateMap()
22
- };
23
-
24
- }
25
-
26
- };
27
-
28
- }
29
-
30
- /**
31
- * @type {import('rollup').RollupOptions}
32
- */
33
- export default {
34
- input: {
35
- 'KeyframeKit.min.js': 'src/KeyframeKit.ts'
36
- },
37
- output: {
38
- dir: 'dist',
39
- entryFileNames: '[name]'
40
- },
41
- plugins: [typescript({ sourceMap: false }), terser(), header()]
42
- };
package/tsconfig.json DELETED
@@ -1,47 +0,0 @@
1
- {
2
- // Visit https://aka.ms/tsconfig to read more about this file
3
- "include": [
4
- "src/**/*"
5
- ],
6
- "exclude": [],
7
- "compilerOptions": {
8
- // File Layout
9
- "rootDir": "src",
10
- "outDir": "dist",
11
-
12
- // Environment Settings
13
- // See also https://aka.ms/tsconfig/module
14
- "module": "esnext",
15
- "target": "esnext",
16
- "types": [],
17
- // For nodejs:
18
- // "lib": ["esnext"],
19
- // "types": ["node"],
20
- // and npm install -D @types/node
21
-
22
- // Other Outputs
23
- "sourceMap": true,
24
- "declaration": true,
25
- "declarationMap": true,
26
-
27
- // Stricter Typechecking Options
28
- "noUncheckedIndexedAccess": true,
29
- "exactOptionalPropertyTypes": true,
30
-
31
- // Style Options
32
- // "noImplicitReturns": true,
33
- // "noImplicitOverride": true,
34
- // "noUnusedLocals": true,
35
- // "noUnusedParameters": true,
36
- // "noFallthroughCasesInSwitch": true,
37
- // "noPropertyAccessFromIndexSignature": true,
38
-
39
- // Recommended Options
40
- "strict": true,
41
- "verbatimModuleSyntax": true,
42
- "isolatedModules": true,
43
- "noUncheckedSideEffectImports": true,
44
- "moduleDetection": "force",
45
- "skipLibCheck": true,
46
- }
47
- }
package/vercel.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "cleanUrls": true,
3
- "headers": [
4
- {
5
- "source": "/assets/(.*)",
6
- "headers": [
7
- {
8
- "key": "Cache-Control",
9
- "value": "max-age=31536000, immutable"
10
- }
11
- ]
12
- }
13
- ]
14
- }