@cratis/scene.react 4.1.1 → 4.2.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.
Files changed (62) hide show
  1. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  2. package/package.json +11 -10
  3. package/NavBar/for_NavBar/when_rendering_navigation_contributions.tsx +0 -62
  4. package/NavBar/for_extractNavigationItem/when_extracting_from_a_navigation_contribution.ts +0 -53
  5. package/dist/esm/NavBar/for_NavBar/when_rendering_navigation_contributions.d.ts +0 -2
  6. package/dist/esm/NavBar/for_NavBar/when_rendering_navigation_contributions.d.ts.map +0 -1
  7. package/dist/esm/NavBar/for_NavBar/when_rendering_navigation_contributions.js +0 -53
  8. package/dist/esm/NavBar/for_NavBar/when_rendering_navigation_contributions.js.map +0 -1
  9. package/dist/esm/NavBar/for_extractNavigationItem/when_extracting_from_a_navigation_contribution.d.ts +0 -2
  10. package/dist/esm/NavBar/for_extractNavigationItem/when_extracting_from_a_navigation_contribution.d.ts.map +0 -1
  11. package/dist/esm/NavBar/for_extractNavigationItem/when_extracting_from_a_navigation_contribution.js +0 -45
  12. package/dist/esm/NavBar/for_extractNavigationItem/when_extracting_from_a_navigation_contribution.js.map +0 -1
  13. package/dist/esm/for_SceneElementView/when_rendering_a_tree.d.ts +0 -2
  14. package/dist/esm/for_SceneElementView/when_rendering_a_tree.d.ts.map +0 -1
  15. package/dist/esm/for_SceneElementView/when_rendering_a_tree.js +0 -44
  16. package/dist/esm/for_SceneElementView/when_rendering_a_tree.js.map +0 -1
  17. package/dist/esm/for_ScreenplayCoreComponents/when_rendering_a_translated_screen.d.ts +0 -2
  18. package/dist/esm/for_ScreenplayCoreComponents/when_rendering_a_translated_screen.d.ts.map +0 -1
  19. package/dist/esm/for_ScreenplayCoreComponents/when_rendering_a_translated_screen.js +0 -46
  20. package/dist/esm/for_ScreenplayCoreComponents/when_rendering_a_translated_screen.js.map +0 -1
  21. package/dist/esm/for_applyThemeTokens/when_switching_themes.d.ts +0 -2
  22. package/dist/esm/for_applyThemeTokens/when_switching_themes.d.ts.map +0 -1
  23. package/dist/esm/for_applyThemeTokens/when_switching_themes.js +0 -59
  24. package/dist/esm/for_applyThemeTokens/when_switching_themes.js.map +0 -1
  25. package/dist/esm/for_panelLayout/when_arranging_a_panel.d.ts +0 -2
  26. package/dist/esm/for_panelLayout/when_arranging_a_panel.d.ts.map +0 -1
  27. package/dist/esm/for_panelLayout/when_arranging_a_panel.js +0 -110
  28. package/dist/esm/for_panelLayout/when_arranging_a_panel.js.map +0 -1
  29. package/dist/esm/for_themeTokens/when_converting_a_token_name.d.ts +0 -2
  30. package/dist/esm/for_themeTokens/when_converting_a_token_name.d.ts.map +0 -1
  31. package/dist/esm/for_themeTokens/when_converting_a_token_name.js +0 -16
  32. package/dist/esm/for_themeTokens/when_converting_a_token_name.js.map +0 -1
  33. package/dist/esm/for_useInteractionHosts/when_a_document_asks_the_user_something.d.ts +0 -2
  34. package/dist/esm/for_useInteractionHosts/when_a_document_asks_the_user_something.d.ts.map +0 -1
  35. package/dist/esm/for_useInteractionHosts/when_a_document_asks_the_user_something.js +0 -73
  36. package/dist/esm/for_useInteractionHosts/when_a_document_asks_the_user_something.js.map +0 -1
  37. package/dist/esm/for_useInteractionHosts/when_the_host_cannot_do_what_was_asked.d.ts +0 -2
  38. package/dist/esm/for_useInteractionHosts/when_the_host_cannot_do_what_was_asked.d.ts.map +0 -1
  39. package/dist/esm/for_useInteractionHosts/when_the_host_cannot_do_what_was_asked.js +0 -43
  40. package/dist/esm/for_useInteractionHosts/when_the_host_cannot_do_what_was_asked.js.map +0 -1
  41. package/dist/esm/for_useInteractions/when_clicking_an_element_that_executes_a_command.d.ts +0 -2
  42. package/dist/esm/for_useInteractions/when_clicking_an_element_that_executes_a_command.d.ts.map +0 -1
  43. package/dist/esm/for_useInteractions/when_clicking_an_element_that_executes_a_command.js +0 -94
  44. package/dist/esm/for_useInteractions/when_clicking_an_element_that_executes_a_command.js.map +0 -1
  45. package/dist/esm/for_validatePackageBundle/when_the_bundle_and_manifest_disagree.d.ts +0 -2
  46. package/dist/esm/for_validatePackageBundle/when_the_bundle_and_manifest_disagree.d.ts.map +0 -1
  47. package/dist/esm/for_validatePackageBundle/when_the_bundle_and_manifest_disagree.js +0 -59
  48. package/dist/esm/for_validatePackageBundle/when_the_bundle_and_manifest_disagree.js.map +0 -1
  49. package/dist/esm/for_validatePackageBundle/when_the_bundle_matches_its_manifest.d.ts +0 -2
  50. package/dist/esm/for_validatePackageBundle/when_the_bundle_matches_its_manifest.d.ts.map +0 -1
  51. package/dist/esm/for_validatePackageBundle/when_the_bundle_matches_its_manifest.js +0 -8
  52. package/dist/esm/for_validatePackageBundle/when_the_bundle_matches_its_manifest.js.map +0 -1
  53. package/for_SceneElementView/when_rendering_a_tree.tsx +0 -53
  54. package/for_ScreenplayCoreComponents/when_rendering_a_translated_screen.tsx +0 -60
  55. package/for_applyThemeTokens/when_switching_themes.ts +0 -74
  56. package/for_panelLayout/when_arranging_a_panel.ts +0 -135
  57. package/for_themeTokens/when_converting_a_token_name.ts +0 -22
  58. package/for_useInteractionHosts/when_a_document_asks_the_user_something.tsx +0 -106
  59. package/for_useInteractionHosts/when_the_host_cannot_do_what_was_asked.tsx +0 -66
  60. package/for_useInteractions/when_clicking_an_element_that_executes_a_command.tsx +0 -141
  61. package/for_validatePackageBundle/when_the_bundle_and_manifest_disagree.ts +0 -72
  62. package/for_validatePackageBundle/when_the_bundle_matches_its_manifest.ts +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/scene.react",
