@contentful/app-sdk 4.23.0-alpha.1 → 5.0.0-alpha.2
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/README.md +6 -15
- package/dist/api.js +109 -0
- package/dist/app.js +99 -0
- package/dist/channel.js +111 -0
- package/dist/cma.js +16 -0
- package/dist/cmaAdapter.js +12 -0
- package/dist/dialogs.js +37 -0
- package/dist/editor.js +29 -0
- package/dist/entry.js +60 -0
- package/dist/field-locale.js +70 -0
- package/dist/field.js +77 -0
- package/dist/index.js +23 -0
- package/dist/initialize.js +64 -0
- package/dist/locations.js +13 -0
- package/dist/navigator.js +62 -0
- package/dist/signal.js +51 -0
- package/dist/types/api.types.d.ts +2 -34
- package/dist/types/api.types.js +2 -0
- package/dist/types/app.types.d.ts +0 -4
- package/dist/types/app.types.js +2 -0
- package/dist/types/cmaClient.types.d.ts +0 -1
- package/dist/types/cmaClient.types.js +2 -0
- package/dist/types/dialogs.types.d.ts +1 -5
- package/dist/types/dialogs.types.js +2 -0
- package/dist/types/entities.js +2 -0
- package/dist/types/entry.types.d.ts +0 -5
- package/dist/types/entry.types.js +2 -0
- package/dist/types/field-locale.types.js +2 -0
- package/dist/types/field.types.js +2 -0
- package/dist/types/index.d.ts +2 -3
- package/dist/types/index.js +2 -0
- package/dist/types/navigator.types.d.ts +13 -11
- package/dist/types/navigator.types.js +2 -0
- package/dist/types/utils.js +2 -0
- package/dist/types/validation-error.js +2 -0
- package/dist/types/window.types.js +2 -0
- package/dist/utils/deferred.js +20 -0
- package/dist/window.js +106 -0
- package/package.json +118 -1
- package/dist/README.md +0 -9
- package/dist/cf-extension-api.bundled.js +0 -1
- package/dist/cf-extension-api.js +0 -1
- package/dist/cf-extension.css +0 -600
- package/dist/space.d.ts +0 -3
- package/dist/types/space.types.d.ts +0 -272
package/package.json
CHANGED
|
@@ -1 +1,118 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@contentful/app-sdk",
|
|
3
|
+
"description": "A JavaScript library to develop custom apps for Contentful",
|
|
4
|
+
"version": "5.0.0-alpha.2",
|
|
5
|
+
"author": "Contentful GmbH",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": true,
|
|
8
|
+
"repository": {
|
|
9
|
+
"url": "https://github.com/contentful/ui-extensions-sdk.git",
|
|
10
|
+
"type": "git"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/",
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"types": "dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"clean": "rimraf dist",
|
|
20
|
+
"test": "ts-mocha -p tsconfig.test.json 'test/unit/*.[jt]s' --reporter mocha-multi-reporters --reporter-options configFile=mocha.unit-reporters.json",
|
|
21
|
+
"lint": "eslint '{lib,test}/**/*.{t,j}s'",
|
|
22
|
+
"lint:fix": "npm run lint -- --fix",
|
|
23
|
+
"build": "npm run clean && npm run build:types && npm run build:cjs",
|
|
24
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
25
|
+
"build:cjs": "tsc",
|
|
26
|
+
"prepublishOnly": "npm run build",
|
|
27
|
+
"semantic-release": "semantic-release",
|
|
28
|
+
"prepare": "husky install",
|
|
29
|
+
"lint-staged": "lint-staged"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"contentful-management": ">=7.30.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@semantic-release/changelog": "6.0.3",
|
|
36
|
+
"@semantic-release/git": "10.0.1",
|
|
37
|
+
"@testing-library/dom": "9.3.1",
|
|
38
|
+
"@types/chai-as-promised": "7.1.5",
|
|
39
|
+
"@types/cross-spawn": "6.0.2",
|
|
40
|
+
"@types/fs-extra": "11.0.1",
|
|
41
|
+
"@types/jsdom": "21.1.1",
|
|
42
|
+
"@types/mocha": "10.0.1",
|
|
43
|
+
"@types/nanoid": "3.0.0",
|
|
44
|
+
"@types/sinon": "^10.0.0",
|
|
45
|
+
"@types/sinon-chai": "^3.2.5",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "5.61.0",
|
|
47
|
+
"@typescript-eslint/parser": "5.62.0",
|
|
48
|
+
"babel-eslint": "10.1.0",
|
|
49
|
+
"chai": "4.3.7",
|
|
50
|
+
"chai-as-promised": "7.1.1",
|
|
51
|
+
"cross-spawn": "7.0.3",
|
|
52
|
+
"eslint": "8.45.0",
|
|
53
|
+
"eslint-config-prettier": "8.8.0",
|
|
54
|
+
"eslint-config-standard": "17.1.0",
|
|
55
|
+
"eslint-plugin-import": "2.27.5",
|
|
56
|
+
"eslint-plugin-node": "11.1.0",
|
|
57
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
58
|
+
"eslint-plugin-promise": "6.1.1",
|
|
59
|
+
"eslint-plugin-react": "7.32.2",
|
|
60
|
+
"eslint-plugin-standard": "5.0.0",
|
|
61
|
+
"fs-extra": "11.1.1",
|
|
62
|
+
"husky": "8.0.3",
|
|
63
|
+
"jsdom": "22.1.0",
|
|
64
|
+
"lint-staged": "13.2.3",
|
|
65
|
+
"mocha": "10.2.0",
|
|
66
|
+
"mocha-junit-reporter": "2.2.1",
|
|
67
|
+
"mocha-multi-reporters": "1.5.1",
|
|
68
|
+
"mochawesome": "7.1.3",
|
|
69
|
+
"mochawesome-merge": "4.3.0",
|
|
70
|
+
"mochawesome-report-generator": "6.2.0",
|
|
71
|
+
"prettier": "2.8.8",
|
|
72
|
+
"rimraf": "^5.0.1",
|
|
73
|
+
"semantic-release": "21.0.7",
|
|
74
|
+
"sinon": "15.2.0",
|
|
75
|
+
"sinon-chai": "3.7.0",
|
|
76
|
+
"ts-mocha": "10.0.0",
|
|
77
|
+
"typescript": "5.1.6"
|
|
78
|
+
},
|
|
79
|
+
"lint-staged": {
|
|
80
|
+
"*.ts": [
|
|
81
|
+
"prettier --write",
|
|
82
|
+
"eslint --fix",
|
|
83
|
+
"git add"
|
|
84
|
+
],
|
|
85
|
+
"*.md": [
|
|
86
|
+
"prettier --write",
|
|
87
|
+
"git add"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"release": {
|
|
91
|
+
"branches": [
|
|
92
|
+
"master",
|
|
93
|
+
{
|
|
94
|
+
"name": "canary",
|
|
95
|
+
"channel": "canary",
|
|
96
|
+
"prerelease": "alpha"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"plugins": [
|
|
100
|
+
"@semantic-release/commit-analyzer",
|
|
101
|
+
"@semantic-release/release-notes-generator",
|
|
102
|
+
"@semantic-release/changelog",
|
|
103
|
+
"@semantic-release/npm",
|
|
104
|
+
[
|
|
105
|
+
"@semantic-release/git",
|
|
106
|
+
{
|
|
107
|
+
"message": "chore: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
|
|
108
|
+
"assets": [
|
|
109
|
+
"CHANGELOG.md",
|
|
110
|
+
"package.json",
|
|
111
|
+
"package-lock.json"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"@semantic-release/github"
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
}
|
package/dist/README.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# !! WARNING !!
|
|
2
|
-
|
|
3
|
-
`cf-extension.css` file in this directory is a prebuilt committed version of legacy
|
|
4
|
-
Contentful UI Extension styles.
|
|
5
|
-
|
|
6
|
-
It is here for backwards compatibility only: it will be packaged and published on npm
|
|
7
|
-
so it's available under its legacy URL:
|
|
8
|
-
|
|
9
|
-
https://unpkg.com/contentful-ui-extensions-sdk/dist/cf-extension.css
|