steel-frame 7.0.2 → 7.0.4
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/build/babel-plugin/css-transformer.js +4 -1
- package/build/babel-plugin/lib.js +9 -1
- package/package.json +1 -1
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -7
- package/.idea/steel-frame.iml +0 -13
- package/.idea/vcs.xml +0 -6
- package/.prettierignore +0 -1
- package/.prettierrc +0 -21
- package/coverage/lcov-report/abort.ts.html +0 -580
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/call.ts.html +0 -829
- package/coverage/lcov-report/css-transformer.ts.html +0 -1180
- package/coverage/lcov-report/expression.ts.html +0 -2347
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/field-reference.ts.html +0 -550
- package/coverage/lcov-report/index.html +0 -356
- package/coverage/lcov-report/index.ts.html +0 -286
- package/coverage/lcov-report/internal.ts.html +0 -946
- package/coverage/lcov-report/jsx-detect.ts.html +0 -127
- package/coverage/lcov-report/jsx.ts.html +0 -3550
- package/coverage/lcov-report/lib.ts.html +0 -1381
- package/coverage/lcov-report/mesh.ts.html +0 -5860
- package/coverage/lcov-report/operators.ts.html +0 -322
- package/coverage/lcov-report/order-check.ts.html +0 -805
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/process-types.ts.html +0 -475
- package/coverage/lcov-report/router.ts.html +0 -292
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -210
- package/coverage/lcov-report/transformer.ts.html +0 -1951
- package/coverage/lcov-report/utils.ts.html +0 -139
- package/coverage/lcov.info +0 -5277
- package/jest.config.js +0 -18
- package/src/babel-plugin/abort.ts +0 -165
- package/src/babel-plugin/call.ts +0 -248
- package/src/babel-plugin/communication.ts +0 -13
- package/src/babel-plugin/css-transformer.ts +0 -365
- package/src/babel-plugin/expression.ts +0 -754
- package/src/babel-plugin/field-reference.ts +0 -155
- package/src/babel-plugin/index.ts +0 -67
- package/src/babel-plugin/internal.ts +0 -287
- package/src/babel-plugin/jsx-detect.ts +0 -14
- package/src/babel-plugin/jsx.ts +0 -1155
- package/src/babel-plugin/lib.ts +0 -432
- package/src/babel-plugin/mesh.ts +0 -1925
- package/src/babel-plugin/operators.ts +0 -79
- package/src/babel-plugin/order-check.ts +0 -240
- package/src/babel-plugin/process-types.ts +0 -130
- package/src/babel-plugin/router.ts +0 -69
- package/src/babel-plugin/transformer.ts +0 -622
- package/src/babel-plugin/utils.ts +0 -18
- package/src/cli/app-index/create-index.ts +0 -28
- package/src/cli/app-index/create-ssg-index.ts +0 -23
- package/src/cli/app-index/find-routes.ts +0 -63
- package/src/cli/lib/compile-lib.ts +0 -169
- package/src/cli/lib/fs.ts +0 -17
- package/src/cli/lib/process-args.ts +0 -99
- package/src/cli/lib/resolve.ts +0 -22
- package/src/cli/lib/watch-folder.ts +0 -22
- package/src/cli/lib/working-dirs.ts +0 -10
- package/src/cli/node-hooks/index.doc.vasille.js +0 -6
- package/src/cli/node-hooks/index.md.vasille.js +0 -6
- package/src/cli/node-hooks/index.vasille.js +0 -30
- package/src/cli/node-hooks/jsx.vasille.js +0 -80
- package/src/cli/proxy/dev-proxy.ts +0 -30
- package/src/cli/run.ts +0 -230
- package/src/cli/sf.ts +0 -2
- package/src/cli/vite-plugins/compress.ts +0 -16
- package/src/cli/vite-plugins/index.vasille.ts +0 -54
- package/src/cli/vite-plugins/jsx.ts +0 -33
- package/src/cli/vite-plugins/vasille-web.ts +0 -18
- package/src/export/index.ts +0 -483
- package/src/export/jsx-runtime.ts +0 -1
- package/test/bridge/array-item-set.js +0 -3
- package/test/bridge/array-item-set.ts +0 -4
- package/test/bridge/bind.js +0 -8
- package/test/bridge/bind.ts +0 -9
- package/test/bridge/bridge.test.ts +0 -74
- package/test/bridge/err-before-mount-arg.ts +0 -6
- package/test/bridge/err-bind-in-object.ts +0 -10
- package/test/bridge/err-field-renaming-2.ts +0 -5
- package/test/bridge/err-field-renaming.ts +0 -7
- package/test/bridge/err-non-reactive-module-var.ts +0 -1
- package/test/bridge/err-prop-not-reactive.ts +0 -3
- package/test/bridge/err-raw-no-args.ts +0 -4
- package/test/bridge/err-router-in-store-1.ts +0 -7
- package/test/bridge/err-router-in-store-2.ts +0 -9
- package/test/bridge/err-router-in-store-3.ts +0 -12
- package/test/bridge/err-router.ts +0 -5
- package/test/bridge/global-import.js +0 -13
- package/test/bridge/global-import.ts +0 -16
- package/test/bridge/module-level-reactivity.js +0 -11
- package/test/bridge/module-level-reactivity.ts +0 -18
- package/test/bridge/object-property-match.js +0 -5
- package/test/bridge/object-property-match.ts +0 -6
- package/test/bridge/router.js +0 -13
- package/test/bridge/router.ts +0 -17
- package/test/build/build.test.ts +0 -22
- package/test/build/ssg-no-extra-tags.js +0 -4
- package/test/build/ssg-no-extra-tags.tsx +0 -9
- package/test/build/ssg.js +0 -14
- package/test/build/ssg.tsx +0 -9
- package/test/call/call.test.ts +0 -26
- package/test/call/constant.js +0 -7
- package/test/call/constant.ts +0 -7
- package/test/call/css.js +0 -7
- package/test/call/css.ts +0 -11
- package/test/call/err-awaited-not-arr.ts +0 -5
- package/test/call/require-context.js +0 -9
- package/test/call/require-context.ts +0 -13
- package/test/call/string-literal.js +0 -7
- package/test/call/string-literal.ts +0 -6
- package/test/compose/component.js +0 -19
- package/test/compose/component.ts +0 -22
- package/test/compose/compose.js +0 -18
- package/test/compose/compose.test.ts +0 -38
- package/test/compose/compose.ts +0 -21
- package/test/compose/modal.js +0 -9
- package/test/compose/modal.ts +0 -13
- package/test/compose/model.js +0 -22
- package/test/compose/model.ts +0 -21
- package/test/compose/prompt.js +0 -20
- package/test/compose/prompt.ts +0 -25
- package/test/compose/screen.js +0 -15
- package/test/compose/screen.ts +0 -13
- package/test/compose/store.js +0 -8
- package/test/compose/store.ts +0 -9
- package/test/compose/view.js +0 -34
- package/test/compose/view.ts +0 -39
- package/test/css/autoremove-key.js +0 -11
- package/test/css/autoremove-key.tsx +0 -12
- package/test/css/computed-key.js +0 -9
- package/test/css/computed-key.ts +0 -12
- package/test/css/css.test.ts +0 -82
- package/test/css/err-arg-not-object.ts +0 -4
- package/test/css/err-arg-wrong-key.ts +0 -6
- package/test/css/err-arg-wrong-object.ts +0 -6
- package/test/css/err-arg-wrong-value.ts +0 -10
- package/test/css/err-array-spread-element.ts +0 -11
- package/test/css/err-incompatible-key.ts +0 -13
- package/test/css/err-media-not-object.ts +0 -12
- package/test/css/err-nested-media-queries.ts +0 -13
- package/test/css/err-nested-pseudos.ts +0 -13
- package/test/css/err-no-args.ts +0 -4
- package/test/css/err-object-method.ts +0 -11
- package/test/css/err-object-spread-element.ts +0 -12
- package/test/css/err-pseudo-not-object.ts +0 -12
- package/test/css/err-theme-not-string.ts +0 -11
- package/test/css/err-wrong-array-value.ts +0 -12
- package/test/css/err-wrong-value.ts +0 -12
- package/test/css/style.js +0 -13
- package/test/css/style.ts +0 -61
- package/test/dev/array-model.js +0 -5
- package/test/dev/array-model.ts +0 -5
- package/test/dev/awaited-2.js +0 -7
- package/test/dev/awaited-2.ts +0 -7
- package/test/dev/awaited.js +0 -7
- package/test/dev/awaited.ts +0 -7
- package/test/dev/bind-2.js +0 -6
- package/test/dev/bind-2.ts +0 -6
- package/test/dev/bind.js +0 -6
- package/test/dev/bind.ts +0 -6
- package/test/dev/calculate.js +0 -8
- package/test/dev/calculate.ts +0 -8
- package/test/dev/child.js +0 -16
- package/test/dev/child.tsx +0 -11
- package/test/dev/component.js +0 -5
- package/test/dev/component.ts +0 -5
- package/test/dev/custom-model.js +0 -6
- package/test/dev/custom-model.ts +0 -7
- package/test/dev/dev.test.ts +0 -106
- package/test/dev/ensure.js +0 -9
- package/test/dev/ensure.ts +0 -7
- package/test/dev/function-wrap.js +0 -59
- package/test/dev/function-wrap.ts +0 -43
- package/test/dev/map-model.js +0 -5
- package/test/dev/map-model.ts +0 -5
- package/test/dev/match.js +0 -11
- package/test/dev/module-level-reactivity.js +0 -6
- package/test/dev/module-level-reactivity.ts +0 -7
- package/test/dev/object.js +0 -8
- package/test/dev/object.ts +0 -8
- package/test/dev/page.js +0 -5
- package/test/dev/page.ts +0 -5
- package/test/dev/prompt.js +0 -13
- package/test/dev/prompt.tsx +0 -7
- package/test/dev/ref-no-args.js +0 -5
- package/test/dev/ref-no-args.ts +0 -5
- package/test/dev/ref.js +0 -5
- package/test/dev/ref.ts +0 -5
- package/test/dev/safe.js +0 -36
- package/test/dev/safe.tsx +0 -19
- package/test/dev/set-model.js +0 -5
- package/test/dev/set-model.ts +0 -5
- package/test/dev/set-value.js +0 -8
- package/test/dev/set-value.ts +0 -9
- package/test/dev/tag.js +0 -7
- package/test/dev/tag.tsx +0 -5
- package/test/dev/text-2.js +0 -6
- package/test/dev/text-2.tsx +0 -7
- package/test/dev/text.js +0 -5
- package/test/dev/text.tsx +0 -5
- package/test/dev/value-assignment.js +0 -30
- package/test/dev/value-assignment.ts +0 -24
- package/test/expression/check-expression.js +0 -58
- package/test/expression/check-expression.ts +0 -58
- package/test/expression/check-node.js +0 -12
- package/test/expression/check-node.ts +0 -10
- package/test/expression/check-statement.js +0 -45
- package/test/expression/check-statement.ts +0 -55
- package/test/expression/deep-reactive-object.js +0 -15
- package/test/expression/deep-reactive-object.ts +0 -16
- package/test/expression/dependency.js +0 -7
- package/test/expression/dependency.ts +0 -9
- package/test/expression/err-function-name.ts +0 -11
- package/test/expression/err-jsx-element.tsx +0 -9
- package/test/expression/err-jsx-fragment.tsx +0 -9
- package/test/expression/err-local-observable.ts +0 -12
- package/test/expression/err-nested-observable-in-object.ts +0 -6
- package/test/expression/err-nested-observable.ts +0 -11
- package/test/expression/err-nested-reactivity-2.ts +0 -7
- package/test/expression/err-nested-reactivity.ts +0 -11
- package/test/expression/err-restricted-hint.ts +0 -9
- package/test/expression/expression.test.ts +0 -74
- package/test/expression/mesh-lvalue.js +0 -21
- package/test/expression/mesh-lvalue.ts +0 -22
- package/test/expression/reactive-field-set.js +0 -23
- package/test/expression/reactive-field-set.ts +0 -28
- package/test/expression/stringify.js +0 -15
- package/test/expression/stringify.ts +0 -17
- package/test/extras/SlotTest.js +0 -75
- package/test/extras/SlotTest.tsx +0 -65
- package/test/extras/calculate.js +0 -25
- package/test/extras/calculate.tsx +0 -22
- package/test/extras/err.tsx +0 -23
- package/test/extras/extras.test.ts +0 -68
- package/test/extras/function-assigment-pattern.js +0 -15
- package/test/extras/function-assigment-pattern.ts +0 -11
- package/test/extras/set-model.js +0 -29
- package/test/extras/set-model.tsx +0 -26
- package/test/import/err-override-by-fn-expr.ts +0 -10
- package/test/import/global.js +0 -7
- package/test/import/global.ts +0 -6
- package/test/import/import.test.ts +0 -34
- package/test/import/override-by-function.js +0 -9
- package/test/import/override-by-function.ts +0 -10
- package/test/import/override-by-let.js +0 -6
- package/test/import/override-by-let.ts +0 -8
- package/test/import/override-global.js +0 -9
- package/test/import/override-global.ts +0 -10
- package/test/import/selective.js +0 -7
- package/test/import/selective.ts +0 -6
- package/test/jsx/attr.js +0 -13
- package/test/jsx/attr.tsx +0 -8
- package/test/jsx/bind.js +0 -41
- package/test/jsx/bind.tsx +0 -15
- package/test/jsx/callback.js +0 -9
- package/test/jsx/callback.tsx +0 -11
- package/test/jsx/children.js +0 -11
- package/test/jsx/children.tsx +0 -11
- package/test/jsx/class.js +0 -50
- package/test/jsx/class.tsx +0 -21
- package/test/jsx/conditional-binary.js +0 -16
- package/test/jsx/conditional-binary.tsx +0 -10
- package/test/jsx/conditional-mixed.js +0 -40
- package/test/jsx/conditional-mixed.tsx +0 -19
- package/test/jsx/conditional-ternary.js +0 -18
- package/test/jsx/conditional-ternary.tsx +0 -10
- package/test/jsx/conditions.js +0 -80
- package/test/jsx/conditions.tsx +0 -40
- package/test/jsx/default-prop.js +0 -8
- package/test/jsx/default-prop.tsx +0 -7
- package/test/jsx/err-conditions-else-if.tsx +0 -5
- package/test/jsx/err-conditions-else.tsx +0 -5
- package/test/jsx/err-conditions-spread.tsx +0 -5
- package/test/jsx/err-expected-event-handler.tsx +0 -6
- package/test/jsx/err-method-style-object.tsx +0 -6
- package/test/jsx/err-namespace-props.tsx +0 -10
- package/test/jsx/err-namespaced-name.tsx +0 -6
- package/test/jsx/err-spread-child.tsx +0 -5
- package/test/jsx/err-tag-spread-attr.tsx +0 -5
- package/test/jsx/err-wrong-namespace.tsx +0 -6
- package/test/jsx/events.js +0 -16
- package/test/jsx/events.tsx +0 -17
- package/test/jsx/fragment.js +0 -9
- package/test/jsx/fragment.tsx +0 -15
- package/test/jsx/jsx.test.ts +0 -120
- package/test/jsx/loop.js +0 -19
- package/test/jsx/loop.tsx +0 -21
- package/test/jsx/nested-slots.js +0 -39
- package/test/jsx/nested-slots.tsx +0 -36
- package/test/jsx/nested.js +0 -42
- package/test/jsx/nested.tsx +0 -35
- package/test/jsx/style.js +0 -36
- package/test/jsx/style.tsx +0 -20
- package/test/jsx-detect/has-jsx.js +0 -30
- package/test/jsx-detect/has-jsx.tsx +0 -26
- package/test/jsx-detect/jsx-detect.test.ts +0 -14
- package/test/jsx-detect/release-mode.js +0 -14
- package/test/jsx-detect/release-mode.tsx +0 -18
- package/test/lib/FileStructure.js +0 -7
- package/test/lib/FileStructure.ts +0 -21
- package/test/lib/err-arg-not-func.ts +0 -6
- package/test/lib/err-file-structure-class.ts +0 -11
- package/test/lib/err-file-structure-helper-before-export.ts +0 -5
- package/test/lib/err-file-structure-import-after.ts +0 -5
- package/test/lib/err-file-structure-stylesheet-not-last.ts +0 -7
- package/test/lib/err-incorrect-args-number.ts +0 -6
- package/test/lib/err-incorrect-props-number.ts +0 -8
- package/test/lib/err-malformed-component.ts +0 -7
- package/test/lib/lib.test.ts +0 -42
- package/test/mesh/class.js +0 -48
- package/test/mesh/class.ts +0 -55
- package/test/mesh/compose.js +0 -51
- package/test/mesh/compose.tsx +0 -35
- package/test/mesh/default-class.js +0 -8
- package/test/mesh/default-class.ts +0 -10
- package/test/mesh/default-expr.js +0 -2
- package/test/mesh/default-expr.ts +0 -3
- package/test/mesh/default-fn.js +0 -4
- package/test/mesh/default-fn.ts +0 -5
- package/test/mesh/double-mesh-bug.js +0 -17
- package/test/mesh/double-mesh-bug.tsx +0 -17
- package/test/mesh/err-array-model-const.ts +0 -5
- package/test/mesh/err-calculate-call.ts +0 -6
- package/test/mesh/err-class-name-expression.ts +0 -1
- package/test/mesh/err-class-name.ts +0 -1
- package/test/mesh/err-compose-arg-number.tsx +0 -13
- package/test/mesh/err-compose-nested-destruction.ts +0 -13
- package/test/mesh/err-computed-property-in-destruction.ts +0 -7
- package/test/mesh/err-function-name.ts +0 -3
- package/test/mesh/err-invalid-compose-call.ts +0 -4
- package/test/mesh/err-jsx-element.tsx +0 -5
- package/test/mesh/err-jsx-fragment.tsx +0 -5
- package/test/mesh/err-map-model-const.ts +0 -5
- package/test/mesh/err-param-name-destruction.ts +0 -1
- package/test/mesh/err-param-name-rest.ts +0 -1
- package/test/mesh/err-param-name-with-default-value.ts +0 -1
- package/test/mesh/err-param-name.ts +0 -1
- package/test/mesh/err-prompt.ts +0 -5
- package/test/mesh/err-run-on-destroy.ts +0 -9
- package/test/mesh/err-set-model-const.ts +0 -5
- package/test/mesh/err-store-jsx.tsx +0 -7
- package/test/mesh/err-store-not-reactive-value-2.ts +0 -11
- package/test/mesh/err-store-not-reactive-value.ts +0 -11
- package/test/mesh/err-store-reactive-value.ts +0 -7
- package/test/mesh/err-store-share-dependency.ts +0 -6
- package/test/mesh/err-style-hint.ts +0 -4
- package/test/mesh/mesh-expression.js +0 -56
- package/test/mesh/mesh-expression.ts +0 -57
- package/test/mesh/mesh-statement.js +0 -46
- package/test/mesh/mesh-statement.ts +0 -61
- package/test/mesh/mesh.test.ts +0 -170
- package/test/mesh/object-computed-property.js +0 -11
- package/test/mesh/object-computed-property.ts +0 -10
- package/test/mesh/object-read-property.js +0 -12
- package/test/mesh/object-read-property.ts +0 -15
- package/test/mesh/object-reference.js +0 -11
- package/test/mesh/object-reference.ts +0 -13
- package/test/mesh/reactive-field-copy.js +0 -14
- package/test/mesh/reactive-field-copy.ts +0 -24
- package/test/mesh/reactive-field-set.js +0 -15
- package/test/mesh/reactive-field-set.ts +0 -19
- package/test/mesh/reactive-object.js +0 -39
- package/test/mesh/reactive-object.tsx +0 -38
- package/test/mesh/run-on-destroy.js +0 -6
- package/test/mesh/run-on-destroy.ts +0 -7
- package/test/mesh/store.js +0 -79
- package/test/mesh/store.tsx +0 -83
- package/test/naming/err-component-not-uppercase.ts +0 -3
- package/test/naming/err-components-folder.ts +0 -3
- package/test/naming/err-export.ts +0 -3
- package/test/naming/err-modal-missing-suffix.ts +0 -3
- package/test/naming/err-modal-not-uppercase.ts +0 -3
- package/test/naming/err-modals-folder.ts +0 -3
- package/test/naming/err-model-missing-suffix.ts +0 -3
- package/test/naming/err-model-not-lowercase.ts +0 -3
- package/test/naming/err-models-folder.ts +0 -3
- package/test/naming/err-page.ts +0 -3
- package/test/naming/err-prompt-missing-prefix.ts +0 -3
- package/test/naming/err-prompts-folder.ts +0 -3
- package/test/naming/err-screen-missing-suffix.ts +0 -3
- package/test/naming/err-screens-folder.ts +0 -3
- package/test/naming/err-store-missing-suffix.ts +0 -3
- package/test/naming/err-store-not-lowercase.ts +0 -3
- package/test/naming/err-stores-folder.ts +0 -3
- package/test/naming/err-view-missing-suffix.ts +0 -3
- package/test/naming/err-view-not-uppercase.ts +0 -3
- package/test/naming/err-views-folder.ts +0 -3
- package/test/naming/naming.test.ts +0 -130
- package/test/pages/(dynamical).js +0 -6
- package/test/pages/(dynamical).tsx +0 -5
- package/test/pages/err-static.ts +0 -3
- package/test/pages/page/(number).js +0 -6
- package/test/pages/page/(number).tsx +0 -5
- package/test/pages/page/list.js +0 -4
- package/test/pages/page/list.tsx +0 -5
- package/test/pages/pages.test.ts +0 -26
- package/test/pages/static.js +0 -4
- package/test/pages/static.tsx +0 -5
- package/test/reference/awaited.js +0 -6
- package/test/reference/awaited.ts +0 -8
- package/test/reference/const.js +0 -4
- package/test/reference/const.ts +0 -5
- package/test/reference/expr-const-optional.js +0 -8
- package/test/reference/expr-const-optional.ts +0 -10
- package/test/reference/expr-const.js +0 -7
- package/test/reference/expr-const.ts +0 -9
- package/test/reference/expr-let.js +0 -10
- package/test/reference/expr-let.ts +0 -13
- package/test/reference/expr-meta.js +0 -15
- package/test/reference/expr-meta.ts +0 -17
- package/test/reference/let-update.js +0 -9
- package/test/reference/let-update.ts +0 -11
- package/test/reference/let.js +0 -5
- package/test/reference/let.ts +0 -6
- package/test/reference/local-reactive.js +0 -11
- package/test/reference/local-reactive.ts +0 -6
- package/test/reference/models.js +0 -24
- package/test/reference/models.ts +0 -27
- package/test/reference/reference.test.ts +0 -50
- package/test/reference/watch.js +0 -9
- package/test/reference/watch.ts +0 -11
- package/test/run-test.ts +0 -65
- package/test/shadow/Error.tsx +0 -3
- package/test/shadow/InterfaceTest.js +0 -4
- package/test/shadow/InterfaceTest.ts +0 -7
- package/test/shadow/LocalComponent.js +0 -38
- package/test/shadow/LocalComponent.tsx +0 -27
- package/test/shadow/MissingGlyph.tsx +0 -5
- package/test/shadow/MissingType.tsx +0 -4
- package/test/shadow/NoType.tsx +0 -3
- package/test/shadow/ParameterTest.js +0 -4
- package/test/shadow/ParameterTest.ts +0 -7
- package/test/shadow/PropsTest.js +0 -11
- package/test/shadow/PropsTest.ts +0 -13
- package/test/shadow/SlotTest.js +0 -44
- package/test/shadow/SlotTest.tsx +0 -22
- package/test/shadow/TypeTest.js +0 -4
- package/test/shadow/TypeTest.ts +0 -7
- package/test/shadow/UnionTest.js +0 -11
- package/test/shadow/UnionTest.ts +0 -14
- package/test/shadow/shadow.test.ts +0 -59
- package/test/transformer/no-import.js +0 -3
- package/test/transformer/no-import.ts +0 -3
- package/test/transformer/transformer.test.ts +0 -18
- package/test/transformer/web-global.js +0 -4
- package/test/transformer/web-global.ts +0 -5
- package/test/transformer/web-partial.js +0 -7
- package/test/transformer/web-partial.ts +0 -11
- package/test/tsconfig.json +0 -21
- package/test/tsconfig.tsbuildinfo +0 -1
- package/test/v5/array-index.js +0 -11
- package/test/v5/array-index.ts +0 -12
- package/test/v5/assign-operator.js +0 -11
- package/test/v5/assign-operator.ts +0 -18
- package/test/v5/context.js +0 -16
- package/test/v5/context.ts +0 -14
- package/test/v5/di.js +0 -10
- package/test/v5/di.tsx +0 -5
- package/test/v5/err-di-discover.ts +0 -6
- package/test/v5/err-receive-in-wrapper.ts +0 -5
- package/test/v5/spaces-in-jsx.js +0 -22
- package/test/v5/spaces-in-jsx.tsx +0 -14
- package/test/v5/v5.test.ts +0 -49
- package/test/v6/err-foreach-no-slot.tsx +0 -6
- package/test/v6/err-iterate-params-number.tsx +0 -5
- package/test/v6/err-model-view-no-slot.tsx +0 -6
- package/test/v6/err-reactive-destruction.tsx +0 -6
- package/test/v6/err-too-much-params.tsx +0 -6
- package/test/v6/if-test.js +0 -20
- package/test/v6/if-test.tsx +0 -14
- package/test/v6/iterate-destructure.js +0 -22
- package/test/v6/iterate-destructure.tsx +0 -20
- package/test/v6/iterate-map.js +0 -9
- package/test/v6/iterate-map.tsx +0 -12
- package/test/v6/iterate.js +0 -15
- package/test/v6/iterate.tsx +0 -19
- package/test/v6/model-view.js +0 -40
- package/test/v6/model-view.tsx +0 -46
- package/test/v6/v6.test.ts +0 -51
- package/test/v7/DependencyReexport.js +0 -2
- package/test/v7/DependencyReexport.tsx +0 -2
- package/test/v7/DependencyStart.js +0 -6
- package/test/v7/DependencyStart.tsx +0 -7
- package/test/v7/Hmr.js +0 -16
- package/test/v7/Hmr.ts +0 -8
- package/test/v7/abort-signal.js +0 -15
- package/test/v7/abort-signal.tsx +0 -15
- package/test/v7/array-model-map.js +0 -16
- package/test/v7/array-model-map.tsx +0 -11
- package/test/v7/async-composing.js +0 -8
- package/test/v7/async-composing.tsx +0 -11
- package/test/v7/auto-safe.js +0 -40
- package/test/v7/auto-safe.tsx +0 -24
- package/test/v7/await-with-dependency.js +0 -14
- package/test/v7/await-with-dependency.ts +0 -13
- package/test/v7/bypass-write-restriction.js +0 -8
- package/test/v7/bypass-write-restriction.ts +0 -10
- package/test/v7/callback.js +0 -27
- package/test/v7/callback.tsx +0 -30
- package/test/v7/debounce-dev.js +0 -8
- package/test/v7/debounce-dev.ts +0 -6
- package/test/v7/debounce.js +0 -5
- package/test/v7/debounce.ts +0 -6
- package/test/v7/declared-function.js +0 -11
- package/test/v7/declared-function.ts +0 -11
- package/test/v7/discard-awaited.js +0 -59
- package/test/v7/discard-awaited.ts +0 -60
- package/test/v7/discard-less-awaited.js +0 -45
- package/test/v7/discard-less-awaited.ts +0 -58
- package/test/v7/err-array-model-map.tsx +0 -11
- package/test/v7/err-autounwrap.tsx +0 -7
- package/test/v7/err-bypass-to-readonly.ts +0 -10
- package/test/v7/err-computed-property.ts +0 -6
- package/test/v7/err-debounce-wrong-args.ts +0 -5
- package/test/v7/err-declared-function-calculate.ts +0 -9
- package/test/v7/err-declared-function-call.ts +0 -12
- package/test/v7/err-declared-function-effect.ts +0 -14
- package/test/v7/err-declared-function.ts +0 -9
- package/test/v7/err-dependency-reexport-check.tsx +0 -6
- package/test/v7/err-destruction-extracts-reactive.ts +0 -7
- package/test/v7/err-destruction-missing-renaming.ts +0 -6
- package/test/v7/err-destruction-of-slot-props.tsx +0 -7
- package/test/v7/err-expr-has-double-breakpoint.ts +0 -7
- package/test/v7/err-field-ref-double-breakpoint.ts +0 -7
- package/test/v7/err-field-ref-has-double-breakpoint.ts +0 -7
- package/test/v7/err-field-ref-no-arg.ts +0 -5
- package/test/v7/err-field-ref-no-breakpoint.ts +0 -6
- package/test/v7/err-field-ref-v7-naming.tsx +0 -13
- package/test/v7/err-field-ref-with-private-name.ts +0 -11
- package/test/v7/err-function-expr-in-live-declaration.ts +0 -8
- package/test/v7/err-function-expr-in-state-declaration.ts +0 -8
- package/test/v7/err-function-expr-in-var-declaration.ts +0 -8
- package/test/v7/err-local-dependency-flow.tsx +0 -16
- package/test/v7/err-no-deps-in-effect.ts +0 -7
- package/test/v7/err-page-with-global-dependency.tsx +0 -8
- package/test/v7/err-reactivity-break-2.ts +0 -9
- package/test/v7/err-reactivity-break.ts +0 -10
- package/test/v7/err-rest-in-internal-slot.tsx +0 -7
- package/test/v7/err-rest-in-reactive-destruction.ts +0 -6
- package/test/v7/err-rest-in-ref.ts +0 -6
- package/test/v7/err-restricted-member-access.ts +0 -8
- package/test/v7/err-restricted-ref-in-object-2.ts +0 -6
- package/test/v7/err-restricted-ref-in-object.ts +0 -7
- package/test/v7/err-router-go-to.ts +0 -8
- package/test/v7/err-router-load.ts +0 -8
- package/test/v7/err-safe-init-no-args.ts +0 -6
- package/test/v7/err-static-live-value.ts +0 -5
- package/test/v7/err-wrong-path-in-jsx.tsx +0 -18
- package/test/v7/field-ref-v7-naming.js +0 -35
- package/test/v7/field-ref-v7-naming.tsx +0 -27
- package/test/v7/field-ref.js +0 -31
- package/test/v7/field-ref.tsx +0 -26
- package/test/v7/let-with-function-expression.js +0 -6
- package/test/v7/let-with-function-expression.ts +0 -7
- package/test/v7/object-destruction.js +0 -10
- package/test/v7/object-destruction.tsx +0 -8
- package/test/v7/provide-global-dependency.js +0 -4
- package/test/v7/provide-global-dependency.tsx +0 -5
- package/test/v7/router-path-in-jsx.js +0 -18
- package/test/v7/router-path-in-jsx.tsx +0 -18
- package/test/v7/router.js +0 -22
- package/test/v7/router.ts +0 -25
- package/test/v7/safe.js +0 -32
- package/test/v7/safe.tsx +0 -26
- package/test/v7/string-event.js +0 -9
- package/test/v7/string-event.tsx +0 -6
- package/test/v7/v7.test.ts +0 -326
- package/test/v7-new-naming/err-assign-to-readonly.ts +0 -7
- package/test/v7-new-naming/err-constructor-reactivity-missmatch.ts +0 -14
- package/test/v7-new-naming/err-let-debounced.ts +0 -6
- package/test/v7-new-naming/err-reactive-field-in-obj.ts +0 -12
- package/test/v7-new-naming/err-reactive-writable-in-obj.ts +0 -7
- package/test/v7-new-naming/err-readonly-explicit-ref.ts +0 -5
- package/test/v7-new-naming/err-readonly-field.ts +0 -6
- package/test/v7-new-naming/err-readonly-ref.ts +0 -5
- package/test/v7-new-naming/err-readonly-to-writable-prop.ts +0 -12
- package/test/v7-new-naming/err-readonly-to-writable-prop.tsx +0 -10
- package/test/v7-new-naming/err-writable-debounced.ts +0 -6
- package/test/v7-new-naming/err-writable-explicit-expr.ts +0 -6
- package/test/v7-new-naming/err-writable-expr.ts +0 -6
- package/test/v7-new-naming/naming.js +0 -26
- package/test/v7-new-naming/naming.tsx +0 -27
- package/test/v7-new-naming/v7-new-naming.test.ts +0 -70
- package/tsconfig.json +0 -19
- package/tsconfig.tsbuildinfo +0 -1
package/test/dev/ensure.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
const VasilleFilePath = "steel-frame/test/dev/function-wrap.ts";
|
|
2
|
-
import { setupPosition as VasilleSetupPosition, runFn as VasilleRun, wrapFn as VasilleWrap } from "steel-frame";
|
|
3
|
-
function f1() {
|
|
4
|
-
return VasilleRun(() => {
|
|
5
|
-
console.log(1);
|
|
6
|
-
}, [], [VasilleFilePath, 1, 0, 3, 1]);
|
|
7
|
-
}
|
|
8
|
-
VasilleSetupPosition(f1, [VasilleFilePath, 1, 0, 3, 1])
|
|
9
|
-
function f2(...VasilleArgs) {
|
|
10
|
-
return VasilleRun((a, b) => {
|
|
11
|
-
return a + b;
|
|
12
|
-
}, VasilleArgs, [VasilleFilePath, 5, 0, 7, 1]);
|
|
13
|
-
}
|
|
14
|
-
VasilleSetupPosition(f2, [VasilleFilePath, 5, 0, 7, 1])
|
|
15
|
-
async function f3() {
|
|
16
|
-
return VasilleRun(async () => {
|
|
17
|
-
await new Promise(VasilleWrap(resolve => setTimeout(resolve, 1000), [VasilleFilePath, 10, 20, 10, 56]));
|
|
18
|
-
}, [], [VasilleFilePath, 9, 0, 11, 1]);
|
|
19
|
-
}
|
|
20
|
-
VasilleSetupPosition(f3, [VasilleFilePath, 9, 0, 11, 1])
|
|
21
|
-
const f4 = VasilleWrap(function (a, b) {
|
|
22
|
-
return a + b;
|
|
23
|
-
}, [VasilleFilePath, 13, 11, 15, 1]);
|
|
24
|
-
const f5 = VasilleWrap((a, b) => a + b, [VasilleFilePath, 17, 11, 17, 42]);
|
|
25
|
-
const o1 = {
|
|
26
|
-
v: 1,
|
|
27
|
-
f6(...VasilleArgs) {
|
|
28
|
-
return VasilleRun(a => {
|
|
29
|
-
console.log(a);
|
|
30
|
-
}, VasilleArgs, [VasilleFilePath, 21, 2, 23, 3]);
|
|
31
|
-
},
|
|
32
|
-
f7: VasilleWrap(b => {
|
|
33
|
-
console.log(b);
|
|
34
|
-
}, [VasilleFilePath, 24, 6, 26, 3]),
|
|
35
|
-
f8: VasilleWrap(c => {
|
|
36
|
-
console.log(c);
|
|
37
|
-
}, [VasilleFilePath, 27, 6, 29, 3])
|
|
38
|
-
};
|
|
39
|
-
class Test {
|
|
40
|
-
m1(...VasilleArgs) {
|
|
41
|
-
return VasilleRun(a => {
|
|
42
|
-
return a + 2;
|
|
43
|
-
}, VasilleArgs, [VasilleFilePath, 33, 2, 35, 3]);
|
|
44
|
-
}
|
|
45
|
-
#m2(...VasilleArgs) {
|
|
46
|
-
return VasilleRun((a, b) => {
|
|
47
|
-
return a + b;
|
|
48
|
-
}, VasilleArgs, [VasilleFilePath, 36, 2, 38, 3]);
|
|
49
|
-
}
|
|
50
|
-
constructor(...VasilleArgs) {
|
|
51
|
-
return VasilleRun(a => {}, VasilleArgs, [VasilleFilePath, 39, 2, 39, 41]);
|
|
52
|
-
}
|
|
53
|
-
get b() {
|
|
54
|
-
return VasilleRun(() => {
|
|
55
|
-
return "b";
|
|
56
|
-
}, [], [VasilleFilePath, 40, 2, 42, 3]);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
function f1() {
|
|
2
|
-
console.log(1);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
function f2(a: number, b: number) {
|
|
6
|
-
return a + b;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
async function f3() {
|
|
10
|
-
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const f4 = function (a: number, b: number) {
|
|
14
|
-
return a + b;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const f5 = (a: number, b: number) => a + b;
|
|
18
|
-
|
|
19
|
-
const o1 = {
|
|
20
|
-
v: 1,
|
|
21
|
-
f6(a: number) {
|
|
22
|
-
console.log(a);
|
|
23
|
-
},
|
|
24
|
-
f7: (b: number) => {
|
|
25
|
-
console.log(b);
|
|
26
|
-
},
|
|
27
|
-
f8: (c: number) => {
|
|
28
|
-
console.log(c);
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
class Test {
|
|
33
|
-
public m1(a: number) {
|
|
34
|
-
return a + 2;
|
|
35
|
-
}
|
|
36
|
-
#m2(a: number, b: number) {
|
|
37
|
-
return a + b;
|
|
38
|
-
}
|
|
39
|
-
public constructor(public a: number) {}
|
|
40
|
-
public get b() {
|
|
41
|
-
return "b";
|
|
42
|
-
}
|
|
43
|
-
}
|
package/test/dev/map-model.js
DELETED
package/test/dev/map-model.ts
DELETED
package/test/dev/match.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const VasilleFilePath = "babel-plugin-vasille/test/dev/match.ts";
|
|
2
|
-
import { component, ref as VasilleRef, match as VasilleMatch } from "steel-frame";
|
|
3
|
-
const k = "key";
|
|
4
|
-
const C = component((Vasille, {
|
|
5
|
-
["$data"]: $d = VasilleRef(void 0, null, [VasilleFilePath, 11, 23, 11, 36])
|
|
6
|
-
}) => {
|
|
7
|
-
const key = "a";
|
|
8
|
-
const o = {
|
|
9
|
-
[key]: VasilleMatch(key, 2, [VasilleFilePath, 14, 4, 14, 12], Vasille)
|
|
10
|
-
};
|
|
11
|
-
}, [VasilleFilePath, 11, 10, 16, 2], "C");
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const VasilleFilePath = "steel-frame/test/dev/module-level-reactivity.ts";
|
|
2
|
-
import { arrayModel, mapModel, ref, setModel } from "steel-frame";
|
|
3
|
-
let $a = ref(2, null, [VasilleFilePath, 3, 4, 3, 15]);
|
|
4
|
-
const array = arrayModel([VasilleFilePath, 5, 14, 5, 26], null, void 0);
|
|
5
|
-
const set = setModel([VasilleFilePath, 6, 12, 6, 22], null, void 0);
|
|
6
|
-
const map = mapModel([VasilleFilePath, 7, 12, 7, 22], null, void 0);
|
package/test/dev/object.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const VasilleFilePath = "steel-frame/test/dev/object.ts";
|
|
2
|
-
import { component, ref as VasilleRef } from "steel-frame";
|
|
3
|
-
const C = component(Vasille => {
|
|
4
|
-
const o = {
|
|
5
|
-
$a: VasilleRef(1, Vasille, [VasilleFilePath, 5, 4, 5, 9]),
|
|
6
|
-
$b: VasilleRef(2, Vasille, [VasilleFilePath, 6, 4, 6, 9])
|
|
7
|
-
};
|
|
8
|
-
}, [VasilleFilePath, 3, 10, 8, 2], "C");
|
package/test/dev/object.ts
DELETED
package/test/dev/page.js
DELETED
package/test/dev/page.ts
DELETED
package/test/dev/prompt.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const VasilleFilePath = "steel-frame/test/dev/prompt.tsx";
|
|
2
|
-
import { component, prompt, showPrompt, wrapFn as VasilleWrap, positionedText as VasillePosText } from "steel-frame";
|
|
3
|
-
const promptName = prompt(Vasille => {}, [VasilleFilePath, 3, 19, 3, 35], "promptName");
|
|
4
|
-
const C = component(Vasille => {
|
|
5
|
-
Vasille.tag("button", {
|
|
6
|
-
e: {
|
|
7
|
-
click: VasilleWrap(() => showPrompt(Vasille, promptName, {}, 0, [VasilleFilePath, 6, 25, 6, 51]), [VasilleFilePath, 6, 19, 6, 51])
|
|
8
|
-
},
|
|
9
|
-
usage: [VasilleFilePath, 6, 2, 6, 73]
|
|
10
|
-
}, Vasille => {
|
|
11
|
-
Vasille.text(VasillePosText("Prompt Name", [VasilleFilePath, 6, 53, 6, 64]));
|
|
12
|
-
});
|
|
13
|
-
}, [VasilleFilePath, 5, 10, 7, 2], "C");
|
package/test/dev/prompt.tsx
DELETED
package/test/dev/ref-no-args.js
DELETED
package/test/dev/ref-no-args.ts
DELETED
package/test/dev/ref.js
DELETED
package/test/dev/ref.ts
DELETED
package/test/dev/safe.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const VasilleFilePath = "steel-frame/test/dev/safe.tsx";
|
|
2
|
-
import { compose, positionedText as VasillePosText, setupPosition as VasilleSetupPosition, runFn as VasilleRun, ref as VasilleRef, safeLive as VasilleSafeExpr, safeState as VasilleSafeRef, toFieldRef as VasilleToFieldRef, toDeepFieldRef as VasilleToDeepFieldRef } from "steel-frame";
|
|
3
|
-
const C1 = compose((Vasille, props) => {
|
|
4
|
-
Vasille.tag("div", {
|
|
5
|
-
usage: [VasilleFilePath, 4, 4, 4, 32]
|
|
6
|
-
}, Vasille => {
|
|
7
|
-
Vasille.text(VasillePosText(props.$optional, [VasilleFilePath, 4, 10, 4, 25]));
|
|
8
|
-
});
|
|
9
|
-
}, [VasilleFilePath, 3, 11, 5, 2], "C1");
|
|
10
|
-
function throwNow() {
|
|
11
|
-
return VasilleRun(() => {
|
|
12
|
-
throw new Error("x");
|
|
13
|
-
}, [], [VasilleFilePath, 7, 0, 9, 1]);
|
|
14
|
-
}
|
|
15
|
-
VasilleSetupPosition(throwNow, [VasilleFilePath, 7, 0, 9, 1])
|
|
16
|
-
const C2 = compose(Vasille => {
|
|
17
|
-
const $a = VasilleRef(3, Vasille, [VasilleFilePath, 12, 8, 12, 14], "$a");
|
|
18
|
-
const $o = VasilleRef({
|
|
19
|
-
a: {
|
|
20
|
-
b: 1
|
|
21
|
-
},
|
|
22
|
-
b: 1
|
|
23
|
-
}, Vasille, [VasilleFilePath, 13, 8, 13, 34], "$o");
|
|
24
|
-
C1({
|
|
25
|
-
"$optional": VasilleSafeExpr(Vasille, Vasille_0 => throwNow() + Vasille_0, [$a], ["$a"], [VasilleFilePath, 15, 19, 15, 34])
|
|
26
|
-
}, Vasille, void 0, [VasilleFilePath, 15, 4, 15, 38]);
|
|
27
|
-
C1({
|
|
28
|
-
"$optional": VasilleSafeRef(() => throwNow() + 3, Vasille, [VasilleFilePath, 16, 19, 16, 33])
|
|
29
|
-
}, Vasille, void 0, [VasilleFilePath, 16, 4, 16, 37]);
|
|
30
|
-
C1({
|
|
31
|
-
"$optional": VasilleToFieldRef(Vasille, $o, "b", [VasilleFilePath, 17, 8, 17, 31])
|
|
32
|
-
}, Vasille, void 0, [VasilleFilePath, 17, 4, 17, 34]);
|
|
33
|
-
C1({
|
|
34
|
-
"$optional": VasilleToDeepFieldRef(Vasille, $o, ["a", "b"], [VasilleFilePath, 18, 8, 18, 33])
|
|
35
|
-
}, Vasille, void 0, [VasilleFilePath, 18, 4, 18, 36]);
|
|
36
|
-
}, [VasilleFilePath, 11, 11, 19, 2], "C2");
|
package/test/dev/safe.tsx
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { compose, field } from "steel-frame";
|
|
2
|
-
|
|
3
|
-
const C1 = compose<{ $optional?: number }>(props => {
|
|
4
|
-
<div>{props.$optional}</div>;
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
function throwNow(): number {
|
|
8
|
-
throw new Error("x");
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const C2 = compose(() => {
|
|
12
|
-
let $a = 3;
|
|
13
|
-
let $o = { a: { b: 1 }, b: 1 };
|
|
14
|
-
|
|
15
|
-
<C1 $optional={throwNow() + $a} />;
|
|
16
|
-
<C1 $optional={throwNow() + 3} />;
|
|
17
|
-
<C1 $optional={field($o.b)} />;
|
|
18
|
-
<C1 $optional={field($o.a.b)} />;
|
|
19
|
-
});
|
package/test/dev/set-model.js
DELETED
package/test/dev/set-model.ts
DELETED
package/test/dev/set-value.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const VasilleFilePath = "steel-frame/test/dev/set-value.ts";
|
|
2
|
-
import { component, set as VasilleSet, wrapFn as VasilleWrap, safe as VasilleSafe } from "steel-frame";
|
|
3
|
-
const C = component(Vasille => {
|
|
4
|
-
const arr = {};
|
|
5
|
-
VasilleSafe(VasilleWrap(() => {
|
|
6
|
-
VasilleSet(arr, "$x", 1, Vasille, [VasilleFilePath, 7, 4, 7, 14]);
|
|
7
|
-
}, [VasilleFilePath, 6, 14, 8, 3]))();
|
|
8
|
-
}, [VasilleFilePath, 3, 10, 9, 2], "C");
|
package/test/dev/set-value.ts
DELETED
package/test/dev/tag.js
DELETED
package/test/dev/tag.tsx
DELETED
package/test/dev/text-2.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const VasilleFilePath = "steel-frame/test/dev/text-2.tsx";
|
|
2
|
-
import { component, ref as VasilleRef, positionedText as VasillePosText } from "steel-frame";
|
|
3
|
-
const C = component(Vasille => {
|
|
4
|
-
const $text = VasilleRef("text", Vasille, [VasilleFilePath, 4, 6, 4, 20], "$text");
|
|
5
|
-
Vasille.text(VasillePosText($text, [VasilleFilePath, 6, 5, 6, 10]));
|
|
6
|
-
}, [VasilleFilePath, 3, 10, 7, 2], "C");
|
package/test/dev/text-2.tsx
DELETED
package/test/dev/text.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const VasilleFilePath = "steel-frame/test/dev/text.tsx";
|
|
2
|
-
import { component, positionedText as VasillePosText } from "steel-frame";
|
|
3
|
-
const C = component(Vasille => {
|
|
4
|
-
Vasille.text(VasillePosText("Text", [VasilleFilePath, 4, 4, 4, 8]));
|
|
5
|
-
}, [VasilleFilePath, 3, 10, 5, 2], "C");
|
package/test/dev/text.tsx
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const VasilleFilePath = "steel-frame/test/dev/value-assignment.ts";
|
|
2
|
-
import { component, ref, setupPosition as VasilleSetupPosition, executionPosition as VasilleExePos, runFn as VasilleRun } from "steel-frame";
|
|
3
|
-
const C = component(Vasille => {
|
|
4
|
-
const $a = ref(1, Vasille, [VasilleFilePath, 4, 6, 4, 12], "$a");
|
|
5
|
-
const o = {
|
|
6
|
-
$a: ref(1, Vasille, [VasilleFilePath, 5, 14, 5, 19]),
|
|
7
|
-
c: 2
|
|
8
|
-
};
|
|
9
|
-
function update(...VasilleArgs) {
|
|
10
|
-
return VasilleRun(a => {
|
|
11
|
-
$a.up(a, VasilleExePos([VasilleFilePath, 8, 4, 8, 10]));
|
|
12
|
-
o.$a.up(a, VasilleExePos([VasilleFilePath, 9, 4, 9, 12]));
|
|
13
|
-
o.c = 3;
|
|
14
|
-
}, VasilleArgs, [VasilleFilePath, 7, 2, 11, 3]);
|
|
15
|
-
}
|
|
16
|
-
VasilleSetupPosition(update, [VasilleFilePath, 7, 2, 11, 3])
|
|
17
|
-
}, [VasilleFilePath, 3, 10, 12, 2], "C");
|
|
18
|
-
let $b = ref(1, null, [VasilleFilePath, 14, 4, 14, 15]);
|
|
19
|
-
const obj = {
|
|
20
|
-
$r: ref(1, null, [VasilleFilePath, 16, 2, 16, 12]),
|
|
21
|
-
x: 2
|
|
22
|
-
};
|
|
23
|
-
function update1(...VasilleArgs) {
|
|
24
|
-
return VasilleRun(a => {
|
|
25
|
-
$b.up(a, VasilleExePos([VasilleFilePath, 21, 2, 21, 8]));
|
|
26
|
-
obj.$r.up(2, VasilleExePos([VasilleFilePath, 22, 2, 22, 12]));
|
|
27
|
-
obj.x = 3;
|
|
28
|
-
}, VasilleArgs, [VasilleFilePath, 20, 0, 24, 1]);
|
|
29
|
-
}
|
|
30
|
-
VasilleSetupPosition(update1, [VasilleFilePath, 20, 0, 24, 1])
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { component, ref } from "steel-frame";
|
|
2
|
-
|
|
3
|
-
const C = component(() => {
|
|
4
|
-
let $a = 1;
|
|
5
|
-
const o = { $a: 1, c: 2 };
|
|
6
|
-
|
|
7
|
-
function update(a: number) {
|
|
8
|
-
$a = a;
|
|
9
|
-
o.$a = a;
|
|
10
|
-
o.c = 3;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
let $b = ref(1);
|
|
15
|
-
const obj = {
|
|
16
|
-
$r: ref(1),
|
|
17
|
-
x: 2,
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
function update1(a: number) {
|
|
21
|
-
$b = a;
|
|
22
|
-
obj.$r = 2;
|
|
23
|
-
obj.x = 3;
|
|
24
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { bind, calculate, compose, ref as VasilleRef } from "vasille-web";
|
|
2
|
-
import { Reference } from "vasille";
|
|
3
|
-
function tag(args, count) {
|
|
4
|
-
return args.join("");
|
|
5
|
-
}
|
|
6
|
-
function tag2(a1, a2) {
|
|
7
|
-
return a1 + a2;
|
|
8
|
-
}
|
|
9
|
-
const C = compose(Vasille => {
|
|
10
|
-
const $a = VasilleRef(3, Vasille);
|
|
11
|
-
const $b = bind(Vasille, Vasille_0 => Vasille_0 + 1, [$a]);
|
|
12
|
-
const $s = VasilleRef("s", Vasille);
|
|
13
|
-
const $f = VasilleRef(null, Vasille);
|
|
14
|
-
const o = {
|
|
15
|
-
m: {
|
|
16
|
-
n: 0
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
const r = new Reference(0);
|
|
20
|
-
const $calc = calculate(Vasille, async (Vasille_0, Vasille_1, Vasille_2, Vasille_3) => {
|
|
21
|
-
const v1 = tag`${Vasille_0}1`;
|
|
22
|
-
const [v2, v3] = [Vasille_0, Vasille_1];
|
|
23
|
-
const v4 = (Vasille_0 || Vasille_1) & Vasille_0;
|
|
24
|
-
const v5 = new Number(Vasille_0);
|
|
25
|
-
const v6 = !Vasille_1;
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
const v7 = (Vasille_0, ++$b.V);
|
|
28
|
-
const v8 = await Vasille_0;
|
|
29
|
-
const v9 = tag.bind(null, Vasille_2);
|
|
30
|
-
const VMap = Map;
|
|
31
|
-
const v10 = new VMap([[Vasille_2, Vasille_0]]);
|
|
32
|
-
const v11 = Vasille_0;
|
|
33
|
-
const v12 = Vasille_0;
|
|
34
|
-
const v13 = o.m.n;
|
|
35
|
-
const v14 = r.V;
|
|
36
|
-
const obj = {
|
|
37
|
-
a: Vasille_0,
|
|
38
|
-
[Vasille_1]: Vasille_1,
|
|
39
|
-
getA() {
|
|
40
|
-
return 23;
|
|
41
|
-
},
|
|
42
|
-
...{
|
|
43
|
-
s: Vasille_2
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
function* generator(i) {
|
|
47
|
-
yield i;
|
|
48
|
-
yield i + 10;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
Vasille_3?.(Vasille_0);
|
|
53
|
-
[$a.V, $b.V] = [Vasille_1, Vasille_0];
|
|
54
|
-
// @ts-ignore
|
|
55
|
-
(null, tag2)("test", "2");
|
|
56
|
-
return 2;
|
|
57
|
-
}, [$a, $b, $s, $f]);
|
|
58
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { bind, calculate, compose } from "steel-frame";
|
|
2
|
-
import { Reference } from "vasille";
|
|
3
|
-
|
|
4
|
-
function tag(args: TemplateStringsArray, count: number): string {
|
|
5
|
-
return args.join("");
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function tag2(a1: string, a2: string) {
|
|
9
|
-
return a1 + a2;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const C = compose(() => {
|
|
13
|
-
let $a = 3;
|
|
14
|
-
let $b = bind($a + 1);
|
|
15
|
-
let $s = "s";
|
|
16
|
-
let $f: ((a: number) => void) | null = null;
|
|
17
|
-
const o = { m: { n: 0 } };
|
|
18
|
-
const r = new Reference(0);
|
|
19
|
-
|
|
20
|
-
const $calc = calculate(async () => {
|
|
21
|
-
const v1 = tag`${$a}1`;
|
|
22
|
-
const [v2, v3] = [$a, $b];
|
|
23
|
-
const v4 = ($a || $b) & $a;
|
|
24
|
-
const v5 = new Number($a);
|
|
25
|
-
const v6 = !$b;
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
const v7 = ($a, ++$b);
|
|
28
|
-
const v8 = await (<Promise<number>>($a as unknown));
|
|
29
|
-
const v9 = tag.bind(null, $s as any);
|
|
30
|
-
const VMap = Map<string, number>;
|
|
31
|
-
const v10 = new VMap([[$s, $a]]);
|
|
32
|
-
const v11 = $a as number;
|
|
33
|
-
const v12 = $a satisfies number;
|
|
34
|
-
const v13 = o.m.n;
|
|
35
|
-
const v14 = r.V;
|
|
36
|
-
const obj = {
|
|
37
|
-
a: $a,
|
|
38
|
-
[$b]: $b,
|
|
39
|
-
getA() {
|
|
40
|
-
return 23;
|
|
41
|
-
},
|
|
42
|
-
...{ s: $s },
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
function* generator(i: number) {
|
|
46
|
-
yield i;
|
|
47
|
-
yield i + 10;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// @ts-ignore
|
|
51
|
-
$f?.($a);
|
|
52
|
-
[$a, $b] = [$b, $a];
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
(null, tag2)("test", "2");
|
|
55
|
-
|
|
56
|
-
return 2;
|
|
57
|
-
});
|
|
58
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { compose, ref, expr as VasilleExpr } from "vasille-web";
|
|
2
|
-
const o = {
|
|
3
|
-
$a: ref(2)
|
|
4
|
-
};
|
|
5
|
-
const C = compose(Vasille => {
|
|
6
|
-
const o1 = {
|
|
7
|
-
a: 1
|
|
8
|
-
};
|
|
9
|
-
const $c1 = o.$a;
|
|
10
|
-
const c2 = o1.a;
|
|
11
|
-
const $s = VasilleExpr(Vasille, Vasille_0 => Vasille_0 + c2, [$c1]);
|
|
12
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { calculate, compose, ref as VasilleRef } from "vasille-web";
|
|
2
|
-
const C = compose(Vasille => {
|
|
3
|
-
const $a = VasilleRef(1, Vasille);
|
|
4
|
-
const o = {
|
|
5
|
-
b: 1
|
|
6
|
-
};
|
|
7
|
-
const $c = calculate(Vasille, Vasille_0 => {
|
|
8
|
-
o.b++;
|
|
9
|
-
do {
|
|
10
|
-
Vasille_0 + 1;
|
|
11
|
-
} while (Vasille_0 < 1);
|
|
12
|
-
for (const i in [0, 1]) {
|
|
13
|
-
Vasille_0 + 1;
|
|
14
|
-
}
|
|
15
|
-
for (const i of [0, 1]) {
|
|
16
|
-
Vasille_0 + 1;
|
|
17
|
-
}
|
|
18
|
-
for (let i = Vasille_0; i < Vasille_0; i += Vasille_0) {
|
|
19
|
-
Vasille_0 + 1;
|
|
20
|
-
}
|
|
21
|
-
let a;
|
|
22
|
-
for (a = 3; a < 4; a++) {
|
|
23
|
-
Vasille_0 + 1;
|
|
24
|
-
}
|
|
25
|
-
label: if (Vasille_0 < 3) {
|
|
26
|
-
Vasille_0 + 1;
|
|
27
|
-
}
|
|
28
|
-
switch (Vasille_0) {
|
|
29
|
-
case Vasille_0:
|
|
30
|
-
Vasille_0 + 1;
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
try {
|
|
34
|
-
throw Vasille_0;
|
|
35
|
-
} catch (e) {
|
|
36
|
-
Vasille_0 + 1;
|
|
37
|
-
} finally {
|
|
38
|
-
Vasille_0 + 1;
|
|
39
|
-
}
|
|
40
|
-
while (Vasille_0 < 1) {
|
|
41
|
-
Vasille_0 + 1;
|
|
42
|
-
}
|
|
43
|
-
return 0;
|
|
44
|
-
}, [$a]);
|
|
45
|
-
});
|