@team-monolith/cds 1.129.2-alpha.2 → 1.130.0-alpha
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/dist/emotion.d.ts +185 -0
- package/dist/index.d.ts +8 -1
- package/dist/patterns/LexicalEditor/LexicalCustomConfigContext.d.ts +1 -0
- package/dist/patterns/LexicalEditor/LexicalCustomConfigContext.js +2 -1
- package/dist/patterns/LexicalEditor/LexicalEditor.d.ts +4 -0
- package/dist/patterns/LexicalEditor/LexicalEditor.js +9 -7
- package/dist/patterns/LexicalEditor/Plugins.d.ts +1 -0
- package/dist/patterns/LexicalEditor/Plugins.js +65 -61
- package/dist/patterns/LexicalEditor/components/FileSelectInput.js +24 -23
- package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +2 -1
- package/dist/patterns/LexicalEditor/nodes/FileNode/CompactFileView.d.ts +7 -0
- package/dist/patterns/LexicalEditor/nodes/FileNode/CompactFileView.js +53 -0
- package/dist/patterns/LexicalEditor/nodes/FileNode/FileComponent.d.ts +0 -27
- package/dist/patterns/LexicalEditor/nodes/FileNode/FileComponent.js +44 -115
- package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/FileNode/fileStyles.d.ts +27 -0
- package/dist/patterns/LexicalEditor/nodes/FileNode/fileStyles.js +85 -0
- package/dist/patterns/LexicalEditor/nodes/ImageNode/CompactImageView.d.ts +6 -0
- package/dist/patterns/LexicalEditor/nodes/ImageNode/CompactImageView.js +91 -0
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +108 -102
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +7 -7
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +4 -4
- package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +4 -4
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +4 -4
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/CompactToolbarPlugin.d.ts +1 -0
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/CompactToolbarPlugin.js +106 -0
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/compactAttachmentNodes.d.ts +8 -0
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/compactAttachmentNodes.js +6 -0
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/index.d.ts +1 -0
- package/dist/patterns/LexicalEditor/plugins/DragDropPastePlugin/index.js +15 -14
- package/dist/patterns/LexicalEditor/uploadConstants.d.ts +6 -0
- package/dist/patterns/LexicalEditor/uploadConstants.js +4 -0
- package/package.json +3 -7
- package/@types/emotion.d.ts +0 -197
- package/node_modules/react-i18next/.eslintrc.json +0 -74
- package/node_modules/react-i18next/.husky/pre-commit +0 -1
- package/node_modules/react-i18next/.prettierignore +0 -4
- package/node_modules/react-i18next/CHANGELOG.md +0 -1433
- package/node_modules/react-i18next/LICENSE +0 -22
- package/node_modules/react-i18next/README.md +0 -181
- package/node_modules/react-i18next/TransWithoutContext.d.mts +0 -1
- package/node_modules/react-i18next/TransWithoutContext.d.ts +0 -129
- package/node_modules/react-i18next/dist/amd/react-i18next.js +0 -867
- package/node_modules/react-i18next/dist/amd/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/dist/commonjs/I18nextProvider.js +0 -21
- package/node_modules/react-i18next/dist/commonjs/Trans.js +0 -54
- package/node_modules/react-i18next/dist/commonjs/TransWithoutContext.js +0 -330
- package/node_modules/react-i18next/dist/commonjs/Translation.js +0 -19
- package/node_modules/react-i18next/dist/commonjs/context.js +0 -81
- package/node_modules/react-i18next/dist/commonjs/defaults.js +0 -26
- package/node_modules/react-i18next/dist/commonjs/i18nInstance.js +0 -13
- package/node_modules/react-i18next/dist/commonjs/index.js +0 -128
- package/node_modules/react-i18next/dist/commonjs/initReactI18next.js +0 -15
- package/node_modules/react-i18next/dist/commonjs/unescape.js +0 -32
- package/node_modules/react-i18next/dist/commonjs/useSSR.js +0 -34
- package/node_modules/react-i18next/dist/commonjs/useTranslation.js +0 -114
- package/node_modules/react-i18next/dist/commonjs/utils.js +0 -76
- package/node_modules/react-i18next/dist/commonjs/withSSR.js +0 -27
- package/node_modules/react-i18next/dist/commonjs/withTranslation.js +0 -39
- package/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -15
- package/node_modules/react-i18next/dist/es/Trans.js +0 -43
- package/node_modules/react-i18next/dist/es/TransWithoutContext.js +0 -321
- package/node_modules/react-i18next/dist/es/Translation.js +0 -12
- package/node_modules/react-i18next/dist/es/context.js +0 -42
- package/node_modules/react-i18next/dist/es/defaults.js +0 -18
- package/node_modules/react-i18next/dist/es/i18nInstance.js +0 -5
- package/node_modules/react-i18next/dist/es/index.js +0 -18
- package/node_modules/react-i18next/dist/es/initReactI18next.js +0 -9
- package/node_modules/react-i18next/dist/es/package.json +0 -1
- package/node_modules/react-i18next/dist/es/unescape.js +0 -25
- package/node_modules/react-i18next/dist/es/useSSR.js +0 -27
- package/node_modules/react-i18next/dist/es/useTranslation.js +0 -107
- package/node_modules/react-i18next/dist/es/utils.js +0 -62
- package/node_modules/react-i18next/dist/es/withSSR.js +0 -20
- package/node_modules/react-i18next/dist/es/withTranslation.js +0 -32
- package/node_modules/react-i18next/dist/umd/react-i18next.js +0 -871
- package/node_modules/react-i18next/dist/umd/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/helpers.d.ts +0 -3
- package/node_modules/react-i18next/icu.macro.d.mts +0 -1
- package/node_modules/react-i18next/icu.macro.d.ts +0 -103
- package/node_modules/react-i18next/icu.macro.js +0 -729
- package/node_modules/react-i18next/index.d.mts +0 -1
- package/node_modules/react-i18next/index.d.ts +0 -209
- package/node_modules/react-i18next/initReactI18next.d.mts +0 -1
- package/node_modules/react-i18next/initReactI18next.d.ts +0 -3
- package/node_modules/react-i18next/lint-staged.config.mjs +0 -4
- package/node_modules/react-i18next/package.json +0 -167
- package/node_modules/react-i18next/react-i18next.js +0 -871
- package/node_modules/react-i18next/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/src/I18nextProvider.js +0 -7
- package/node_modules/react-i18next/src/Trans.js +0 -45
- package/node_modules/react-i18next/src/TransWithoutContext.js +0 -479
- package/node_modules/react-i18next/src/Translation.js +0 -14
- package/node_modules/react-i18next/src/context.js +0 -54
- package/node_modules/react-i18next/src/defaults.js +0 -20
- package/node_modules/react-i18next/src/i18nInstance.js +0 -7
- package/node_modules/react-i18next/src/index.js +0 -22
- package/node_modules/react-i18next/src/initReactI18next.js +0 -11
- package/node_modules/react-i18next/src/unescape.js +0 -31
- package/node_modules/react-i18next/src/useSSR.js +0 -33
- package/node_modules/react-i18next/src/useTranslation.js +0 -171
- package/node_modules/react-i18next/src/utils.js +0 -93
- package/node_modules/react-i18next/src/withSSR.js +0 -21
- package/node_modules/react-i18next/src/withTranslation.js +0 -35
- package/node_modules/react-i18next/vitest.workspace.typescript.mts +0 -52
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@team-monolith/cds",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.130.0-alpha",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -48,11 +48,7 @@
|
|
|
48
48
|
"usehooks-ts": "2.9.1"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
|
-
"dist/**/*"
|
|
52
|
-
"@types/**/*"
|
|
53
|
-
],
|
|
54
|
-
"bundleDependencies": [
|
|
55
|
-
"react-i18next"
|
|
51
|
+
"dist/**/*"
|
|
56
52
|
],
|
|
57
53
|
"eslintConfig": {
|
|
58
54
|
"extends": [
|
|
@@ -111,7 +107,7 @@
|
|
|
111
107
|
"vite-plugin-svgr": "5.2.0"
|
|
112
108
|
},
|
|
113
109
|
"scripts": {
|
|
114
|
-
"build": "
|
|
110
|
+
"build": "vite build",
|
|
115
111
|
"build:upload-i18n": "VITE_I18N_UPLOAD=true vite build",
|
|
116
112
|
"clean": "rimraf dist",
|
|
117
113
|
"storybook": "storybook dev -p 6006",
|
package/@types/emotion.d.ts
DELETED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { SerializedStyles } from "@emotion/react";
|
|
2
|
-
|
|
3
|
-
interface CodleFontFamilies {
|
|
4
|
-
ui: string;
|
|
5
|
-
title: string;
|
|
6
|
-
code: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface CodleColors {
|
|
10
|
-
background: {
|
|
11
|
-
neutralBase: string;
|
|
12
|
-
neutralBaseActive: string;
|
|
13
|
-
neutralBaseDisabled: string;
|
|
14
|
-
neutralAlt: string;
|
|
15
|
-
neutralAltActive: string;
|
|
16
|
-
neutralAltDisabled: string;
|
|
17
|
-
primary: string;
|
|
18
|
-
primaryActive: string;
|
|
19
|
-
primaryDisabled: string;
|
|
20
|
-
secondary: string;
|
|
21
|
-
secondaryActive: string;
|
|
22
|
-
secondaryDisabled: string;
|
|
23
|
-
danger: string;
|
|
24
|
-
dangerActive: string;
|
|
25
|
-
dangerDisabled: string;
|
|
26
|
-
success: string;
|
|
27
|
-
successActive: string;
|
|
28
|
-
successDisabled: string;
|
|
29
|
-
info: string;
|
|
30
|
-
infoActive: string;
|
|
31
|
-
infoDisabled: string;
|
|
32
|
-
warning: string;
|
|
33
|
-
warningActive: string;
|
|
34
|
-
warningDisabled: string;
|
|
35
|
-
inverse: string;
|
|
36
|
-
inverseActive: string;
|
|
37
|
-
inverseDisabled: string;
|
|
38
|
-
};
|
|
39
|
-
foreground: {
|
|
40
|
-
neutralBase: string;
|
|
41
|
-
neutralBaseActive: string;
|
|
42
|
-
neutralBaseDisabled: string;
|
|
43
|
-
neutralAlt: string;
|
|
44
|
-
neutralAltActive: string;
|
|
45
|
-
neutralAltDisabled: string;
|
|
46
|
-
primary: string;
|
|
47
|
-
primaryActive: string;
|
|
48
|
-
primaryDisabled: string;
|
|
49
|
-
secondary: string;
|
|
50
|
-
secondaryActive: string;
|
|
51
|
-
secondaryDisabled: string;
|
|
52
|
-
danger: string;
|
|
53
|
-
dangerActive: string;
|
|
54
|
-
dangerDisabled: string;
|
|
55
|
-
success: string;
|
|
56
|
-
successActive: string;
|
|
57
|
-
successDisabled: string;
|
|
58
|
-
info: string;
|
|
59
|
-
infoActive: string;
|
|
60
|
-
infoDisabled: string;
|
|
61
|
-
warning: string;
|
|
62
|
-
warningActive: string;
|
|
63
|
-
warningDisabled: string;
|
|
64
|
-
};
|
|
65
|
-
container: {
|
|
66
|
-
blueContainer: string;
|
|
67
|
-
blueOnContainer: string;
|
|
68
|
-
orangeContainer: string;
|
|
69
|
-
orangeOnContainer: string;
|
|
70
|
-
redContainer: string;
|
|
71
|
-
redOnContainer: string;
|
|
72
|
-
greenContainer: string;
|
|
73
|
-
greenOnContainer: string;
|
|
74
|
-
tealContainer: string;
|
|
75
|
-
tealOnContainer: string;
|
|
76
|
-
yellowContainer: string;
|
|
77
|
-
yellowOnContainer: string;
|
|
78
|
-
obsidianContainer: string;
|
|
79
|
-
obsidianOnContainer: string;
|
|
80
|
-
marbleContainer: string;
|
|
81
|
-
marbleOnContainer: string;
|
|
82
|
-
};
|
|
83
|
-
brand: {
|
|
84
|
-
brandOriginal: string;
|
|
85
|
-
brandAlt: string;
|
|
86
|
-
brandAccent: string;
|
|
87
|
-
brandFaded: string;
|
|
88
|
-
pdf: string;
|
|
89
|
-
pdfAlt: string;
|
|
90
|
-
quiz: string;
|
|
91
|
-
quizAlt: string;
|
|
92
|
-
python: string;
|
|
93
|
-
pythonAlt: string;
|
|
94
|
-
embedded: string;
|
|
95
|
-
embeddedAlt: string;
|
|
96
|
-
board: string;
|
|
97
|
-
boardAlt: string;
|
|
98
|
-
scratch: string;
|
|
99
|
-
scratchAlt: string;
|
|
100
|
-
entry: string;
|
|
101
|
-
entryAlt: string;
|
|
102
|
-
video: string;
|
|
103
|
-
videoAlt: string;
|
|
104
|
-
worksheet: string;
|
|
105
|
-
worksheetAlt: string;
|
|
106
|
-
ebook: string;
|
|
107
|
-
ebookAlt: string;
|
|
108
|
-
makecode: string;
|
|
109
|
-
makecodeAlt: string;
|
|
110
|
-
codap: string;
|
|
111
|
-
codapAlt: string;
|
|
112
|
-
aiQuiz: string;
|
|
113
|
-
aiQuizAlt: string;
|
|
114
|
-
aiSocroom: string;
|
|
115
|
-
aiSocroomAlt: string;
|
|
116
|
-
aiHtml: string;
|
|
117
|
-
aiHtmlAlt: string;
|
|
118
|
-
visang: string;
|
|
119
|
-
|
|
120
|
-
decorativeRed: string;
|
|
121
|
-
decorativePink: string;
|
|
122
|
-
decorativeAmber: string;
|
|
123
|
-
decorativeCoral: string;
|
|
124
|
-
decorativeGrass: string;
|
|
125
|
-
decorativeGreen: string;
|
|
126
|
-
decorativeBlue: string;
|
|
127
|
-
decorativeIndigo: string;
|
|
128
|
-
decorativePurple: string;
|
|
129
|
-
decorativeBrown: string;
|
|
130
|
-
decorativeCopper: string;
|
|
131
|
-
decorativeGold: string;
|
|
132
|
-
decorativeSilver: string;
|
|
133
|
-
decorativeGray: string;
|
|
134
|
-
decorativeBlack: string;
|
|
135
|
-
decorativeRedContainer: string;
|
|
136
|
-
decorativeRedOnContainer: string;
|
|
137
|
-
decorativeIndigoContainer: string;
|
|
138
|
-
decorativeIndigoOnContainer: string;
|
|
139
|
-
decorativeGreenContainer: string;
|
|
140
|
-
decorativeGreenOnContainer: string;
|
|
141
|
-
decorativePurpleContainer: string;
|
|
142
|
-
decorativePurpleOnContainer: string;
|
|
143
|
-
decorativeGoldContainer: string;
|
|
144
|
-
decorativeGoldOnContainer: string;
|
|
145
|
-
decorativeGrayContainer: string;
|
|
146
|
-
decorativeGrayOnContainer: string;
|
|
147
|
-
decorativeBlackContainer: string;
|
|
148
|
-
decorativeBlackOnContainer: string;
|
|
149
|
-
};
|
|
150
|
-
blanket: {
|
|
151
|
-
neutral: string;
|
|
152
|
-
neutralLight: string;
|
|
153
|
-
neutralHeavy: string;
|
|
154
|
-
inverse: string;
|
|
155
|
-
inverseLight: string;
|
|
156
|
-
inverseHeavy: string;
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
interface CodleTypography {
|
|
161
|
-
heading1Regular: SerializedStyles;
|
|
162
|
-
heading1Bold: SerializedStyles;
|
|
163
|
-
heading2Regular: SerializedStyles;
|
|
164
|
-
heading2Bold: SerializedStyles;
|
|
165
|
-
heading3Regular: SerializedStyles;
|
|
166
|
-
heading3Bold: SerializedStyles;
|
|
167
|
-
heading4Regular: SerializedStyles;
|
|
168
|
-
heading4Bold: SerializedStyles;
|
|
169
|
-
heading5Regular: SerializedStyles;
|
|
170
|
-
heading5Bold: SerializedStyles;
|
|
171
|
-
heading6Regular: SerializedStyles;
|
|
172
|
-
heading6Bold: SerializedStyles;
|
|
173
|
-
body1Regular: SerializedStyles;
|
|
174
|
-
body1Medium: SerializedStyles;
|
|
175
|
-
body1SemiBold: SerializedStyles;
|
|
176
|
-
body1Bold: SerializedStyles;
|
|
177
|
-
body2Regular: SerializedStyles;
|
|
178
|
-
body2Medium: SerializedStyles;
|
|
179
|
-
body2SemiBold: SerializedStyles;
|
|
180
|
-
body2Bold: SerializedStyles;
|
|
181
|
-
body3Regular: SerializedStyles;
|
|
182
|
-
body3Medium: SerializedStyles;
|
|
183
|
-
body3SemiBold: SerializedStyles;
|
|
184
|
-
body3Bold: SerializedStyles;
|
|
185
|
-
captionRegular: SerializedStyles;
|
|
186
|
-
captionMedium: SerializedStyles;
|
|
187
|
-
captionSemiBold: SerializedStyles;
|
|
188
|
-
captionBold: SerializedStyles;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
declare module "@emotion/react" {
|
|
192
|
-
export interface Theme {
|
|
193
|
-
color: CodleColors;
|
|
194
|
-
fontFamily: CodleFontFamilies;
|
|
195
|
-
typography: CodleTypography;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["airbnb", "prettier"],
|
|
3
|
-
"parser": "@babel/eslint-parser",
|
|
4
|
-
"parserOptions": {
|
|
5
|
-
"ecmaVersion": 8,
|
|
6
|
-
"ecmaFeatures": {
|
|
7
|
-
"experimentalObjectRestSpread": true,
|
|
8
|
-
"impliedStrict": true,
|
|
9
|
-
"classes": true
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"env": {
|
|
13
|
-
"browser": true,
|
|
14
|
-
"node": true
|
|
15
|
-
},
|
|
16
|
-
"reportUnusedDisableDirectives": true,
|
|
17
|
-
"rules": {
|
|
18
|
-
"no-debugger": 0,
|
|
19
|
-
"no-alert": 0,
|
|
20
|
-
"no-unused-vars": [1, { "argsIgnorePattern": "res|next|^err" }],
|
|
21
|
-
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
|
|
22
|
-
"prefer-const": ["error", { "destructuring": "all" }],
|
|
23
|
-
"arrow-body-style": [2, "as-needed"],
|
|
24
|
-
"no-unused-expressions": [2, { "allowTaggedTemplates": true }],
|
|
25
|
-
"no-param-reassign": [2, { "props": false }],
|
|
26
|
-
"no-console": 0,
|
|
27
|
-
"no-use-before-define": 0,
|
|
28
|
-
"no-nested-ternary": 0,
|
|
29
|
-
"import/prefer-default-export": 0,
|
|
30
|
-
"import/no-extraneous-dependencies": 1,
|
|
31
|
-
"import/no-named-as-default-member": 1,
|
|
32
|
-
"import": 0,
|
|
33
|
-
"func-names": 0,
|
|
34
|
-
"space-before-function-paren": 0,
|
|
35
|
-
"comma-dangle": 0,
|
|
36
|
-
"max-len": 0,
|
|
37
|
-
"import/extensions": 0,
|
|
38
|
-
"no-underscore-dangle": 0,
|
|
39
|
-
"consistent-return": 0,
|
|
40
|
-
"react/display-name": 1,
|
|
41
|
-
"react/no-array-index-key": 0,
|
|
42
|
-
"react/jsx-no-useless-fragment": ["error", { "allowExpressions": true }],
|
|
43
|
-
"react/react-in-jsx-scope": 0,
|
|
44
|
-
"react/prefer-stateless-function": 0,
|
|
45
|
-
"react/forbid-prop-types": 0,
|
|
46
|
-
"react/no-unescaped-entities": 0,
|
|
47
|
-
"react/prop-types": 0,
|
|
48
|
-
"jsx-a11y/accessible-emoji": 0,
|
|
49
|
-
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
|
|
50
|
-
"react/no-unknown-property": ["error", { "ignore": ["i18nIsDynamicList"] }],
|
|
51
|
-
"radix": 0,
|
|
52
|
-
"no-shadow": [
|
|
53
|
-
2,
|
|
54
|
-
{ "hoist": "all", "allow": ["resolve", "reject", "done", "next", "err", "error"] }
|
|
55
|
-
],
|
|
56
|
-
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
|
|
57
|
-
"jsx-a11y/href-no-hash": "off",
|
|
58
|
-
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
|
|
59
|
-
"react/jsx-props-no-spreading": 0
|
|
60
|
-
},
|
|
61
|
-
"overrides": [
|
|
62
|
-
{
|
|
63
|
-
"files": ["test/*"],
|
|
64
|
-
"extends": ["plugin:testing-library/react", "plugin:jest-dom/recommended"],
|
|
65
|
-
"globals": {
|
|
66
|
-
"globalThis": false
|
|
67
|
-
},
|
|
68
|
-
"rules": {
|
|
69
|
-
"testing-library/no-node-access": ["error", { "allowContainerFirstChild": true }],
|
|
70
|
-
"testing-library/no-manual-cleanup": "off"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
npm exec lint-staged
|