@instructure/platform-institutional-tagging 6.3.0 → 6.5.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 (39) hide show
  1. package/dist/__tests__/SearchAndFilterSection.test.d.ts +2 -0
  2. package/dist/__tests__/SearchAndFilterSection.test.d.ts.map +1 -0
  3. package/dist/components/Category/TopSection.d.ts.map +1 -1
  4. package/dist/components/Category/types.d.ts +2 -2
  5. package/dist/components/Category/types.d.ts.map +1 -1
  6. package/dist/components/SearchAndFilterSection/SearchAndFilterSection.d.ts.map +1 -1
  7. package/dist/components/Tag/Tag.d.ts.map +1 -1
  8. package/dist/components/UserTagList/UserTagList.d.ts +4 -0
  9. package/dist/components/UserTagList/UserTagList.d.ts.map +1 -0
  10. package/dist/components/UserTagList/constants.d.ts +2 -0
  11. package/dist/components/UserTagList/constants.d.ts.map +1 -0
  12. package/dist/components/UserTagList/index.d.ts +3 -0
  13. package/dist/components/UserTagList/index.d.ts.map +1 -0
  14. package/dist/components/UserTagList/styles.d.ts +3 -0
  15. package/dist/components/UserTagList/styles.d.ts.map +1 -0
  16. package/dist/components/UserTagList/types.d.ts +5 -0
  17. package/dist/components/UserTagList/types.d.ts.map +1 -0
  18. package/dist/constants/i18n.d.ts +4 -0
  19. package/dist/constants/i18n.d.ts.map +1 -1
  20. package/dist/contexts/FeatureFlagsContext.d.ts +1 -0
  21. package/dist/contexts/FeatureFlagsContext.d.ts.map +1 -1
  22. package/dist/hooks/useArchiveCategory.d.ts.map +1 -1
  23. package/dist/hooks/useArchiveTag.d.ts.map +1 -1
  24. package/dist/hooks/useFetchTagsForCategory.d.ts +2 -1
  25. package/dist/hooks/useFetchTagsForCategory.d.ts.map +1 -1
  26. package/dist/hooks/useRestoreTag.d.ts.map +1 -1
  27. package/dist/index.d.ts +1 -2
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +6074 -6654
  30. package/dist/screens/TagDetail/TagDetailHeader.d.ts.map +1 -1
  31. package/dist/stories/UserTagList.stories.d.ts +11 -0
  32. package/dist/stories/UserTagList.stories.d.ts.map +1 -0
  33. package/dist/types/category.d.ts +2 -2
  34. package/dist/types/category.d.ts.map +1 -1
  35. package/dist/types/tag.d.ts +2 -2
  36. package/dist/types/tag.d.ts.map +1 -1
  37. package/dist/utils/gqlMappers.d.ts.map +1 -1
  38. package/locales/en.json +4 -0
  39. package/package.json +49 -29
