reacthub-pixitweenjs 0.2.2 → 0.2.4

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 (38) hide show
  1. package/.storybook/{main.js → main.ts} +9 -1
  2. package/.storybook/{preview.jsx → preview.tsx} +3 -7
  3. package/CHANGELOG.md +28 -0
  4. package/README.md +29 -80
  5. package/build-storybook.log +491 -0
  6. package/index.html +1 -1
  7. package/package.json +54 -19
  8. package/src/App.tsx +29 -0
  9. package/src/{stories/PixiImageSprite/PixiImageSprite.stories.js → components/PixiImageSprite/PixiImageSprite.stories.tsx} +25 -8
  10. package/src/components/PixiImageSprite/PixiImageSprite.tsx +346 -0
  11. package/src/components/PixiImageSprite/index.ts +1 -0
  12. package/src/hooks/usePixiTransformer.tsx +168 -0
  13. package/src/index.ts +3 -0
  14. package/src/providers/{GsapPixieContextProvider.jsx → GsapPixieContextProvider.tsx} +27 -24
  15. package/src/providers/index.ts +1 -0
  16. package/src/stories/Introduction.mdx +0 -99
  17. package/src/types/transformation.tsx +13 -0
  18. package/src/utils/AppStateProvider.tsx +70 -0
  19. package/src/utils/AppStateStage.tsx +27 -0
  20. package/src/utils/AppWrapper.tsx +43 -0
  21. package/src/utils/ContextBridge.tsx +25 -0
  22. package/src/{providers/GsapAnim.jsx → utils/GsapAnim.tsx} +35 -4
  23. package/src/utils/PixiStage.tsx +33 -0
  24. package/src/utils/VideoSeekBar.tsx +118 -0
  25. package/src/utils/useDeepEffect.tsx +23 -0
  26. package/src/vite-env.d.ts +1 -0
  27. package/tsconfig.json +37 -0
  28. package/tsconfig.node.json +10 -0
  29. package/{vite.config.js → vite.config.ts} +4 -2
  30. package/vitest.config.ts +11 -0
  31. package/src/App.jsx +0 -35
  32. package/src/index.js +0 -3
  33. package/src/providers/ContextBridge.jsx +0 -67
  34. package/src/providers/VideoSeekBar.jsx +0 -186
  35. package/src/providers/index.js +0 -3
  36. package/src/stories/PixiImageSprite/PixiImageSprite.jsx +0 -318
  37. package/src/stories/PixiImageSprite/index.js +0 -1
  38. /package/src/{main.jsx → main.tsx} +0 -0
@@ -1,5 +1,7 @@
1
1
  /** @type { import('@storybook/react-vite').StorybookConfig } */