3
- "version": "4.1.1",
3
+ "version": "4.2.1",
4
4
  "description": "The React renderer implementing Scene.Engine's Renderer contract against real React/DOM.",
5
5
  "keywords": [
6
6
  "cratis",
@@ -24,7 +24,8 @@
24
24
  "files": [
25
25
  "dist",
26
26
  "**/*.ts",
27
- "**/*.tsx"
27
+ "**/*.tsx",
28
+ "!**/for_*/**"
28
29
  ],
29
30
  "main": "dist/cjs/index.js",
30
31
  "module": "dist/esm/index.js",
@@ -50,18 +51,18 @@
50
51
  "build-storybook": "storybook build"
51
52
  },
52
53
  "dependencies": {
53
- "@cratis/scene.engine": "4.1.1",
54
- "@cratis/scene.model": "4.1.1"
54
+ "@cratis/scene.engine": "4.2.1",
55
+ "@cratis/scene.model": "4.2.1"
55
56
  },
56
57
  "devDependencies": {
57
- "@cratis/scene.engine": "4.1.1",
58
- "@cratis/scene.model": "4.1.1",
59
- "@storybook/addon-links": "^10.6.0",
60
- "@storybook/react": "^10.6.0",
61
- "@storybook/react-vite": "^10.6.0",
58
+ "@cratis/scene.engine": "4.2.1",
59
+ "@cratis/scene.model": "4.2.1",
60
+ "@storybook/addon-links": "^10.6.1",
61
+ "@storybook/react": "^10.6.1",
62
+ "@storybook/react-vite": "^10.6.1",
62
63
  "react": "^19.3.0",
63
64
  "react-dom": "^19.3.0",
64
- "storybook": "^10.6.0"
65
+ "storybook": "^10.6.1"
65
66
  },
