@saasicat/ui-vue 1.0.0-rc.2 → 1.0.0-rc.3

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/.build-stamp CHANGED
@@ -1 +1 @@
1
- 14b1904cc8763759de50625a5589d989cdf7e6be7f84abe3f6c54aa3ca8ac9ae
1
+ d2bf333edcd4cf87651696c707e840b4e9e85982060b05bb84b1dfe683aca797
@@ -20,9 +20,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/testing/admin-pages-suite.ts
21
21
  var admin_pages_suite_exports = {};
22
22
  __export(admin_pages_suite_exports, {
23
+ DASHBOARD_DISTRIBUTION_TITLE: () => DASHBOARD_DISTRIBUTION_TITLE,
23
24
  runAdminPagesSuite: () => runAdminPagesSuite
24
25
  });
25
26
  module.exports = __toCommonJS(admin_pages_suite_exports);
27
+ var DASHBOARD_DISTRIBUTION_TITLE = ".sa-dashboard__rows .sa-section__title";
26
28
  var RESOURCE_FAILURE_MARKER = /Failed to load resource:/;
27
29
  function attachListeners(page, consoleAllowlist = [], networkAllowlist = []) {
28
30
  const out = { pageErrors: [], consoleErrors: [], networkErrors: [] };
@@ -105,7 +107,7 @@ function runAdminPagesSuite(test, expect, config) {
105
107
  );
106
108
  }
