@magmamath/students-features 1.3.9 → 1.3.10-rc.1

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 (138) hide show
  1. package/dist/commonjs/features/chatbot/helpers.js +1 -5
  2. package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +0 -1
  4. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  5. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  6. package/dist/commonjs/features/uiMode/getUIMode.js +47 -0
  7. package/dist/commonjs/features/uiMode/getUIMode.js.map +1 -0
  8. package/dist/commonjs/features/uiMode/index.js +20 -0
  9. package/dist/commonjs/features/uiMode/index.js.map +1 -0
  10. package/dist/commonjs/features/uiMode/uiMode.constants.js +14 -0
  11. package/dist/commonjs/features/uiMode/uiMode.constants.js.map +1 -0
  12. package/dist/commonjs/features/uiMode/uiMode.helpers.js +53 -0
  13. package/dist/commonjs/features/uiMode/uiMode.helpers.js.map +1 -0
  14. package/dist/commonjs/features/uiMode/uiMode.types.js +6 -0
  15. package/dist/commonjs/features/uiMode/uiMode.types.js.map +1 -0
  16. package/dist/commonjs/index.js +12 -0
  17. package/dist/commonjs/index.js.map +1 -1
  18. package/dist/commonjs/types/answerTypes.js +15 -0
  19. package/dist/commonjs/types/answerTypes.js.map +1 -0
  20. package/dist/module/features/chatbot/helpers.js +1 -5
  21. package/dist/module/features/chatbot/helpers.js.map +1 -1
  22. package/dist/module/features/chatbot/model/ChatBotModel.js +0 -1
  23. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  24. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  25. package/dist/module/features/uiMode/getUIMode.js +42 -0
  26. package/dist/module/features/uiMode/getUIMode.js.map +1 -0
  27. package/dist/module/features/uiMode/index.js +5 -0
  28. package/dist/module/features/uiMode/index.js.map +1 -0
  29. package/dist/module/features/uiMode/uiMode.constants.js +10 -0
  30. package/dist/module/features/uiMode/uiMode.constants.js.map +1 -0
  31. package/dist/module/features/uiMode/uiMode.helpers.js +45 -0
  32. package/dist/module/features/uiMode/uiMode.helpers.js.map +1 -0
  33. package/dist/module/features/uiMode/uiMode.types.js +4 -0
  34. package/dist/module/features/uiMode/uiMode.types.js.map +1 -0
  35. package/dist/module/index.js +1 -0
  36. package/dist/module/index.js.map +1 -1
  37. package/dist/module/types/answerTypes.js +11 -0
  38. package/dist/module/types/answerTypes.js.map +1 -0
  39. package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
  40. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  41. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +0 -2
  42. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  43. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +0 -1
  44. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  45. package/dist/typescript/commonjs/features/uiMode/getUIMode.d.ts +3 -0
  46. package/dist/typescript/commonjs/features/uiMode/getUIMode.d.ts.map +1 -0
  47. package/dist/typescript/commonjs/features/uiMode/index.d.ts +3 -0
  48. package/dist/typescript/commonjs/features/uiMode/index.d.ts.map +1 -0
  49. package/dist/typescript/commonjs/features/uiMode/uiMode.constants.d.ts +7 -0
  50. package/dist/typescript/commonjs/features/uiMode/uiMode.constants.d.ts.map +1 -0
  51. package/dist/typescript/commonjs/features/uiMode/uiMode.helpers.d.ts +8 -0
  52. package/dist/typescript/commonjs/features/uiMode/uiMode.helpers.d.ts.map +1 -0
  53. package/dist/typescript/commonjs/features/uiMode/uiMode.types.d.ts +57 -0
  54. package/dist/typescript/commonjs/features/uiMode/uiMode.types.d.ts.map +1 -0
  55. package/dist/typescript/commonjs/index.d.ts +1 -0
  56. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  57. package/dist/typescript/commonjs/types/answerTypes.d.ts +8 -0
  58. package/dist/typescript/commonjs/types/answerTypes.d.ts.map +1 -0
  59. package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
  60. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  61. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +0 -2
  62. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  63. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +0 -1
  64. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  65. package/dist/typescript/module/features/uiMode/getUIMode.d.ts +3 -0
  66. package/dist/typescript/module/features/uiMode/getUIMode.d.ts.map +1 -0
  67. package/dist/typescript/module/features/uiMode/index.d.ts +3 -0
  68. package/dist/typescript/module/features/uiMode/index.d.ts.map +1 -0
  69. package/dist/typescript/module/features/uiMode/uiMode.constants.d.ts +7 -0
  70. package/dist/typescript/module/features/uiMode/uiMode.constants.d.ts.map +1 -0
  71. package/dist/typescript/module/features/uiMode/uiMode.helpers.d.ts +8 -0
  72. package/dist/typescript/module/features/uiMode/uiMode.helpers.d.ts.map +1 -0
  73. package/dist/typescript/module/features/uiMode/uiMode.types.d.ts +57 -0
  74. package/dist/typescript/module/features/uiMode/uiMode.types.d.ts.map +1 -0
  75. package/dist/typescript/module/index.d.ts +1 -0
  76. package/dist/typescript/module/index.d.ts.map +1 -1
  77. package/dist/typescript/module/types/answerTypes.d.ts +8 -0
  78. package/dist/typescript/module/types/answerTypes.d.ts.map +1 -0
  79. package/package.json +3 -1
  80. package/src/features/chatbot/helpers.ts +0 -2
  81. package/src/features/chatbot/model/ChatBotModel.ts +0 -1
  82. package/src/features/chatbot/types/api.types.ts +0 -2
  83. package/src/features/chatbot/types/model.types.ts +0 -1
  84. package/src/features/uiMode/getUIMode.ts +28 -0
  85. package/src/features/uiMode/index.ts +2 -0
  86. package/src/features/uiMode/uiMode.constants.ts +7 -0
  87. package/src/features/uiMode/uiMode.helpers.ts +52 -0
  88. package/src/features/uiMode/uiMode.types.ts +46 -0
  89. package/src/index.ts +1 -0
  90. package/src/types/answerTypes.ts +7 -0
  91. package/.claude/settings.local.json +0 -25
  92. package/.editorconfig +0 -15
  93. package/.eslintignore +0 -2
  94. package/.eslintrc +0 -22
  95. package/.gitattributes +0 -3
  96. package/.github/actions/setup/action.yml +0 -37
  97. package/.github/workflows/ci.yml +0 -73
  98. package/.gitignore +0 -84
  99. package/.idea/.gitignore +0 -8
  100. package/.idea/codeStyles/Project.xml +0 -62
  101. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  102. package/.idea/copilot.data.migration.agent.xml +0 -6
  103. package/.idea/copilot.data.migration.ask.xml +0 -6
  104. package/.idea/copilot.data.migration.ask2agent.xml +0 -6
  105. package/.idea/copilot.data.migration.edit.xml +0 -6
  106. package/.idea/inspectionProfiles/Project_Default.xml +0 -8
  107. package/.idea/jsLinters/eslint.xml +0 -6
  108. package/.idea/modules.xml +0 -8
  109. package/.idea/prettier.xml +0 -7
  110. package/.idea/students-features.iml +0 -12
  111. package/.idea/vcs.xml +0 -6
  112. package/.idea/workspace.xml +0 -675
  113. package/.nvmrc +0 -1
  114. package/.prettierrc +0 -11
  115. package/.release-it.json +0 -17
  116. package/.watchmanconfig +0 -1
  117. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
  118. package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +0 -28
  119. package/.yarn/releases/yarn-3.6.1.cjs +0 -874
  120. package/babel.config.js +0 -5
  121. package/bob.config.js +0 -25
  122. package/example/.expo/README.md +0 -8
  123. package/example/.expo/devices.json +0 -3
  124. package/example/.expo/web/cache/production/images/favicon/favicon-24272cdaeff82cc5facdaccd982a6f05b60c4504704bbf94c19a6388659880bb-contain-transparent/favicon-48.png +0 -0
  125. package/example/app.json +0 -30
  126. package/example/assets/adaptive-icon.png +0 -0
  127. package/example/assets/favicon.png +0 -0
  128. package/example/assets/icon.png +0 -0
  129. package/example/assets/splash-icon.png +0 -0
  130. package/example/babel.config.js +0 -28
  131. package/example/index.js +0 -8
  132. package/example/metro.config.js +0 -18
  133. package/example/package.json +0 -25
  134. package/example/src/App.tsx +0 -8
  135. package/example/tsconfig.json +0 -6
  136. package/tsconfig.build.json +0 -4
  137. package/tsconfig.json +0 -34
  138. package/yarn.lock +0 -10984
