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.
- package/.storybook/{main.js → main.ts} +9 -1
- package/.storybook/{preview.jsx → preview.tsx} +3 -7
- package/CHANGELOG.md +28 -0
- package/README.md +29 -80
- package/build-storybook.log +491 -0
- package/index.html +1 -1
- package/package.json +54 -19
- package/src/App.tsx +29 -0
- package/src/{stories/PixiImageSprite/PixiImageSprite.stories.js → components/PixiImageSprite/PixiImageSprite.stories.tsx} +25 -8
- package/src/components/PixiImageSprite/PixiImageSprite.tsx +346 -0
- package/src/components/PixiImageSprite/index.ts +1 -0
- package/src/hooks/usePixiTransformer.tsx +168 -0
- package/src/index.ts +3 -0
- package/src/providers/{GsapPixieContextProvider.jsx → GsapPixieContextProvider.tsx} +27 -24
- package/src/providers/index.ts +1 -0
- package/src/stories/Introduction.mdx +0 -99
- package/src/types/transformation.tsx +13 -0
- package/src/utils/AppStateProvider.tsx +70 -0
- package/src/utils/AppStateStage.tsx +27 -0
- package/src/utils/AppWrapper.tsx +43 -0
- package/src/utils/ContextBridge.tsx +25 -0
- package/src/{providers/GsapAnim.jsx → utils/GsapAnim.tsx} +35 -4
- package/src/utils/PixiStage.tsx +33 -0
- package/src/utils/VideoSeekBar.tsx +118 -0
- package/src/utils/useDeepEffect.tsx +23 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +37 -0
- package/tsconfig.node.json +10 -0
- package/{vite.config.js → vite.config.ts} +4 -2
- package/vitest.config.ts +11 -0
- package/src/App.jsx +0 -35
- package/src/index.js +0 -3
- package/src/providers/ContextBridge.jsx +0 -67
- package/src/providers/VideoSeekBar.jsx +0 -186
- package/src/providers/index.js +0 -3
- package/src/stories/PixiImageSprite/PixiImageSprite.jsx +0 -318
- package/src/stories/PixiImageSprite/index.js +0 -1
- /package/src/{main.jsx → main.tsx} +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @type { import('@storybook/react-vite').StorybookConfig } */
|
|
2
|
-
|
|
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
|
-
|
|
2
|
-
import {
|
|
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
|
-
|
|
2
|
+
Welcome to Reacthub PixiTweenJS
|
|
9
3
|
</h1>
|
|
10
4
|
|
|
11
|
-
|
|
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
|
-
|
|
7
|
+
```js
|
|
8
|
+
npm install reacthub-pixitweenjs
|
|
9
|
+
```
|
|
76
10
|
|
|
77
|
-
|
|
11
|
+
```js
|
|
12
|
+
yarn add reacthub-pixitweenjs
|
|
13
|
+
```
|
|
78
14
|
|
|
79
|
-
|
|
15
|
+
Make sure you install the devDependencies in your project.
|
|
80
16
|
|
|
81
|
-
|
|
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
|
-
##
|
|
34
|
+
## Description
|
|
84
35
|
|
|
85
|
-
|
|
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
|
-
##
|
|
38
|
+
## Usage
|
|
88
39
|
|
|
89
|
-
|
|
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)
|