@kitalive/sfdx-plugin 1.0.0-rc.1 → 1.0.0-rc.3

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/package.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
2
  "name": "@kitalive/sfdx-plugin",
3
3
  "description": "Kitalive SFDX plugin",
4
- "version": "1.0.0-rc.1",
4
+ "version": "1.0.0-rc.3",
5
5
  "author": "Akihiro Ono",
6
6
  "bugs": "https://github.com/Kitalive-Inc/sfdx-plugin/issues",
7
7
  "dependencies": {
8
8
  "@jetstreamapp/soql-parser-js": "^6.1.0",
9
9
  "@oclif/core": "^4",
10
- "@salesforce/core": "^7",
10
+ "@salesforce/core": "^8",
11
11
  "@salesforce/kit": "^3",
12
- "@salesforce/sf-plugins-core": "^10",
13
- "dayjs": "^1.11.9",
14
- "express": "^4.18.2",
12
+ "@salesforce/sf-plugins-core": "^12",
13
+ "dayjs": "^1.11.13",
14
+ "express": "^4.21.2",
15
15
  "express-async-errors": "^3.1.1",
16
- "fast-csv": "^4.3.6",
17
- "fs-extra": "^11.1.1",
16
+ "fast-csv": "^5.0.2",
17
+ "fs-extra": "^11.3.0",
18
18
  "iconv-lite": "^0.6.3",
19
- "open": "^8",
19
+ "open": "^10",
20
20
  "tslib": "^2",
21
21
  "yargs": "^17.7.2"
22
22
  },
23
23
  "devDependencies": {
24
- "@oclif/plugin-command-snapshot": "^5.1.9",
25
- "@salesforce/cli-plugins-testkit": "^5.3.10",
24
+ "@oclif/plugin-command-snapshot": "^5.2.35",
25
+ "@salesforce/cli-plugins-testkit": "^5.3.39",
26
26
  "@salesforce/dev-scripts": "^10",
27
- "@types/express": "^4.17.21",
27
+ "@types/express": "^5.0.0",
28
28
  "@types/fs-extra": "^11.0.4",
29
- "@types/yargs": "^17.0.24",
30
- "eslint-plugin-sf-plugin": "^1.18.6",
31
- "esmock": "^2.6.7",
32
- "oclif": "^4.14.0",
29
+ "@types/yargs": "^17.0.33",
30
+ "eslint-plugin-sf-plugin": "^1.20.14",
31
+ "esmock": "^2.7.0",
32
+ "oclif": "^4.17.30",
33
33
  "ts-node": "^10.9.2",
34
- "typescript": "^5.4.5"
34
+ "typescript": "^5.7.3"
35
35
  },
36
36
  "engines": {
37
37
  "node": ">=18.0.0"
@@ -1,5 +1,5 @@
1
1
  <!--
2
- * Copyright (c) 2021 GraphQL Contributors
2
+ * Copyright (c) 2025 GraphQL Contributors
3
3
  * All rights reserved.
4
4
  *
5
5
  * This source code is licensed under the license found in the
@@ -8,75 +8,89 @@
8
8
  <!DOCTYPE html>
9
9
  <html lang="en">
10
10
  <head>
11
- <title>GraphiQL</title>
11
+ <meta charset="UTF-8" />
12
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
13
+ <title>GraphiQL 5 with React 19 and GraphiQL Explorer</title>
12
14
  <style>
13
15
  body {
14
- height: 100%;
15
16
  margin: 0;
16
- width: 100%;
17
- overflow: hidden;
18
17
  }
19
18
 
20
19
  #graphiql {
21
- height: 100vh;
20
+ height: 100dvh;
22
21
  }
23
- </style>
24
- <!--
25
- This GraphiQL example depends on Promise and fetch, which are available in
26
- modern browsers, but can be "polyfilled" for older browsers.
27
- GraphiQL itself depends on React DOM.
28
- If you do not want to rely on a CDN, you can host these files locally or
29
- include them directly in your favored resource bundler.
30
- -->
31
- <script
32
- crossorigin
33
- src="https://unpkg.com/react@18/umd/react.development.js"
34
- ></script>
35
- <script
36
- crossorigin
37
- src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"
38
- ></script>
39
- <!--
40
- These two files can be found in the npm module, however you may wish to
41
- copy them directly into your environment, or perhaps include them in your
42
- favored resource bundler.
43
- -->
44
- <script
45
- src="https://unpkg.com/graphiql/graphiql.min.js"
46
- type="application/javascript"
47
- ></script>
48
- <link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" />
49
- <!--
50
- These are imports for the GraphIQL Explorer plugin.
51
- -->
52
- <script
53
- src="https://unpkg.com/@graphiql/plugin-explorer/dist/index.umd.js"
54
- crossorigin
55
- ></script>
56
22
 