package/babel.config.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- ['module:react-native-builder-bob/babel-preset', { modules: 'commonjs' }],
4
- ],
5
- };
package/bob.config.js DELETED
@@ -1,25 +0,0 @@
1
- module.exports = {
2
- source: 'src',
3
- output: 'dist',
4
- targets: [
5
- [
6
- 'commonjs',
7
- {
8
- esm: true,
9
- },
10
- ],
11
- [
12
- 'module',
13
- {
14
- esm: true,
15
- },
16
- ],
17
- [
18
- 'typescript',
19
- {
20
- project: 'tsconfig.build.json',
21
- esm: true,
22
- },
23
- ],
24
- ],
25
- }
@@ -1,8 +0,0 @@
1
- > Why do I have a folder named ".expo" in my project?
2
- The ".expo" folder is created when an Expo project is started using "expo start" command.
3
- > What do the files contain?
4
- - "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds.
5
- - "settings.json": contains the server configuration that is used to serve the application manifest.
6
- > Should I commit the ".expo" folder?
7
- No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
8
- Upon project creation, the ".expo" folder is already added to your ".gitignore" file.
@@ -1,3 +0,0 @@
1
- {
2
- "devices": []
3
- }
package/example/app.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "expo": {
3
- "name": "example",
4
- "slug": "example",
5
- "version": "1.0.0",
6
- "orientation": "portrait",
7
- "icon": "./assets/icon.png",
8
- "userInterfaceStyle": "light",
9
- "newArchEnabled": true,
10
- "splash": {
11
- "image": "./assets/splash-icon.png",
12
- "resizeMode": "contain",
13
- "backgroundColor": "#ffffff"
14
- },
15
- "ios": {
16
- "supportsTablet": true,
17
- "bundleIdentifier": "magmamath.features.example"
18
- },
19
- "android": {
20
- "adaptiveIcon": {
21
- "foregroundImage": "./assets/adaptive-icon.png",
22
- "backgroundColor": "#ffffff"
23
- },
24
- "package": "magmamath.features.example"
25
- },
26
- "web": {
27
- "favicon": "./assets/favicon.png"
28
- }
29
- }
30
- }
Binary file
Binary file
Binary file
Binary file
@@ -1,28 +0,0 @@
1
- const path = require('path')
2
- const { getConfig } = require('react-native-builder-bob/babel-config')
3
- const pkg = require('../package.json')
4
-
5
- const root = path.resolve(__dirname, '..')
6
-
7
- module.exports = function (api) {
8
- api.cache(true)
9
-
10
- return getConfig(
11
- {
12
- presets: ['babel-preset-expo'],
13
- plugins: [
14
- [
15
- 'module-resolver',
16
- {
17
- extensions: ['.tsx', '.ts', '.js', '.json'],
18
- alias: {
19
- [pkg.name]: path.join(__dirname, '../', pkg.source),
20
- },
21
- },
22
- ],
23
- ['@babel/plugin-transform-private-methods', { loose: true }],
24
- ],
25
- },
26
- { root, pkg },
27
- )
28
- }
package/example/index.js DELETED
@@ -1,8 +0,0 @@
1
- import { registerRootComponent } from 'expo';
2
-
3
- import App from './src/App';
4
-
5
- // registerRootComponent calls AppRegistry.registerComponent('main', () => App);
6
- // It also ensures that whether you load the app in Expo Go or in a native build,
7
- // the environment is set up appropriately
8
- registerRootComponent(App);
@@ -1,18 +0,0 @@
1
- const path = require('path');
2
- const { getDefaultConfig } = require('@expo/metro-config');
3
- const { getConfig } = require('react-native-builder-bob/metro-config');
4
- const pkg = require('../package.json');
5
-
6
- const root = path.resolve(__dirname, '..');
7
-
8
- /**
9
- * Metro configuration
10
- * https://facebook.github.io/metro/docs/configuration
11
- *
12
- * @type {import('metro-config').MetroConfig}
13
- */
14
- module.exports = getConfig(getDefaultConfig(__dirname), {
15
- root,
16
- pkg,
17
- project: __dirname,
18
- });
@@ -1,25 +0,0 @@
1
- {
2
- "name": "@magmamath/students-features-example",
3
- "version": "1.0.0",
4
- "main": "index.js",
5
- "scripts": {
6
- "start": "expo start",
7
- "android": "expo start --android",
8
- "ios": "expo start --ios",
9
- "web": "expo start --web"
10
- },
11
- "dependencies": {
12
- "@expo/metro-runtime": "~4.0.0",
13
- "expo": "~52.0.11",
14
- "expo-status-bar": "~2.0.0",
15
- "react": "18.3.1",
16
- "react-dom": "18.3.1",
17
- "react-native": "0.76.3",
18
- "react-native-web": "~0.19.13"
19
- },
20
- "devDependencies": {
21
- "@babel/core": "^7.20.0",
22
- "react-native-builder-bob": "^0.33.3"
23
- },
24
- "private": true
25
- }
@@ -1,8 +0,0 @@
1
- import React from 'react'
2
- import { Text } from 'react-native'
3
-
4
- const App = () => {
5
- return <Text>Hello</Text>
6
- }
7
-
8
- export default App
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "../tsconfig",
3
- "compilerOptions": {
4
- // Avoid expo-cli auto-generating a tsconfig
5
- }
6
- }
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "./tsconfig",
3
- "exclude": ["example", "dist"]
4
- }
package/tsconfig.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "paths": {
4
- "@magmamath/students-features": ["./src/index"]
5
- },
6
- "target": "esnext",
7
- "baseUrl": "./",
8
- "lib": [
9
- "dom",
10
- "dom.iterable",
11
- "esnext"
12
- ],
13
- "declaration": true,
14
- "allowJs": true,
15
- "skipLibCheck": true,
16
- "esModuleInterop": true,
17
- "allowSyntheticDefaultImports": true,
18
- "strict": true,
19
- "forceConsistentCasingInFileNames": true,
20
- "module": "esnext",
21
- "moduleResolution": "node",
22
- "resolveJsonModule": true,
23
- "isolatedModules": true,
24
- "jsx": "react",
25
- "experimentalDecorators": true
26
- },
27
- "include": [
28
- "src"
29
- ],
30
- "exclude": [
31
- "node_modules",
32
- "example"
33
- ]
34
- }