@lightningjs/blits 1.2.0 → 1.3.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.
- package/CHANGELOG.md +16 -0
- package/NOTICE +9 -0
- package/docs/built-in/directives.md +4 -6
- package/docs/built-in/for-loop.md +6 -8
- package/docs/components/component_state.md +3 -5
- package/docs/components/computed_properties.md +3 -5
- package/docs/components/lifecycle_events.md +2 -4
- package/docs/components/methods.md +1 -3
- package/docs/components/props.md +3 -5
- package/docs/components/user_input.md +6 -8
- package/docs/components/utilities.md +1 -2
- package/docs/components/watchers.md +2 -4
- package/docs/essentials/application_root.md +1 -3
- package/docs/essentials/components.md +2 -4
- package/docs/essentials/displaying_images.md +4 -6
- package/docs/essentials/displaying_text.md +4 -6
- package/docs/essentials/element_attributes.md +10 -12
- package/docs/essentials/template_syntax.md +5 -7
- package/docs/getting_started/file_structure.md +9 -11
- package/docs/getting_started/getting_started.md +5 -7
- package/docs/plugins/language.md +8 -10
- package/docs/plugins/text-to-speech-announcer.md +2 -4
- package/docs/transitions_animations/transitions.md +5 -7
- package/package.json +1 -1
- package/src/component/base/index.js +2 -3
- package/src/component/base/methods.js +1 -2
- package/src/component/setup/state.js +9 -13
- package/src/component.js +12 -17
- package/src/components/FPScounter.js +56 -12
- package/src/engines/L3/element.js +55 -65
- package/src/lib/codegenerator/generator.js +91 -24
- package/src/lib/codegenerator/generator.test.js +132 -0
- package/src/lib/colors/colors.js +6 -7
- package/src/lib/reactivity/reactive.js +3 -5
- package/src/lib/symbols.js +1 -1
- package/src/lib/templateparser/parser.js +1 -1
- package/src/plugin.js +6 -1
- package/src/{component/base → plugins}/log.js +4 -6
package/src/plugin.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import log from './plugins/log'
|
|
2
|
+
|
|
3
|
+
export const plugins = {
|
|
4
|
+
// log plugin added by default
|
|
5
|
+
log,
|
|
6
|
+
}
|
|
2
7
|
|
|
3
8
|
const registerPlugin = (plugin, nameOrOptions = '', options = {}) => {
|
|
4
9
|
// map name and options depending on the arguments provided
|
|
@@ -15,13 +15,11 @@
|
|
|
15
15
|
* SPDX-License-Identifier: Apache-2.0
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import log from '
|
|
18
|
+
import { default as log } from '../lib/log'
|
|
19
19
|
|
|
20
20
|
export default {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: false,
|
|
21
|
+
name: 'log',
|
|
22
|
+
plugin() {
|
|
23
|
+
return log('App')
|
|
26
24
|
},
|
|
27
25
|
}
|