@gxpl/sdk 0.0.13 → 0.0.15-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.
- package/lib/index.d.ts +1 -0
- package/lib/sdk/Client/Client.d.ts +3 -7
- package/lib/sdk/Client/Client.js +9 -38
- package/lib/sdk/schemas/article/Article.schema.d.ts +6 -6
- package/lib/sdk/schemas/article/Section.schema.d.ts +6 -6
- package/lib/sdk/schemas/project/Project.schema.d.ts +1126 -57
- package/lib/sdk/schemas/project/Project.schema.js +33 -11
- package/lib/sdk/transitions/transitionMachine.d.ts +616 -0
- package/lib/sdk/transitions/transitionMachine.js +258 -0
- package/lib/sdk/transitions/utils/findRelation.d.ts +2 -0
- package/lib/sdk/transitions/utils/findRelation.js +10 -0
- package/lib/sdk/transitions/utils/getAvailableTransitions.d.ts +7 -0
- package/lib/sdk/transitions/utils/getAvailableTransitions.js +12 -0
- package/lib/sdk/transitions/utils/getAxis.d.ts +2 -0
- package/lib/sdk/transitions/utils/getAxis.js +6 -0
- package/lib/sdk/transitions/utils/getDeltaAndProgress.d.ts +11 -0
- package/lib/sdk/transitions/utils/getDeltaAndProgress.js +13 -0
- package/lib/sdk/transitions/utils/getScenesOnEnd.d.ts +21 -0
- package/lib/sdk/transitions/utils/getScenesOnEnd.js +30 -0
- package/lib/sdk/transitions/utils/getScenesOnInit.d.ts +6 -0
- package/lib/sdk/transitions/utils/getScenesOnInit.js +20 -0
- package/lib/sdk/transitions/utils/getScenesOnInstantTransition.d.ts +2 -0
- package/lib/sdk/transitions/utils/getScenesOnInstantTransition.js +38 -0
- package/lib/sdk/transitions/utils/getScenesOnProgressUpdate.d.ts +26 -0
- package/lib/sdk/transitions/utils/getScenesOnProgressUpdate.js +15 -0
- package/lib/sdk/transitions/utils/getScenesOnStart.d.ts +21 -0
- package/lib/sdk/transitions/utils/getScenesOnStart.js +52 -0
- package/lib/sdk/transitions/utils/isActiveSwipeTransition.d.ts +2 -0
- package/lib/sdk/transitions/utils/isActiveSwipeTransition.js +12 -0
- package/lib/sdk/transitions/utils/isOverThreshold.d.ts +1 -0
- package/lib/sdk/transitions/utils/isOverThreshold.js +6 -0
- package/lib/sdk/transitions/utils/isTransitionSuccess.d.ts +2 -0
- package/lib/sdk/transitions/utils/isTransitionSuccess.js +15 -0
- package/lib/sdk/transitions/utils/normalizeOpacity.d.ts +1 -0
- package/lib/sdk/transitions/utils/normalizeOpacity.js +8 -0
- package/lib/sdk/transitions/utils/types.d.ts +49 -0
- package/lib/sdk/transitions/utils/types.js +2 -0
- package/lib/sdk/types/project/FixedLayer.d.ts +27 -0
- package/lib/sdk/types/project/FixedLayer.js +2 -0
- package/lib/sdk/types/project/Page.d.ts +0 -7
- package/lib/sdk/types/project/Project.d.ts +5 -0
- package/lib/sdk/types/project/Relation.d.ts +8 -0
- package/lib/sdk/types/project/Relation.js +2 -0
- package/lib/sdk-nextjs/components/Article.d.ts +9 -2
- package/lib/sdk-nextjs/components/Article.js +8 -5
- package/lib/sdk-nextjs/components/ArticleWrapper.d.ts +12 -1
- package/lib/sdk-nextjs/components/ArticleWrapper.js +155 -2
- package/lib/sdk-nextjs/components/Head.d.ts +0 -2
- package/lib/sdk-nextjs/components/Head.js +2 -1
- package/lib/sdk-nextjs/components/Page.d.ts +4 -7
- package/lib/sdk-nextjs/components/Page.js +13 -7
- package/lib/sdk-nextjs/components/Scenes/Scenes.d.ts +11 -0
- package/lib/sdk-nextjs/components/Scenes/Scenes.js +16 -0
- package/lib/sdk-nextjs/components/items/RectangleItem/RectangleItem.js +3 -3
- package/lib/sdk-nextjs/provider/CntrlSdkContext.d.ts +2 -2
- package/lib/sdk-nextjs/provider/CntrlSdkContext.js +4 -2
- package/lib/sdk-nextjs/provider/TransitionMachineContext.d.ts +2186 -0
- package/lib/sdk-nextjs/provider/TransitionMachineContext.js +6 -0
- package/package.json +3 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransitionMachineContext = void 0;
|
|
4
|
+
const react_1 = require("@xstate/react");
|
|
5
|
+
const transitionMachine_1 = require("../../sdk/transitions/transitionMachine");
|
|
6
|
+
exports.TransitionMachineContext = (0, react_1.createActorContext)(transitionMachine_1.transitionMachine);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gxpl/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15-0",
|
|
4
4
|
"description": "Generic SDK for use in public websites.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@types/ua-parser-js": "^0.7.39",
|
|
47
47
|
"@types/vimeo__player": "^2.18.3",
|
|
48
48
|
"@vimeo/player": "^2.25.0",
|
|
49
|
+
"@xstate/react": "^6.0.0",
|
|
49
50
|
"classnames": "^2.5.1",
|
|
50
51
|
"commander": "^10.0.1",
|
|
51
52
|
"dotenv": "^16.1.3",
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"ts-node": "^10.9.1",
|
|
61
62
|
"ua-parser-js": "^1.0.37",
|
|
62
63
|
"url": "^0.11.0",
|
|
64
|
+
"xstate": "^5.24.0",
|
|
63
65
|
"zod": "^3.22.4"
|
|
64
66
|
},
|
|
65
67
|
"devDependencies": {
|