2
- const config = {
2
+ import type { StorybookConfig } from "@storybook/react-vite";
3
+
4
+ const config: StorybookConfig = {
3
5
  stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
4
6
  staticDirs: ["../public"],
5
7
  addons: [
@@ -19,5 +21,11 @@ const config = {
19
21
  docs: {
20
22
  autodocs: "tag",
21
23
  },
24
+ core: {
25
+ builder: "@storybook/builder-vite",
26
+ },
27
+ async viteFinal(config) {
28
+ return config;
29
+ },
22
30
  };
23
31
  export default config;
@@ -1,5 +1,5 @@
1
- // import { GsapPixieContextProvider } from "../src/providers/GsapPixieContextProvider";
2
- import { App } from "../src/providers/ContextBridge";
1
+ import React from "react";
2
+ import { AppWrapper } from "../src/utils/AppWrapper";
3
3
  /** @type { import('@storybook/react').Preview } */
4
4
  const preview = {
5
5
  parameters: {
@@ -14,11 +14,7 @@ const preview = {
14
14
  };
15
15
 
16
16
  export const decorators = [
17
- (Story) => (
18
- <App>
19
- <Story />
20
- </App>
21
- ),
17
+ (Story) => <AppWrapper>{Story({ appState: "x" })}</AppWrapper>,
22
18
  ];
23
19
 
24
20
  export default preview;
package/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.2.4](https://github.com/khanzzirfan/reacthub-gsap-pixiez/compare/v0.2.3...v0.2.4) (2023-07-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * image sprite component intialadded ([7d9c54e](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/7d9c54e90705ab778d1fc6abe4abc0021fd5f725))
11
+ * typescript initialized and converted all components ([e0ce358](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/e0ce358d3e99325413d3ab80121273e4ca5c1173))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * added state management to each story ([56f9da8](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/56f9da833d83fa532a5449e1bc595408d3d59168))
17
+ * added state management to each story ([5a1325c](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/5a1325c4c5c0369516ed4d77d5593d51ac8d32e4))
18
+ * applied transformers ([761f9a6](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/761f9a6daf859b6c9b48038d47e14d0b0171e01d))
19
+ * applied transformers ([6af3376](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/6af3376f9e45bbd148c6c2a6b10094866b062509))
20
+ * props updated ([dd7fd7b](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/dd7fd7b50b45d20efc8c9cf67d984da228905d38))
21
+ * props updated ([907b7f4](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/907b7f467fe051388d4fea7703611507e44a3dc4))
22
+ * props updated ([3ead9f5](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/3ead9f527a32258cbc05ac372600f3a44b51289a))
23
+ * props updated ([0579e77](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/0579e770b7e233b260243c5d764e1a061b638ead))
24
+ * props updated ([f0cda33](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/f0cda33fb5c7a3137d99277261a7f6ec83be61fd))
25
+ * story introduction ([554eeee](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/554eeee7c5c0ee346b6604f8b2c50070602779f2))
26
+ * story introduction ([a6e994d](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/a6e994db80719f96155155604f0d03ddbbd69a66))
27
+ * updated files ([47d34dd](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/47d34dd3357fb8f98f6a636536fb213ee1bd839b))
28
+ * updated storybook addons actions information ([5f3d377](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/5f3d377907be428a063b3032359604d5d31fb74e))
29
+ * updated storybook addons actions information ([81ad504](https://github.com/khanzzirfan/reacthub-gsap-pixiez/commit/81ad504226cd16efaed3c067d84e1df4bb89d6d5))
30
+
31
+ ### [0.2.3](https://github.com/khanzzirfan/reacthub-gsap-pixiez/compare/v0.2.2...v0.2.3) (2023-07-20)
32
+
5
33
  ### [0.2.2](https://github.com/khanzzirfan/reacthub-gsap-pixiez/compare/v0.2.1...v0.2.2) (2023-07-20)
6
34
 
7
35
  ### 0.2.1 (2023-07-20)
package/README.md CHANGED
@@ -1,91 +1,40 @@
1
- <p align="center">
2
- <a href="https://www.chromatic.com/">
3
- <img alt="Chromatic" src="https://avatars2.githubusercontent.com/u/24584319?s=200&v=4" width="60" />
4
- </a>
5
- </p>
6
-
7
1
  <h1 align="center">
8
- Chromatic's Intro to Storybook React template
2
+ Welcome to Reacthub PixiTweenJS
9
3
  </h1>
10
4
 
11
- This template ships with the main React and Storybook configuration files you'll need to get up and running fast.
12
-
13
- ## 🚅 Quick start
14
-
15
- 1. **Create the application.**
16
-
17
- Use [degit](https://github.com/Rich-Harris/degit) to get this template.
18
-
19
- ```shell
20
- # Clone the template
21
- npx degit chromaui/intro-storybook-react-template taskbox
22
- ```
23
-
24
- 1. **Install the dependencies.**
25
-
26
- Navigate into your new site’s directory and install the necessary dependencies.
27
-
28
- ```shell
29
- # Navigate to the directory
30
- cd taskbox/
31
-
32
- # Install the dependencies
33
- yarn
34
- ```
35
-
36
- 1. **Open the source code and start editing!**
37
-
38
- Open the `taskbox` directory in your code editor of choice and building your first component!
39
-
40
- 1. **Browse your stories!**
41
-
42
- Run `yarn storybook` to see your component's stories at `http://localhost:6006`
43
-
44
- ## 🔎 What's inside?
45
-
46
- A quick look at the top-level files and directories included with this template.
47
-
48
- .
49
- ├── .storybook
50
- ├── node_modules
51
- ├── public
52
- ├── src
53
- ├── .gitignore
54
- ├── .index.html
55
- ├── LICENSE
56
- ├── package.json
57
- ├── yarn.lock
58
- ├── vite.config.js
59
- └── README.md
60
-
61
- 1. **`.storybook`**: This directory contains Storybook's [configuration](https://storybook.js.org/docs/react/configure/overview) files.
62
-
63
- 2. **`node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages).
64
-
65
- 3. **`public`**: This directory will contain the development and production build of the site.
66
-
67
- 4. **`src`**: This directory will contain all of the code related to what you will see on your application.
68
-
69
- 5. **`.gitignore`**: This file tells git which files it should not track or maintain during the development process of your project.
70
-
71
- 6. **`.index.html`**: This is the HTML page that is served when generating a development or production build.
72
-
73
- 7. **`LICENSE`**: The template is licensed under the MIT licence.
5
+ To install the component packages using NPM/ Yarn:
74
6
 
75
- 8. **`package.json`**: Standard manifest file for Node.js projects, which typically includes project specific metadata (such as the project's name, the author among other information). It's based on this file that npm will know which packages are necessary to the project.
7
+ ```js
8
+ npm install reacthub-pixitweenjs
9
+ ```
76
10
 
77
- 9. **`yarn.lock`**: This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(Do not change it manually).**
11
+ ```js
12
+ yarn add reacthub-pixitweenjs
13
+ ```
78
14
 
79
- 10. **`vite.config.js`**: This is the configuration file for [Vite](https://vitejs.dev/), a build tool that aims to provide a faster and leaner development experience for modern web projects.
15
+ Make sure you install the devDependencies in your project.
80
16
 
81
- 11. **`README.md`**: A text file containing useful reference information about the project.
17
+ ```js
18
+ npm install
19
+ "@pixi-essentials/react-bindings": "2.0.0",
20
+ "@pixi-essentials/transformer": "2.5.6",
21
+ "@pixi/assets": "6.5.9",
22
+ "@pixi/basis": "6.5.9",
23
+ "@pixi/filter-adjustment": "5.1.1",
24
+ "@pixi/gif": "1.1.3",
25
+ "@pixi/interaction": "6.5.9",
26
+ "@pixi/picture": "^3.0.3",
27
+ "@pixi/react": "7.0.0",
28
+ "@pixi/sound": "^4.3.1",
29
+ "pixi-filters": "5.1.1",
30
+ "pixi-svg": "3.2.0",
31
+ "pixi.js": "6.5.9",
32
+ ```
82
33
 
83
- ## Contribute
34
+ ## Description
84
35
 
85
- If you encounter an issue with the template, we encourage you to open an issue in this template's repository.
36
+ PixiTweenJs is designed to help you build animated time-controlled canvas elements on web apps using extensible Pixijs Components underneath. The package composes the reacthub/pixitweenjs Web Component package. You can use these Web Components flexibly, either from npm packages, from the CDN, or you can bring it into your project to customize and extend it.
86
37
 
87
- ## Learning Storybook
38
+ ## Usage
88
39
 
89
- 1. Read our introductory tutorial at [Learn Storybook](https://storybook.js.org/tutorials/intro-to-storybook/react/en/get-started/).
90
- 2. Learn how to transform your component libraries into design systems in our [Design Systems for Developers](https://storybook.js.org/tutorials/design-systems-for-developers/) tutorial.
91
- 3. See our official documentation at [Storybook](https://storybook.js.org/).
40
+ Visit the [storybook](https://64b9d71094fa7aed0c7291cf-sinysbbbmx.chromatic.com/?path=/docs/components-imagesprite--docs)