@salesforce/webapp-template-feature-graphql-experimental 1.35.1 → 1.36.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.
Files changed (95) hide show
  1. package/README.md +52 -65
  2. package/package.json +6 -43
  3. package/rules/graphql-data-access-rule.md +5 -5
  4. package/skills/graphql-data-access/SKILL.md +17 -40
  5. package/skills/graphql-data-access/docs/explore-schema.md +3 -3
  6. package/dist/.a4drules/build-validation.md +0 -81
  7. package/dist/.a4drules/code-quality.md +0 -150
  8. package/dist/.a4drules/graphql/tools/knowledge/lds-explore-graphql-schema.md +0 -227
  9. package/dist/.a4drules/graphql/tools/knowledge/lds-generate-graphql-mutationquery.md +0 -212
  10. package/dist/.a4drules/graphql/tools/knowledge/lds-generate-graphql-readquery.md +0 -185
  11. package/dist/.a4drules/graphql/tools/knowledge/lds-guide-graphql.md +0 -205
  12. package/dist/.a4drules/graphql/tools/schemas/shared.graphqls +0 -1150
  13. package/dist/.a4drules/graphql.md +0 -408
  14. package/dist/.a4drules/images.md +0 -13
  15. package/dist/.a4drules/react.md +0 -361
  16. package/dist/.a4drules/react_image_processing.md +0 -45
  17. package/dist/.a4drules/skills/install-feature/SKILL.md +0 -67
  18. package/dist/.a4drules/skills/install-feature/scripts/copy-feature-assets.sh +0 -36
  19. package/dist/.a4drules/typescript.md +0 -224
  20. package/dist/.forceignore +0 -15
  21. package/dist/.husky/pre-commit +0 -4
  22. package/dist/.prettierignore +0 -11
  23. package/dist/.prettierrc +0 -17
  24. package/dist/CHANGELOG.md +0 -487
  25. package/dist/README.md +0 -18
  26. package/dist/config/project-scratch-def.json +0 -13
  27. package/dist/force-app/main/default/webapplications/feature-graphql/.graphqlrc.yml +0 -6
  28. package/dist/force-app/main/default/webapplications/feature-graphql/.prettierignore +0 -9
  29. package/dist/force-app/main/default/webapplications/feature-graphql/.prettierrc +0 -11
  30. package/dist/force-app/main/default/webapplications/feature-graphql/build/vite.config.d.ts +0 -2
  31. package/dist/force-app/main/default/webapplications/feature-graphql/build/vite.config.js +0 -76
  32. package/dist/force-app/main/default/webapplications/feature-graphql/e2e/app.spec.ts +0 -24
  33. package/dist/force-app/main/default/webapplications/feature-graphql/eslint.config.js +0 -113
  34. package/dist/force-app/main/default/webapplications/feature-graphql/feature-graphql.webapplication-meta.xml +0 -7
  35. package/dist/force-app/main/default/webapplications/feature-graphql/index.html +0 -13
  36. package/dist/force-app/main/default/webapplications/feature-graphql/package-lock.json +0 -11134
  37. package/dist/force-app/main/default/webapplications/feature-graphql/package.json +0 -52
  38. package/dist/force-app/main/default/webapplications/feature-graphql/playwright.config.ts +0 -24
  39. package/dist/force-app/main/default/webapplications/feature-graphql/scripts/rewrite-e2e-assets.mjs +0 -23
  40. package/dist/force-app/main/default/webapplications/feature-graphql/src/api/graphql-operations-types.ts +0 -118
  41. package/dist/force-app/main/default/webapplications/feature-graphql/src/api/graphql.test.ts +0 -91
  42. package/dist/force-app/main/default/webapplications/feature-graphql/src/api/graphql.ts +0 -35
  43. package/dist/force-app/main/default/webapplications/feature-graphql/src/api/utils/accounts.ts +0 -35
  44. package/dist/force-app/main/default/webapplications/feature-graphql/src/api/utils/query/highRevenueAccountsQuery.graphql +0 -29
  45. package/dist/force-app/main/default/webapplications/feature-graphql/src/api/utils/user.test.ts +0 -129
  46. package/dist/force-app/main/default/webapplications/feature-graphql/src/api/utils/user.ts +0 -53
  47. package/dist/force-app/main/default/webapplications/feature-graphql/src/app.tsx +0 -22
  48. package/dist/force-app/main/default/webapplications/feature-graphql/src/appLayout.tsx +0 -11
  49. package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/icons/book.svg +0 -3
  50. package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/icons/copy.svg +0 -4
  51. package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/icons/rocket.svg +0 -3
  52. package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/icons/star.svg +0 -3
  53. package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/images/codey-1.png +0 -0
  54. package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/images/codey-2.png +0 -0
  55. package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/images/codey-3.png +0 -0
  56. package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/images/vibe-codey.svg +0 -194
  57. package/dist/force-app/main/default/webapplications/feature-graphql/src/components/AccountsTable.tsx +0 -121
  58. package/dist/force-app/main/default/webapplications/feature-graphql/src/index.ts +0 -7
  59. package/dist/force-app/main/default/webapplications/feature-graphql/src/navigationMenu.tsx +0 -81
  60. package/dist/force-app/main/default/webapplications/feature-graphql/src/pages/About.tsx +0 -12
  61. package/dist/force-app/main/default/webapplications/feature-graphql/src/pages/AccountsPage.tsx +0 -19
  62. package/dist/force-app/main/default/webapplications/feature-graphql/src/pages/Home.tsx +0 -12
  63. package/dist/force-app/main/default/webapplications/feature-graphql/src/pages/NotFound.tsx +0 -18
  64. package/dist/force-app/main/default/webapplications/feature-graphql/src/pages/new.tsx +0 -10
  65. package/dist/force-app/main/default/webapplications/feature-graphql/src/router-utils.tsx +0 -34
  66. package/dist/force-app/main/default/webapplications/feature-graphql/src/routes.tsx +0 -48
  67. package/dist/force-app/main/default/webapplications/feature-graphql/src/styles/global.css +0 -13
  68. package/dist/force-app/main/default/webapplications/feature-graphql/tsconfig.json +0 -36
  69. package/dist/force-app/main/default/webapplications/feature-graphql/tsconfig.node.json +0 -13
  70. package/dist/force-app/main/default/webapplications/feature-graphql/vite-env.d.ts +0 -1
  71. package/dist/force-app/main/default/webapplications/feature-graphql/vite.config.ts +0 -69
  72. package/dist/force-app/main/default/webapplications/feature-graphql/vitest-env.d.ts +0 -2
  73. package/dist/force-app/main/default/webapplications/feature-graphql/vitest.config.ts +0 -11
  74. package/dist/force-app/main/default/webapplications/feature-graphql/vitest.setup.ts +0 -1
  75. package/dist/force-app/main/default/webapplications/feature-graphql/webapplication.json +0 -7
  76. package/dist/jest.config.js +0 -6
  77. package/dist/package.json +0 -37
  78. package/dist/scripts/apex/hello.apex +0 -10
  79. package/dist/scripts/soql/account.soql +0 -6
  80. package/dist/sfdx-project.json +0 -12
  81. package/skills/graphql-data-access/scripts/codegen.js +0 -15
  82. package/skills/graphql-data-access/scripts/get-graphql-schema.mjs +0 -59
  83. package/src/force-app/main/default/webapplications/feature-graphql/.graphqlrc.yml +0 -6
  84. package/src/force-app/main/default/webapplications/feature-graphql/src/api/graphql-operations-types.ts +0 -118
  85. package/src/force-app/main/default/webapplications/feature-graphql/src/api/graphql.test.ts +0 -91
  86. package/src/force-app/main/default/webapplications/feature-graphql/src/api/graphql.ts +0 -35
  87. package/src/force-app/main/default/webapplications/feature-graphql/src/api/utils/accounts.ts +0 -35
  88. package/src/force-app/main/default/webapplications/feature-graphql/src/api/utils/query/highRevenueAccountsQuery.graphql +0 -29
  89. package/src/force-app/main/default/webapplications/feature-graphql/src/api/utils/user.test.ts +0 -129
  90. package/src/force-app/main/default/webapplications/feature-graphql/src/api/utils/user.ts +0 -53
  91. package/src/force-app/main/default/webapplications/feature-graphql/src/components/AccountsTable.tsx +0 -121
  92. package/src/force-app/main/default/webapplications/feature-graphql/src/index.ts +0 -7
  93. package/src/force-app/main/default/webapplications/feature-graphql/src/pages/AccountsPage.tsx +0 -19
  94. package/src/force-app/main/default/webapplications/feature-graphql/src/routes.tsx +0 -20
  95. package/src/force-app/main/default/webapplications/feature-graphql/vite.config.ts +0 -69
