ember-primitives 0.1.0 → 0.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,cAAc,WAAW,CAAC"}
@@ -1,3 +1,23 @@
1
+ import type { Dialog } from './components/dialog';
2
+ import type { ExternalLink } from './components/external-link';
3
+ import type { Link } from './components/link';
4
+ import type { Popover } from './components/popover';
5
+ import type { Portal } from './components/portal';
6
+ import type { PortalTargets } from './components/portal-targets';
7
+ import type { Shadowed } from './components/shadowed';
8
+ import type { Switch } from './components/switch';
9
+ import type { Toggle } from './components/toggle';
10
+ import type { service } from './helpers/service';
1
11
  export default interface Registry {
12
+ Dialog: typeof Dialog;
13
+ ExternalLink: typeof ExternalLink;
14
+ Link: typeof Link;
15
+ Popover: typeof Popover;
16
+ PortalTargets: typeof PortalTargets;
17
+ Portal: typeof Portal;
18
+ Shadowed: typeof Shadowed;
19
+ Switch: typeof Switch;
20
+ Toggle: typeof Toggle;
21
+ service: typeof service;
2
22
  }
3
23
  //# sourceMappingURL=template-registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,WAAW,QAAQ;CAEhC"}
1
+ {"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAMjD,MAAM,CAAC,OAAO,WAAW,QAAQ;IAE/B,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,YAAY,CAAC;IAClC,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,MAAM,EAAE,OAAO,MAAM,CAAC;IAGtB,OAAO,EAAE,OAAO,OAAO,CAAC;CACzB"}
@@ -0,0 +1,2 @@
1
+ export { getRouter, setupRouting } from './routing';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-support/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type Owner from '@ember/owner';
2
+ import type { DSLCallback } from '@ember/routing/lib/dsl';
3
+ import type RouterService from '@ember/routing/router-service';
4
+ /**
5
+ * Allows setting up routes in tests without the need to scaffold routes in the actual app,
6
+ * allowing for iterating on many different routing scenario / configurations rapidly.
7
+ *
8
+ * Example:
9
+ * ```js
10
+ * import { setupRouting } from 'ember-primitives/test-support';
11
+ *
12
+ * ...
13
+ *
14
+ * test('my test', async function (assert) {
15
+ * setupRouting(this.owner, function () {
16
+ * this.route('foo');
17
+ * this.route('bar', function () {
18
+ * this.route('a');
19
+ * this.route('b');
20
+ * })
21
+ * });
22
+ *
23
+ * await visit('/bar/b');
24
+ * });
25
+ * ```
26
+ *
27
+ */
28
+ export declare function setupRouting(owner: Owner, map: DSLCallback, options?: {
29
+ rootURL: string;
30
+ }): void;
31
+ export declare function getRouter(owner: Owner): RouterService;
32
+ //# sourceMappingURL=routing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/test-support/routing.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,QAoBzF;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,iBAErC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-primitives",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Making apps easier to build",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -14,52 +14,54 @@
14
14
  "dist-types"
15
15
  ],
