@chili-publish/studio-sdk 0.147.0 → 0.157.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/_bundles/main.js +1 -1
- package/_bundles/main.js.map +1 -1
- package/_bundles/report.html +2 -2
- package/lib/editor-engine.json +1 -1
- package/lib/package.json +4 -3
- package/lib/src/controllers/ActionController.d.ts +10 -0
- package/lib/src/controllers/ActionController.js +13 -0
- package/lib/src/controllers/ActionController.js.map +1 -1
- package/lib/src/controllers/ConnectorController.d.ts +27 -6
- package/lib/src/controllers/ConnectorController.js +34 -4
- package/lib/src/controllers/ConnectorController.js.map +1 -1
- package/lib/src/controllers/FontConnectorController.d.ts +49 -43
- package/lib/src/controllers/FontConnectorController.js +65 -53
- package/lib/src/controllers/FontConnectorController.js.map +1 -1
- package/lib/src/controllers/FontController.d.ts +68 -23
- package/lib/src/controllers/FontController.js +98 -28
- package/lib/src/controllers/FontController.js.map +1 -1
- package/lib/src/controllers/MediaConnectorController.d.ts +19 -23
- package/lib/src/controllers/MediaConnectorController.js +26 -31
- package/lib/src/controllers/MediaConnectorController.js.map +1 -1
- package/lib/src/controllers/SubscriberController.d.ts +2 -2
- package/lib/src/controllers/SubscriberController.js +3 -3
- package/lib/src/controllers/SubscriberController.js.map +1 -1
- package/lib/src/controllers/UndoManagerController.d.ts +36 -3
- package/lib/src/controllers/UndoManagerController.js +65 -3
- package/lib/src/controllers/UndoManagerController.js.map +1 -1
- package/lib/src/controllers/VariableController.d.ts +15 -5
- package/lib/src/controllers/VariableController.js +18 -6
- package/lib/src/controllers/VariableController.js.map +1 -1
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/interactions/connector.d.ts +1 -1
- package/lib/src/interactions/connector.js +1 -1
- package/lib/src/interactions/connector.js.map +1 -1
- package/lib/src/sdk.js +5 -5
- package/lib/src/sdk.js.map +1 -1
- package/lib/src/tests/__mocks__/config.js +1 -1
- package/lib/src/tests/__mocks__/config.js.map +1 -1
- package/lib/src/tests/controllers/ActionController.test.js +7 -0
- package/lib/src/tests/controllers/ActionController.test.js.map +1 -1
- package/lib/src/tests/controllers/ConnectorController.test.js +28 -7
- package/lib/src/tests/controllers/ConnectorController.test.js.map +1 -1
- package/lib/src/tests/controllers/FontConnectorController.test.js +25 -25
- package/lib/src/tests/controllers/FontConnectorController.test.js.map +1 -1
- package/lib/src/tests/controllers/FontController.test.js +103 -45
- package/lib/src/tests/controllers/FontController.test.js.map +1 -1
- package/lib/src/tests/controllers/MediaConnectorController.test.js +14 -21
- package/lib/src/tests/controllers/MediaConnectorController.test.js.map +1 -1
- package/lib/src/tests/controllers/SubscriberContoller.test.js +5 -5
- package/lib/src/tests/controllers/SubscriberContoller.test.js.map +1 -1
- package/lib/src/tests/controllers/UndoManagerController.test.js +36 -2
- package/lib/src/tests/controllers/UndoManagerController.test.js.map +1 -1
- package/lib/src/tests/controllers/VariableController.test.js +35 -6
- package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
- package/lib/src/types/CommonTypes.d.ts +14 -7
- package/lib/src/types/CommonTypes.js +5 -1
- package/lib/src/types/CommonTypes.js.map +1 -1
- package/lib/src/types/ConnectorTypes.d.ts +24 -20
- package/lib/src/types/ConnectorTypes.js +22 -8
- package/lib/src/types/ConnectorTypes.js.map +1 -1
- package/lib/src/types/FontConnectorTypes.d.ts +11 -15
- package/lib/src/types/FontConnectorTypes.js +5 -5
- package/lib/src/types/FontConnectorTypes.js.map +1 -1
- package/lib/src/types/FontTypes.d.ts +19 -10
- package/lib/src/types/MediaConnectorTypes.d.ts +4 -5
- package/lib/src/types/MediaConnectorTypes.js +1 -0
- package/lib/src/types/MediaConnectorTypes.js.map +1 -1
- package/lib/src/utils/EditorResponseData.d.ts +1 -1
- package/lib/src/utils/EditorResponseData.js +19 -4
- package/lib/src/utils/EditorResponseData.js.map +1 -1
- package/package.json +5 -4
- package/LICENSE +0 -21
- package/README.md +0 -89
package/README.md
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# studio-sdk
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
[](https://github.com/chili-publish/studio-sdk/actions/workflows/pr-build.yml) [](https://github.com/chili-publish/studio-sdk/actions/workflows/publish-package.yml)
|
|
6
|
-
|
|
7
|
-
This is the Open Source CHILI publisher Editor SDK which will make your life easier when you’re working on and integrating the new CHILI publisher Editor.
|
|
8
|
-
|
|
9
|
-
The project is currently under active development, contributions are welcome in the form of [creating issues](https://github.com/chili-publish/studio-sdk/issues/new/choose) or in the form of actual contributions on the code. See our [CONTRIBUTING.md](https://github.com/chili-publish/studio-sdk/blob/develop/CONTRIBUTING.md) file to get started on your first contribution.
|
|
10
|
-
|
|
11
|
-
## Alpha Program
|
|
12
|
-
|
|
13
|
-
To integrate and start using the SDK, you need to be aware of our Alpha program, reach out to your contact @chili to receive more information. Once accepted, you will receive the needed credentials / way of authenticating to configure and setup the SDK on your integration.
|
|
14
|
-
|
|
15
|
-
## Deprecation of old NPM package
|
|
16
|
-
|
|
17
|
-
Due to a rename of the project, to align more with the product suite that is being offered, the old NPM package (editor-sdk) will be deprecated and a fresh package will be created called @chili-publish/studio-sdk.
|
|
18
|
-
To update your existing projects, just simply rename the package and do a fresh npm or yarn install.
|
|
19
|
-
|
|
20
|
-
## Documentation
|
|
21
|
-
|
|
22
|
-
[Link to functional documentation and getting started](https://docs.chiligrafx.com)
|
|
23
|
-
|
|
24
|
-
[Link to the official SDK documentation on GitHub](https://chili-publish.github.io/studio-sdk/)\*
|
|
25
|
-
|
|
26
|
-
\*Note: the hosted documentation is always based on the latest version. To get the documentation of the release that you use, you can download the sourcecode of that release and open `/docs/index.html`.
|
|
27
|
-
|
|
28
|
-
## Overview
|
|
29
|
-
|
|
30
|
-
This repository includes the studio-sdk, the SDK is used to plugin to the CHILI publisher API and will handle the communication between integrations (workspace, etc) and editor engine.
|
|
31
|
-
|
|
32
|
-
The goal for the SDK is to be as lightweight as possible. We don’t want to store state in here, that would be hard to maintain and keep in sync with the engine. In general the SDK is an abstraction layer for the editor engine, providing a fixed API for the integrators, and flexibility for the engine to evolve.
|
|
33
|
-
|
|
34
|
-
Conceptually you can think of the SDK - Editor Engine relation as a client - server relation. The SDK will issue requests to the engine and expects a certain result. The other way around the analogy with WebSockets could be used to define how data flows from the engine to the SDK (and eventually consumers of the SDK).
|
|
35
|
-
|
|
36
|
-

|
|
37
|
-
|
|
38
|
-
## Getting started
|
|
39
|
-
|
|
40
|
-
There are 2 ways of getting the SDK.
|
|
41
|
-
|
|
42
|
-
### NPM (with TS support)
|
|
43
|
-
|
|
44
|
-
The most easy approach would be installing it using a package manager like `npm` or `yarn` just do:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
npm install --save @chili-publish/studio-sdk
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
or
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
yarn add @chili-publish/studio-sdk
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Then you can easily import the SDK in your JS and TS files, but also the typing is included with this approach.
|
|
57
|
-
|
|
58
|
-
```typescript
|
|
59
|
-
// TS example
|
|
60
|
-
import EditorSDK from '@chili-publish/studio-sdk';
|
|
61
|
-
import type { Variable } from '@chili-publish/studio-sdk';
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Load script
|
|
65
|
-
|
|
66
|
-
The other way would be to include the sdk using the script tag just before the closure. of the body.
|
|
67
|
-
|
|
68
|
-
```html
|
|
69
|
-
<script src="https://path/to/sdk/latest/main.js"></script>
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
To really get started, there is a nice guide on [the official documentation page](https://chili-publish.github.io/studio-sdk/).
|
|
73
|
-
And you can find basic integration examples in [one of our other repositories](https://github.com/chili-publish/studio-sdk-integration-examples).
|
|
74
|
-
|
|
75
|
-
## Build documentation
|
|
76
|
-
|
|
77
|
-
After installing all dependencies, you're able to build the typedoc documentation. You only need to run the following command
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
npx typedoc --hideBreadcrumbs
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## Feedback?
|
|
84
|
-
|
|
85
|
-
If you have any feedback on the technical parts of the application, a feature request, a bug to report or a general technical question, don’t hesitate to [create a new issue](https://github.com/chili-publish/studio-sdk/issues/new/choose).
|
|
86
|
-
|
|
87
|
-
## License
|
|
88
|
-
|
|
89
|
-
This project is [MIT licensed](https://github.com/chili-publish/studio-sdk/blob/develop/LICENSE)
|