@gogitcms/editor 0.35.0 → 0.37.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/app/vendor/plugin-sdk/src/react.tsx +26 -4
- package/npm-shrinkwrap.json +57 -44
- package/package.json +6 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// plugin field components into the editor.
|
|
4
4
|
|
|
5
5
|
import React, { Suspense, useSyncExternalStore, type ComponentType, type LazyExoticComponent } from "react";
|
|
6
|
-
import { Text, type RenderField } from "@gogitcms/design-system";
|
|
6
|
+
import { Text, useTheme, type RenderField } from "@gogitcms/design-system";
|
|
7
7
|
import { PLUGIN_COMPONENT_PREFIX, PluginRegistry } from "./registry";
|
|
8
8
|
import type { PluginComponentLoader, PluginScreenProps, PluginTabContext } from "./types";
|
|
9
9
|
|
|
@@ -76,6 +76,7 @@ export function PluginScreenHost({
|
|
|
76
76
|
tab?: PluginTabContext;
|
|
77
77
|
}) {
|
|
78
78
|
usePluginRegistry(registry);
|
|
79
|
+
const t = useTheme();
|
|
79
80
|
const status = registry.status(pluginId);
|
|
80
81
|
if (status === "pending") return null;
|
|
81
82
|
const match = status === "ready" ? registry.matchRoute(pluginId, path) : null;
|
|
@@ -100,10 +101,31 @@ export function PluginScreenHost({
|
|
|
100
101
|
apiUrl,
|
|
101
102
|
tab,
|
|
102
103
|
};
|
|
104
|
+
// Plugin screens are plain DOM, and the host is React Native Web, which
|
|
105
|
+
// colours its own Text components and leaves the document's defaults alone.
|
|
106
|
+
// Without this wrapper a plugin's <div> inherits the browser's black serif —
|
|
107
|
+
// unreadable on a dark theme and unstyled on a light one. So the theme's
|
|
108
|
+
// text colour and typeface are set once here, and `color: inherit` in a
|
|
109
|
+
// plugin means what it says.
|
|
103
110
|
return (
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
111
|
+
<div
|
|
112
|
+
data-testid="plugin-screen"
|
|
113
|
+
style={{
|
|
114
|
+
display: "flex",
|
|
115
|
+
flexDirection: "column",
|
|
116
|
+
flex: 1,
|
|
117
|
+
minHeight: 0,
|
|
118
|
+
color: t.color.textPrimary,
|
|
119
|
+
fontFamily: t.font.sans,
|
|
120
|
+
fontSize: 14,
|
|
121
|
+
lineHeight: 1.5,
|
|
122
|
+
colorScheme: t.mode,
|
|
123
|
+
}}
|
|
124
|
+
>
|
|
125
|
+
<Suspense fallback={<React.Fragment />}>
|
|
126
|
+
<Lazy {...props} />
|
|
127
|
+
</Suspense>
|
|
128
|
+
</div>
|
|
107
129
|
);
|
|
108
130
|
}
|
|
109
131
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gogitcms/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@gogitcms/editor",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.37.0",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@apollo/client": "^3.11.8",
|
|
12
12
|
"@handlewithcare/react-prosemirror": "^3.2.7",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"node": ">=20"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@gogitcms/gitcms-local-darwin-arm64": "0.
|
|
51
|
-
"@gogitcms/gitcms-local-darwin-x64": "0.
|
|
52
|
-
"@gogitcms/gitcms-local-linux-arm64": "0.
|
|
53
|
-
"@gogitcms/gitcms-local-linux-x64": "0.
|
|
54
|
-
"@gogitcms/gitcms-local-win32-x64": "0.
|
|
50
|
+
"@gogitcms/gitcms-local-darwin-arm64": "0.37.0",
|
|
51
|
+
"@gogitcms/gitcms-local-darwin-x64": "0.37.0",
|
|
52
|
+
"@gogitcms/gitcms-local-linux-arm64": "0.37.0",
|
|
53
|
+
"@gogitcms/gitcms-local-linux-x64": "0.37.0",
|
|
54
|
+
"@gogitcms/gitcms-local-win32-x64": "0.37.0"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"node_modules/@apollo/client": {
|
|
@@ -751,9 +751,9 @@
|
|
|
751
751
|
}
|
|
752
752
|
},
|
|
753
753
|
"node_modules/@gogitcms/gitcms-local-darwin-arm64": {
|
|
754
|
-
"version": "0.
|
|
755
|
-
"resolved": "https://registry.npmjs.org/@gogitcms/gitcms-local-darwin-arm64/-/gitcms-local-darwin-arm64-0.
|
|
756
|
-
"integrity": "sha512-
|
|
754
|
+
"version": "0.37.0",
|
|
755
|
+
"resolved": "https://registry.npmjs.org/@gogitcms/gitcms-local-darwin-arm64/-/gitcms-local-darwin-arm64-0.37.0.tgz",
|
|
756
|
+
"integrity": "sha512-dk84X+vFCow3ZHQnkNw2uYDJHWDJZgpZhbWD31EUbrih9bdWZFZ70y/jyzmZ3g23qVVKAKjvVN0+4+E0fzLyQw==",
|
|
757
757
|
"cpu": [
|
|
758
758
|
"arm64"
|
|
759
759
|
],
|
|
@@ -764,9 +764,9 @@
|
|
|
764
764
|
]
|
|
765
765
|
},
|
|
766
766
|
"node_modules/@gogitcms/gitcms-local-darwin-x64": {
|
|
767
|
-
"version": "0.
|
|
768
|
-
"resolved": "https://registry.npmjs.org/@gogitcms/gitcms-local-darwin-x64/-/gitcms-local-darwin-x64-0.
|
|
769
|
-
"integrity": "sha512-
|
|
767
|
+
"version": "0.37.0",
|
|
768
|
+
"resolved": "https://registry.npmjs.org/@gogitcms/gitcms-local-darwin-x64/-/gitcms-local-darwin-x64-0.37.0.tgz",
|
|
769
|
+
"integrity": "sha512-qlL8E9xYpCduwJTZhprtKtvohB58jezZxELr5qhAaGsir0WearEy5C9dc6J6Y/urss7wGb3Yh1EpgWHPLWAXuA==",
|
|
770
770
|
"cpu": [
|
|
771
771
|
"x64"
|
|
772
772
|
],
|
|
@@ -776,10 +776,23 @@
|
|
|
776
776
|
"darwin"
|
|
777
777
|
]
|
|
778
778
|
},
|
|
779
|
+
"node_modules/@gogitcms/gitcms-local-linux-x64": {
|
|
780
|
+
"version": "0.37.0",
|
|
781
|
+
"resolved": "https://registry.npmjs.org/@gogitcms/gitcms-local-linux-x64/-/gitcms-local-linux-x64-0.37.0.tgz",
|
|
782
|
+
"integrity": "sha512-OzBK5zlw84wB0eRiS3+Vx2EYFMcD0wiF5Eiat5YCJBkhPbvkEHF9mtmLPx2DErY9qp0wT8dKcwYDMbSmEgKRdQ==",
|
|
783
|
+
"cpu": [
|
|
784
|
+
"x64"
|
|
785
|
+
],
|
|
786
|
+
"license": "UNLICENSED",
|
|
787
|
+
"optional": true,
|
|
788
|
+
"os": [
|
|
789
|
+
"linux"
|
|
790
|
+
]
|
|
791
|
+
},
|
|
779
792
|
"node_modules/@gogitcms/gitcms-local-win32-x64": {
|
|
780
|
-
"version": "0.
|
|
781
|
-
"resolved": "https://registry.npmjs.org/@gogitcms/gitcms-local-win32-x64/-/gitcms-local-win32-x64-0.
|
|
782
|
-
"integrity": "sha512-
|
|
793
|
+
"version": "0.37.0",
|
|
794
|
+
"resolved": "https://registry.npmjs.org/@gogitcms/gitcms-local-win32-x64/-/gitcms-local-win32-x64-0.37.0.tgz",
|
|
795
|
+
"integrity": "sha512-7rHbZ2TSDeTmrAWKEmMd/O6bCZCOjKvgzaX0LzCZGs2ZM8XB185VfEB3FpV5+qn/Wps2d5VGu5yULsxN6qAKwQ==",
|
|
783
796
|
"cpu": [
|
|
784
797
|
"x64"
|
|
785
798
|
],
|
|
@@ -946,28 +959,28 @@
|
|
|
946
959
|
}
|
|
947
960
|
},
|
|
948
961
|
"node_modules/@posthog/browser-common": {
|
|
949
|
-
"version": "0.7.
|
|
950
|
-
"resolved": "https://registry.npmjs.org/@posthog/browser-common/-/browser-common-0.7.
|
|
951
|
-
"integrity": "sha512-
|
|
962
|
+
"version": "0.7.2",
|
|
963
|
+
"resolved": "https://registry.npmjs.org/@posthog/browser-common/-/browser-common-0.7.2.tgz",
|
|
964
|
+
"integrity": "sha512-ukDmETXy6fTBE4ZpaO8ccscrNz5SvTaUnhQ0Ze2JX/oYILa89rrNwqUH7lDAuhFKa+NY6EoJ9kZMuOvuu4WwLQ==",
|
|
952
965
|
"license": "MIT",
|
|
953
966
|
"dependencies": {
|
|
954
|
-
"@posthog/core": "^1.50.
|
|
955
|
-
"@posthog/types": "^1.
|
|
967
|
+
"@posthog/core": "^1.50.4",
|
|
968
|
+
"@posthog/types": "^1.408.1"
|
|
956
969
|
}
|
|
957
970
|
},
|
|
958
971
|
"node_modules/@posthog/core": {
|
|
959
|
-
"version": "1.50.
|
|
960
|
-
"resolved": "https://registry.npmjs.org/@posthog/core/-/core-1.50.
|
|
961
|
-
"integrity": "sha512-
|
|
972
|
+
"version": "1.50.4",
|
|
973
|
+
"resolved": "https://registry.npmjs.org/@posthog/core/-/core-1.50.4.tgz",
|
|
974
|
+
"integrity": "sha512-4iuCMbPJgy+w8xiFlSM/zapchVSzkba6Nb+iZEo+4DsAplNFj38pXE1htGx2GU8Fac70PPOwvNv4uHsZjYDbzA==",
|
|
962
975
|
"license": "MIT",
|
|
963
976
|
"dependencies": {
|
|
964
|
-
"@posthog/types": "^1.
|
|
977
|
+
"@posthog/types": "^1.408.1"
|
|
965
978
|
}
|
|
966
979
|
},
|
|
967
980
|
"node_modules/@posthog/types": {
|
|
968
|
-
"version": "1.408.
|
|
969
|
-
"resolved": "https://registry.npmjs.org/@posthog/types/-/types-1.408.
|
|
970
|
-
"integrity": "sha512-
|
|
981
|
+
"version": "1.408.1",
|
|
982
|
+
"resolved": "https://registry.npmjs.org/@posthog/types/-/types-1.408.1.tgz",
|
|
983
|
+
"integrity": "sha512-zcQ3rdAbWDWegL/TA3OiC+Wc8qquNtFj2Q2RPc3QuJas3D6FYsNhR9xYmZgLWEm+GDN/zhGlOHijG3nPMEiCbw==",
|
|
971
984
|
"license": "MIT"
|
|
972
985
|
},
|
|
973
986
|
"node_modules/@react-native/asset-utils": {
|
|
@@ -1855,9 +1868,9 @@
|
|
|
1855
1868
|
"license": "MIT"
|
|
1856
1869
|
},
|
|
1857
1870
|
"node_modules/baseline-browser-mapping": {
|
|
1858
|
-
"version": "2.11.
|
|
1859
|
-
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.
|
|
1860
|
-
"integrity": "sha512-
|
|
1871
|
+
"version": "2.11.21",
|
|
1872
|
+
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.21.tgz",
|
|
1873
|
+
"integrity": "sha512-uh8vpY/1/YyFkunIDFH/12p7/7VdPKA1hejMVEbdkEaWnUz0Hesvx5EbiU6XxjyHZIOju+ZMbQJkRh+es3/spQ==",
|
|
1861
1874
|
"license": "Apache-2.0",
|
|
1862
1875
|
"bin": {
|
|
1863
1876
|
"baseline-browser-mapping": "dist/cli.cjs"
|
|
@@ -2302,9 +2315,9 @@
|
|
|
2302
2315
|
"peer": true
|
|
2303
2316
|
},
|
|
2304
2317
|
"node_modules/electron-to-chromium": {
|
|
2305
|
-
"version": "1.5.
|
|
2306
|
-
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.
|
|
2307
|
-
"integrity": "sha512-
|
|
2318
|
+
"version": "1.5.421",
|
|
2319
|
+
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.421.tgz",
|
|
2320
|
+
"integrity": "sha512-cUhfpHQy+PGbt+X90DMcAVazDCziIZr73hpxD4LRs4BGQoJCifPzTfQWa7S6c+uhokTOBe8tot09GBSEO6c9LA==",
|
|
2308
2321
|
"license": "ISC"
|
|
2309
2322
|
},
|
|
2310
2323
|
"node_modules/emoji-regex": {
|
|
@@ -4011,9 +4024,9 @@
|
|
|
4011
4024
|
}
|
|
4012
4025
|
},
|
|
4013
4026
|
"node_modules/postcss": {
|
|
4014
|
-
"version": "8.5.
|
|
4015
|
-
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.
|
|
4016
|
-
"integrity": "sha512-
|
|
4027
|
+
"version": "8.5.28",
|
|
4028
|
+
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",
|
|
4029
|
+
"integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==",
|
|
4017
4030
|
"funding": [
|
|
4018
4031
|
{
|
|
4019
4032
|
"type": "opencollective",
|
|
@@ -4030,7 +4043,7 @@
|
|
|
4030
4043
|
],
|
|
4031
4044
|
"license": "MIT",
|
|
4032
4045
|
"dependencies": {
|
|
4033
|
-
"nanoid": "^3.3.
|
|
4046
|
+
"nanoid": "^3.3.18",
|
|
4034
4047
|
"picocolors": "^1.1.1",
|
|
4035
4048
|
"source-map-js": "^1.2.1"
|
|
4036
4049
|
},
|
|
@@ -4045,14 +4058,14 @@
|
|
|
4045
4058
|
"license": "MIT"
|
|
4046
4059
|
},
|
|
4047
4060
|
"node_modules/posthog-js": {
|
|
4048
|
-
"version": "1.
|
|
4049
|
-
"resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.
|
|
4050
|
-
"integrity": "sha512-
|
|
4061
|
+
"version": "1.426.2",
|
|
4062
|
+
"resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.426.2.tgz",
|
|
4063
|
+
"integrity": "sha512-dYs3GTLn3NxQIqsxIdMPsvJcnn9515YkTKHxuxrtMmnduIWiIoXdR5aqdd0GWjP2cx6cEVYO3OxZ8U/1bOVFBQ==",
|
|
4051
4064
|
"license": "(Apache-2.0 AND MIT)",
|
|
4052
4065
|
"dependencies": {
|
|
4053
|
-
"@posthog/browser-common": "^0.7.
|
|
4054
|
-
"@posthog/core": "^1.50.
|
|
4055
|
-
"@posthog/types": "^1.408.
|
|
4066
|
+
"@posthog/browser-common": "^0.7.2",
|
|
4067
|
+
"@posthog/core": "^1.50.4",
|
|
4068
|
+
"@posthog/types": "^1.408.1",
|
|
4056
4069
|
"core-js": "^3.49.0",
|
|
4057
4070
|
"dompurify": "^3.4.13",
|
|
4058
4071
|
"fflate": "^0.4.8",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gogitcms/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"description": "Terminal UI for setting up and running the Go·Git CMS content editor",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"@gogitcms/frontend": "workspace:*"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"@gogitcms/gitcms-local-darwin-arm64": "0.
|
|
69
|
-
"@gogitcms/gitcms-local-darwin-x64": "0.
|
|
70
|
-
"@gogitcms/gitcms-local-linux-arm64": "0.
|
|
71
|
-
"@gogitcms/gitcms-local-linux-x64": "0.
|
|
72
|
-
"@gogitcms/gitcms-local-win32-x64": "0.
|
|
68
|
+
"@gogitcms/gitcms-local-darwin-arm64": "0.37.0",
|
|
69
|
+
"@gogitcms/gitcms-local-darwin-x64": "0.37.0",
|
|
70
|
+
"@gogitcms/gitcms-local-linux-arm64": "0.37.0",
|
|
71
|
+
"@gogitcms/gitcms-local-linux-x64": "0.37.0",
|
|
72
|
+
"@gogitcms/gitcms-local-win32-x64": "0.37.0"
|
|
73
73
|
}
|
|
74
74
|
}
|