@@ -1,113 +0,0 @@
1
- import js from '@eslint/js';
2
- import tseslint from '@typescript-eslint/eslint-plugin';
3
- import tsparser from '@typescript-eslint/parser';
4
- import react from 'eslint-plugin-react';
5
- import reactHooks from 'eslint-plugin-react-hooks';
6
- import reactRefresh from 'eslint-plugin-react-refresh';
7
- import globals from 'globals';
8
-
9
- export default [
10
- // Global ignores
11
- {
12
- ignores: ['build/**/*', 'dist/**/*', 'coverage/**/*'],
13
- },
14
- // Config files and build tools (first to avoid inheritance)
15
- {
16
- files: ['*.config.{js,ts}', 'vite.config.ts'],
17
- languageOptions: {
18
- parser: tsparser,
19
- parserOptions: {
20
- ecmaVersion: 'latest',
21
- sourceType: 'module',
22
- },
23
- globals: {
24
- ...globals.node,
25
- __dirname: 'readonly',
26
- process: 'readonly',
27
- },
28
- },
29
- plugins: {
30
- '@typescript-eslint': tseslint,
31
- },
32
- rules: {
33
- '@typescript-eslint/no-var-requires': 'off',
34
- },
35
- },
36
- // Main TypeScript/React files
37
- {
38
- files: ['**/*.{ts,tsx}'],
39
- ignores: [
40
- 'coverage',
41
- 'dist',
42
- 'node_modules',
43
- 'build',
44
- '*.config.{js,ts}',
45
- 'vite.config.ts',
46
- ],
47
- languageOptions: {
48
- ecmaVersion: 2020,
49
- sourceType: 'module',
50
- parser: tsparser,
51
- parserOptions: {
52
- ecmaFeatures: {
53
- jsx: true,
54
- },
55
- ecmaVersion: 'latest',
56
- sourceType: 'module',
57
- project: './tsconfig.json',
58
- },
59
- globals: {
60
- ...globals.browser,
61
- JSX: 'readonly',
62
- },
63
- },
64
- plugins: {
65
- react,
66
- 'react-hooks': reactHooks,
67
- 'react-refresh': reactRefresh,
68
- '@typescript-eslint': tseslint,
69
- },
70
- rules: {
71
- ...js.configs.recommended.rules,
72
- ...tseslint.configs.recommended.rules,
73
- ...react.configs.recommended.rules,
74
- ...reactHooks.configs.recommended.rules,
75
- 'react/react-in-jsx-scope': 'off',
76
- 'react/prop-types': 'off',
77
- 'react/jsx-no-comment-textnodes': 'off',
78
- 'react/no-unescaped-entities': 'off',
79
- '@typescript-eslint/no-unused-vars': [
80
- 'error',
81
- { argsIgnorePattern: '^_' },
82
- ],
83
- '@typescript-eslint/explicit-function-return-type': 'off',
84
- '@typescript-eslint/explicit-module-boundary-types': 'off',
85
- '@typescript-eslint/no-explicit-any': 'off',
86
- },
87
- settings: {
88
- react: {
89
- version: 'detect',
90
- },
91
- },
92
- },
93
- // Test files
94
- {
95
- files: [
96
- '**/*.test.{ts,tsx}',
97
- '**/test/**/*.{ts,tsx}',
98
- 'src/test/**/*.{ts,tsx}',
99
- ],
100
- languageOptions: {
101
- parser: tsparser,
102
- globals: {
103
- ...globals.browser,
104
- ...globals.node,
105
- global: 'writable',
106
- JSX: 'readonly',
107
- },
108
- },
109
- rules: {
110
- '@typescript-eslint/no-explicit-any': 'off',
111
- },
112
- },
113
- ];
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <WebApplication xmlns="http://soap.sforce.com/2006/04/metadata">
3
- <masterLabel>feature-graphql</masterLabel>
4
- <description>A Salesforce web application.</description>
5
- <isActive>true</isActive>
6
- <version>1</version>
7
- </WebApplication>
@@ -1,13 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Welcome to React App</title>
8
- </head>
9
- <body>
10
- <div id="root"></div>
11
- <script type="module" src="/src/app.tsx"></script>
12
- </body>
13
- </html>