@pie-element/ebsr 13.0.0-beta.0 → 13.0.0-next.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 (92) hide show
  1. package/CHANGELOG.md +0 -11
  2. package/configure/CHANGELOG.md +0 -11
  3. package/configure/lib/defaults.js +9 -4
  4. package/configure/lib/defaults.js.map +1 -1
  5. package/configure/lib/index.js +6 -6
  6. package/configure/lib/index.js.map +1 -1
  7. package/configure/package.json +7 -7
  8. package/configure/src/defaults.js +3 -1
  9. package/configure/src/index.js +2 -2
  10. package/controller/CHANGELOG.md +0 -11
  11. package/controller/lib/index.js +6 -7
  12. package/controller/lib/index.js.map +1 -1
  13. package/controller/lib/utils.js +2 -3
  14. package/controller/lib/utils.js.map +1 -1
  15. package/controller/package.json +4 -4
  16. package/controller/src/index.js +1 -2
  17. package/controller/src/utils.js +1 -1
  18. package/lib/index.js +3 -3
  19. package/lib/index.js.map +1 -1
  20. package/lib/print.js +8 -9
  21. package/lib/print.js.map +1 -1
  22. package/module/configure.js +1 -0
  23. package/module/controller.js +5574 -0
  24. package/module/demo.js +77 -0
  25. package/module/element.js +1 -0
  26. package/module/index.html +21 -0
  27. package/module/manifest.json +14 -0
  28. package/module/print-demo.js +115 -0
  29. package/module/print.html +18 -0
  30. package/module/print.js +1 -0
  31. package/package.json +10 -6
  32. package/src/index.js +1 -1
  33. package/src/print.js +9 -10
  34. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +0 -1972
  35. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +0 -4213
  36. package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +0 -35
  37. package/configure/node_modules/@pie-element/multiple-choice/README.md +0 -56
  38. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  39. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +0 -1387
  40. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +0 -3351
  41. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/__tests__/root.test.js +0 -248
  42. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +0 -200
  43. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +0 -1
  44. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +0 -211
  45. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +0 -1
  46. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +0 -477
  47. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +0 -1
  48. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +0 -18
  49. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +0 -1
  50. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +0 -22
  51. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +0 -527
  52. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +0 -2316
  53. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/__tests__/index.test.js +0 -520
  54. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/__tests__/utils.test.js +0 -8
  55. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +0 -33
  56. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +0 -1
  57. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +0 -251
  58. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +0 -1
  59. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +0 -16
  60. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +0 -1
  61. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +0 -15
  62. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +0 -2993
  63. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +0 -2217
  64. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +0 -8
  65. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +0 -61
  66. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +0 -1
  67. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/pie.manifest.json +0 -11
  68. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +0 -7
  69. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +0 -1332
  70. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +0 -1015
  71. package/configure/node_modules/@pie-element/multiple-choice/lib/__tests__/choice-input-test.js +0 -117
  72. package/configure/node_modules/@pie-element/multiple-choice/lib/__tests__/index-test.js +0 -151
  73. package/configure/node_modules/@pie-element/multiple-choice/lib/__tests__/key-events-test.js +0 -95
  74. package/configure/node_modules/@pie-element/multiple-choice/lib/__tests__/multiple-choice-test.js +0 -223
  75. package/configure/node_modules/@pie-element/multiple-choice/lib/__tests__/session-updater-test.js +0 -70
  76. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +0 -370
  77. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +0 -1
  78. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +0 -197
  79. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +0 -1
  80. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +0 -130
  81. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +0 -1
  82. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +0 -292
  83. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +0 -1
  84. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +0 -54
  85. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +0 -1
  86. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +0 -386
  87. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +0 -1
  88. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +0 -92
  89. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +0 -1
  90. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +0 -37
  91. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +0 -1
  92. package/configure/node_modules/@pie-element/multiple-choice/package.json +0 -39
@@ -1,35 +0,0 @@
1
- # print how to
2
-
3
- Brief guide on how to build pie-element print modules. Each element can have their own print module. It needs to be defined in the package.json `exports` map.
4
-
5
-
6
- These modules will be published as part of the npm package.
7
-
8
- We will then have a new element that 3rd parties can use to load up these elements:
9
-
10
- ```html
11
- <pie-print config={} options={}></pie-print>
12
- ```
13
-
14
- This is being developed in another repo: https://github.com/key-data-systems/pie-print-support
15
-
16
-
17
-
18
- ## how to run a single element that will recompile when there are changes (no HMR):
19
-
20
- `yarn pslb serve --config pslb/pslb.config.js --package @pie-element/multiple-choice --logLevel info`
21
-
22
- Then go to:
23
-
24
- http://localhost:7752/multiple-choice/module/index.html
25
-
26
-
27
- ## how to build
28
-
29
- You prob won't need this but for your edification:
30
-
31
- `yarn pslb --config pslb/pslb.config.js --package @pie-element/multiple-choice --logLevel info`
32
-
33
-
34
-
35
-
@@ -1,56 +0,0 @@
1
- # @pie-element/multiple-choice
2
-
3
-
4
- A [pie][pie]choice component.
5
-
6
- ![choice.png](choice.png)
7
-
8
- ## Usage
9
-
10
- To use this pie, you need to configure it within an Assessment Item. This means that you'll need to add it to the `index.html` and `config.json` files.
11
-
12
- ```html
13
- <multiple-choice pie-id="1"></multiple-choice>
14
- ```
15
-
16
- ```javascript
17
- {
18
- elements: {
19
- 'multiple-choice': '@pie-element/multiple-choice@^1.0.0'
20
- },
21
- models: [
22
- {
23
- id : "1",
24
- element: 'multiple-choice',
25
- prompt : "1 + 1 equals?",
26
- // more configuration...
27
- }
28
- ]
29
- ```
30
-
31
- ### Pie Demo
32
- There is a demo in `docs/demo` that you can run to see an example of it's usage.
33
-
34
- To preview it in that context you'll need the [pie][pie] tool.
35
-
36
- ```shell
37
- npm install -g pie
38
- cd multiple-choice/docs/demo
39
- pie serve #will build and serve the pie... then go to http://localhost:4000
40
- ```
41
-
42
- ## Test
43
-
44
- ```shell
45
- npm test # run client and controller tests
46
- npm run client-test # run client tests
47
- npm run controller-test # run controller tests
48
- ```
49
- ## Release
50
-
51
- ```shell
52
- gulp release
53
- git checkout master
54
- npm publish
55
- ```
56
- [pie]: http://npmjs.org/package/pie