@tko/build.knockout 4.0.0-alpha9.0 → 4.0.0-beta1.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/dist/index.js ADDED
@@ -0,0 +1,49 @@
1
+ // @tko/build.knockout 🥊 4.0.0-beta1.0 ESM
2
+ import { Builder } from "@tko/builder";
3
+ import { VirtualProvider } from "@tko/provider.virtual";
4
+ import { DataBindProvider } from "@tko/provider.databind";
5
+ import { ComponentProvider } from "@tko/provider.component";
6
+ import { AttributeProvider } from "@tko/provider.attr";
7
+ import { MultiProvider } from "@tko/provider.multi";
8
+ import { bindings as coreBindings } from "@tko/binding.core";
9
+ import { bindings as templateBindings } from "@tko/binding.template";
10
+ import { bindings as ifBindings } from "@tko/binding.if";
11
+ import { bindings as foreachBindings } from "@tko/binding.foreach";
12
+ import { bindings as componentBindings } from "@tko/binding.component";
13
+ import { filters } from "@tko/filter.punches";
14
+ import components from "@tko/utils.component";
15
+ import { functionRewrite } from "@tko/utils.functionrewrite";
16
+ import { options as defaultOptions } from "@tko/utils";
17
+ const dataBindProvider = new DataBindProvider();
18
+ const expressionRewriting = {
19
+ preProcessBindings: (s) => dataBindProvider.preProcessBindings(s)
20
+ };
21
+ const builder = new Builder({
22
+ filters,
23
+ provider: new MultiProvider({
24
+ providers: [
25
+ new ComponentProvider(),
26
+ dataBindProvider,
27
+ new VirtualProvider(),
28
+ new AttributeProvider()
29
+ ]
30
+ }),
31
+ bindings: [
32
+ coreBindings,
33
+ templateBindings,
34
+ ifBindings,
35
+ componentBindings,
36
+ { each: foreachBindings.foreach }
37
+ ],
38
+ options: {
39
+ bindingGlobals: defaultOptions.global,
40
+ bindingStringPreparsers: [functionRewrite]
41
+ }
42
+ });
43
+ const version = "4.0.0-beta1.0";
44
+ export default builder.create({
45
+ version,
46
+ components,
47
+ Component: components.ComponentABC,
48
+ expressionRewriting
49
+ });
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["import { Builder } from '@tko/builder'\n\nimport { VirtualProvider } from '@tko/provider.virtual'\nimport { DataBindProvider } from '@tko/provider.databind'\nimport { ComponentProvider } from '@tko/provider.component'\nimport { AttributeProvider } from '@tko/provider.attr'\nimport { MultiProvider } from '@tko/provider.multi'\n\nimport { bindings as coreBindings } from '@tko/binding.core'\nimport { bindings as templateBindings } from '@tko/binding.template'\nimport { bindings as ifBindings } from '@tko/binding.if'\nimport { bindings as foreachBindings } from '@tko/binding.foreach'\nimport { bindings as componentBindings } from '@tko/binding.component'\n\nimport { filters } from '@tko/filter.punches'\n\nimport components from '@tko/utils.component'\n\nimport { functionRewrite } from '@tko/utils.functionrewrite'\n\nimport { options as defaultOptions } from '@tko/utils'\n\n/**\n * expressionRewriting is deprecated in TKO because we have our own JS\n * parser now. This is here only for legacy compatibility.\n */\nconst dataBindProvider = new DataBindProvider()\nconst expressionRewriting = {\n preProcessBindings: s => dataBindProvider.preProcessBindings(s)\n}\n\nconst builder = new Builder({\n filters,\n provider: new MultiProvider({\n providers: [\n new ComponentProvider(),\n dataBindProvider,\n new VirtualProvider(),\n new AttributeProvider()\n ]\n }),\n bindings: [\n coreBindings,\n templateBindings,\n ifBindings,\n componentBindings,\n { each: foreachBindings.foreach }\n ],\n options: {\n bindingGlobals: defaultOptions.global,\n bindingStringPreparsers: [functionRewrite]\n }\n})\n\nconst version = BUILD_VERSION\nexport default builder.create({\n version,\n components,\n Component: components.ComponentABC,\n expressionRewriting\n})\n"],
5
+ "mappings": ";AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AAEA;AAMA,MAAM,mBAAmB,IAAI,iBAAiB;AAC9C,MAAM,sBAAsB;AAAA,EAC1B,oBAAoB,OAAK,iBAAiB,mBAAmB,CAAC;AAChE;AAEA,MAAM,UAAU,IAAI,QAAQ;AAAA,EAC1B;AAAA,EACA,UAAU,IAAI,cAAc;AAAA,IAC1B,WAAW;AAAA,MACT,IAAI,kBAAkB;AAAA,MACtB;AAAA,MACA,IAAI,gBAAgB;AAAA,MACpB,IAAI,kBAAkB;AAAA,IACxB;AAAA,EACF,CAAC;AAAA,EACD,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,EAAE,MAAM,gBAAgB,QAAQ;AAAA,EAClC;AAAA,EACA,SAAS;AAAA,IACP,gBAAgB,eAAe;AAAA,IAC/B,yBAAyB,CAAC,eAAe;AAAA,EAC3C;AACF,CAAC;AAED,MAAM,UAAU;AAChB,eAAe,QAAQ,OAAO;AAAA,EAC5B;AAAA,EACA;AAAA,EACA,WAAW,WAAW;AAAA,EACtB;AACF,CAAC;",
6
+ "names": []
7
+ }
package/dist/index.mjs ADDED
@@ -0,0 +1,49 @@
1
+ // @tko/build.knockout 🥊 4.0.0-beta1.0 MJS
2
+ import { Builder } from "@tko/builder";
3
+ import { VirtualProvider } from "@tko/provider.virtual";
4
+ import { DataBindProvider } from "@tko/provider.databind";
5
+ import { ComponentProvider } from "@tko/provider.component";
6
+ import { AttributeProvider } from "@tko/provider.attr";
7
+ import { MultiProvider } from "@tko/provider.multi";
8
+ import { bindings as coreBindings } from "@tko/binding.core";
9
+ import { bindings as templateBindings } from "@tko/binding.template";
10
+ import { bindings as ifBindings } from "@tko/binding.if";
11
+ import { bindings as foreachBindings } from "@tko/binding.foreach";
12
+ import { bindings as componentBindings } from "@tko/binding.component";
13
+ import { filters } from "@tko/filter.punches";
14
+ import components from "@tko/utils.component";
15
+ import { functionRewrite } from "@tko/utils.functionrewrite";
16
+ import { options as defaultOptions } from "@tko/utils";
17
+ const dataBindProvider = new DataBindProvider();
18
+ const expressionRewriting = {
19
+ preProcessBindings: (s) => dataBindProvider.preProcessBindings(s)
20
+ };
21
+ const builder = new Builder({
22
+ filters,
23
+ provider: new MultiProvider({
24
+ providers: [
25
+ new ComponentProvider(),
26
+ dataBindProvider,
27
+ new VirtualProvider(),
28
+ new AttributeProvider()
29
+ ]
30
+ }),
31
+ bindings: [
32
+ coreBindings,
33
+ templateBindings,
34
+ ifBindings,
35
+ componentBindings,
36
+ { each: foreachBindings.foreach }
37
+ ],
38
+ options: {
39
+ bindingGlobals: defaultOptions.global,
40
+ bindingStringPreparsers: [functionRewrite]
41
+ }
42
+ });
43
+ const version = "4.0.0-beta1.0";
44
+ export default builder.create({
45
+ version,
46
+ components,
47
+ Component: components.ComponentABC,
48
+ expressionRewriting
49
+ });
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["import { Builder } from '@tko/builder'\n\nimport { VirtualProvider } from '@tko/provider.virtual'\nimport { DataBindProvider } from '@tko/provider.databind'\nimport { ComponentProvider } from '@tko/provider.component'\nimport { AttributeProvider } from '@tko/provider.attr'\nimport { MultiProvider } from '@tko/provider.multi'\n\nimport { bindings as coreBindings } from '@tko/binding.core'\nimport { bindings as templateBindings } from '@tko/binding.template'\nimport { bindings as ifBindings } from '@tko/binding.if'\nimport { bindings as foreachBindings } from '@tko/binding.foreach'\nimport { bindings as componentBindings } from '@tko/binding.component'\n\nimport { filters } from '@tko/filter.punches'\n\nimport components from '@tko/utils.component'\n\nimport { functionRewrite } from '@tko/utils.functionrewrite'\n\nimport { options as defaultOptions } from '@tko/utils'\n\n/**\n * expressionRewriting is deprecated in TKO because we have our own JS\n * parser now. This is here only for legacy compatibility.\n */\nconst dataBindProvider = new DataBindProvider()\nconst expressionRewriting = {\n preProcessBindings: s => dataBindProvider.preProcessBindings(s)\n}\n\nconst builder = new Builder({\n filters,\n provider: new MultiProvider({\n providers: [\n new ComponentProvider(),\n dataBindProvider,\n new VirtualProvider(),\n new AttributeProvider()\n ]\n }),\n bindings: [\n coreBindings,\n templateBindings,\n ifBindings,\n componentBindings,\n { each: foreachBindings.foreach }\n ],\n options: {\n bindingGlobals: defaultOptions.global,\n bindingStringPreparsers: [functionRewrite]\n }\n})\n\nconst version = BUILD_VERSION\nexport default builder.create({\n version,\n components,\n Component: components.ComponentABC,\n expressionRewriting\n})\n"],
5
+ "mappings": ";AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AAEA;AAMA,MAAM,mBAAmB,IAAI,iBAAiB;AAC9C,MAAM,sBAAsB;AAAA,EAC1B,oBAAoB,OAAK,iBAAiB,mBAAmB,CAAC;AAChE;AAEA,MAAM,UAAU,IAAI,QAAQ;AAAA,EAC1B;AAAA,EACA,UAAU,IAAI,cAAc;AAAA,IAC1B,WAAW;AAAA,MACT,IAAI,kBAAkB;AAAA,MACtB;AAAA,MACA,IAAI,gBAAgB;AAAA,MACpB,IAAI,kBAAkB;AAAA,IACxB;AAAA,EACF,CAAC;AAAA,EACD,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,EAAE,MAAM,gBAAgB,QAAQ;AAAA,EAClC;AAAA,EACA,SAAS;AAAA,IACP,gBAAgB,eAAe;AAAA,IAC/B,yBAAyB,CAAC,eAAe;AAAA,EAC3C;AACF,CAAC;AAED,MAAM,UAAU;AAChB,eAAe,QAAQ,OAAO;AAAA,EAC5B;AAAA,EACA;AAAA,EACA,WAAW,WAAW;AAAA,EACtB;AACF,CAAC;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,22 +1,17 @@
1
1
  {
2
+ "version": "4.0.0-beta1.0",
2
3
  "name": "@tko/build.knockout",
3
4
  "description": "Knockout makes it easier to create rich, responsive UIs with JavaScript",
4
5
  "homepage": "https://tko.io",
5
- "version": "4.0.0-alpha9.0",
6
6
  "license": "MIT",
7
- "author": "The Knockout.js team",
8
- "main": "dist/build.knockout.js",
9
- "scripts": {
10
- "test": "npx karma start ../../karma.conf.js --once",
11
- "build": "npx rollup -c ../../rollup.config.js",
12
- "watch": "npx karma start ../../karma.conf.js",
13
- "prepare": "npx rollup -c ../../rollup.config.js"
14
- },
7
+ "author": "The Knockout Team",
15
8
  "repository": {
16
9
  "type": "git",
17
- "url": "https://github.com/knockout/knockout.git"
10
+ "url": "git+https://github.com/knockout/tko.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/knockout/tko/issues"
18
14
  },
19
- "bugs": "https://github.com/knockout/knockout/issues",
20
15
  "testling": {
21
16
  "preprocess": "build/build.sh",
22
17
  "html": "spec/runner.html?src=build/output/knockout-latest.js&testling=true",
@@ -39,7 +34,7 @@
39
34
  "jasmine"
40
35
  ],
41
36
  "files": [
42
- "dist/build.knockout.es6.js",
37
+ "dist/browser.min.js",
43
38
  "helpers/jasmine.extensions.js",
44
39
  "spec/**/*.js"
45
40
  ]
@@ -47,38 +42,33 @@
47
42
  "licenses": [
48
43
  {
49
44
  "type": "MIT",
50
- "url": "http://www.opensource.org/licenses/mit-license.php"
45
+ "url": "https://opensource.org/licenses/MIT"
51
46
  }
52
47
  ],
53
- "devDependencies": {
54
- "@tko/binding.component": "^4.0.0-alpha9.0",
55
- "@tko/binding.core": "^4.0.0-alpha9.0",
56
- "@tko/binding.foreach": "^4.0.0-alpha9.0",
57
- "@tko/binding.if": "^4.0.0-alpha9.0",
58
- "@tko/binding.template": "^4.0.0-alpha9.0",
59
- "@tko/builder": "^4.0.0-alpha9.0",
60
- "@tko/filter.punches": "^4.0.0-alpha8.0",
61
- "@tko/provider.attr": "^4.0.0-alpha8.4",
62
- "@tko/provider.bindingstring": "^4.0.0-alpha9.0",
63
- "@tko/provider.component": "^4.0.0-alpha9.0",
64
- "@tko/provider.databind": "^4.0.0-alpha9.0",
65
- "@tko/provider.multi": "^4.0.0-alpha8.4",
66
- "@tko/provider.mustache": "^4.0.0-alpha9.0",
67
- "@tko/provider.virtual": "^4.0.0-alpha9.0",
68
- "@tko/utils.component": "^4.0.0-alpha9.0",
69
- "@tko/utils.functionrewrite": "^4.0.0-alpha8.2",
70
- "tslib": "^1.8.0"
71
- },
72
- "__about__shared.package.json": "These properties are copied into all packages/*/package.json. Run `yarn repackage`",
73
- "standard": {
74
- "env": [
75
- "browser",
76
- "jasmine",
77
- "mocha"
78
- ]
48
+ "dependencies": {
49
+ "@tko/binding.component": "^4.0.0-beta1.0",
50
+ "@tko/binding.core": "^4.0.0-beta1.0",
51
+ "@tko/binding.foreach": "^4.0.0-beta1.0",
52
+ "@tko/binding.if": "^4.0.0-beta1.0",
53
+ "@tko/binding.template": "^4.0.0-beta1.0",
54
+ "@tko/builder": "^4.0.0-beta1.0",
55
+ "@tko/filter.punches": "^4.0.0-beta1.0",
56
+ "@tko/provider.attr": "^4.0.0-beta1.0",
57
+ "@tko/provider.bindingstring": "^4.0.0-beta1.0",
58
+ "@tko/provider.component": "^4.0.0-beta1.0",
59
+ "@tko/provider.databind": "^4.0.0-beta1.0",
60
+ "@tko/provider.multi": "^4.0.0-beta1.0",
61
+ "@tko/provider.virtual": "^4.0.0-beta1.0",
62
+ "@tko/utils.component": "^4.0.0-beta1.0",
63
+ "@tko/utils.functionrewrite": "^4.0.0-beta1.0",
64
+ "tslib": "^2.2.0"
79
65
  },
80
- "publishConfig": {
81
- "access": "public"
66
+ "exports": {
67
+ ".": {
68
+ "require": "./dist/index.cjs",
69
+ "import": "./dist/index.mjs"
70
+ },
71
+ "./helpers/*": "./helpers/*"
82
72
  },
83
- "gitHead": "90cdb597db01d50725c567810af092e70a5b32d9"
73
+ "gitHead": "99114c4deded3fc5dbddd5c7c9c63c845a18263b"
84
74
  }