107
109
  if (config.expectedDistributionTitles?.length) {
108
- const distTitles = await page.locator(".sa-dashboard__row-head h2").allTextContents();
110
+ const distTitles = await page.locator(DASHBOARD_DISTRIBUTION_TITLE).allTextContents();
109
111
  const normalizedDist = distTitles.map((s) => s.trim());
110
112
  for (const expected of config.expectedDistributionTitles) {
111
113
  expect(
@@ -133,5 +135,6 @@ function runAdminPagesSuite(test, expect, config) {
133
135
  }
134
136
  // Annotate the CommonJS export names for ESM import in node:
135
137
  0 && (module.exports = {
138
+ DASHBOARD_DISTRIBUTION_TITLE,
136
139
  runAdminPagesSuite
137
140
  });
@@ -32,6 +32,15 @@ interface AdminPagesSuiteConfig {
32
32
  /** Path to the dashboard page (default `/admin/`). */
33
33
  dashboardPath?: string;
34
34
  }
35
+ /**
36
+ * Where the dashboard renders a distribution's title: each distribution is an
37
+ * `AdminSection` under `.sa-dashboard__rows`, and the section's heading is the
38
+ * title. Exported so the component test that mounts the page can ask the same
39
+ * question this suite asks of a running app — the selector used to be a
40
+ * `.sa-dashboard__row-head h2` the page had stopped rendering, and nothing
41
+ * said so until a consumer ran the suite.
42
+ */
43
+ declare const DASHBOARD_DISTRIBUTION_TITLE = ".sa-dashboard__rows .sa-section__title";
35
44
  declare function runAdminPagesSuite(test: typeof test, expect: typeof expect, config: AdminPagesSuiteConfig): void;
36
45
 
37
- export { type AdminPagesSuiteConfig, runAdminPagesSuite };
46
+ export { type AdminPagesSuiteConfig, DASHBOARD_DISTRIBUTION_TITLE, runAdminPagesSuite };
@@ -32,6 +32,15 @@ interface AdminPagesSuiteConfig {
32
32
  /** Path to the dashboard page (default `/admin/`). */
33
33
  dashboardPath?: string;
34
34
  }
35
+ /**
36
+ * Where the dashboard renders a distribution's title: each distribution is an
37
+ * `AdminSection` under `.sa-dashboard__rows`, and the section's heading is the
38
+ * title. Exported so the component test that mounts the page can ask the same
39
+ * question this suite asks of a running app — the selector used to be a
40
+ * `.sa-dashboard__row-head h2` the page had stopped rendering, and nothing
41
+ * said so until a consumer ran the suite.
42
+ */
43
+ declare const DASHBOARD_DISTRIBUTION_TITLE = ".sa-dashboard__rows .sa-section__title";
35
44
  declare function runAdminPagesSuite(test: typeof test, expect: typeof expect, config: AdminPagesSuiteConfig): void;
36
45
 
37
- export { type AdminPagesSuiteConfig, runAdminPagesSuite };
46
+ export { type AdminPagesSuiteConfig, DASHBOARD_DISTRIBUTION_TITLE, runAdminPagesSuite };
@@ -1,4 +1,5 @@
1
1
  // src/testing/admin-pages-suite.ts
2
+ var DASHBOARD_DISTRIBUTION_TITLE = ".sa-dashboard__rows .sa-section__title";
2
3
  var RESOURCE_FAILURE_MARKER = /Failed to load resource:/;
3
4
  function attachListeners(page, consoleAllowlist = [], networkAllowlist = []) {
4
5
  const out = { pageErrors: [], consoleErrors: [], networkErrors: [] };
@@ -81,7 +82,7 @@ function runAdminPagesSuite(test, expect, config) {
81
82
  );
82
83
  }
83
84
  if (config.expectedDistributionTitles?.length) {
84
- const distTitles = await page.locator(".sa-dashboard__row-head h2").allTextContents();
85
+ const distTitles = await page.locator(DASHBOARD_DISTRIBUTION_TITLE).allTextContents();
85
86
  const normalizedDist = distTitles.map((s) => s.trim());
86
87
  for (const expected of config.expectedDistributionTitles) {
87
88
  expect(
@@ -108,5 +109,6 @@ function runAdminPagesSuite(test, expect, config) {
108
109
  });
109
110
  }
110
111
  export {
112
+ DASHBOARD_DISTRIBUTION_TITLE,
111
113
  runAdminPagesSuite
112
114
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasicat/ui-vue",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.3",
4
4
  "description": "Vue 3 components, resource clients and composables for the SuperAdmin UI shell. Provides boot and manifest loaders, navigation, actions and standard pages.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -72,7 +72,7 @@
72
72
  "src"
73
73
  ],
74
74
  "dependencies": {
75
- "@saasicat/core": "^1.0.0-rc.2"
75
+ "@saasicat/core": "^1.0.0-rc.3"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "pinia": "^2.0.0 || ^3.0.0",
@@ -109,7 +109,7 @@
109
109
  "vue": "^3.5.0",
110
110
  "vue-router": "^5.0.0",
111
111
  "vue-tsc": "^3.3.3",
112
- "@saasicat/ui-vue-tenant": "1.0.0-rc.2"
112
+ "@saasicat/ui-vue-tenant": "1.0.0-rc.3"
113
113
  },
114
114
  "license": "PolyForm-Shield-1.0.0",
115
115
  "author": "Taci Uelker",
@@ -71,7 +71,7 @@ function onNext(payload: EditorFormPayload): void {
71
71
  editingId: wizard.editing.value?.editingId ?? null,
72
72
  initialForm: { ...payload },
73
73
  };
74
- void router.push(`${plansBase()}/review`);
74
+ void router.push(`${plansBase()}/version/review`);
75
75
  }
76
76
 
77
77
  function onCancel(): void {
@@ -48,6 +48,16 @@ export interface AdminPagesSuiteConfig {
48
48
  dashboardPath?: string;
49
49
  }
50
50
 
51
+ /**
52
+ * Where the dashboard renders a distribution's title: each distribution is an
53
+ * `AdminSection` under `.sa-dashboard__rows`, and the section's heading is the
54
+ * title. Exported so the component test that mounts the page can ask the same
55
+ * question this suite asks of a running app — the selector used to be a
56
+ * `.sa-dashboard__row-head h2` the page had stopped rendering, and nothing
57
+ * said so until a consumer ran the suite.
58
+ */
59
+ export const DASHBOARD_DISTRIBUTION_TITLE = '.sa-dashboard__rows .sa-section__title';
60
+
51
61
  interface PageErrors {
52
62
  pageErrors: string[];
53
63
  consoleErrors: string[];
@@ -158,7 +168,7 @@ export function runAdminPagesSuite(
158
168
 
159
169
  if (config.expectedDistributionTitles?.length) {
160
170
  const distTitles = await page
161
- .locator('.sa-dashboard__row-head h2')
171
+ .locator(DASHBOARD_DISTRIBUTION_TITLE)
162
172
  .allTextContents();
163
173
  const normalizedDist = distTitles.map((s) => s.trim());
164
174
  for (const expected of config.expectedDistributionTitles) {