reacthub-pixitweenjs 0.2.3 → 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 (37) hide show
  1. package/.storybook/{main.js → main.ts} +9 -1
  2. package/.storybook/{preview.jsx → preview.tsx} +3 -7
  3. package/CHANGELOG.md +26 -0
  4. package/README.md +21 -2
  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/types/transformation.tsx +13 -0
  17. package/src/utils/AppStateProvider.tsx +70 -0
  18. package/src/utils/AppStateStage.tsx +27 -0
  19. package/src/utils/AppWrapper.tsx +43 -0
  20. package/src/utils/ContextBridge.tsx +25 -0
  21. package/src/{providers/GsapAnim.jsx → utils/GsapAnim.tsx} +35 -4
  22. package/src/utils/PixiStage.tsx +33 -0
  23. package/src/utils/VideoSeekBar.tsx +118 -0
  24. package/src/utils/useDeepEffect.tsx +23 -0
  25. package/src/vite-env.d.ts +1 -0
  26. package/tsconfig.json +37 -0
  27. package/tsconfig.node.json +10 -0
  28. package/{vite.config.js → vite.config.ts} +4 -2
  29. package/vitest.config.ts +11 -0
  30. package/src/App.jsx +0 -35
  31. package/src/index.js +0 -3
  32. package/src/providers/ContextBridge.jsx +0 -67
  33. package/src/providers/VideoSeekBar.jsx +0 -186
  34. package/src/providers/index.js +0 -3
  35. package/src/stories/PixiImageSprite/PixiImageSprite.jsx +0 -318
  36. package/src/stories/PixiImageSprite/index.js +0 -1
  37. /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,32 @@
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
+
5
31
  ### [0.2.3](https://github.com/khanzzirfan/reacthub-gsap-pixiez/compare/v0.2.2...v0.2.3) (2023-07-20)
6
32
 
7
33
  ### [0.2.2](https://github.com/khanzzirfan/reacthub-gsap-pixiez/compare/v0.2.1...v0.2.2) (2023-07-20)
package/README.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  <h1 align="center">
3
2
  Welcome to Reacthub PixiTweenJS
4
3
  </h1>
@@ -13,9 +12,29 @@ To install the component packages using NPM/ Yarn:
13
12
  yarn add reacthub-pixitweenjs
14
13
  ```
15
14
 
15
+ Make sure you install the devDependencies in your project.
16
+
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
+ ```
33
+
16
34
  ## Description
35
+
17
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.
18
37
 
19
38
  ## Usage
20
- Visit the storybook
21
39
 
40
+ Visit the [storybook](https://64b9d71094fa7aed0c7291cf-sinysbbbmx.chromatic.com/?path=/docs/components-imagesprite--docs)