@@ -1 +1 @@
1
- {"version":3,"file":"TagDetailHeader.d.ts","sourceRoot":"","sources":["../../../src/screens/TagDetail/TagDetailHeader.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,oBAAoB;IAC5B,GAAG,EAAE,OAAO,CAAA;IACZ,MAAM,EAAE,MAAM,IAAI,CAAA;IAElB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAuE7D,CAAA"}
1
+ {"version":3,"file":"TagDetailHeader.d.ts","sourceRoot":"","sources":["../../../src/screens/TagDetail/TagDetailHeader.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,oBAAoB;IAC5B,GAAG,EAAE,OAAO,CAAA;IACZ,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAyE7D,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { UserTagList } from '../components/UserTagList';
3
+ declare const meta: Meta<typeof UserTagList>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const SingleTag: Story;
8
+ export declare const AtLimit: Story;
9
+ export declare const WithOverflow: Story;
10
+ export declare const Empty: Story;
11
+ //# sourceMappingURL=UserTagList.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserTagList.stories.d.ts","sourceRoot":"","sources":["../../src/stories/UserTagList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAGrD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAmBlC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAWvB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAerB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAkB1B,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAWnB,CAAA"}
@@ -1,9 +1,9 @@
1
- import { WorkflowState } from './state';
1
+ import { InstitutionalTagWorkflowState } from '@instructure/platform-graphql-types';
2
2
  export interface CategoryType {
3
3
  _id: string;
4
4
  name: string;
5
5
  description?: string | null;
6
- workflowState: WorkflowState;
6
+ workflowState: InstitutionalTagWorkflowState;
7
7
  createdAt?: string;
8
8
  updatedAt?: string;
9
9
  tagsCount?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/types/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,aAAa,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B"}
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/types/category.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AAExF,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,6BAA6B,CAAA;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B"}
@@ -1,10 +1,10 @@
1
+ import { InstitutionalTagWorkflowState } from '@instructure/platform-graphql-types';
1
2
  import { CategoryType } from './category';
2
- import { WorkflowState } from './state';
3
3
  export interface TagType {
4
4
  _id: string;
5
5
  name: string;
6
6
  description: string;
7
- workflowState: WorkflowState;
7
+ workflowState: InstitutionalTagWorkflowState;
8
8
  associationsCount?: number;
9
9
  category: Pick<CategoryType, '_id' | 'name'>;
10
10
  createdAt?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/types/tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI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AM,eAAe,GAAI,MAAM,YAAY,KAAG,YAOnD,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,CAAC,CAAA;AAEpF,eAAO,MAAM,YAAY,GAAI,MAAM,YAAY,KAAG,OAShD,CAAA;AAEF,KAAK,kBAAkB,GAAG,WAAW,CACnC,WAAW,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAC7E,CAAA;AACD,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;AAEtF,eAAO,MAAM,UAAU,GAAI,MAAM,UAAU,KAAG,WAO5C,CAAA;AAEF,eAAO,MAAM,mBAAmB,GAAI,MAAM,YAAY,KAAG,eASvD,CAAA"}
package/locales/en.json CHANGED
@@ -115,6 +115,10 @@
115
115
  "one": "%{count} person added to %{tagName}",
116
116
  "other": "%{count} people added to %{tagName}"
117
117
  },
118
+ "nMoreTags": {
119
+ "one": "and %{count} more tag",
120
+ "other": "and %{count} more tags"
121
+ },
118
122
  "tagAssociationCount": {
119
123
  "one": "%{count} associated user with tag: %{tagName}",
120
124
  "other": "%{count} associated users with tag: %{tagName}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-institutional-tagging",
3
- "version": "6.3.0",
3
+ "version": "6.5.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -17,39 +17,39 @@
17
17
  "locales"
18
18
  ],
19
19
  "peerDependencies": {
20
- "@instructure/emotion": "^10.5.0",
21
- "@instructure/ui-alerts": "^10.5.0",
22
- "@instructure/ui-avatar": "^10.5.0",
23
- "@instructure/ui-badge": "^10.5.0",
24
- "@instructure/ui-buttons": "^10.5.0",
25
- "@instructure/ui-checkbox": "^10.5.0",
26
- "@instructure/ui-drilldown": "^10.5.0",
27
- "@instructure/ui-flex": "^10.5.0",
28
- "@instructure/ui-form-field": "^10.5.0",
29
- "@instructure/ui-heading": "^10.5.0",
30
- "@instructure/ui-icons": "^10.5.0",
31
- "@instructure/ui-menu": "^10.5.0",
32
- "@instructure/ui-modal": "^10.5.0",
33
- "@instructure/ui-pagination": "^10.5.0",
34
- "@instructure/ui-pill": "^10.5.0",
35
- "@instructure/ui-popover": "^10.5.0",
36
- "@instructure/ui-select": "^10.5.0",
37
- "@instructure/ui-simple-select": "^10.5.0",
38
- "@instructure/ui-tag": "^10.5.0",
39
- "@instructure/ui-table": "^10.5.0",
40
- "@instructure/ui-text": "^10.5.0",
41
- "@instructure/ui-text-area": "^10.5.0",
42
- "@instructure/ui-text-input": "^10.5.0",
43
- "@instructure/ui-themes": "^10.5.0",
44
- "@instructure/ui-truncate-text": "^10.5.0",
20
+ "@instructure/emotion": "^11.0.0",
21
+ "@instructure/ui-alerts": "^11.0.0",
22
+ "@instructure/ui-avatar": "^11.0.0",
23
+ "@instructure/ui-badge": "^11.0.0",
24
+ "@instructure/ui-buttons": "^11.0.0",
25
+ "@instructure/ui-checkbox": "^11.0.0",
26
+ "@instructure/ui-drilldown": "^11.0.0",
27
+ "@instructure/ui-flex": "^11.0.0",
28
+ "@instructure/ui-form-field": "^11.0.0",
29
+ "@instructure/ui-heading": "^11.0.0",
30
+ "@instructure/ui-icons": "^11.0.0",
31
+ "@instructure/ui-menu": "^11.0.0",
32
+ "@instructure/ui-modal": "^11.0.0",
33
+ "@instructure/ui-pagination": "^11.0.0",
34
+ "@instructure/ui-pill": "^11.0.0",
35
+ "@instructure/ui-popover": "^11.0.0",
36
+ "@instructure/ui-select": "^11.0.0",
37
+ "@instructure/ui-simple-select": "^11.0.0",
38
+ "@instructure/ui-tag": "^11.0.0",
39
+ "@instructure/ui-table": "^11.0.0",
40
+ "@instructure/ui-text": "^11.0.0",
41
+ "@instructure/ui-text-area": "^11.0.0",
42
+ "@instructure/ui-text-input": "^11.0.0",
43
+ "@instructure/ui-themes": "^11.0.0",
44
+ "@instructure/ui-truncate-text": "^11.0.0",
45
45
  "@tanstack/react-query": "^5.0.0",
46
46
  "react": "^18.0.0",
47
47
  "react-dom": "^18.0.0",
48
48
  "react-router-dom": "^6.0.0",
49
- "@instructure/platform-provider": "0.5.0"
49
+ "@instructure/platform-provider": "0.5.2"
50
50
  },
51
51
  "devDependencies": {
52
- "@instructure/ui-form-field": "^10.30.0",
52
+ "@instructure/ui-form-field": "11.6.0",
53
53
  "@storybook/react": "^10.0.8",
54
54
  "@stylelint/postcss-css-in-js": "^0.38.0",
55
55
  "@testing-library/jest-dom": "^6.9.1",
@@ -74,7 +74,27 @@
74
74
  "typescript": "^5.3.0",
75
75
  "vite": "^6.0.0",
76
76
  "vite-plugin-dts": "^4.0.0",
77
- "@instructure/platform-graphql-types": "0.1.2"
77
+ "@instructure/emotion": "11.6.0",
78
+ "@instructure/ui-alerts": "11.6.0",
79
+ "@instructure/ui-badge": "11.6.0",
80
+ "@instructure/ui-buttons": "11.6.0",
81
+ "@instructure/ui-checkbox": "11.6.0",
82
+ "@instructure/ui-drilldown": "11.6.0",
83
+ "@instructure/ui-flex": "11.6.0",
84
+ "@instructure/ui-heading": "11.6.0",
85
+ "@instructure/ui-icons": "11.6.0",
86
+ "@instructure/ui-menu": "11.6.0",
87
+ "@instructure/ui-modal": "11.6.0",
88
+ "@instructure/ui-pagination": "11.6.0",
89
+ "@instructure/ui-pill": "11.6.0",
90
+ "@instructure/ui-popover": "11.6.0",
91
+ "@instructure/ui-simple-select": "11.6.0",
92
+ "@instructure/ui-text": "11.6.0",
93
+ "@instructure/ui-text-area": "11.6.0",
94
+ "@instructure/ui-text-input": "11.6.0",
95
+ "@instructure/ui-themes": "11.6.0",
96
+ "@instructure/ui-truncate-text": "11.6.0",
97
+ "@instructure/platform-graphql-types": "0.1.3"
78
98
  },
79
99
  "dependencies": {
80
100
  "lodash": "^4.17.23",