66
67
  "peerDependencies": {
67
68
  "react": "^18.0.0 || ^19.0.0",
@@ -1,62 +0,0 @@
1
- // Copyright (c) Cratis. All rights reserved.
2
- // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
-
4
- import { render, screen } from '@testing-library/react';
5
- import { Contribution, ExternalComponent, HorizontalAlignment, VerticalAlignment, Visibility } from '@cratis/scene.model';
6
- import { NavBar } from '../NavBar';
7
-
8
- function navigationContribution(id: string, properties: Record<string, unknown>, order?: number): Contribution {
9
- const content: ExternalComponent = {
10
- id,
11
- name: id,
12
- properties,
13
- visibility: Visibility.Visible,
14
- isEnabled: true,
15
- opacity: 1,
16
- size: {},
17
- zIndex: 0,
18
- minimumSize: {},
19
- maximumSize: {},
20
- margin: { left: 0, top: 0, right: 0, bottom: 0 },
21
- horizontalAlignment: HorizontalAlignment.Stretch,
22
- verticalAlignment: VerticalAlignment.Stretch,
23
- componentName: 'core:navigation-item',
24
- slots: {},
25
- };
26
- return { contributionPointName: 'Navigation', content, order };
27
- }
28
-
29
- describe('when rendering navigation contributions', () => {
30
- describe('and no item declares a group', () => {
31
- const contributions = [
32
- navigationContribution('adjustments', { label: 'Adjustments', targetScreen: 'Adjustments' }, 20),
33
- navigationContribution('invoices', { label: 'Invoices', targetScreen: 'InvoiceList' }, 10),
34
- ];
35
-
36
- beforeEach(() => {
37
- render(<NavBar contributions={contributions} renderRoute={item => `/${item.targetScreen}`} />);
38
- });
39
-
40
- it('should render every item as a link to its rendered route', () => {
41
- screen.getByRole('link', { name: 'Invoices' }).getAttribute('href')!.should.equal('/InvoiceList');
42
- screen.getByRole('link', { name: 'Adjustments' }).getAttribute('href')!.should.equal('/Adjustments');
43
- });
44
-
45
- it('should render items in aggregated order', () => {
46
- const links = screen.getAllByRole('link').map(link => link.textContent);
47
- links.should.deep.equal(['Invoices', 'Adjustments']);
48
- });
49
- });
50
-
51
- describe('and a contribution cannot be extracted into a navigation item', () => {
52
- const contributions = [navigationContribution('broken', { label: 'Broken' })];
53
-
54
- beforeEach(() => {
55
- render(<NavBar contributions={contributions} renderRoute={item => `/${item.targetScreen}`} />);
56
- });
57
-
58
- it('should skip it rather than render a broken link', () => {
59
- screen.queryAllByRole('link').should.have.lengthOf(0);
60
- });
61
- });
62
- });
@@ -1,53 +0,0 @@
1
- // Copyright (c) Cratis. All rights reserved.
2
- // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
-
4
- import { Contribution, ExternalComponent, HorizontalAlignment, NavigationItem, VerticalAlignment, Visibility } from '@cratis/scene.model';
5
- import { extractNavigationItem } from '../extractNavigationItem';
6
-
7
- function navigationContribution(properties: Record<string, unknown>, order?: number): Contribution {
8
- const content: ExternalComponent = {
9
- id: 'nav-item',
10
- name: 'nav-item',
11
- properties,
12
- visibility: Visibility.Visible,
13
- isEnabled: true,
14
- opacity: 1,
15
- size: {},
16
- zIndex: 0,
17
- minimumSize: {},
18
- maximumSize: {},
19
- margin: { left: 0, top: 0, right: 0, bottom: 0 },
20
- horizontalAlignment: HorizontalAlignment.Stretch,
21
- verticalAlignment: VerticalAlignment.Stretch,
22
- componentName: 'core:navigation-item',
23
- slots: {},
24
- };
25
- return { contributionPointName: 'Navigation', content, order };
26
- }
27
-
28
- describe('when extracting from a navigation contribution', () => {
29
- describe('and the required properties are present', () => {
30
- let result: NavigationItem | undefined;
31
-
32
- beforeEach(() => {
33
- result = extractNavigationItem(navigationContribution({ label: 'Invoices', targetScreen: 'InvoiceList', group: 'Sales' }, 10));
34
- });
35
-
36
- it('should extract the label', () => result!.label.should.equal('Invoices'));
37
- it('should extract the target screen', () => result!.targetScreen.should.equal('InvoiceList'));
38
- it('should extract the group', () => result!.group!.should.equal('Sales'));
39
- it('should fall back to the contribution order when the properties bag has none', () => result!.order!.should.equal(10));
40
- });
41
-
42
- describe('and the label is missing', () => {
43
- it('should return undefined', () => {
44
- (extractNavigationItem(navigationContribution({ targetScreen: 'InvoiceList' })) === undefined).should.be.true;
45
- });
46
- });
47
-
48
- describe('and the target screen is missing', () => {
49
- it('should return undefined', () => {
50
- (extractNavigationItem(navigationContribution({ label: 'Invoices' })) === undefined).should.be.true;
51
- });
52
- });
53
- });
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=when_rendering_navigation_contributions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_rendering_navigation_contributions.d.ts","sourceRoot":"","sources":["../../../../NavBar/for_NavBar/when_rendering_navigation_contributions.tsx"],"names":[],"mappings":""}
@@ -1,53 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { render, screen } from '@testing-library/react';
3
- import { HorizontalAlignment, VerticalAlignment, Visibility } from '@cratis/scene.model';
4
- import { NavBar } from '../NavBar';
5
- function navigationContribution(id, properties, order) {
6
- const content = {
7
- id,
8
- name: id,
9
- properties,
10
- visibility: Visibility.Visible,
11
- isEnabled: true,
12
- opacity: 1,
13
- size: {},
14
- zIndex: 0,
15
- minimumSize: {},
16
- maximumSize: {},
17
- margin: { left: 0, top: 0, right: 0, bottom: 0 },
18
- horizontalAlignment: HorizontalAlignment.Stretch,
19
- verticalAlignment: VerticalAlignment.Stretch,
20
- componentName: 'core:navigation-item',
21
- slots: {},
22
- };
23
- return { contributionPointName: 'Navigation', content, order };
24
- }
25
- describe('when rendering navigation contributions', () => {
26
- describe('and no item declares a group', () => {
27
- const contributions = [
28
- navigationContribution('adjustments', { label: 'Adjustments', targetScreen: 'Adjustments' }, 20),
29
- navigationContribution('invoices', { label: 'Invoices', targetScreen: 'InvoiceList' }, 10),
30
- ];
31
- beforeEach(() => {
32
- render(_jsx(NavBar, { contributions: contributions, renderRoute: item => `/${item.targetScreen}` }));
33
- });
34
- it('should render every item as a link to its rendered route', () => {
35
- screen.getByRole('link', { name: 'Invoices' }).getAttribute('href').should.equal('/InvoiceList');
36
- screen.getByRole('link', { name: 'Adjustments' }).getAttribute('href').should.equal('/Adjustments');
37
- });
38
- it('should render items in aggregated order', () => {
39
- const links = screen.getAllByRole('link').map(link => link.textContent);
40
- links.should.deep.equal(['Invoices', 'Adjustments']);
41
- });
42
- });
43
- describe('and a contribution cannot be extracted into a navigation item', () => {
44
- const contributions = [navigationContribution('broken', { label: 'Broken' })];
45
- beforeEach(() => {
46
- render(_jsx(NavBar, { contributions: contributions, renderRoute: item => `/${item.targetScreen}` }));
47
- });
48
- it('should skip it rather than render a broken link', () => {
49
- screen.queryAllByRole('link').should.have.lengthOf(0);
50
- });
51
- });
52
- });
53
- //# sourceMappingURL=when_rendering_navigation_contributions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_rendering_navigation_contributions.js","sourceRoot":"","sources":["../../../../NavBar/for_NavBar/when_rendering_navigation_contributions.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAmC,mBAAmB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC1H,OAAO,EAAE,MAAM,EAAE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;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=when_extracting_from_a_navigation_contribution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_extracting_from_a_navigation_contribution.d.ts","sourceRoot":"","sources":["../../../../NavBar/for_extractNavigationItem/when_extracting_from_a_navigation_contribution.ts"],"names":[],"mappings":""}
@@ -1,45 +0,0 @@
1
- import { HorizontalAlignment, VerticalAlignment, Visibility } from '@cratis/scene.model';
2
- import { extractNavigationItem } from '../extractNavigationItem';
3
- function navigationContribution(properties, order) {
4
- const content = {
5
- id: 'nav-item',
6
- name: 'nav-item',
7
- properties,
8
- visibility: Visibility.Visible,
9
- isEnabled: true,
10
- opacity: 1,
11
- size: {},
12
- zIndex: 0,
13
- minimumSize: {},
14
- maximumSize: {},
15
- margin: { left: 0, top: 0, right: 0, bottom: 0 },
16
- horizontalAlignment: HorizontalAlignment.Stretch,
17
- verticalAlignment: VerticalAlignment.Stretch,
18
- componentName: 'core:navigation-item',
19
- slots: {},
20
- };
21
- return { contributionPointName: 'Navigation', content, order };
22
- }
23
- describe('when extracting from a navigation contribution', () => {
24
- describe('and the required properties are present', () => {
25
- let result;
26
- beforeEach(() => {
27
- result = extractNavigationItem(navigationContribution({ label: 'Invoices', targetScreen: 'InvoiceList', group: 'Sales' }, 10));
28
- });
29
- it('should extract the label', () => result.label.should.equal('Invoices'));
30
- it('should extract the target screen', () => result.targetScreen.should.equal('InvoiceList'));
31
- it('should extract the group', () => result.group.should.equal('Sales'));
32
- it('should fall back to the contribution order when the properties bag has none', () => result.order.should.equal(10));
33
- });
34
- describe('and the label is missing', () => {
35
- it('should return undefined', () => {
36
- (extractNavigationItem(navigationContribution({ targetScreen: 'InvoiceList' })) === undefined).should.be.true;
37
- });
38
- });
39
- describe('and the target screen is missing', () => {
40
- it('should return undefined', () => {
41
- (extractNavigationItem(navigationContribution({ label: 'Invoices' })) === undefined).should.be.true;
42
- });
43
- });
44
- });
45
- //# sourceMappingURL=when_extracting_from_a_navigation_contribution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_extracting_from_a_navigation_contribution.js","sourceRoot":"","sources":["../../../../NavBar/for_extractNavigationItem/when_extracting_from_a_navigation_contribution.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmC,mBAAmB,EAAkB,iBAAiB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC1I,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,SAAS,sBAAsB,CAAC,UAAmC,EAAE,KAAc;IAC/E,MAAM,OAAO,GAAsB;QAC/B,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,UAAU;QAChB,UAAU;QACV,UAAU,EAAE,UAAU,CAAC,OAAO;QAC9B,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,CAAC;QACT,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QAChD,mBAAmB,EAAE,mBAAmB,CAAC,OAAO;QAChD,iBAAiB,EAAE,iBAAiB,CAAC,OAAO;QAC5C,aAAa,EAAE,sBAAsB;QACrC,KAAK,EAAE,EAAE;KACZ,CAAC;IACF,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AACnE,CAAC;AAED,QAAQ,CAAC,gDAAgD,EAAE,GAAG,EAAE;IAC5D,QAAQ,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACrD,IAAI,MAAkC,CAAC;QAEvC,UAAU,CAAC,GAAG,EAAE;YACZ,MAAM,GAAG,qBAAqB,CAAC,sBAAsB,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,EAA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tree.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_rendering_a_tree.d.ts","sourceRoot":"","sources":["../../../for_SceneElementView/when_rendering_a_tree.tsx"],"names":[],"mappings":""}
@@ -1,44 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { expect } from 'chai';
3
- import { render, screen } from '@testing-library/react';
4
- import { HorizontalAlignment, VerticalAlignment, Visibility } from '@cratis/scene.model';
5
- import { SceneElementView } from '../SceneElementView';
6
- import { coreComponents } from '../core';
7
- function control(id) {
8
- return {
9
- id,
10
- name: id,
11
- properties: {},
12
- visibility: Visibility.Visible,
13
- isEnabled: true,
14
- opacity: 1,
15
- size: {},
16
- zIndex: 0,
17
- minimumSize: {},
18
- maximumSize: {},
19
- margin: { left: 0, top: 0, right: 0, bottom: 0 },
20
- horizontalAlignment: HorizontalAlignment.Stretch,
21
- verticalAlignment: VerticalAlignment.Stretch,
22
- borderThickness: { left: 0, top: 0, right: 0, bottom: 0 },
23
- padding: { left: 0, top: 0, right: 0, bottom: 0 },
24
- tabIndex: 0,
25
- };
26
- }
27
- describe('when rendering a tree', () => {
28
- describe('and every component resolves', () => {
29
- const text = { ...control('greeting'), componentName: 'core:text', properties: { text: 'Hello Scene' }, slots: {} };
30
- const card = { ...control('card'), componentName: 'core:card', slots: { content: [text] } };
31
- beforeEach(() => {
32
- render(_jsx(SceneElementView, { element: card, registry: coreComponents, resolveBinding: () => undefined }));
33
- });
34
- it('should render the nested core:text content', () => expect(screen.getByText('Hello Scene')).to.exist);
35
- });
36
- describe('and a component does not resolve', () => {
37
- const missing = { ...control('missing'), componentName: 'vendor:fancy-widget', slots: {} };
38
- beforeEach(() => {
39
- render(_jsx(SceneElementView, { element: missing, registry: coreComponents, resolveBinding: () => undefined }));
40
- });
41
- it('should render a visible unresolved-component placeholder', () => expect(screen.getByText('Unresolved component: vendor:fancy-widget')).to.exist);
42
- });
43
- });
44
- //# sourceMappingURL=when_rendering_a_tree.js.map
@@ -1 +0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C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=when_rendering_a_translated_screen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_rendering_a_translated_screen.d.ts","sourceRoot":"","sources":["../../../for_ScreenplayCoreComponents/when_rendering_a_translated_screen.tsx"],"names":[],"mappings":""}
@@ -1,46 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { expect } from 'chai';
3
- import { fireEvent, render, screen } from '@testing-library/react';
4
- import { HorizontalAlignment, VerticalAlignment, Visibility } from '@cratis/scene.model';
5
- import { SceneElementView } from '../SceneElementView';
6
- import { coreComponents } from '../core';
7
- function control(id) {
8
- return {
9
- id,
10
- name: id,
11
- properties: {},
12
- visibility: Visibility.Visible,
13
- isEnabled: true,
14
- opacity: 1,
15
- size: {},
16
- zIndex: 0,
17
- minimumSize: {},
18
- maximumSize: {},
19
- margin: { left: 0, top: 0, right: 0, bottom: 0 },
20
- horizontalAlignment: HorizontalAlignment.Stretch,
21
- verticalAlignment: VerticalAlignment.Stretch,
22
- borderThickness: { left: 0, top: 0, right: 0, bottom: 0 },
23
- padding: { left: 0, top: 0, right: 0, bottom: 0 },
24
- tabIndex: 0,
25
- };
26
- }
27
- const component = (id, componentName, properties = {}, slots = {}) => ({ ...control(id), componentName, properties, slots });
28
- describe('when rendering a translated Screenplay screen', () => {
29
- const title = component('title', 'core:title', { text: 'Invoices' });
30
- const action = component('create', 'core:action', { command: 'CreateInvoice', label: 'Create invoice' });
31
- const section = component('section', 'core:section', { name: 'Open invoices' }, { content: [title, action] });
32
- beforeEach(() => {
33
- render(_jsx(SceneElementView, { element: section, registry: coreComponents, resolveBinding: () => undefined }));
34
- });
35
- it('should render the section heading', () => expect(screen.getByRole('heading', { name: 'Open invoices' })).to.exist);
36
- it('should render the translated title', () => expect(screen.getByRole('heading', { name: 'Invoices' })).to.exist);
37
- it('should render the modeled action', () => expect(screen.getByRole('button', { name: 'Create invoice' })).to.exist);
38
- it('should announce the modeled command to the host', () => {
39
- let command = '';
40
- const listener = (event) => { command = event.detail.command; };
41
- globalThis.addEventListener('cratis.scene.command', listener, { once: true });
42
- fireEvent.click(screen.getByRole('button', { name: 'Create invoice' }));
43
- command.should.equal('CreateInvoice');
44
- });
45
- });
46
- //# sourceMappingURL=when_rendering_a_translated_screen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_rendering_a_translated_screen.js","sourceRoot":"","sources":["../../../for_ScreenplayCoreComponents/when_rendering_a_translated_screen.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAA8B,mBAAmB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACrH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,SAAS,OAAO,CAAC,EAAU;IACvB,OAAO;QACH,EAAE;QACF,IAAI,EAAE,EAAE;QACR,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,UAAU,CAAC,OAAO;QAC9B,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,CAAC;QACT,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QAChD,mBAAmB,EAAE,mBAAmB,CAAC,OAAO;QAChD,iBAAiB,EAAE,iBAAiB,CAAC,OAAO;QAC5C,eAAe,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EA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AAC;IACvH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;IACnH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;IAEtH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACvD,IAAI,OAAO,GAAG,EAAE,CAAC;QACjB,MAAM,QAAQ,GAAG,CAAC,KAAY,EAAE,EAAE,GAAG,OAAO,GAAI,KAAqB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACxF,UAAU,CAAC,gBAAgB,CAAC,sBAAsB,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAE9E,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;QAExE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=when_switching_themes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_switching_themes.d.ts","sourceRoot":"","sources":["../../../for_applyThemeTokens/when_switching_themes.ts"],"names":[],"mappings":""}
@@ -1,59 +0,0 @@
1
- import { JSDOM } from 'jsdom';
2
- import { applyThemeTokens } from '../index';
3
- const light = {
4
- name: 'Daylight',
5
- compatibleWith: ['core'],
6
- tokens: { 'primary.color': '#2563eb', 'surface.background': '#ffffff' },
7
- };
8
- const dark = {
9
- name: 'Midnight',
10
- compatibleWith: ['core'],
11
- isDark: true,
12
- tokens: { 'primary.color': '#60a5fa' },
13
- };
14
- describe('when switching themes', () => {
15
- const dom = new JSDOM('<div id="root"></div>');
16
- const element = dom.window.document.getElementById('root');
17
- applyThemeTokens(element, light);
18
- const afterLight = {
19
- primary: element.style.getPropertyValue('--scene-primary-color'),
20
- surface: element.style.getPropertyValue('--scene-surface-background'),
21
- theme: element.getAttribute('data-scene-theme'),
22
- scheme: element.getAttribute('data-scene-color-scheme'),
23
- };
24
- applyThemeTokens(element, dark, light);
25
- const afterDark = {
26
- primary: element.style.getPropertyValue('--scene-primary-color'),
27
- surface: element.style.getPropertyValue('--scene-surface-background'),
28
- theme: element.getAttribute('data-scene-theme'),
29
- scheme: element.getAttribute('data-scene-color-scheme'),
30
- };
31
- applyThemeTokens(element, undefined, dark);
32
- const afterClearing = {
33
- primary: element.style.getPropertyValue('--scene-primary-color'),
34
- theme: element.getAttribute('data-scene-theme'),
35
- };
36
- it('should write the first theme tokens as custom properties', () => {
37
- afterLight.primary.should.equal('#2563eb');
38
- afterLight.surface.should.equal('#ffffff');
39
- });
40
- it('should mark the element with the first theme name and scheme', () => {
41
- afterLight.theme.should.equal('Daylight');
42
- afterLight.scheme.should.equal('light');
43
- });
44
- it('should overwrite a token the next theme also defines', () => {
45
- afterDark.primary.should.equal('#60a5fa');
46
- });
47
- it('should remove a token the next theme does not define, rather than leaving it stale', () => {
48
- afterDark.surface.should.equal('');
49
- });
50
- it('should mark the element as dark for a dark theme', () => {
51
- afterDark.theme.should.equal('Midnight');
52
- afterDark.scheme.should.equal('dark');
53
- });
54
- it('should clear every token and marker when the theme is removed', () => {
55
- afterClearing.primary.should.equal('');
56
- (afterClearing.theme === null).should.be.true;
57
- });
58
- });
59
- //# sourceMappingURL=when_switching_themes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_switching_themes.js","sourceRoot":"","sources":["../../../for_applyThemeTokens/when_switching_themes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KAAK,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+DAA+D,EAAE,GAAG,EAAE;QACrE,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACvC,CAAC,aAAa,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC;IAClD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=when_arranging_a_panel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_arranging_a_panel.d.ts","sourceRoot":"","sources":["../../../for_panelLayout/when_arranging_a_panel.ts"],"names":[],"mappings":""}
@@ -1,110 +0,0 @@
1
- import { Dock, GridUnitType, HorizontalAlignment, Orientation, VerticalAlignment, Visibility } from '@cratis/scene.model';
2
- import { childStyle, panelStyle } from '../renderer/panelLayout';
3
- const base = {
4
- id: 'panel',
5
- properties: {},
6
- visibility: Visibility.Visible,
7
- isEnabled: true,
8
- opacity: 1,
9
- zIndex: 0,
10
- size: {},
11
- name: 'panel',
12
- minimumSize: {},
13
- maximumSize: {},
14
- margin: { left: 0, top: 0, right: 0, bottom: 0 },
15
- horizontalAlignment: HorizontalAlignment.Stretch,
16
- verticalAlignment: VerticalAlignment.Stretch,
17
- children: [],
18
- };
19
- const child = (properties = {}) => ({ id: 'child', properties });
20
- const star = (value) => ({ value, unitType: GridUnitType.Star });
21
- const row = (over = {}) => ({ height: star(1), minimumHeight: 0, maximumHeight: Number.POSITIVE_INFINITY, ...over });
22
- const column = (over = {}) => ({ width: star(1), minimumWidth: 0, maximumWidth: Number.POSITIVE_INFINITY, ...over });
23
- describe('when arranging a panel', () => {
24
- it('should make a canvas the coordinate space its children are placed against', () => {
25
- const panel = { ...base, extent: {} };
26
- panelStyle(panel).position.should.equal('relative');
27
- });
28
- it('should size a canvas to its extent', () => {
29
- const panel = { ...base, extent: { width: 1280, height: 800 } };
30
- const style = panelStyle(panel);
31
- [style.width, style.height].should.have.members([1280, 800]);
32
- });
33
- it('should place a canvas child at the edges it names', () => {
34
- const panel = { ...base, extent: {} };
35
- const style = childStyle(panel, child({ 'Canvas.Left': 40, 'Canvas.Top': 24 }), 0);
36
- style.position.should.equal('absolute');
37
- [style.left, style.top].should.have.members([40, 24]);
38
- });
39
- it('should leave a canvas child that names no edge in flow', () => {
40
- const panel = { ...base, extent: {} };
41
- (childStyle(panel, child(), 0) === undefined).should.be.true;
42
- });
43
- it('should lay a stack panel out along its orientation', () => {
44
- const panel = { ...base, orientation: Orientation.Horizontal, spacing: 8 };
45
- panelStyle(panel).flexDirection.should.equal('row');
46
- });
47
- it('should space a stack panel by its spacing', () => {
48
- const panel = { ...base, orientation: Orientation.Vertical, spacing: 12 };
49
- panelStyle(panel).gap.should.equal('12px');
50
- });
51
- it('should wrap a wrap panel', () => {
52
- const panel = { ...base, orientation: Orientation.Horizontal };
53
- panelStyle(panel).flexWrap.should.equal('wrap');
54
- });
55
- it('should turn star tracks into fractions', () => {
56
- const panel = { ...base, rows: [row(), row({ height: star(2) })], columns: [] };
57
- panelStyle(panel).gridTemplateRows.should.equal('1fr 2fr');
58
- });
59
- it('should turn an absolute track into pixels', () => {
60
- const panel = { ...base, rows: [], columns: [column({ width: { value: 240, unitType: GridUnitType.Absolute } })] };
61
- panelStyle(panel).gridTemplateColumns.should.equal('240px');
62
- });
63
- it('should turn a content-sized track into auto', () => {
64
- const panel = { ...base, rows: [], columns: [column({ width: { value: 0, unitType: GridUnitType.Auto } })] };
65
- panelStyle(panel).gridTemplateColumns.should.equal('auto');
66
- });
67
- it('should bound a track that states a minimum', () => {
68
- const panel = { ...base, rows: [row({ minimumHeight: 40 })], columns: [] };
69
- panelStyle(panel).gridTemplateRows.should.equal('minmax(40px, 1fr)');
70
- });
71
- it('should leave a plain panel unstyled', () => (panelStyle({ ...base }) === undefined).should.be.true);
72
- });
73
- describe('when placing a child in a panel', () => {
74
- it('should place a grid child in the cell it names, one-based for CSS', () => {
75
- const panel = { ...base, rows: [row()], columns: [column()] };
76
- childStyle(panel, child({ 'Grid.Row': 1, 'Grid.Column': 2 }), 0).gridRow.should.equal('2 / span 1');
77
- });
78
- it('should span a grid child that asks for it', () => {
79
- const panel = { ...base, rows: [row()], columns: [column()] };
80
- childStyle(panel, child({ 'Grid.Column': 0, 'Grid.ColumnSpan': 3 }), 0).gridColumn.should.equal('1 / span 3');
81
- });
82
- it('should leave a grid child that names no cell to the implicit flow', () => {
83
- const panel = { ...base, rows: [row()], columns: [column()] };
84
- (childStyle(panel, child(), 0) === undefined).should.be.true;
85
- });
86
- it('should let a dock panel last child fill what is left', () => {
87
- const kid = child();
88
- const panel = { ...base, lastChildFill: true, children: [kid] };
89
- childStyle(panel, kid, 0).flex.should.equal('1 1 auto');
90
- });
91
- it('should keep a docked child at its natural size', () => {
92
- const first = child({ Dock: Dock.Top });
93
- const panel = { ...base, lastChildFill: true, children: [first, child()] };
94
- childStyle(panel, first, 0).flex.should.equal('0 0 auto');
95
- });
96
- it('should not let the last child fill when the panel says not to', () => {
97
- const kid = child();
98
- const panel = { ...base, lastChildFill: false, children: [kid] };
99
- childStyle(panel, kid, 0).flex.should.equal('0 0 auto');
100
- });
101
- it('should size wrap panel children when the panel sizes them', () => {
102
- const panel = { ...base, orientation: Orientation.Horizontal, itemWidth: 120 };
103
- childStyle(panel, child(), 0).width.should.equal(120);
104
- });
105
- it('should leave wrap panel children their own size when the panel sizes neither axis', () => {
106
- const panel = { ...base, orientation: Orientation.Horizontal };
107
- (childStyle(panel, child(), 0) === undefined).should.be.true;
108
- });
109
- });
110
- //# sourceMappingURL=when_arranging_a_panel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_arranging_a_panel.js","sourceRoot":"","sources":["../../../for_panelLayout/when_arranging_a_panel.ts"],"names":[],"mappings":"AAGA,OAAO,EAA4B,IAAI,EAAmB,YAAY,EAAE,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E,CAAC,IAAK,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;QACjE,MAAM,KAAK,GAAc,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;QAC1F,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAE,CAAC,KAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mFAAmF,EAAE,GAAG,EAAE;QACzF,MAAM,KAAK,GAAc,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC;QAC1E,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC;IACjE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=when_converting_a_token_name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"when_converting_a_token_name.d.ts","sourceRoot":"","sources":["../../../for_themeTokens/when_converting_a_token_name.ts"],"names":[],"mappings":""}