@magmamath/students-features 1.3.0 → 1.3.1-rc.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/.editorconfig +15 -0
- package/.eslintignore +2 -0
- package/.eslintrc +22 -0
- package/.gitattributes +3 -0
- package/.github/actions/setup/action.yml +37 -0
- package/.github/workflows/ci.yml +73 -0
- package/.gitignore +84 -0
- package/.nvmrc +1 -0
- package/.prettierrc +11 -0
- package/.release-it.json +17 -0
- package/.watchmanconfig +1 -0
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
- package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +28 -0
- package/.yarn/releases/yarn-3.6.1.cjs +874 -0
- package/babel.config.js +5 -0
- package/bob.config.js +25 -0
- package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js +3 -1
- package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -1
- package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js +3 -1
- package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -1
- package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts +2 -1
- package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -1
- package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts +2 -1
- package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -1
- package/example/app.json +30 -0
- package/example/assets/adaptive-icon.png +0 -0
- package/example/assets/favicon.png +0 -0
- package/example/assets/icon.png +0 -0
- package/example/assets/splash-icon.png +0 -0
- package/example/babel.config.js +28 -0
- package/example/index.js +8 -0
- package/example/metro.config.js +18 -0
- package/example/package.json +25 -0
- package/example/src/App.tsx +8 -0
- package/example/tsconfig.json +6 -0
- package/package.json +2 -2
- package/src/features/openEnded/components/OpenEndedScoreLabel.tsx +3 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +34 -0
- package/yarn.lock +10957 -0
package/.editorconfig
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# EditorConfig helps developers define and maintain consistent
|
|
2
|
+
# coding styles between different editors and IDEs
|
|
3
|
+
# editorconfig.org
|
|
4
|
+
|
|
5
|
+
root = true
|
|
6
|
+
|
|
7
|
+
[*]
|
|
8
|
+
|
|
9
|
+
indent_style = space
|
|
10
|
+
indent_size = 2
|
|
11
|
+
|
|
12
|
+
end_of_line = lf
|
|
13
|
+
charset = utf-8
|
|
14
|
+
trim_trailing_whitespace = true
|
|
15
|
+
insert_final_newline = true
|
package/.eslintignore
ADDED
package/.eslintrc
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"browser": true,
|
|
4
|
+
"es2020": true
|
|
5
|
+
},
|
|
6
|
+
"extends": [
|
|
7
|
+
"eslint:recommended",
|
|
8
|
+
"plugin:@typescript-eslint/recommended",
|
|
9
|
+
"plugin:react-hooks/recommended",
|
|
10
|
+
"plugin:storybook/recommended",
|
|
11
|
+
"prettier"
|
|
12
|
+
],
|
|
13
|
+
"parser": "@typescript-eslint/parser",
|
|
14
|
+
"parserOptions": {
|
|
15
|
+
"ecmaVersion": "latest",
|
|
16
|
+
"sourceType": "module"
|
|
17
|
+
},
|
|
18
|
+
"plugins": ["react-refresh"],
|
|
19
|
+
"rules": {
|
|
20
|
+
"react-refresh/only-export-components": "warn"
|
|
21
|
+
}
|
|
22
|
+
}
|
package/.gitattributes
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Setup
|
|
2
|
+
description: Setup Node.js and install dependencies
|
|
3
|
+
|
|
4
|
+
inputs:
|
|
5
|
+
npmrc-auth-token:
|
|
6
|
+
required: true
|
|
7
|
+
|
|
8
|
+
runs:
|
|
9
|
+
using: composite
|
|
10
|
+
steps:
|
|
11
|
+
- name: Setup Node.js
|
|
12
|
+
uses: actions/setup-node@v3
|
|
13
|
+
with:
|
|
14
|
+
node-version-file: .nvmrc
|
|
15
|
+
|
|
16
|
+
- name: Create .npmrc
|
|
17
|
+
shell: bash
|
|
18
|
+
run: |
|
|
19
|
+
echo "registry=https://registry.npmjs.org" > .npmrc
|
|
20
|
+
echo "//registry.npmjs.org/:_authToken=${{ inputs.npmrc-auth-token }}" >> .npmrc
|
|
21
|
+
|
|
22
|
+
- name: Cache dependencies
|
|
23
|
+
id: yarn-cache
|
|
24
|
+
uses: actions/cache@v3
|
|
25
|
+
with:
|
|
26
|
+
path: |
|
|
27
|
+
**/node_modules
|
|
28
|
+
.yarn/install-state.gz
|
|
29
|
+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
|
|
30
|
+
restore-keys: |
|
|
31
|
+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
|
|
32
|
+
${{ runner.os }}-yarn-
|
|
33
|
+
|
|
34
|
+
- name: Install dependencies
|
|
35
|
+
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
|
36
|
+
run: yarn install --immutable
|
|
37
|
+
shell: bash
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
merge_group:
|
|
11
|
+
types:
|
|
12
|
+
- checks_requested
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
lint:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: actions/checkout@v3
|
|
20
|
+
|
|
21
|
+
- name: Setup
|
|
22
|
+
uses: ./.github/actions/setup
|
|
23
|
+
with:
|
|
24
|
+
npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
|
|
25
|
+
|
|
26
|
+
- name: Lint files
|
|
27
|
+
run: yarn lint
|
|
28
|
+
|
|
29
|
+
- name: Typecheck files
|
|
30
|
+
run: yarn typecheck
|
|
31
|
+
|
|
32
|
+
test:
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
steps:
|
|
35
|
+
- name: Checkout
|
|
36
|
+
uses: actions/checkout@v3
|
|
37
|
+
|
|
38
|
+
- name: Setup
|
|
39
|
+
uses: ./.github/actions/setup
|
|
40
|
+
with:
|
|
41
|
+
npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
|
|
42
|
+
|
|
43
|
+
- name: Run unit tests
|
|
44
|
+
run: yarn test --maxWorkers=2 --coverage
|
|
45
|
+
|
|
46
|
+
build-library:
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
|
+
steps:
|
|
49
|
+
- name: Checkout
|
|
50
|
+
uses: actions/checkout@v3
|
|
51
|
+
|
|
52
|
+
- name: Setup
|
|
53
|
+
uses: ./.github/actions/setup
|
|
54
|
+
with:
|
|
55
|
+
npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
|
|
56
|
+
|
|
57
|
+
- name: Build package
|
|
58
|
+
run: yarn prepare
|
|
59
|
+
|
|
60
|
+
build-web:
|
|
61
|
+
runs-on: ubuntu-latest
|
|
62
|
+
steps:
|
|
63
|
+
- name: Checkout
|
|
64
|
+
uses: actions/checkout@v3
|
|
65
|
+
|
|
66
|
+
- name: Setup
|
|
67
|
+
uses: ./.github/actions/setup
|
|
68
|
+
with:
|
|
69
|
+
npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
|
|
70
|
+
|
|
71
|
+
- name: Build example for Web
|
|
72
|
+
run: |
|
|
73
|
+
yarn example expo export --platform web
|
package/.gitignore
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# OSX
|
|
2
|
+
#
|
|
3
|
+
.DS_Store
|
|
4
|
+
|
|
5
|
+
# XDE
|
|
6
|
+
.expo/
|
|
7
|
+
|
|
8
|
+
# VSCode
|
|
9
|
+
.vscode/
|
|
10
|
+
jsconfig.json
|
|
11
|
+
|
|
12
|
+
# Xcode
|
|
13
|
+
#
|
|
14
|
+
build/
|
|
15
|
+
*.pbxuser
|
|
16
|
+
!default.pbxuser
|
|
17
|
+
*.mode1v3
|
|
18
|
+
!default.mode1v3
|
|
19
|
+
*.mode2v3
|
|
20
|
+
!default.mode2v3
|
|
21
|
+
*.perspectivev3
|
|
22
|
+
!default.perspectivev3
|
|
23
|
+
xcuserdata
|
|
24
|
+
*.xccheckout
|
|
25
|
+
*.moved-aside
|
|
26
|
+
DerivedData
|
|
27
|
+
*.hmap
|
|
28
|
+
*.ipa
|
|
29
|
+
*.xcuserstate
|
|
30
|
+
project.xcworkspace
|
|
31
|
+
|
|
32
|
+
# Android/IJ
|
|
33
|
+
#
|
|
34
|
+
.classpath
|
|
35
|
+
.cxx
|
|
36
|
+
.gradle
|
|
37
|
+
.idea
|
|
38
|
+
.project
|
|
39
|
+
.settings
|
|
40
|
+
local.properties
|
|
41
|
+
android.iml
|
|
42
|
+
|
|
43
|
+
# Cocoapods
|
|
44
|
+
#
|
|
45
|
+
example/ios/Pods
|
|
46
|
+
|
|
47
|
+
# Ruby
|
|
48
|
+
example/vendor/
|
|
49
|
+
|
|
50
|
+
# node.js
|
|
51
|
+
#
|
|
52
|
+
node_modules/
|
|
53
|
+
npm-debug.log
|
|
54
|
+
yarn-debug.log
|
|
55
|
+
yarn-error.log
|
|
56
|
+
|
|
57
|
+
# BUCK
|
|
58
|
+
buck-out/
|
|
59
|
+
\.buckd/
|
|
60
|
+
android/app/libs
|
|
61
|
+
android/keystores/debug.keystore
|
|
62
|
+
|
|
63
|
+
# Yarn
|
|
64
|
+
.yarn/*
|
|
65
|
+
!.yarn/patches
|
|
66
|
+
!.yarn/plugins
|
|
67
|
+
!.yarn/releases
|
|
68
|
+
!.yarn/sdks
|
|
69
|
+
!.yarn/versions
|
|
70
|
+
|
|
71
|
+
# Expo
|
|
72
|
+
.expo/
|
|
73
|
+
|
|
74
|
+
# Turborepo
|
|
75
|
+
.turbo/
|
|
76
|
+
|
|
77
|
+
# generated by bob
|
|
78
|
+
dist/
|
|
79
|
+
!src/lib/
|
|
80
|
+
|
|
81
|
+
# React Native Codegen
|
|
82
|
+
ios/generated
|
|
83
|
+
android/generated
|
|
84
|
+
.npmrc
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v18
|
package/.prettierrc
ADDED
package/.release-it.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"git": {
|
|
3
|
+
"commitMessage": "chore: release ${version}",
|
|
4
|
+
"tagName": "v${version}"
|
|
5
|
+
},
|
|
6
|
+
"npm": {
|
|
7
|
+
"publish": true
|
|
8
|
+
},
|
|
9
|
+
"github": {
|
|
10
|
+
"release": true
|
|
11
|
+
},
|
|
12
|
+
"plugins": {
|
|
13
|
+
"@release-it/conventional-changelog": {
|
|
14
|
+
"preset": "angular"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/.watchmanconfig
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|