23
+ .loading {
24
+ height: 100%;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ font-size: 4rem;
29
+ }
30
+ </style>
31
+ <link rel="stylesheet" href="https://esm.sh/graphiql/dist/style.css" />
57
32
  <link
58
33
  rel="stylesheet"
59
- href="https://unpkg.com/@graphiql/plugin-explorer/dist/style.css"
34
+ href="https://esm.sh/@graphiql/plugin-explorer/dist/style.css"
60
35
  />
61
- </head>
36
+ <!--
37
+ * Note:
38
+ * The ?standalone flag bundles the module along with all of its `dependencies`, excluding `peerDependencies`, into a single JavaScript file.
39
+ * `@emotion/is-prop-valid` is a shim to remove the console error ` module "@emotion /is-prop-valid" not found`. Upstream issue: https://github.com/motiondivision/motion/issues/3126
40
+ -->
41
+ <script type="importmap">
42
+ {
43
+ "imports": {
44
+ "react": "https://esm.sh/react@19.1.0",
45
+ "react/": "https://esm.sh/react@19.1.0/",
62
46
 
63
- <body>
64
- <div id="graphiql">Loading...</div>
65
- <script crossorigin>
66
- const root = ReactDOM.createRoot(document.getElementById('graphiql'));
67
- const fetcher = GraphiQL.createFetcher({ url: '/api/graphql' });
68
- const explorerPlugin = GraphiQLPluginExplorer.explorerPlugin();
69
- root.render(
70
- React.createElement(GraphiQL, {
47
+ "react-dom": "https://esm.sh/react-dom@19.1.0",
48
+ "react-dom/": "https://esm.sh/react-dom@19.1.0/",
49
+
50
+ "graphiql": "https://esm.sh/graphiql?standalone&external=react,react-dom,@graphiql/react,graphql",
51
+ "graphiql/": "https://esm.sh/graphiql/",
52
+ "@graphiql/plugin-explorer": "https://esm.sh/@graphiql/plugin-explorer?standalone&external=react,@graphiql/react,graphql",
53
+ "@graphiql/react": "https://esm.sh/@graphiql/react?standalone&external=react,react-dom,graphql,@graphiql/toolkit,@emotion/is-prop-valid",
54
+
55
+ "@graphiql/toolkit": "https://esm.sh/@graphiql/toolkit?standalone&external=graphql",
56
+ "graphql": "https://esm.sh/graphql@16.11.0",
57
+ "@emotion/is-prop-valid": "data:text/javascript,"
58
+ }
59
+ }
60
+ </script>
61
+ <script type="module">
62
+ import React from 'react';
63
+ import ReactDOM from 'react-dom/client';
64
+ import { GraphiQL, HISTORY_PLUGIN } from 'graphiql';
65
+ import { createGraphiQLFetcher } from '@graphiql/toolkit';
66
+ import { explorerPlugin } from '@graphiql/plugin-explorer';
67
+ import 'graphiql/setup-workers/esm.sh';
68
+
69
+ const fetcher = createGraphiQLFetcher({
70
+ url: '/api/graphql',
71
+ });
72
+ const plugins = [HISTORY_PLUGIN, explorerPlugin()];
73
+
74
+ function App() {
75
+ return React.createElement(GraphiQL, {
71
76
  fetcher,
72
- dangerouslyAssumeSchemaIsValid: true,
77
+ plugins,
73
78
  defaultEditorToolsVisibility: true,
74
- plugins: [explorerPlugin],
75
- })
76
- );
79
+ });
80
+ }
81
+
82
+ const container = document.getElementById('graphiql');
83
+ const root = ReactDOM.createRoot(container);
84
+ root.render(React.createElement(App));
85
+
77
86
  window.addEventListener('beforeunload', () =>
78
87
  navigator.sendBeacon('/quit')
79
88
  );
80
89
  </script>
90
+ </head>
91
+ <body>
92
+ <div id="graphiql">
93
+ <div class="loading">Loading…</div>
94
+ </div>
81
95
  </body>
82
96
  </html>