16
16
  "dependencies": {
17
- "@babel/runtime": "^7.22.5",
18
- "@embroider/addon-shim": "^1.8.5",
19
- "@embroider/macros": "1.12.2",
20
- "@floating-ui/dom": "^1.4.3",
21
- "ember-velcro": "^2.1.0",
17
+ "@babel/runtime": "^7.22.6",
18
+ "@embroider/addon-shim": "^1.8.6",
19
+ "@embroider/macros": "1.13.1",
20
+ "@floating-ui/dom": "^1.5.1",
21
+ "ember-velcro": "^2.1.1",
22
22
  "tracked-toolbox": "^2.0.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@arethetypeswrong/cli": "^0.7.1",
26
- "@babel/core": "^7.22.5",
27
- "@babel/eslint-parser": "^7.22.5",
26
+ "@babel/core": "^7.22.9",
27
+ "@babel/eslint-parser": "^7.22.9",
28
28
  "@babel/plugin-proposal-class-properties": "^7.18.6",
29
- "@babel/plugin-proposal-decorators": "^7.22.5",
29
+ "@babel/plugin-proposal-decorators": "^7.22.7",
30
30
  "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
31
31
  "@babel/plugin-syntax-decorators": "^7.22.5",
32
+ "@babel/plugin-transform-class-static-block": "^7.22.5",
32
33
  "@babel/plugin-transform-private-methods": "^7.22.5",
33
34
  "@babel/preset-typescript": "^7.22.5",
34
- "@embroider/addon-dev": "3.1.1",
35
+ "@embroider/addon-dev": "4.1.0",
35
36
  "@glimmer/component": "^1.1.2",
36
37
  "@glimmer/tracking": "^1.1.2",
37
38
  "@glint/core": "^1.0.2",
38
39
  "@glint/environment-ember-loose": "^1.0.2",
39
40
  "@glint/environment-ember-template-imports": "^1.0.2",
40
41
  "@glint/template": "^1.0.2",
41
- "@nullvoxpopuli/eslint-configs": "^3.1.4",
42
+ "@nullvoxpopuli/eslint-configs": "^3.2.0",
42
43
  "@rollup/plugin-babel": "^6.0.3",
43
44
  "@rollup/plugin-node-resolve": "^15.1.0",
44
45
  "@rollup/plugin-typescript": "^11.1.2",
45
46
  "@tsconfig/ember": "^3.0.0",
46
- "@typescript-eslint/eslint-plugin": "^5.61.0",
47
- "@typescript-eslint/parser": "^5.61.0",
47
+ "@typescript-eslint/eslint-plugin": "^6.2.1",
48
+ "@typescript-eslint/parser": "^6.2.1",
49
+ "babel-plugin-ember-template-compilation": "^2.2.0",
48
50
  "concurrently": "^8.2.0",
49
51
  "ember-modifier": "^4.1.0",
50
- "ember-resources": "^6.1.1",
51
- "ember-source": "~5.1.2",
52
+ "ember-resources": "^6.3.1",
53
+ "ember-source": "~5.2.0",
52
54
  "ember-template-imports": "^3.4.2",
53
55
  "ember-template-lint": "^5.11.1",
54
56
  "eslint": "^8.46.0",
55
- "eslint-config-prettier": "^8.3.0",
57
+ "eslint-config-prettier": "^9.0.0",
56
58
  "eslint-plugin-ember": "^11.10.0",
57
59
  "eslint-plugin-node": "^11.1.0",
58
- "eslint-plugin-prettier": "^4.0.0",
59
- "prettier": "^2.8.8",
60
- "prettier-plugin-ember-template-tag": "^0.3.2",
60
+ "eslint-plugin-prettier": "^5.0.0",
61
+ "prettier": "^3.0.1",
62
+ "prettier-plugin-ember-template-tag": "^1.0.2",
61
63
  "publint": "^0.2.0",
62
- "rollup": "~3.26.0",
64
+ "rollup": "~3.28.0",
63
65
  "rollup-plugin-copy": "^3.4.0",
64
66
  "rollup-plugin-glimmer-template-tag": "^0.4.1",
65
67
  "typescript": "^5.1.6"
@@ -81,6 +83,7 @@
81
83
  "./components/popover.js": "./dist/_app_/components/popover.js",
82
84
  "./components/portal-targets.js": "./dist/_app_/components/portal-targets.js",
83
85
  "./components/portal.js": "./dist/_app_/components/portal.js",
86
+ "./components/progress.js": "./dist/_app_/components/progress.js",
84
87
  "./components/shadowed.js": "./dist/_app_/components/shadowed.js",
85
88
  "./components/switch.js": "./dist/_app_/components/switch.js",
86
89
  "./components/toggle.js": "./dist/_app_/components/toggle.js",
@@ -96,10 +99,17 @@
96
99
  "types": "./dist-types/*.d.ts",
97
100
  "default": "./dist/*.js"
98
101
  },
102
+ "./test-support": {
103
+ "types": "./dist-types/test-support/index.d.ts",
104
+ "default": "./dist/test-support/index.js"
105
+ },
99
106
  "./addon-main": "./addon-main.cjs"
100
107
  },
101
108
  "typesVersions": {
102
109
  "*": {
110
+ "test-support": [
111
+ "dist-types/test-support/index.d.ts"
112
+ ],
103
113
  "*": [
104
114
  "dist-types/*"
105
115
  ]